/* ============================================================
   public/css/style.css
   CSS GABUNGAN UNTUK SEMUA HALAMAN - VERSI FINAL
   ============================================================ */

/* ─── ROOT VARIABLES ─── */
:root {
    color-scheme: light only;
    --sage: #3a7d76;
    --sage-light: #e6f2f0;
    --krem: #f7f3eb;
    --dark: #1d3b36;
    --medium: #5a6f6a;
    --light: #f0f7f5;
    --white: #ffffff;
    --pink: #F6D5DA;
    --lavender: #DCCDF2;
    --peach: #DFE2CC;
    --soft-blue: #CCE6FF;
    --red: #e17055;
    --gold: #d4a373;
    --pink-soft: #fc9dbb;
    --pink-light: #ffdde6;
    --pink-misty: #FFE4E1;
    --shadow: 0 8px 30px rgba(58, 125, 118, 0.08);
    --shadow-hover: 0 12px 40px rgba(58, 125, 118, 0.15);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: all 0.3s ease;
}

/* ─── RESET ─── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--pink-light);
    min-height: 100vh;
    padding: 20px 20px 100px;
    display: flex;
    justify-content: center;
    color: var(--dark);
}

.app {
    max-width: 720px;
    width: 100%;
}

/* ============================================================
   LOGO ANIMASI - BUNGA & TUMBUHAN BERGERAK
   ============================================================ */

/* ─── LOGO CONTAINER ─── */
.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 22px;
    font-weight: 700;
    color: var(--dark, #1d3b36);
    text-decoration: none;
}

/* ─── BUNGA (🌸) - BERPUTAR & BERGELOMBANG ─── */
.logo .bunga {
    display: inline-block;
    animation: bungaMekar 3s ease-in-out infinite;
    font-size: 28px;
    transform-origin: center;
}

@keyframes bungaMekar {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.1) rotate(-8deg);
    }

    50% {
        transform: scale(1.15) rotate(5deg);
    }

    75% {
        transform: scale(1.05) rotate(-3deg);
    }
}

/* ─── TUMBUHAN (🌱) - TUMBUH & BERGELOMBANG ─── */
.logo .tumbuhan {
    display: inline-block;
    animation: tumbuh 2.5s ease-in-out infinite;
    font-size: 26px;
    transform-origin: bottom center;
}

@keyframes tumbuh {

    0%,
    100% {
        transform: scaleY(1) scaleX(1) rotate(0deg);
    }

    30% {
        transform: scaleY(1.15) scaleX(0.95) rotate(-5deg);
    }

    60% {
        transform: scaleY(1.2) scaleX(0.9) rotate(3deg);
    }

    80% {
        transform: scaleY(1.1) scaleX(0.98) rotate(-2deg);
    }
}

/* ─── BUNGA & TUMBUHAN BERSAMAAN ─── */
.logo .bunga-tumbuhan {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* ─── EFEK GLOW PADA LOGO ─── */
.logo:hover .bunga {
    animation-duration: 1.5s;
    filter: drop-shadow(0 0 10px rgba(244, 167, 187, 0.4));
}

.logo:hover .tumbuhan {
    animation-duration: 1.2s;
    filter: drop-shadow(0 0 10px rgba(168, 196, 160, 0.3));
}

/* ─── HEART BEAT UNTUK LOGO ─── */
.logo .heart-beat {
    display: inline-block;
    animation: heartbeat 1.8s ease-in-out infinite;
    font-size: 22px;
    margin: 0 2px;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.2);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.15);
    }

    70% {
        transform: scale(1);
    }
}

/* ─── LOGO TEXT GRADIENT ─── */
.logo .logo-text {
    background: linear-gradient(135deg, #F4A7BB, #B8A9C9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: 1px;
}

/* ─── HEADER ─── */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-top: 4px;
}

.header .logo {
    font-size: 22px;
    font-weight: 300;
    color: var(--dark);
}

.header .logo strong {
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.header .badge {
    background: var(--sage);
    color: white;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ─── USER AREA ─── */
.user-area {
    position: relative;
    display: inline-block;
}

.user-area .profile-trigger {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-area .profile-trigger .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--soft-pink);
}

.user-area .profile-trigger .avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--soft-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--medium);
}

.user-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(58, 125, 118, 0.08);
    min-width: 200px;
    padding: 8px 0;
    display: none;
    z-index: 1000;
    animation: slideDown 0.2s ease;
}

.user-dropdown.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--dark);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.user-dropdown .dropdown-item:hover {
    background: var(--light);
}

.user-dropdown .dropdown-divider {
    height: 1px;
    background: var(--light);
    margin: 6px 16px;
}

.user-dropdown .dropdown-item.logout {
    color: var(--red);
}

.user-dropdown .dropdown-item.logout:hover {
    background: #fdf0ee;
}

/* ─── BOTTOM NAV ─── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-around;
    padding: 8px 16px 16px;
    border-top: 1px solid rgba(58, 125, 118, 0.08);
    max-width: 720px;
    margin: 0 auto;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -4px 30px rgba(45, 62, 59, 0.06);
}

.bottom-nav a {
    text-decoration: none;
    color: #b0c2bd;
    font-size: 10px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.bottom-nav a .nav-icon {
    font-size: 20px;
}

.bottom-nav a.active {
    color: var(--sage);
}

.bottom-nav a:hover {
    color: var(--sage);
}

/* ─── CARD ─── */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 18px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(58, 125, 118, 0.06);
    margin-bottom: 16px;
}

/* ─── GREETING ─── */
.greeting-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 2px;
}

.greeting-text {
    flex: 1;
}

.greeting-text h1 {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
}

.greeting-text p {
    font-size: 14px;
    color: var(--medium);
    line-height: 1.5;
    margin-top: 0;
}

.greeting-image {
    flex-shrink: 0;
}

.greeting-image img {
    width: 135px;
    height: 135px;
    max-width: 100%;
    object-fit: cover;
}

/* ─── CTA ─── */
.cta-card {
    background: linear-gradient(135deg, var(--pink), var(--lavender));
    border: none;
    padding: 16px 18px !important;
}

.cta-card .icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.cta-card h3 {
    font-size: 15px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
}

.cta-card p {
    font-size: 12px;
    color: var(--medium);
    margin: 2px 0 8px;
}

.cta-card .btn-cta {
    background: var(--sage);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    display: inline-block;
}

.cta-card .btn-cta:hover {
    background: #2d655f;
    transform: scale(1.02);
}

/* ─── GRID 4 FITUR ─── */
.fitur-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.fitur-item {
    background: var(--white);
    border-radius: 16px;
    padding: 16px 14px 14px;
    text-decoration: none;
    color: var(--dark);
    border: 1px solid rgba(58, 125, 118, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.fitur-item:hover {
    transform: translateY(-4px);
    border-color: var(--sage);
    box-shadow: 0 12px 32px rgba(58, 125, 118, 0.10);
}

.fitur-item:nth-child(1) {
    background: rgba(255, 182, 193, 0.15);
}

.fitur-item:nth-child(2) {
    background: rgba(216, 191, 216, 0.20);
}

.fitur-item:nth-child(3) {
    background: rgba(144, 238, 144, 0.12);
}

.fitur-item:nth-child(4) {
    background: rgba(173, 216, 230, 0.18);
}

.fitur-item .icon {
    font-size: 22px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.fitur-item .label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
}

.fitur-item .desc {
    font-size: 11px;
    color: var(--medium);
    line-height: 1.4;
    margin-top: 2px;
    flex: 1;
}

.fitur-item .arrow-circle {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.fitur-item .arrow-circle span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    font-size: 12px;
    color: var(--medium);
    transition: var(--transition);
}

.fitur-item:hover .arrow-circle span {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
    color: var(--sage);
}

/* ─── CHALLENGE ─── */
.challenge-card {
    background: linear-gradient(135deg, var(--peach), var(--soft-blue));
    border: none;
}

.challenge-card .tag {
    font-size: 10px;
    font-weight: 600;
    color: var(--medium);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.challenge-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin: 4px 0 8px;
}

.challenge-card .btn-challenge {
    background: var(--sage);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.challenge-card .btn-challenge:hover {
    background: #2d655f;
    transform: translateY(-2px);
}

/* ─── RIWAYAT ─── */
.riwayat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--light);
}

.riwayat-item:last-child {
    border-bottom: none;
}

.riwayat-item .left .date {
    font-weight: 600;
    color: var(--dark);
    font-size: 13px;
}

.riwayat-item .left .desc {
    font-size: 12px;
    color: var(--medium);
}

.riwayat-item .right {
    display: flex;
    gap: 6px;
}

.riwayat-item .right .btn-small {
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.riwayat-item .right .btn-small.primary {
    background: var(--sage);
    color: white;
}

.riwayat-item .right .btn-small.primary:hover {
    background: #2d655f;
}

.riwayat-item .right .btn-small.outline {
    background: transparent;
    color: var(--sage);
    border: 1.5px solid var(--sage);
}

.riwayat-item .right .btn-small.outline:hover {
    background: var(--light);
}

/* ─── REKOMENDASI ─── */
.rekomendasi-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rekomendasi-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--light);
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
}

.rekomendasi-item:hover {
    background: #dcebe7;
}

.rekomendasi-item .thumb {
    font-size: 24px;
}

.rekomendasi-item .info .title {
    font-weight: 600;
    font-size: 13px;
    color: var(--dark);
}

.rekomendasi-item .info .meta {
    font-size: 11px;
    color: var(--medium);
}

.rekomendasi-item .arrow {
    margin-left: auto;
    color: var(--medium);
    font-size: 16px;
}

.btn-lihat-semua {
    background: transparent;
    color: var(--sage);
    border: 1.5px solid var(--sage);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    margin-top: 10px;
    width: 100%;
}

.btn-lihat-semua:hover {
    background: var(--light);
}

/* ─── PROFIL PAGE ─── */
.profil-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 30px 25px;
    box-shadow: 0 8px 30px rgba(58, 125, 118, 0.08);
    border: 1px solid rgba(58, 125, 118, 0.06);
}

.profil-header {
    text-align: center;
    margin-bottom: 24px;
}

.profil-header .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3a7d76;
}

.profil-header .avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e0e8e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #5a6f6a;
    margin: 0 auto;
}

.profil-header h2 {
    margin-top: 12px;
    color: #1d3b36;
    font-size: 22px;
}

.profil-header .email {
    color: #5a6f6a;
    font-size: 14px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1d3b36;
    font-size: 14px;
    margin-bottom: 6px;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e8e5;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: white;
    transition: 0.2s;
    color: #1d3b36;
}

.form-group select:focus,
.form-group input:focus {
    border-color: #3a7d76;
    outline: none;
}

.btn-save {
    background: #3a7d76;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: 0.2s;
}

.btn-save:hover {
    background: #2d655f;
    transform: scale(1.02);
}

.btn-save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.riwayat-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid rgba(244,167,187,0.15);
}

.riwayat-section h3 {
    font-size: 16px;
    color: #1d3b36;
    margin-bottom: 12px;
}

/* ─── RIWAYAT LOVE LANGUAGE PROFIL ─── */
.ll-profil-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px 0;
    opacity: 0;
    animation: categorySlideUp 0.4s ease forwards;
}

.ll-profil-bar-wrap {
    flex: 1;
    height: 18px;
    background: #fcd5e3;
    border-radius: 9px;
    overflow: hidden;
    min-width: 60px;
}

.ll-profil-bar-fill {
    height: 100%;
    border-radius: 9px;
    width: 0%;
    transition: width 1s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
}

.ll-profil-bar-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: rgba(255,255,255,0.25);
    border-radius: 9px 9px 0 0;
}

.ll-profil-percent {
    width: 40px;
    font-weight: 700;
    font-size: 13px;
    color: #4a3a40;
    flex-shrink: 0;
    text-align: right;
}

.ll-profil-primary {
    margin-top: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #fff0f5, #fff5f8);
    border: 1.5px solid rgba(244,167,187,0.3);
    border-radius: 14px;
    text-align: center;
    animation: primaryPulse 3s ease-in-out infinite;
}

.riwayat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f7f5;
    font-size: 14px;
    color: #1d3b36;
}

.riwayat-item .label {
    color: #5a6f6a;
}

.riwayat-item .value {
    font-weight: 600;
}

.alert-save {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
}

.alert-save.success {
    display: block;
    background: #e6f2f0;
    color: #1d3b36;
    border-left: 4px solid #3a7d76;
}

.alert-save.error {
    display: block;
    background: #fdf0ee;
    color: #e17055;
    border-left: 4px solid #e17055;
}

.btn-logout {
    background: transparent;
    color: #e17055;
    border: 2px solid #e17055;
    padding: 12px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 12px;
    transition: 0.2s;
}

.btn-logout:hover {
    background: #fdf0ee;
}

/* ============================================================
   LOGIN PAGE - SOFT PINK THEME & CENTER
   ============================================================ */

/* ─── BODY LOGIN ─── */
body.login-page {
    background: linear-gradient(135deg, #FFF0F3 0%, #FCE4EC 30%, #F3E5F5 60%, #FFF0F3 100%);
    background-size: 400% 400%;
    animation: loginBgShift 12s ease-in-out infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
    position: relative;
}

@keyframes loginBgShift {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

/* ─── FLOATING ORBS ─── */
.login-orbs {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

.login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.35;
    animation: orbFloat ease-in-out infinite;
}

.login-orb:nth-child(1) {
    width: 260px; height: 260px;
    background: #F4A7BB;
    top: -80px; right: -60px;
    animation-duration: 8s;
}

.login-orb:nth-child(2) {
    width: 200px; height: 200px;
    background: #B8A9C9;
    bottom: -60px; left: -50px;
    animation-duration: 10s;
    animation-delay: -3s;
}

.login-orb:nth-child(3) {
    width: 180px; height: 180px;
    background: #FFD4B8;
    top: 40%; left: 60%;
    animation-duration: 9s;
    animation-delay: -5s;
}

.login-orb:nth-child(4) {
    width: 140px; height: 140px;
    background: #a5d8d4;
    top: 10%; left: 10%;
    animation-duration: 11s;
    animation-delay: -7s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(-30px, -30px) scale(1.05); }
}

/* ─── FLOATING PARTICLES ─── */
.login-particle {
    position: absolute;
    pointer-events: none;
    animation: particleRise linear infinite;
    opacity: 0;
}

@keyframes particleRise {
    0% { transform: translateY(100vh) rotate(0deg) scale(0); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-10vh) rotate(360deg) scale(1); opacity: 0; }
}

/* ─── WRAPPER ─── */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
}

/* ─── LOGIN CONTAINER ─── */
.login-container {
    max-width: 420px;
    width: 100%;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 48px 40px;
    box-shadow: 0 8px 40px rgba(244, 167, 187, 0.10);
    border: 1px solid rgba(255,255,255,0.6);
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
    z-index: 1;
}

.login-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── STAGGERED ENTRANCE ─── */
.login-container .stagger-item {
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

.login-container.visible .stagger-item {
    opacity: 1;
    transform: translateY(0);
}

.login-container.visible .stagger-item:nth-child(1) { transition-delay: 0.05s; }
.login-container.visible .stagger-item:nth-child(2) { transition-delay: 0.15s; }
.login-container.visible .stagger-item:nth-child(3) { transition-delay: 0.25s; }
.login-container.visible .stagger-item:nth-child(4) { transition-delay: 0.35s; }
.login-container.visible .stagger-item:nth-child(5) { transition-delay: 0.45s; }
.login-container.visible .stagger-item:nth-child(6) { transition-delay: 0.55s; }
.login-container.visible .stagger-item:nth-child(7) { transition-delay: 0.60s; }
.login-container.visible .stagger-item:nth-child(8) { transition-delay: 0.65s; }

/* ─── LOGO ─── */
.login-container .logo {
    font-size: 52px;
    margin-bottom: 4px;
    display: block;
    animation: logoBounce 0.7s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes logoBounce {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.login-container h1 {
    font-size: 28px;
    color: #1d3b36;
    font-weight: 300;
    margin-bottom: 2px;
}

.login-container h1 strong {
    font-weight: 700;
    background: linear-gradient(135deg, #F4A7BB 0%, #B8A9C9 50%, #F4A7BB 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 3s linear infinite;
}

@keyframes textShimmer {
    to { background-position: 200% center; }
}

.login-container .subtitle {
    color: #5a6f6a;
    font-weight: 300;
    font-size: 15px;
    margin-bottom: 28px;
}

/* ─── BUTTONS ─── */
.login-container .btn-google {
    background: white;
    color: #1d3b36;
    border: 2px solid #E8E4E0;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: inherit;
    position: relative;
    z-index: 1;
}

/* Pulse ring */
.login-container .btn-google::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 54px;
    border: 2px solid rgba(244, 167, 187, 0.4);
    animation: btnPulse 2.5s ease-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes btnPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.06); opacity: 0; }
}

.login-container .btn-google:hover:not(:disabled) {
    border-color: #F4A7BB;
    background: #FFF5F8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 167, 187, 0.10);
}

.login-container .btn-google:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.login-container .btn-google .google-icon {
    width: 20px;
    height: 20px;
}

.login-container .btn-email {
    background: linear-gradient(135deg, #F4A7BB, #E8879F);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: inherit;
    box-shadow: 0 4px 20px rgba(244, 167, 187, 0.20);
}

.login-container .btn-email:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(244, 167, 187, 0.30);
}

.login-container .btn-email:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ─── DIVIDER ─── */
.login-container .divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: #b0c2bd;
    font-size: 13px;
}

.login-container .divider::before,
.login-container .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E8E4E0;
}

/* ─── ERROR MESSAGE ─── */
.login-container .error-message {
    background: #fdf0ee;
    color: #e17055;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
    text-align: left;
}

.login-container .error-message.show {
    display: block;
    animation: shake 0.4s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* ─── LOADING ─── */
.login-container .loading {
    display: none;
    margin: 12px 0 16px;
}

.login-container .loading.show {
    display: block;
}

.login-container .loading .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #F0EAE6;
    border-top: 3px solid #F4A7BB;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.login-container .loading .loading-text {
    margin-top: 8px;
    color: #5a6f6a;
    font-size: 14px;
}

/* ─── FOOTER ─── */
.login-container .footer-text {
    margin-top: 24px;
    font-size: 13px;
    color: #5a6f6a;
    line-height: 1.8;
}

.login-container .footer-text a {
    color: #F4A7BB;
    text-decoration: none;
    font-weight: 600;
}

.login-container .footer-text a:hover {
    text-decoration: underline;
}

.login-container .register-link {
    margin-top: 16px;
    font-size: 13px;
    color: #b0c2bd;
}

.login-container .register-link a {
    color: #F4A7BB;
    font-weight: 600;
    text-decoration: none;
}

.login-container .register-link a:hover {
    text-decoration: underline;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 480px) {
    .login-container {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .login-container h1 {
        font-size: 24px;
    }

    .login-container .logo {
        font-size: 44px;
    }

    .login-container .btn-google,
    .login-container .btn-email {
        font-size: 15px;
        padding: 12px 20px;
    }
}

@media (max-width: 360px) {
    .login-container {
        padding: 24px 16px;
    }

    .login-container h1 {
        font-size: 20px;
    }

    .login-container .btn-google,
    .login-container .btn-email {
        font-size: 14px;
        padding: 10px 16px;
    }
}

/* ─── LOVE LANGUAGE ─── */
.container {
    max-width: 700px;
    width: 100%;
    background: white;
    border-radius: 30px;
    padding: 30px 25px;
    box-shadow: 0 20px 60px rgba(58, 125, 118, 0.10);
    border: 1px solid rgba(58, 125, 118, 0.06);
}

.intro {
    text-align: center;
    padding: 20px 0;
}

.intro .icon {
    font-size: 64px;
    margin-bottom: 10px;
}

.intro h1 {
    font-size: 28px;
    color: #1d3b36;
    margin-bottom: 8px;
    font-weight: 300;
}

.intro h1 strong {
    font-weight: 600;
}

.intro p {
    color: #5a6f6a;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 300;
}

.selector-group {
    margin: 16px 0 8px;
}

.selector-group .label {
    font-size: 14px;
    color: #5a6f6a;
    margin-bottom: 10px;
    font-weight: 500;
}

.selector-group .options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.selector-group .options .btn-opt {
    padding: 10px 20px;
    border-radius: 50px;
    border: 2px solid #dcebe7;
    background: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    color: #5a6f6a;
    flex: 1 1 auto;
    min-width: 80px;
}

.selector-group .options .btn-opt:hover {
    border-color: #3a7d76;
    background: #f0f7f5;
}

.selector-group .options .btn-opt.active {
    border-color: #3a7d76;
    background: #3a7d76;
    color: white;
}

.btn {
    background: #3a7d76;
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
}

.btn:hover {
    background: #2d655f;
    transform: scale(1.02);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.disclaimer-box {
    background: #fdf8f0;
    border-radius: 12px;
    padding: 14px 18px;
    margin: 16px 0;
    border-left: 4px solid #d4a373;
    text-align: left;
}

.disclaimer-box p {
    font-size: 13px;
    color: #5a6f6a;
    line-height: 1.6;
    margin: 0;
}

/* ─── SOAL (Love Language) ─── */
.soal-wrapper {
    display: none;
}

.soal-wrapper.active {
    display: block;
}

.progress {
    background: #ede6ff;
    border-radius: 20px;
    height: 8px;
    margin-bottom: 25px;
    overflow: hidden;
}

.progress .bar {
    height: 100%;
    background: linear-gradient(90deg, #3a7d76, #7fb4ad);
    border-radius: 20px;
    transition: width 0.4s ease;
    width: 0%;
}

.counter {
    text-align: right;
    font-size: 14px;
    color: #5a6f6a;
    margin-top: -18px;
    margin-bottom: 20px;
}

.soal-text {
    font-size: 20px;
    font-weight: 600;
    color: #1d3b36;
    margin-bottom: 25px;
    line-height: 1.5;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.options label {
    background: #f8f5ff;
    border: 2px solid #ede6ff;
    border-radius: 14px;
    padding: 14px 18px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.options label:hover {
    background: #f3edff;
    border-color: #c4b5fd;
}

.options input[type="radio"] {
    accent-color: #3a7d76;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.options label.selected {
    background: #e6f2f0;
    border-color: #3a7d76;
}

.nav-soal {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.nav-soal .btn {
    width: auto;
    padding: 12px 24px;
    font-size: 15px;
    flex: 1;
}

.nav-soal .btn-outline {
    background: transparent;
    color: #3a7d76;
    border: 2px solid #3a7d76;
}

.nav-soal .btn-outline:hover {
    background: #f0f7f5;
    transform: none;
}

/* ============================================================
           STYLE KHUSUS HASIL wellness & love language
           ============================================================ */
.empty-state-enhanced {
    text-align: center;
    padding: 40px 20px;
    background: var(--pink-bg, #fff5f8);
    border-radius: 16px;
    border: 2px dashed var(--pink-primary, #f4a7bb);
}

.empty-illustration {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.empty-icon {
    font-size: 64px;
    display: block;
}

.empty-emoji-cloud {
    position: absolute;
    top: -10px;
    right: -30px;
    font-size: 20px;
    animation: float 3s ease-in-out infinite;
}

.empty-emoji-cloud span {
    display: inline-block;
    animation: float 2s ease-in-out infinite;
}

.empty-emoji-cloud span:nth-child(2) {
    animation-delay: 0.5s;
}

.empty-emoji-cloud span:nth-child(3) {
    animation-delay: 1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.empty-state-enhanced h3 {
    font-size: 20px;
    color: var(--pink-text, #4a3a40);
    margin-bottom: 8px;
}

.empty-state-enhanced p {
    color: var(--pink-text-light, #8a7a80);
    font-size: 15px;
    margin-bottom: 4px;
}

.empty-sub {
    font-size: 14px !important;
    margin-bottom: 16px !important;
}

.empty-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 13px;
    color: var(--pink-text-light, #8a7a80);
    margin: 12px 0 20px;
}

.empty-meta span {
    background: white;
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid var(--pink-primary-light, #fcd5e3);
}

.btn-glow {
    box-shadow: 0 4px 20px rgba(244, 167, 187, 0.3);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 8px 30px rgba(244, 167, 187, 0.5);
    transform: translateY(-2px);
}

/* Tab */
.tab-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--pink-bg, #fff5f8);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--pink-primary-light, #fcd5e3);
}

.tab-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--pink-text-light, #8a7a80);
}

.tab-btn:hover {
    background: var(--pink-primary-light, #fcd5e3);
    color: var(--pink-text, #4a3a40);
}

.tab-btn.active {
    background: white;
    color: var(--pink-primary-dark, #e8879f);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Chart */
.chart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.chart-item .label {
    width: 140px;
    font-weight: 500;
    font-size: 14px;
    color: var(--pink-text, #4a3a40);
    flex-shrink: 0;
    text-align: right;
}

.chart-item .bar-bg {
    flex: 1;
    height: 24px;
    background: var(--pink-primary-light, #fcd5e3);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.chart-item .bar-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 1s ease;
    width: 0%;
}

.chart-item .percent {
    width: 50px;
    font-weight: 700;
    font-size: 14px;
    color: var(--pink-text, #4a3a40);
    flex-shrink: 0;
    text-align: left;
}

/* Primary Box */
.primary-box {
    background: linear-gradient(135deg, var(--pink-primary-light, #fcd5e3), white);
    padding: 16px 20px;
    border-radius: 12px;
    border: 2px solid var(--pink-primary, #f4a7bb);
    margin-top: 16px;
    text-align: center;
}

.primary-box .label {
    font-size: 13px;
    color: var(--pink-text-light, #8a7a80);
    font-weight: 500;
}

.primary-box .value {
    font-size: 22px;
    font-weight: 700;
    color: var(--pink-text, #4a3a40);
}

.primary-box .value small {
    font-size: 14px;
    color: var(--pink-text-light, #8a7a80);
    font-weight: 400;
}

/* Score Display */
.score-display {
    display: flex;
    align-items: center;
    gap: 24px;
}

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.score-circle .number {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.score-circle .label {
    font-size: 12px;
    opacity: 0.8;
}

.score-info h3 {
    font-size: 20px;
    margin-bottom: 2px;
    color: var(--pink-text, #4a3a40);
}

.score-info p {
    font-size: 14px;
    color: var(--pink-text-light, #8a7a80);
    margin: 0;
}

/* Dimension Grid */
.dimension-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.dimension-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: var(--pink-bg, #fff5f8);
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid var(--pink-primary-light, #fcd5e3);
}

.dimension-item .dim-score {
    font-weight: 700;
    color: var(--pink-primary-dark, #e8879f);
}

/* Risk Alert */
.risk-alert {
    background: #fff3e0;
    border: 2px solid #ff9800;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 16px 0;
}

.risk-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.risk-header .icon {
    font-size: 24px;
}

.risk-header h4 {
    color: #e65100;
    margin: 0;
    font-size: 16px;
}

.risk-body {
    font-size: 14px;
    color: var(--pink-text, #4a3a40);
    margin-top: 4px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.action-buttons .btn-secondary {
    flex: 1;
    text-align: center;
    min-width: 120px;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 600px) {
    .chart-item .label {
        width: 100px;
        font-size: 12px;
    }

    .chart-item .percent {
        width: 40px;
        font-size: 12px;
    }

    .dimension-grid {
        grid-template-columns: 1fr;
    }

    .score-display {
        flex-direction: column;
        text-align: center;
    }

    .score-circle {
        width: 80px;
        height: 80px;
    }

    .score-circle .number {
        font-size: 26px;
    }

    .empty-meta {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}

/* ─── HASIL (Love Language) ─── */
.hasil-wrapper {
    display: none;
}

.hasil-wrapper.active {
    display: block;
}

.hasil-title {
    font-size: 26px;
    color: #1d3b36;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 300;
}

.hasil-title strong {
    font-weight: 600;
}

.hasil-sub {
    text-align: center;
    color: #5a6f6a;
    margin-bottom: 25px;
    font-weight: 300;
}

.chart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.chart-item .label {
    width: 100px;
    font-weight: 600;
    color: #1d3b36;
    font-size: 14px;
    flex-shrink: 0;
}

.chart-item .bar-bg {
    flex: 1;
    height: 24px;
    background: #f0f7f5;
    border-radius: 20px;
    overflow: hidden;
}

.chart-item .bar-fill {
    height: 100%;
    border-radius: 20px;
    transition: width 1s ease;
    width: 0%;
}

.chart-item .percent {
    width: 50px;
    text-align: right;
    font-weight: 700;
    color: #1d3b36;
    font-size: 15px;
    flex-shrink: 0;
}

.detail-section {
    margin-top: 30px;
    border-top: 2px solid #f0f7f5;
    padding-top: 25px;
}

.detail-tab {
    background: #f8f5ff;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: 0.2s;
    border-left: 4px solid transparent;
}

.detail-tab:hover {
    background: #f3edff;
}

.detail-tab.open {
    border-left-color: #3a7d76;
    background: #f0f7f5;
}

.detail-tab .head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #1d3b36;
}

.detail-tab .head .emoji {
    font-size: 20px;
}

.detail-tab .body {
    display: none;
    padding-top: 14px;
    color: #2d4a44;
    line-height: 1.7;
    font-size: 15px;
}

.detail-tab.open .body {
    display: block;
}

.detail-tab .body ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.detail-tab .body ul li {
    padding: 6px 0;
    border-bottom: 1px solid #ede6ff;
}

.detail-tab .body ul li:last-child {
    border-bottom: none;
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.btn-group .btn {
    flex: 1;
    text-align: center;
    text-decoration: none;
}

.btn-secondary {
    background: #f0f7f5;
    color: #1d3b36;
}

.btn-secondary:hover {
    background: #dcebe7;
}

.note {
    background: #fdf8f0;
    border-radius: 14px;
    padding: 18px;
    margin-top: 25px;
    font-size: 14px;
    color: #5a6f6a;
    line-height: 1.7;
    border-left: 4px solid #d4a373;
}

.note strong {
    color: #1d3b36;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .greeting-text h1 {
        font-size: 20px;
    }

    .greeting-text p {
        font-size: 13px;
    }

    .greeting-image img {
        width: 120px;
        height: 120px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-nav button {
        font-size: 12px;
        padding: 6px 12px;
    }

    .admin-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .admin-header .admin-info {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 500px) {
    .greeting-wrapper {
        gap: 10px;
    }

    .greeting-text h1 {
        font-size: 18px;
    }

    .greeting-text p {
        font-size: 12px;
    }

    .greeting-image img {
        width: 72px;
        height: 72px;
    }

    .fitur-grid {
        gap: 10px;
    }

    .fitur-item {
        padding: 12px 10px;
        border-radius: 14px;
    }

    .fitur-item .icon {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .fitur-item .label {
        font-size: 12px;
    }

    .fitur-item .desc {
        font-size: 10px;
    }

    .riwayat-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .riwayat-item .right {
        width: 100%;
    }

    .riwayat-item .right .btn-small {
        flex: 1;
        text-align: center;
    }

    .card {
        padding: 16px 14px;
    }

    .header .logo {
        font-size: 18px;
    }

    .bottom-nav {
        padding: 6px 12px 14px;
    }

    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .login-container {
        padding: 30px 20px;
    }

    .login-container h1 {
        font-size: 24px;
    }

    .selector-group .options .btn-opt {
        flex: 1 1 40%;
        min-width: 70px;
        font-size: 13px;
        padding: 8px 14px;
    }

    .chart-item .label {
        width: 70px;
        font-size: 12px;
    }

    .chart-item .percent {
        width: 40px;
        font-size: 13px;
    }

    .nav-soal {
        flex-direction: column;
    }

    .nav-soal .btn {
        width: 100%;
    }

    .btn-group {
        flex-direction: column;
    }
}

@media (max-width: 400px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .menu-item {
        padding: 10px 4px 8px;
    }

    .menu-item .icon {
        font-size: 18px;
    }

    .menu-item .label {
        font-size: 9px;
    }
}

/* ─── ARTIKEL PAGE ─── */
.artikel-card {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(58, 125, 118, 0.06);
    transition: var(--transition);
    cursor: pointer;
}

.artikel-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.artikel-card .kategori {
    display: inline-block;
    background: var(--sage-light);
    color: var(--sage);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.artikel-card h3 {
    font-size: 18px;
    color: var(--dark);
    margin: 6px 0 4px;
}

.artikel-card .desc {
    font-size: 14px;
    color: var(--medium);
    margin-bottom: 8px;
}

.artikel-card .meta {
    font-size: 12px;
    color: var(--medium);
}

.artikel-card .thumb {
    font-size: 32px;
}

/* ─── DETAIL ARTIKEL ─── */
.artikel-detail {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(58, 125, 118, 0.06);
}

.artikel-detail .back-link {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--sage);
    text-decoration: none;
    font-weight: 600;
}

.artikel-detail .back-link:hover {
    text-decoration: underline;
}

.artikel-detail .kategori {
    display: inline-block;
    background: var(--sage-light);
    color: var(--sage);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.artikel-detail h1 {
    font-size: 26px;
    color: var(--dark);
    margin: 8px 0 4px;
}

.artikel-detail .meta {
    font-size: 13px;
    color: var(--medium);
    margin-bottom: 16px;
}

.artikel-detail .content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark);
    white-space: pre-wrap;
}

.artikel-detail .thumb {
    font-size: 48px;
    margin-bottom: 8px;
}

/* ─── KONTEN IMPORT DARI WORD (.docx) ─── */
.artikel-detail .content h1,
.artikel-detail .content h2,
.artikel-detail .content h3,
.artikel-detail .content h4,
.artikel-detail .content h5,
.artikel-detail .content h6 {
    margin: 24px 0 10px;
    line-height: 1.4;
    color: var(--dark);
}

.artikel-detail .content h1 { font-size: 24px; color: var(--sage); }
.artikel-detail .content h2 { font-size: 22px; color: var(--sage); }
.artikel-detail .content h3 { font-size: 19px; }
.artikel-detail .content h4 { font-size: 17px; }
.artikel-detail .content h5 { font-size: 15px; }
.artikel-detail .content h6 { font-size: 14px; }

.artikel-detail .content p {
    margin: 0 0 14px;
    line-height: 1.8;
    max-width: 700px;
}

.artikel-detail .content ul,
.artikel-detail .content ol {
    margin: 0 0 14px;
    padding-left: 24px;
    max-width: 700px;
}

.artikel-detail .content ul {
    list-style: none;
    padding-left: 6px;
}

.artikel-detail .content ul > li::before {
    content: '💜';
    display: inline-block;
    margin-right: 10px;
}

.artikel-detail .content ul > li:has(.li-emoji)::before {
    display: none;
}

.artikel-detail .content li {
    margin-bottom: 6px;
}

.artikel-detail .content .li-emoji {
    margin-right: 8px;
}

.artikel-detail .content mark.hl {
    background: #fff3b0;
    color: inherit;
    padding: 2px 6px;
    border-radius: 6px;
}

.artikel-detail .content span.badge {
    display: inline-block;
    background: var(--pink-soft);
    color: var(--white);
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 0.85em;
    font-weight: 700;
    margin: 2px 0;
}

.artikel-detail .content blockquote.quote-box {
    margin: 20px 0;
    padding: 16px 20px;
    background: var(--light);
    border-left: 4px solid var(--sage);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    max-width: 700px;
}

.artikel-detail .content blockquote.quote-box p {
    margin: 0;
}

.artikel-detail .content .divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0;
    color: #b0a8c0;
    max-width: 700px;
}

.artikel-detail .content .divider::before,
.artikel-detail .content .divider::after {
    content: '';
    flex: 1;
    border-top: 2px dashed #e5e0f0;
}

.artikel-detail .content a {
    color: var(--sage);
    text-decoration: underline;
}

.artikel-detail .content strong {
    font-weight: 700;
}

/* ─── EMPTY & ERROR STATE ─── */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--medium);
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.error-state {
    text-align: center;
    padding: 40px;
    color: var(--red);
}

.error-state .icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.loading-text {
    text-align: center;
    padding: 40px;
    color: var(--medium);
}

/* Skeleton loading */
.loading-skeleton {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 0;
}

.skeleton-item {
    min-width: 200px;
    height: 120px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Recommendation cards */
.recommendations-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 0;
    scroll-snap-type: x mandatory;
}

.recommendation-card {
    min-width: 220px;
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.recommendation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.15);
}

.card-badge {
    display: inline-block;
    font-size: 11px;
    padding: 4px 10px;
    background: #f0f0ff;
    color: #6C63FF;
    border-radius: 20px;
    margin-bottom: 8px;
}

.recommendation-card h4 {
    font-size: 14px;
    margin: 0 0 6px 0;
    color: #1a1a2e;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommendation-card p {
    font-size: 12px;
    color: #666;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-time,
.badge {
    font-size: 11px;
    color: #999;
}

/* ─── EMPTY STATE ENHANCED ─── */
.empty-state-enhanced {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #fdf6f2, #fff0f3);
    border-radius: 20px;
    border: 2px dashed var(--pink);
    position: relative;
    overflow: hidden;
}

.empty-illustration {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.empty-icon {
    font-size: 72px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

.empty-emoji-cloud {
    position: absolute;
    top: -10px;
    right: -30px;
    font-size: 20px;
    animation: float 2.5s ease-in-out infinite 0.5s;
}

.empty-emoji-cloud span {
    display: inline-block;
    margin: 0 2px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.empty-state-enhanced h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 6px;
}

.empty-state-enhanced h3 span {
    color: var(--pink);
}

.empty-state-enhanced p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 2px;
}

.empty-state-enhanced .empty-sub {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 16px;
}

.empty-state-enhanced .empty-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.empty-state-enhanced .empty-meta span {
    background: var(--white);
    padding: 4px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-glow {
    box-shadow: 0 4px 20px rgba(29, 59, 54, 0.2);
    transition: all 0.3s ease;
    padding: 16px 40px;
    font-size: 17px;
}

.btn-glow:hover {
    box-shadow: 0 8px 40px rgba(29, 59, 54, 0.35);
    transform: translateY(-3px);
}

/* ─── TAB BUTTONS ─── */
.tab-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e8e4e0;
    padding-bottom: 12px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-family: var(--font);
}

.tab-btn:hover {
    background: var(--pink-light);
    color: var(--primary);
}

.tab-btn.active {
    background: var(--primary);
    color: var(--white);
}

.tab-content {
    display: none;
    animation: fadeUp 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── WELLNESS RESULT ─── */
.score-display {
    display: flex;
    align-items: center;
    gap: 24px;
}

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.score-circle .number {
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
}

.score-circle .label {
    font-size: 12px;
    opacity: 0.85;
}

.score-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}

.score-info p {
    color: var(--text-secondary);
    font-size: 14px;
}

.dimension-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.dimension-item {
    padding: 12px 14px;
    background: var(--cream);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.dimension-item .dim-score {
    font-weight: 700;
    color: var(--primary);
}

.risk-alert {
    background: #fdf6f0;
    border: 2px solid #e67e22;
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-top: 12px;
}

.risk-alert .risk-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.risk-alert .risk-header .icon {
    font-size: 20px;
}

.risk-alert .risk-header h4 {
    color: #d35400;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.risk-alert .risk-body {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* ============================================================
   LOVE LANGUAGE - BACKGROUND PINK, KONTEN PUTIH
   ============================================================ */

/* ─── BODY: BACKGROUND PINK/KREAM ─── */
body.love-page {
    background: #FFF0F3;
    /* Pink soft */
    min-height: 100vh;
    padding: 24px 16px 100px;
    display: flex;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── CONTAINER ─── */
.love-container {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
}

/* ─── CARD PUTIH (KONTEN DI DALAM) ─── */
.love-card {
    background: white;
    /* ✅ KONTEN PUTIH */
    border-radius: 28px;
    padding: 40px 36px;
    box-shadow: 0 8px 40px rgba(244, 167, 187, 0.12);
    border: 1px solid rgba(244, 167, 187, 0.08);
    margin-bottom: 16px;
}

/* ─── INTRO ─── */
.love-intro {
    text-align: center;
    padding: 8px 0 4px;
}

.love-intro .icon {
    font-size: 60px;
    margin-bottom: 8px;
    display: block;
}

.love-intro h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1d3b36;
    margin-bottom: 6px;
}

.love-intro h1 strong {
    background: linear-gradient(135deg, #F4A7BB, #B8A9C9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.love-intro p {
    color: #5a6f6a;
    font-size: 16px;
    margin-bottom: 24px;
}

/* ─── SELECTOR GROUP ─── */
.selector-group {
    margin-bottom: 20px;
    text-align: left;
}

.selector-group .label {
    font-weight: 600;
    font-size: 15px;
    color: #1d3b36;
    margin-bottom: 10px;
    display: block;
}

.selector-group .love-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.selector-group .love-options .btn-opt {
    padding: 12px 24px;
    border: 2px solid #E8E4E0;
    border-radius: 50px;
    background: white;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #5a6f6a;
    flex: 1 1 auto;
    min-width: 90px;
    font-family: inherit;
}

.selector-group .love-options .btn-opt:hover {
    border-color: #F4A7BB;
    background: #FFF5F8;
    transform: translateY(-2px);
}

.selector-group .love-options .btn-opt.active {
    border-color: #F4A7BB;
    background: #F4A7BB;
    color: white;
    box-shadow: 0 4px 15px rgba(244, 167, 187, 0.25);
}

/* ─── DISCLAIMER ─── */
.love-container .disclaimer-box {
    background: #FFF5F8;
    border-left: 4px solid #F4A7BB;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0 16px;
    text-align: left;
}

.love-container .disclaimer-box p {
    font-size: 13px;
    color: #5a6f6a;
    line-height: 1.7;
    margin: 0;
}

/* ─── BUTTON ─── */
.love-container .btn {
    background: linear-gradient(135deg, #F4A7BB, #E8879F);
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-family: inherit;
    box-shadow: 0 4px 20px rgba(244, 167, 187, 0.25);
}

.love-container .btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(244, 167, 187, 0.35);
}

.love-container .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ─── SOAL WRAPPER ─── */
.love-soal-wrapper {
    display: none;
    padding: 8px 0;
}

.love-soal-wrapper.active {
    display: block;
}

/* ─── PROGRESS ─── */
.love-soal-wrapper .progress {
    background: #F0EAE6;
    border-radius: 20px;
    height: 8px;
    margin-bottom: 14px;
    overflow: hidden;
}

.love-soal-wrapper .progress .bar {
    height: 100%;
    background: linear-gradient(90deg, #F4A7BB, #B8A9C9);
    border-radius: 20px;
    transition: width 0.5s ease;
    width: 0%;
}

.love-soal-wrapper .counter {
    text-align: right;
    font-size: 14px;
    color: #5a6f6a;
    margin-bottom: 18px;
}

.love-soal-wrapper .soal-text {
    font-size: 22px;
    font-weight: 600;
    color: #1d3b36;
    margin-bottom: 24px;
    line-height: 1.7;
    text-align: center;
}

/* ─── OPTIONS ─── */
.love-soal-wrapper .options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.love-soal-wrapper .options label {
    background: white;
    border: 2px solid #E8E4E0;
    border-radius: 16px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 500;
    color: #1d3b36;
}

.love-soal-wrapper .options label:hover {
    border-color: #F4A7BB;
    background: #FFF5F8;
}

.love-soal-wrapper .options label.selected {
    border-color: #F4A7BB;
    background: #FFF5F8;
    box-shadow: 0 2px 12px rgba(244, 167, 187, 0.12);
}

.love-soal-wrapper .options label input[type="radio"] {
    accent-color: #F4A7BB;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
}

/* ─── NAV SOAL ─── */
.love-soal-wrapper .nav-soal {
    display: flex;
    gap: 14px;
}

.love-soal-wrapper .nav-soal .btn {
    width: auto;
    padding: 14px 28px;
    font-size: 16px;
    flex: 1;
}

.love-soal-wrapper .nav-soal .btn-outline {
    background: transparent;
    color: #F4A7BB;
    border: 2px solid #F4A7BB;
    box-shadow: none;
}

.love-soal-wrapper .nav-soal .btn-outline:hover {
    background: #FFF5F8;
    transform: translateY(-2px);
}

/* ─── HASIL WRAPPER ─── */
.love-hasil-wrapper {
    display: none;
    padding: 8px 0;
}

.love-hasil-wrapper.active {
    display: block;
}

.love-hasil-wrapper .love-hasil-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    color: #1d3b36;
    margin-bottom: 4px;
}

.love-hasil-wrapper .love-hasil-sub {
    text-align: center;
    color: #5a6f6a;
    font-size: 16px;
    margin-bottom: 24px;
}

/* ─── CHART ─── */
.love-chart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.love-chart-item .label {
    width: 150px;
    font-weight: 600;
    color: #1d3b36;
    font-size: 15px;
    flex-shrink: 0;
    text-align: right;
}

.love-chart-item .bar-bg {
    flex: 1;
    height: 26px;
    background: #F5F0EC;
    border-radius: 20px;
    overflow: hidden;
}

.love-chart-item .bar-fill {
    height: 100%;
    border-radius: 20px;
    transition: width 1s ease;
    width: 0%;
}

.love-chart-item .percent {
    width: 52px;
    text-align: right;
    font-weight: 700;
    color: #1d3b36;
    font-size: 16px;
    flex-shrink: 0;
}

/* ─── DETAIL TAB ─── */
.love-detail-section {
    margin-top: 24px;
}

.love-detail-tab {
    background: white;
    border: 1px solid #E8E4E0;
    border-radius: 16px;
    margin-bottom: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.love-detail-tab:hover {
    border-color: #F4A7BB;
}

.love-detail-tab .head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 16px;
    color: #1d3b36;
    background: white;
}

.love-detail-tab .head .arrow {
    transition: transform 0.3s ease;
}

.love-detail-tab.open .head .arrow {
    transform: rotate(180deg);
}

.love-detail-tab .body {
    display: none;
    padding: 0 20px 20px;
    font-size: 15px;
    line-height: 1.7;
    color: #1d3b36;
}

.love-detail-tab.open .body {
    display: block;
}

.love-detail-tab .body ul {
    padding-left: 20px;
    margin: 8px 0 14px;
}

.love-detail-tab .body ul li {
    list-style: none;
    padding: 5px 0;
    border-bottom: 1px solid #F5F0EC;
}

.love-detail-tab .body ul li:last-child {
    border-bottom: none;
}

/* ─── BTN GROUP ─── */
.love-hasil-wrapper .btn-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.love-hasil-wrapper .btn-group .btn {
    flex: 1;
    min-width: 160px;
    margin: 0;
}

/* ─── LOVE NOTE ─── */
.love-note {
    background: #FFF5F8;
    border-radius: 16px;
    padding: 20px 24px;
    margin-top: 24px;
    font-size: 15px;
    color: #5a6f6a;
    line-height: 1.8;
    border: 1px solid #F4A7BB;
}

.love-note strong {
    color: #1d3b36;
}

/* ─── BOTTOM NAV ─── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-around;
    padding: 8px 16px 16px;
    border-top: 1px solid rgba(244, 167, 187, 0.08);
    max-width: 640px;
    margin: 0 auto;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.04);
}

.bottom-nav a {
    text-decoration: none;
    color: #b0c2bd;
    font-size: 10px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.bottom-nav a .nav-icon {
    font-size: 20px;
}

.bottom-nav a.active {
    color: #F4A7BB;
}

.bottom-nav a:hover {
    color: #F4A7BB;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
    .love-card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .love-chart-item .label {
        width: 100px;
        font-size: 13px;
    }

    .love-chart-item .percent {
        width: 42px;
        font-size: 13px;
    }

    .love-hasil-wrapper .btn-group {
        flex-direction: column;
    }

    .love-hasil-wrapper .btn-group .btn {
        min-width: 100%;
    }

    .love-soal-wrapper .nav-soal {
        flex-direction: column;
    }

    .love-soal-wrapper .nav-soal .btn {
        width: 100%;
    }

    .selector-group .love-options {
        flex-direction: column;
    }

    .selector-group .love-options .btn-opt {
        flex: none;
        width: 100%;
    }

    .love-intro h1 {
        font-size: 26px;
    }

    .love-soal-wrapper .soal-text {
        font-size: 19px;
    }

    .love-intro .icon {
        font-size: 48px;
    }

    .love-container .btn {
        font-size: 16px;
        padding: 16px 28px;
    }
}

@media (max-width: 400px) {
    .love-card {
        padding: 18px 14px;
    }

    .love-chart-item .label {
        width: 70px;
        font-size: 12px;
    }

    .love-chart-item .percent {
        width: 36px;
        font-size: 12px;
    }

    .love-intro h1 {
        font-size: 22px;
    }

    .love-intro .icon {
        font-size: 40px;
    }
}

/* ============================================================
   MODERN BERANDA - SOFT PINK + ANIMASI
   ============================================================ */

/* ─── ANIMASI FADE IN ─── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ─── CARD BERANDA ─── */
.card {
    background: white;
    border-radius: 24px;
    padding: 24px 20px;
    box-shadow: 0 4px 24px rgba(244, 167, 187, 0.08);
    border: 1px solid rgba(244, 167, 187, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4) {
    animation-delay: 0.4s;
}

.card:nth-child(5) {
    animation-delay: 0.5s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(244, 167, 187, 0.15);
}

/* ─── GREETING ─── */
.greeting-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 0 16px;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    animation-delay: 0.05s;
}

.greeting-text h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1d3b36;
    margin-bottom: 4px;
}

.greeting-text h1 span {
    background: linear-gradient(135deg, #F4A7BB, #B8A9C9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.greeting-text p {
    color: #5a6f6a;
    font-size: 15px;
    line-height: 1.6;
}

.greeting-image img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    animation: float 4s ease-in-out infinite;
}

/* ─── CTA BUTTON ─── */
.cta-wellness {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #F4A7BB, #E8879F);
    color: white;
    padding: 12px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(244, 167, 187, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-wellness::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: rotate(45deg) translateX(-100%);
    transition: 0.6s;
}

.cta-wellness:hover::after {
    transform: rotate(45deg) translateX(100%);
}

.cta-wellness:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(244, 167, 187, 0.4);
}

.cta-wellness .arrow {
    transition: transform 0.3s ease;
}

.cta-wellness:hover .arrow {
    transform: translateX(4px);
}

/* ─── GRID 4 FITUR ─── */
.fitur-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.fitur-item {
    background: white;
    border-radius: 16px;
    padding: 16px 14px;
    text-decoration: none;
    color: #1d3b36;
    border: 1px solid rgba(244, 167, 187, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.fitur-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(244, 167, 187, 0.05), transparent);
    opacity: 0;
    transition: 0.4s;
}

.fitur-item:hover::before {
    opacity: 1;
}

.fitur-item:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: #F4A7BB;
    box-shadow: 0 12px 32px rgba(244, 167, 187, 0.12);
}

.fitur-item .icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    background: rgba(244, 167, 187, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: 0.3s;
}

.fitur-item:hover .icon {
    background: rgba(244, 167, 187, 0.2);
    transform: scale(1.05) rotate(-5deg);
}

.fitur-item .label {
    font-size: 14px;
    font-weight: 600;
    color: #1d3b36;
}

.fitur-item .desc {
    font-size: 12px;
    color: #5a6f6a;
    margin-top: 2px;
    flex: 1;
}

.fitur-item .arrow-circle {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.fitur-item .arrow-circle span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(244, 167, 187, 0.1);
    border-radius: 50%;
    font-size: 12px;
    color: #5a6f6a;
    transition: 0.3s;
}

.fitur-item:hover .arrow-circle span {
    background: #F4A7BB;
    color: white;
    transform: scale(1.1);
}

/* ─── CHALLENGE CARD ─── */
.challenge-card {
    background: linear-gradient(135deg, #FFF5F8, #FFF0F3);
    border: 1px solid rgba(244, 167, 187, 0.15);
    position: relative;
    overflow: hidden;
}

.challenge-card::before {
    content: '✨';
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 60px;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.challenge-card .tag {
    font-size: 11px;
    font-weight: 600;
    color: #F4A7BB;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.challenge-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1d3b36;
    margin: 6px 0 12px;
}

.btn-challenge {
    background: linear-gradient(135deg, #F4A7BB, #E8879F);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(244, 167, 187, 0.25);
}

.btn-challenge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(244, 167, 187, 0.35);
}

/* ─── PERJALANAN RELASI ─── */
.riwayat-item {
    border-bottom: 1.5px solid rgba(244,167,187,0.10);
    padding-bottom: 14px;
    margin-bottom: 12px;
    transition: 0.3s;
}

.riwayat-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.riwayat-item .badge-wellness {
    background: linear-gradient(135deg, #F4A7BB, #E8879F);
    color: white;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.riwayat-item .badge-progress {
    background: #fdf8f0;
    color: #d4a373;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.riwayat-item .score-main {
    font-size: 22px;
    font-weight: 700;
    color: #1d3b36;
}

.riwayat-item .score-label {
    font-size: 14px;
    font-weight: 400;
    color: #5a6f6a;
}

/* ─── STRENGTH & PRIORITY TAGS ─── */
.tag-strength {
    background: #e6f2f0;
    color: #1d3b36;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.tag-strength:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 12px rgba(58, 125, 118, 0.15);
}

.tag-priority {
    background: #fdf8f0;
    color: #d4a373;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.tag-priority:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 12px rgba(212, 163, 115, 0.2);
}

/* ─── REKOMENDASI ─── */
.recommendations-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.recommendation-card {
    min-width: 200px;
    background: white;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(244, 167, 187, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    scroll-snap-align: start;
    flex-shrink: 0;
}

.recommendation-card:hover {
    transform: translateY(-6px);
    border-color: #F4A7BB;
    box-shadow: 0 12px 32px rgba(244, 167, 187, 0.12);
}

.recommendation-card .card-badge {
    font-size: 11px;
    padding: 3px 10px;
    background: rgba(244, 167, 187, 0.1);
    color: #F4A7BB;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 6px;
}

.recommendation-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1d3b36;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommendation-card p {
    font-size: 12px;
    color: #5a6f6a;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommendation-card .read-time {
    font-size: 11px;
    color: #b0c2bd;
}

/* ─── BUTTONS ─── */
.btn-small {
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-small.primary {
    background: linear-gradient(135deg, #F4A7BB, #E8879F);
    color: white;
    box-shadow: 0 2px 12px rgba(244, 167, 187, 0.2);
}

.btn-small.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(244, 167, 187, 0.3);
}

.btn-small.outline {
    background: transparent;
    color: #F4A7BB;
    border: 2px solid #F4A7BB;
}

.btn-small.outline:hover {
    background: #FFF5F8;
    transform: translateY(-2px);
}

/* ─── EMPTY STATE ─── */
.riwayat-empty {
    text-align: center;
    padding: 24px 12px;
}

.riwayat-empty .icon {
    font-size: 40px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.6;
}

.riwayat-empty p {
    color: #8a9e99;
    font-size: 14px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
    .greeting-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .greeting-image img {
        width: 80px;
        height: 80px;
    }

    .greeting-text h1 {
        font-size: 22px;
    }

    .fitur-grid {
        grid-template-columns: 1fr 1fr;
    }

    .recommendation-card {
        min-width: 160px;
    }

    .riwayat-item .score-main {
        font-size: 18px;
    }
}

@media (max-width: 400px) {
    .fitur-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 16px 14px;
    }
}

/* ============================================================
   PERJALANAN RELASI - MODERN + ANIMASI
   ============================================================ */

/* ─── CARD PERJALANAN ─── */
.riwayat-card {
    background: white;
    border-radius: 20px;
    padding: 20px 22px;
    box-shadow: 0 2px 16px rgba(244, 167, 187, 0.06);
    border: 1px solid rgba(244, 167, 187, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.riwayat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F4A7BB, #B8A9C9);
    transform: scaleX(0);
    transition: transform 0.6s ease;
    transform-origin: left;
}

.riwayat-card:hover::before {
    transform: scaleX(1);
}

.riwayat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(244, 167, 187, 0.12);
    border-color: rgba(244, 167, 187, 0.15);
}

/* ─── ANIMASI MASUK ─── */
.riwayat-card {
    animation: cardSlideIn 0.6s ease forwards;
    opacity: 0;
}

.riwayat-card:nth-child(1) {
    animation-delay: 0.05s;
}

.riwayat-card:nth-child(2) {
    animation-delay: 0.12s;
}

.riwayat-card:nth-child(3) {
    animation-delay: 0.19s;
}

.riwayat-card:nth-child(4) {
    animation-delay: 0.26s;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes categorySlideUp {
    0% { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes primaryPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244,167,187,0.3); }
    50% { box-shadow: 0 0 0 10px rgba(244,167,187,0); }
}

/* ─── HEADER PERJALANAN ─── */
.riwayat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.riwayat-header .left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.riwayat-header .badge-wellness {
    background: linear-gradient(135deg, #F4A7BB, #E8879F);
    color: white;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

.riwayat-header .badge-progress {
    background: #fdf8f0;
    color: #d4a373;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.riwayat-header .tanggal {
    font-size: 12px;
    color: #b0c2bd;
}

/* ─── SKOR ─── */
.riwayat-score {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 2px 0 4px;
}

.riwayat-score .number {
    font-size: 28px;
    font-weight: 800;
    color: #1d3b36;
    background: linear-gradient(135deg, #F4A7BB, #B8A9C9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.riwayat-score .label {
    font-size: 16px;
    font-weight: 400;
    color: #5a6f6a;
}

.riwayat-score .category {
    font-size: 14px;
    font-weight: 500;
    color: #5a6f6a;
    background: #f5f0ec;
    padding: 2px 14px;
    border-radius: 20px;
    margin-left: 8px;
    -webkit-text-fill-color: #5a6f6a;
}

/* ─── STATUS PASANGAN ─── */
.riwayat-partner {
    font-size: 13px;
    color: #5a6f6a;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.riwayat-partner .status-done {
    color: #3a7d76;
    font-weight: 500;
}

.riwayat-partner .status-waiting {
    color: #d4a373;
    font-weight: 500;
}

/* ─── TAGS ─── */
.riwayat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

/* Staggered entrance untuk tags */
.riwayat-tags .tag-strength,
.riwayat-tags .tag-priority {
    opacity: 0;
    animation: tagPopIn 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

@keyframes tagPopIn {
    from { opacity: 0; transform: scale(0.8) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Score shimmer */
@keyframes scoreShimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.riwayat-score .number.animate {
    background: linear-gradient(90deg, #1d3b36, #e8879f, #f4a7bb, #1d3b36);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: scoreShimmer 2s ease-in-out 1;
}

.riwayat-tags .tag-strength {
    background: linear-gradient(135deg, #e6f2f0, #d4e8e5);
    color: #1d3b36;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    cursor: default;
}

.riwayat-tags .tag-strength:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 4px 16px rgba(58, 125, 118, 0.15);
}

.riwayat-tags .tag-priority {
    background: linear-gradient(135deg, #fdf8f0, #fdf0e0);
    color: #d4a373;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    cursor: default;
}

.riwayat-tags .tag-priority:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 163, 115, 0.2);
}

/* ─── TOMBOL AKSI ─── */
.riwayat-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.riwayat-actions .btn-riwayat {
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.riwayat-actions .btn-riwayat.primary {
    background: linear-gradient(135deg, #F4A7BB, #E8879F);
    color: white;
    box-shadow: 0 2px 12px rgba(244, 167, 187, 0.2);
}

.riwayat-actions .btn-riwayat.primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 20px rgba(244, 167, 187, 0.3);
}

.riwayat-actions .btn-riwayat.outline {
    background: transparent;
    color: #F4A7BB;
    border: 2px solid #F4A7BB;
}

.riwayat-actions .btn-riwayat.outline:hover {
    background: #FFF5F8;
    transform: translateY(-2px);
}

/* ─── EMPTY STATE ─── */
.riwayat-empty {
    text-align: center;
    padding: 32px 16px;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.riwayat-empty .icon {
    font-size: 48px;
    display: block;
    margin-bottom: 8px;
    animation: float 3s ease-in-out infinite;
}

.riwayat-empty .title {
    font-size: 18px;
    font-weight: 600;
    color: #1d3b36;
    margin-bottom: 4px;
}

.riwayat-empty .sub {
    font-size: 14px;
    color: #8a9e99;
}

.riwayat-empty .meta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 12px 0;
    font-size: 13px;
    color: #b0c2bd;
}

.riwayat-empty .btn-start {
    display: inline-block;
    padding: 10px 28px;
    background: linear-gradient(135deg, #F4A7BB, #E8879F);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(244, 167, 187, 0.25);
}

.riwayat-empty .btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(244, 167, 187, 0.35);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
    .riwayat-card {
        padding: 16px 16px;
    }

    .riwayat-score .number {
        font-size: 22px;
    }

    .riwayat-score .category {
        font-size: 12px;
        padding: 2px 10px;
    }

    .riwayat-tags .tag-strength,
    .riwayat-tags .tag-priority {
        font-size: 11px;
        padding: 3px 10px;
    }

    .riwayat-actions .btn-riwayat {
        font-size: 11px;
        padding: 5px 14px;
    }

    .riwayat-header .badge-wellness {
        font-size: 10px;
        padding: 2px 10px;
    }
}

/* ─── TITLE PERJALANAN ─── */
.riwayat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.riwayat-title h4 {
    font-size: 17px;
    font-weight: 700;
    color: #1d3b36;
    margin: 0;
}

.riwayat-title .title-icon {
    font-size: 22px;
    animation: float 3s ease-in-out infinite;
}

.riwayat-title .title-badge {
    font-size: 11px;
    font-weight: 600;
    color: #F4A7BB;
    background: rgba(244, 167, 187, 0.1);
    padding: 2px 12px;
    border-radius: 20px;
    margin-left: auto;
}
