/* ===================================================================
   RIKA'S WORKSHOP — Main CSS Design System
   Furry & Fluffy palette — warm, soft, cozy:
     BG layers  → creamy warm parchment & soft warm brown
     Accent 1   → dusty rose / soft pink (primary)
     Accent 2   → warm peach / apricot (secondary)
     Accent 3   → golden honey (highlight)
   Font: Nunito, Comfortaa
   =================================================================== */

/* ── CSS Variables ──────────────────────────────────────────────────── */
:root {
    /* ── Backgrounds: soft warm cream tones ── */
    --bg-primary:       #fdf6f0;   /* warm cream — lightest         */
    --bg-secondary:     #f5ebe0;   /* warm parchment                */
    --bg-card:          #ffffff;   /* clean white card              */
    --bg-card-hover:    #fdf0e8;   /* soft peach hover              */
    --bg-input:         #fef9f5;   /* input field warm white        */

    /* ── Accents: soft furry palette ── */
    --accent-teal:      #d4607a;   /* ✦ dusty rose — PRIMARY        */
    --accent-green:     #e8956d;   /* ✦ warm peach — SECONDARY      */
    --accent-rust:      #c96230;   /* ✦ warm rust  — TERTIARY       */
    --accent-amber:     #f0a856;   /* ✦ honey gold — WARM           */
    --accent-gold:      #e8956d;   /* ✦ apricot    — HIGHLIGHT      */

    /* ── Aliases so all the old code still works ── */
    --accent-purple:    #d4607a;
    --accent-pink:      #e8956d;
    --accent-mint:      #c96230;
    --accent-yellow:    #f0a856;

    /* ── Borders ── */
    --border-color:     rgba(212, 96, 122, 0.15);
    --border-glow:      rgba(212, 96, 122, 0.35);
    --border-warm:      rgba(232, 149, 109, 0.3);

    /* ── Text ── */
    --text-primary:     #3d2217;   /* warm dark brown               */
    --text-secondary:   #7d5248;   /* medium warm brown             */
    --text-muted:       #b08870;   /* soft muted warm               */

    /* ── Gradients ── */
    --gradient-main:    linear-gradient(135deg, #d4607a 0%, #e8956d 55%, #f0a856 100%);
    --gradient-warm:    linear-gradient(135deg, #e8956d, #f0a856);
    --gradient-card:    linear-gradient(145deg, #ffffff, #fdf6f0);
    --gradient-hero:    radial-gradient(ellipse at 15% 50%, rgba(212,96,122,0.08) 0%, transparent 55%),
                        radial-gradient(ellipse at 85% 20%, rgba(232,149,109,0.06) 0%, transparent 50%),
                        radial-gradient(ellipse at 50% 90%, rgba(240,168,86,0.07) 0%, transparent 55%),
                        linear-gradient(160deg, #f5ebe0 0%, #fdf6f0 60%, #fef3ec 100%);

    /* ── Shadows ── */
    --shadow-card:      0 4px 24px rgba(61,34,23,0.08);
    --shadow-hover:     0 8px 40px rgba(212,96,122,0.15);
    --shadow-hover-warm:0 8px 40px rgba(232,149,109,0.18);
    --shadow-glow:      0 0 30px rgba(212,96,122,0.2);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-xl: 36px;
}

/* ── Base ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
}

.rika-body { background: var(--bg-primary); }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Comfortaa', cursive;
    color: var(--text-primary);
}

a { color: var(--accent-purple); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-pink); }

.text-muted { color: var(--text-secondary) !important; }
.x-small { font-size: 0.72rem; }

/* ── Text Gradient ───────────────────────────────────────────────────── */
.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Scrollbar ───────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-glow); border-radius: 3px; }

/* ====================================================================
   NAVBAR
   ==================================================================== */
.rika-navbar {
    background: rgba(253,246,240,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    transition: all 0.3s;
    box-shadow: 0 2px 16px rgba(61,34,23,0.06);
}

.rika-brand {
    font-family: 'Comfortaa', cursive;
    font-weight: 700;
    font-size: 1.2rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none !important;
}

.brand-paw { -webkit-text-fill-color: initial; }

.rika-nav-link {
    color: var(--text-secondary) !important;
    font-weight: 600;
    padding: 0.4rem 0.8rem !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-size: 0.9rem;
}
.rika-nav-link:hover, .rika-nav-link.active {
    color: var(--accent-teal) !important;
    background: rgba(212,96,122,0.08);
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn { font-family: 'Nunito', sans-serif; font-weight: 700; border-radius: var(--radius-sm); transition: all 0.25s; }

.btn-rika {
    background: linear-gradient(135deg, #d4607a, #e8956d);
    border: none;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(212,96,122,0.25);
}
.btn-rika:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212,96,122,0.35);
    filter: brightness(1.06);
}
.btn-rika:active { transform: translateY(0); }

.btn-outline-rika {
    background: transparent;
    border: 1.5px solid var(--accent-purple);
    color: var(--accent-purple) !important;
}
.btn-outline-rika:hover {
    background: rgba(212,96,122,0.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212,96,122,0.15);
}

.btn-ghost-rika {
    background: rgba(212,96,122,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary) !important;
}
.btn-ghost-rika:hover {
    background: rgba(212,96,122,0.1);
    color: var(--accent-teal) !important;
}

.btn-xs { padding: 0.2rem 0.6rem; font-size: 0.8rem; }

/* ── Alerts ──────────────────────────────────────────────────────────── */
.rika-alert {
    font-size: 0.9rem;
    font-weight: 600;
}
.alert-success { background: rgba(110,200,140,0.12); border-color: rgba(110,200,140,0.35); color: #3d8a5a; }
.alert-danger  { background: rgba(220,80,60,0.08);  border-color: rgba(220,80,60,0.25);  color: #c0392b; }

/* ====================================================================
   HERO SECTION
   ==================================================================== */
.hero-section {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}
/* Ensure the particles canvas is absolutely positioned so it doesn't mess up CSS Grid */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d4607a' fill-opacity='0.04'%3E%3Ccircle cx='40' cy='40' r='8'/%3E%3Ccircle cx='10' cy='10' r='4'/%3E%3Ccircle cx='70' cy='70' r='4'/%3E%3Ccircle cx='70' cy='10' r='3'/%3E%3Ccircle cx='10' cy='70' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-text { z-index: 1; }

.comms-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212,96,122,0.08);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-teal);
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; animation: pulse 2s infinite; }

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 500px;
}

/* ── Social Buttons ─────────────────────────────────────────────────── */
.social-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.social-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(212,96,122,0.08);
    border: 1px solid var(--border-color);
    color: var(--accent-teal) !important;
    font-size: 1.1rem;
    transition: all 0.2s;
    cursor: pointer;
}
.social-btn:hover { background: rgba(212,96,122,0.16); transform: translateY(-2px); box-shadow: var(--shadow-glow); }

/* ── Webcard (Hero Right) ────────────────────────────────────────────── */
.webcard {
    position: relative;
    max-width: 360px;
    margin: auto;
    animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

/* ── Rika Character Image (Hero Split) ─────────────────────────────────────── */
.hero-split {
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* Center items together */
    position: relative;
    padding-top: 2rem; /* Reduced padding further */
    padding-bottom: 2rem;
    overflow: hidden;
    min-height: 90vh; /* Restore basic height to contain the large image */
}

.hero-img-panel {
    position: absolute; 
    left: -5%; 
    bottom: 2vh; /* Anchor securely to the bottom edge */
    width: 65%; 
    height: 100%; /* let it stretch full height of the section */
    display: flex;
    justify-content: flex-start; /* keep on left side */
    align-items: flex-end; /* center vertically from the bottom */
    padding: 0;
    z-index: 1; 
}

.hero-text-panel {
    width: 100%;
    max-width: 600px;
    margin-left: auto; /* Push text strictly to the right edge */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2vh 5% 5vh 2rem;
    z-index: 2; /* Crucial: text sits ON TOP of the image */
    position: relative;
}

.char-glow {
    position: absolute;
    width: 70%;
    height: 70%;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(212,96,122,0.22) 0%, rgba(232,149,109,0.12) 50%, transparent 75%);
    border-radius: 50%;
    filter: blur(30px);
    z-index: 0;
    animation: glow-pulse 3s ease-in-out infinite;
}

.rika-char-img {
    position: relative;
    z-index: 1;
    max-width: none; 
    width: 100%; 
    /* Force height to max out the viewport so it reached very high */
    height: 95vh;
    object-fit: contain;
    object-position: bottom left; /* Anchor bottom left */
    transform-origin: bottom left;
    margin-bottom: 0;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 50px rgba(212,96,122,0.25)) drop-shadow(0 4px 12px rgba(61,34,23,0.1));
    transition: filter 0.3s;
}
.rika-char-img:hover {
    filter: drop-shadow(0 28px 60px rgba(212,96,122,0.35)) drop-shadow(0 6px 16px rgba(61,34,23,0.12));
}

/* ── Responsive: tablets & mobile ─────────────────────────────────── */
/* ── Navbar mobile dropdown fixes ───────────────────────────────── */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(253,246,240,0.97);
        backdrop-filter: blur(16px);
        border-top: 1px solid var(--border-color);
        padding: 0.75rem 1rem 1rem;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        box-shadow: 0 8px 24px rgba(61,34,23,0.08);
    }
    .navbar-collapse .rika-nav-link {
        display: block;
        padding: 0.55rem 0.75rem !important;
        border-radius: var(--radius-sm);
        margin-bottom: 0.15rem;
    }
    /* Login & Register — row side by side */
    .navbar-collapse .navbar-nav {
        align-items: stretch;
    }
    .navbar-collapse .nav-item.ms-lg-1,
    .navbar-collapse .nav-item.ms-lg-2 {
        margin-left: 0 !important;
    }
    /* Wrap the auth buttons in a flex row */
    .navbar-collapse .navbar-nav:has(.btn-ghost-rika) .nav-item:nth-last-child(-n+2),
    .navbar-collapse .navbar-nav:has(.btn-rika) .nav-item:nth-last-child(-n+2) {
        display: flex;
        flex: 1;
    }
    /* Simpler approach: target the auth buttons directly */
    .navbar-collapse .btn-ghost-rika,
    .navbar-collapse a.btn-rika,
    .navbar-collapse a.btn-rika.btn-sm {
        display: inline-flex;
        width: auto;
        padding: 0.45rem 1.25rem;
        font-size: 0.88rem;
        margin-top: 0;
    }
    .navbar-collapse .nav-item.ms-lg-1 {
        display: inline-flex;
        align-items: center;
    }
    /* Group the last nav-items (auth buttons) in a flex row */
    .navbar-collapse ul.navbar-nav {
        display: flex;
        flex-direction: column;
    }
    /* Auth button row at the bottom — side by side */
    .navbar-auth-group {
        display: flex !important;
        flex-direction: row;
        gap: 0.5rem;
        margin-top: 0.6rem;
        padding-top: 0.6rem;
        border-top: 1px solid var(--border-color);
        width: 100%;
    }
    .navbar-auth-group .btn {
        flex: 1;
        text-align: center;
        padding: 0.5rem 0.75rem;
        font-size: 0.88rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 991.98px) {
    .hero-split {
        flex-direction: column;
        min-height: auto;
        padding-top: 5rem;
        padding-bottom: 0;
        overflow: visible;
    }
    /* Image comes first (order 1), text comes second (order 2) */
    .hero-text-panel {
        order: 2;
        max-width: 100%;
        margin-left: 0;
        align-items: center;
        text-align: center;
        padding: 2.5rem 1.5rem 1.5rem;
    }
    .hero-img-panel {
        order: 1;
        position: relative;
        left: 0;
        bottom: auto;
        top: auto;
        transform: none;
        width: 100%;
        height: auto;
        margin-top: 0;
        justify-content: center;
        align-items: flex-end;
    }
    .rika-char-img {
        height: auto;
        max-height: 55vh;
        width: 80%;
        margin: 0 auto;
        object-position: bottom center;
        transform-origin: bottom center;
    }
    .hero-tagline {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    .hero-actions .btn {
        width: auto;
        min-width: 160px;
        margin: 0 !important;
        flex: 1 1 160px;
        max-width: 220px;
    }
    .social-links {
        justify-content: center;
    }
    .char-glow {
        width: 60%;
        height: 60%;
    }
}

@media (max-width: 575.98px) {
    .hero-split {
        padding-top: 4.5rem;
    }
    .hero-text-panel {
        padding: 2rem 1.25rem 1rem;
    }
    .hero-title {
        font-size: clamp(1.9rem, 8vw, 2.6rem);
    }
    .hero-tagline {
        font-size: 1rem;
    }
    .rika-char-img {
        max-height: 50vh;
        width: 90%;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        padding: 0 1rem;
    }
    .hero-actions .btn {
        width: 100%;
        max-width: 100%;
        flex: unset;
    }
    .comms-badge {
        font-size: 0.8rem;
        padding: 0.3rem 0.85rem;
    }
}

/* Decorative floating emojis */
.paw-deco {
    position: absolute;
    z-index: 2;
    font-size: 1.4rem;
    user-select: none;
    pointer-events: none;
    opacity: 0.65;
}
.paw-1 { top: 8%;  left: 4%;  animation: drift 5s ease-in-out infinite; }
.paw-2 { top: 20%; right: 2%; animation: drift 6s ease-in-out infinite 1s; font-size: 1rem; }
.paw-3 { top: 5%;  right: 10%;animation: drift 4.5s ease-in-out infinite 0.5s; }
.paw-4 { bottom: 28%; left: 2%;animation: drift 5.5s ease-in-out infinite 1.5s; font-size: 1.1rem; }

@keyframes drift {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50%       { transform: translateY(-10px) rotate(5deg); }
}

/* Stats pills row */
.char-stats-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 2;
}
.char-stat-pill {
    background: #ffffff;
    border: 1.5px solid rgba(212,96,122,0.18);
    border-radius: 100px;
    padding: 0.4rem 1.1rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(212,96,122,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.char-stat-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212,96,122,0.18);
}
.char-stat-num {
    font-size: 1.2rem;
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.char-stat-lbl {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.1rem;
}


.webcard-glow {
    position: absolute; inset: -20px;
    background: radial-gradient(ellipse, rgba(212,96,122,0.18) 0%, rgba(232,149,109,0.12) 50%, transparent 75%);
    border-radius: 50%;
    z-index: 0;
    animation: glow-pulse 3s ease-in-out infinite;
}
@keyframes glow-pulse { 0%,100%{opacity:0.5} 50%{opacity:0.9} }

.webcard-inner {
    position: relative; z-index: 1;
    background: #ffffff;
    border: 1.5px solid rgba(212,96,122,0.2);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(61,34,23,0.12), 0 4px 16px rgba(212,96,122,0.08);
}

.webcard-avatar { position: relative; display: inline-block; margin-bottom: 1rem; }
.avatar-img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent-teal); }
.avatar-placeholder {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(201,98,48,0.3), rgba(26,206,190,0.2));
    border: 3px solid var(--accent-teal);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
}
.avatar-ring {
    position: absolute; inset: -6px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                var(--gradient-main) border-box;
    animation: spin 6s linear infinite;
}
@keyframes spin { from{transform:rotate(0)} to{transform:rotate(360deg)} }

.webcard-name {
    font-family: 'Comfortaa', cursive;
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}
.webcard-tagline { color: var(--text-secondary); font-size: 0.9rem; }

.webcard-stats {
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius-sm);
}
.stat-divider { width: 1px; height: 30px; background: var(--border-color); }
.stat-num { font-size: 1.2rem; font-weight: 800; color: var(--accent-teal); display: block; }
.stat-label { font-size: 0.7rem; color: var(--text-muted); }
.stat-item { text-align: center; }

/* ── Avatar Circle (generic) ────────────────────────────────────────── */
.avatar-circle {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-green));
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1rem;
    color: #0f0a08;
    flex-shrink: 0;
}
.avatar-circle.sm { width: 30px; height: 30px; font-size: 0.8rem; }

/* ====================================================================
   SECTION STYLES
   ==================================================================== */
.section-padding { padding: 5rem 0; }
.bg-section-alt { background: var(--bg-secondary); }

/* section-header: no extra rules needed */
.section-tag {
    display: inline-block;
    background: rgba(212,96,122,0.08);
    border: 1px solid var(--border-color);
    color: var(--accent-teal);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.9rem;
    border-radius: 100px;
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-top: 0.75rem;
}

/* ── Page Header Banner ─────────────────────────────────────────────── */
.page-header-section {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}
.rika-breadcrumb .breadcrumb-item a { color: var(--text-secondary); }
.rika-breadcrumb .breadcrumb-item.active { color: var(--accent-teal); }
.rika-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* ====================================================================
   PORTFOLIO CARDS
   ==================================================================== */
.portfolio-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}
.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-glow);
}

.portfolio-img-wrap { position: relative; overflow: hidden; height: 240px; }
.portfolio-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.portfolio-card:hover .portfolio-img { transform: scale(1.05); }

.portfolio-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,10,8,0.85) 0%, transparent 50%);
    display: flex; align-items: flex-end; padding: 1rem;
    opacity: 0; transition: opacity 0.3s;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.portfolio-info { padding: 0.75rem 1rem; }
.portfolio-title { font-size: 0.95rem; font-weight: 700; margin: 0; }

.portfolio-admin-img { position: relative; }
.featured-pin {
    position: absolute; top: 8px; right: 8px;
    background: var(--accent-yellow); color: #0b0918;
    font-size: 0.7rem; font-weight: 700;
    padding: 2px 8px; border-radius: 100px;
}

/* ====================================================================
   COMMISSION PACKAGE CARDS
   ==================================================================== */
.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transition: all 0.3s;
    overflow: visible;
}
.package-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-glow);
}

.package-featured {
    border-color: var(--accent-rust);
    background: linear-gradient(145deg, #3a1e0e, #2a1308);
    box-shadow: 0 0 40px rgba(201,98,48,0.2);
}

.featured-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--gradient-main);
    color: #0b0918; font-size: 0.75rem; font-weight: 800;
    padding: 0.2rem 1rem; border-radius: 100px;
    white-space: nowrap;
}

.package-type-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.type-tag {
    display: inline-block;
    background: rgba(212,96,122,0.1); color: var(--accent-teal);
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 100px;
}

.package-name {
    font-family: 'Comfortaa', cursive;
    font-size: 1.3rem; margin: 0.5rem 0;
}
.package-price {
    font-size: 2rem; font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    line-height: 1;
}
.currency, .price-unit { font-size: 1rem; }
.package-desc { color: var(--text-secondary); font-size: 0.9rem; }

.package-includes {
    list-style: none; padding: 0; margin: 0;
    font-size: 0.85rem; color: var(--text-secondary);
}
.package-includes li { padding: 0.15rem 0; }

.package-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.meta-tag {
    background: rgba(255,255,255,0.04); border: 1px solid var(--border-color);
    color: var(--text-muted); font-size: 0.75rem; padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
}

/* ── Package Detail ──────────────────────────────────────────────────── */
.package-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}
.includes-list {
    list-style: none; padding: 0;
    display: flex; flex-direction: column; gap: 0.5rem;
}
.includes-list li { font-size: 0.95rem; color: var(--text-secondary); }

.package-meta-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.meta-card {
    display: flex; align-items: center; gap: 0.75rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
}
.meta-card i { font-size: 1.2rem; }
.meta-label { color: var(--text-muted); font-size: 0.72rem; }
.meta-value { font-weight: 700; color: var(--text-primary); }

.order-sidebar-card {
    background: var(--bg-card);
    border: 2px solid var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-hover);
}
.package-price-lg { font-size: 3rem; font-weight: 900; line-height: 1; background: var(--gradient-main); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.currency-lg { font-size: 1.5rem; }
.price-unit-lg { font-size: 1rem; }

.guarantee-badges { display: flex; flex-direction: column; gap: 0.5rem; }
.g-badge { font-size: 0.85rem; color: var(--text-secondary); display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0; border-top: 1px solid var(--border-color); }
.g-badge:first-child { border-top: none; }

.example-img-wrap { border-radius: var(--radius-sm); overflow: hidden; }
.example-img { width: 100%; height: 180px; object-fit: cover; transition: transform 0.3s; }
.example-img:hover { transform: scale(1.03); }

/* ── TOS Card ────────────────────────────────────────────────────────── */
.tos-card {
    background: rgba(0,212,200,0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}
.tos-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--text-secondary); }

/* ====================================================================
   TESTIMONIALS
   ==================================================================== */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    transition: all 0.3s;
}
.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-glow);
}
.testimonial-text {
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.testimonial-author { display: flex; align-items: center; }

/* ====================================================================
   CTA SECTION
   ==================================================================== */
.cta-section { background: var(--bg-secondary); }
.cta-card {
    background: linear-gradient(135deg, rgba(212,96,122,0.06), rgba(232,149,109,0.08));
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-card);
}
.cta-title { font-size: clamp(1.5rem, 3vw, 2rem); }

/* ====================================================================
   FOOTER
   ==================================================================== */
.rika-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

/* ====================================================================
   AUTH PAGES
   ==================================================================== */
.auth-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 1rem;
    margin: auto;
}

.auth-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}
.auth-blob-1 {
    width: 400px; height: 400px;
    background: rgba(212,96,122,0.1);
    top: -100px; left: -100px;
}
.auth-blob-2 {
    width: 300px; height: 300px;
    background: rgba(232,149,109,0.09);
    bottom: -80px; right: -80px;
}

.auth-card {
    background: #ffffff;
    border: 1.5px solid rgba(212,96,122,0.15);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(61,34,23,0.1), 0 4px 16px rgba(212,96,122,0.08);
}

/* ====================================================================
   FORM INPUTS
   ==================================================================== */
.rika-input {
    background: var(--bg-input) !important;
    border: 1.5px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.65rem 1rem !important;
    font-family: 'Nunito', sans-serif !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}
.rika-input:focus {
    border-color: var(--accent-teal) !important;
    box-shadow: 0 0 0 3px rgba(212,96,122,0.12) !important;
    outline: none !important;
}
.rika-input::placeholder { color: var(--text-muted) !important; }
.rika-input option { background: var(--bg-card); }
.rika-input-sm { padding: 0.4rem 0.75rem !important; font-size: 0.875rem !important; }

.input-group-rika {
    position: relative;
    display: flex; align-items: center;
}
.input-group-rika > i {
    position: absolute; left: 12px;
    color: var(--text-muted); z-index: 2; pointer-events: none;
}
.input-group-rika .rika-input { padding-left: 2.5rem !important; }

.form-select.rika-input { appearance: auto; }
.rika-check {
    background-color: var(--bg-input) !important;
    border-color: var(--border-glow) !important;
}
.rika-check:checked { background-color: var(--accent-teal) !important; border-color: var(--accent-teal) !important; }

.link-rika { color: var(--accent-teal); font-weight: 700; }
.link-rika:hover { color: var(--accent-green); }

/* ── Package Radio Cards ────────────────────────────────────────────── */
.package-radio-card {
    display: block; cursor: pointer;
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    text-align: center;
    transition: all 0.2s;
    user-select: none;
}
.package-radio-card:hover { border-color: var(--accent-teal); }
.package-radio-card.selected {
    border-color: var(--accent-teal);
    background: rgba(212,96,122,0.06);
    box-shadow: 0 0 0 2px rgba(212,96,122,0.2);
}
.prc-name { font-size: 0.8rem; font-weight: 700; }
.prc-price { font-size: 1rem; font-weight: 800; color: var(--accent-teal); }
.prc-eta { font-size: 0.72rem; }

/* ── Upload Zone ────────────────────────────────────────────────────── */
.upload-zone {
    background: var(--bg-input);
    border: 2px dashed rgba(212,96,122,0.3);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}
.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--accent-teal);
    background: rgba(212,96,122,0.04);
}
.upload-placeholder { color: var(--text-secondary); }

/* ── Privacy Notice ─────────────────────────────────────────────────── */
.privacy-notice {
    background: rgba(212,96,122,0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.87rem;
    color: var(--text-secondary);
    display: flex; align-items: flex-start; gap: 0.5rem;
}

/* ====================================================================
   CATEGORY BADGE
   ==================================================================== */
.category-badge {
    background: rgba(212,96,122,0.1);
    border: 1px solid rgba(212,96,122,0.3);
    color: var(--accent-teal);
    font-size: 0.7rem; font-weight: 700;
    padding: 0.2rem 0.6rem; border-radius: 100px;
    text-transform: uppercase; letter-spacing: 0.06em;
}

/* ====================================================================
   STATUS BADGES
   ==================================================================== */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
    font-size: 0.78rem; font-weight: 700;
    text-transform: capitalize;
}
.status-pending    { background: rgba(240,192,96,0.12); color: var(--accent-gold); border: 1px solid rgba(240,192,96,0.35); }
.status-accepted   { background: rgba(26,206,190,0.12); color: var(--accent-teal); border: 1px solid var(--border-glow); }
.status-in-progress{ background: rgba(110,240,122,0.1); color: var(--accent-green); border: 1px solid rgba(110,240,122,0.35); }
.status-sketch     { background: rgba(232,146,74,0.12); color: var(--accent-amber); border: 1px solid rgba(232,146,74,0.35); }
.status-lineart    { background: rgba(201,98,48,0.12); color: var(--accent-rust); border: 1px solid var(--border-warm); }
.status-coloring   { background: rgba(240,192,96,0.1); color: var(--accent-gold); border: 1px solid rgba(240,192,96,0.3); }
.status-done       { background: rgba(110,240,122,0.12); color: var(--accent-green); border: 1px solid rgba(110,240,122,0.3); }
.status-cancelled  { background: rgba(220,53,69,0.12); color: #ff8a72; border: 1px solid rgba(220,53,69,0.3); }

/* ====================================================================
   ORDER TRACKING TIMELINE
   ==================================================================== */
.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}
.progress-steps::before {
    content: '';
    position: absolute;
    top: 14px; left: 14px; right: 14px;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.progress-step {
    display: flex; flex-direction: column; align-items: center;
    position: relative; z-index: 1;
    min-width: 80px; text-align: center;
}
.step-dot {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; color: var(--text-muted);
    transition: all 0.3s;
    margin-bottom: 0.4rem;
}
.progress-step.completed .step-dot {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #0f0a08;
}
.progress-step.current .step-dot {
    background: var(--gradient-main);
    border: none;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(212,96,122,0.35);
    animation: step-pulse 2s infinite;
}
@keyframes step-pulse { 0%,100%{box-shadow:0 0 12px rgba(212,96,122,0.35)} 50%{box-shadow:0 0 22px rgba(212,96,122,0.55)} }
.step-label { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; }
.progress-step.completed .step-label, .progress-step.current .step-label { color: var(--accent-teal); }

/* Tracking Timeline Entries */
.tracking-timeline { display: flex; flex-direction: column; gap: 0; }

.timeline-entry {
    display: flex; gap: 1rem;
    padding: 0 0 1.5rem 0;
    position: relative;
}
.timeline-entry::before {
    content: '';
    position: absolute; left: 9px; top: 20px;
    width: 2px; height: calc(100% - 20px);
    background: var(--border-color);
}
.timeline-entry:last-child::before { display: none; }
.timeline-entry:last-child { padding-bottom: 0; }

.timeline-dot {
    width: 20px; height: 20px; flex-shrink: 0;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--accent-teal);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.4rem; color: var(--accent-teal);
    margin-top: 0.1rem;
}

.timeline-body { flex: 1; }
.tracking-message {
    background: rgba(212,96,122,0.04);
    border-left: 3px solid var(--accent-teal);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}
.wip-preview {
    max-height: 200px;
    max-width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    display: block;
    cursor: pointer;
    transition: transform 0.2s;
}
.wip-preview:hover { transform: scale(1.02); }

/* ====================================================================
   INFO LIST (Order details)
   ==================================================================== */
.info-list { display: flex; flex-direction: column; gap: 0.6rem; }
.info-row { display: flex; justify-content: space-between; align-items: flex-start; font-size: 0.9rem; }
.info-label { color: var(--text-muted); font-size: 0.82rem; }
.info-value { text-align: right; font-weight: 600; }

.rika-divider { border-color: var(--border-color); margin: 1rem 0; }

/* ====================================================================
   ANIMATIONS
   ==================================================================== */
.fade-in-up {
    animation: fadeInUp 0.7s ease-out both;
}
.fade-in-right {
    animation: fadeInRight 0.7s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ====================================================================
   RESPONSIVE
   ==================================================================== */
@media (max-width: 768px) {
    .section-padding { padding: 3rem 0; }
    .webcard-inner { padding: 1.75rem 1.25rem; }
    .package-meta-grid { grid-template-columns: 1fr; }
    .progress-steps { gap: 0; }
    .step-label { display: none; }

    /* CTA section buttons on mobile */
    .cta-card .btn {
        margin-bottom: 0.5rem;
    }
    .cta-card {
        padding: 2rem 1.25rem;
    }
    .cta-card .btn + .btn {
        margin-left: 0 !important;
    }
}

/* ====================================================================
   PRELOADER
   ==================================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

#loading-image {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 13%;
    border-radius: 50%;
    box-shadow: 0 0 8px 8px white inset;
}

#loader {
    display: block;
    position: relative;
    left: 50%;
    top: 50%;
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--accent-teal);
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

#loader:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--accent-green);
    -webkit-animation: spin 3s linear infinite;
    animation: spin 3s linear infinite;
}

#loader:after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--accent-amber);
    -webkit-animation: spin 1.5s linear infinite;
    animation: spin 1.5s linear infinite;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
