@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --g-blue: #4285F4;
    --g-red: #EA4335;
    --g-yellow: #FBBC05;
    --g-green: #34A853;

    --bg-dark: #040407;
    --bg-glass-card: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 40%, rgba(255, 255, 255, 0.01) 70%, rgba(255, 255, 255, 0.08) 100%);
    --bg-glass-card-hover: linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.08) 40%, rgba(255, 255, 255, 0.02) 70%, rgba(255, 255, 255, 0.15) 100%);
    --bg-glass-nav: linear-gradient(125deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.06) 35%, rgba(255, 255, 255, 0.02) 70%, rgba(255, 255, 255, 0.12) 100%);

    --border-glass-top: rgba(255, 255, 255, 0.75);
    --border-glass-side: rgba(255, 255, 255, 0.35);
    --border-glass-bottom: rgba(255, 255, 255, 0.35);

    --shadow-physical-glass: inset 0 2px 3px 0 rgba(255, 255, 255, 0.7), inset 0 0 15px rgba(255, 255, 255, 0.1), 0 25px 60px -10px rgba(0, 0, 0, 0.85);
    --shadow-nav-glass: inset 0 2px 4px 0 rgba(255, 255, 255, 0.85), inset 0 0 20px 2px rgba(255, 255, 255, 0.15), 0 30px 70px -10px rgba(0, 0, 0, 0.9);

    --accent-cyan: #38bdf8;
    --accent-emerald: #34d399;
    --accent-amber: #fbbf24;
    --accent-rose: #fb7185;

    --text-white: #ffffff;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --text-dim: #94a3b8;

    --radius-xl: 28px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --radius-pill: 100px;

    --font-fa: 'Vazirmatn', system-ui, -apple-system, sans-serif;
    --font-en: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;

    --spring-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
    --spring-nav: cubic-bezier(0.34, 1.4, 0.64, 1);
    --liquid-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --smooth-ease: cubic-bezier(0.25, 1, 0.5, 1);

    /* Modal & Input Variables (Dark Theme) */
    --bg-modal-sheet: linear-gradient(135deg, rgba(25, 25, 42, 0.68) 0%, rgba(14, 14, 26, 0.76) 50%, rgba(20, 20, 34, 0.72) 100%);
    --modal-overlay-bg: rgba(0, 0, 0, 0.45);
    --shadow-modal-sheet: inset 0 2px 3px 0 rgba(255, 255, 255, 0.65), inset 0 0 20px rgba(255, 255, 255, 0.08), 0 -15px 60px rgba(0, 0, 0, 0.75);
    --drag-handle-bg: rgba(255, 255, 255, 0.45);
    --desc-bg: rgba(255, 255, 255, 0.05);
    --desc-border: rgba(255, 255, 255, 0.15);
    --desc-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    --desc-strong-color: var(--text-white);
    --close-btn-bg: rgba(255, 255, 255, 0.18);
    --close-btn-border: rgba(255, 255, 255, 0.45);
    --close-btn-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    --input-bg: rgba(255, 255, 255, 0.08);
    --input-color: var(--text-white);
    --input-placeholder: rgba(255, 255, 255, 0.4);
    --btn-primary-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.15) 100%);
    --btn-primary-border: rgba(255, 255, 255, 0.55);
    --btn-primary-color: #ffffff;
    --btn-primary-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.8), 0 8px 25px rgba(0, 0, 0, 0.4);
}

body.theme-light {
    --bg-dark: #f8fafc;
    --bg-glass-card: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.65) 40%, rgba(255, 255, 255, 0.45) 70%, rgba(255, 255, 255, 0.8) 100%);
    --bg-glass-card-hover: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.75) 40%, rgba(255, 255, 255, 0.55) 70%, rgba(255, 255, 255, 0.9) 100%);
    --bg-glass-nav: linear-gradient(125deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.65) 35%, rgba(255, 255, 255, 0.45) 70%, rgba(255, 255, 255, 0.8) 100%);

    --border-glass-top: rgba(255, 255, 255, 1);
    --border-glass-side: rgba(203, 213, 225, 0.6);
    --border-glass-bottom: rgba(148, 163, 184, 0.4);

    --shadow-physical-glass: inset 0 2px 3px 0 rgba(255, 255, 255, 1), inset 0 -1.5px 2px 0 rgba(0, 0, 0, 0.1), 0 20px 45px -10px rgba(148, 163, 184, 0.35);
    --shadow-nav-glass: inset 0 2px 4px 0 rgba(255, 255, 255, 1), inset 0 -1.5px 3px 0 rgba(0, 0, 0, 0.12), 0 20px 50px -10px rgba(148, 163, 184, 0.4);

    --text-white: #0f172a;
    --text-main: #1e293b;
    --text-muted: #475569;
    --text-dim: #64748b;

    /* Modal & Input Variables (Light Theme) */
    --bg-modal-sheet: linear-gradient(135deg, rgba(255, 255, 255, 0.78) 0%, rgba(240, 244, 248, 0.68) 50%, rgba(255, 255, 255, 0.72) 100%);
    --modal-overlay-bg: rgba(15, 23, 42, 0.35);
    --shadow-modal-sheet: inset 0 2px 3px 0 rgba(255, 255, 255, 1), 0 -15px 60px rgba(148, 163, 184, 0.35);
    --drag-handle-bg: rgba(148, 163, 184, 0.6);
    --desc-bg: rgba(255, 255, 255, 0.75);
    --desc-border: rgba(203, 213, 225, 0.8);
    --desc-shadow: inset 0 1px 1px rgba(255, 255, 255, 1);
    --desc-strong-color: #0f172a;
    --close-btn-bg: rgba(255, 255, 255, 0.9);
    --close-btn-border: rgba(203, 213, 225, 0.8);
    --close-btn-shadow: 0 4px 12px rgba(148, 163, 184, 0.3);
    --input-bg: rgba(255, 255, 255, 0.9);
    --input-color: #0f172a;
    --input-placeholder: rgba(100, 116, 139, 0.6);
    --btn-primary-bg: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --btn-primary-border: #1d4ed8;
    --btn-primary-color: #ffffff;
    --btn-primary-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.6), 0 8px 20px rgba(37, 99, 235, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

::-webkit-scrollbar {
    display: none;
}

html {
    scroll-behavior: smooth;
    overscroll-behavior: contain;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-fa);
    min-height: 100vh;
    min-height: 100dvh;
    direction: rtl;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.4s ease, color 0.4s ease;
}

body.lang-en {
    font-family: var(--font-en);
}

body.lang-en .card-title,
body.lang-en .card-sub,
body.lang-en .hero-content,
body.lang-en .form-group label,
body.lang-en .referral-card h3,
body.lang-en .referral-card p {
    text-align: left;
}

body.lang-en .product-grid,
body.lang-en .product-card,
body.lang-en .purchases-list,
body.lang-en .purchase-item,
body.lang-en .referral-card,
body.lang-en .discount-hero,
body.lang-en .detail-modal {
    direction: ltr;
}

.ambient-mesh {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.mesh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(75px);
    opacity: 0.75;
    will-change: transform, opacity;
    animation: orbFloat 18s infinite ease-in-out alternate;
}

.orb-blue {
    top: -12%;
    right: -10%;
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, var(--g-blue) 0%, transparent 75%);
}

.orb-red {
    bottom: -5%;
    left: -12%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, var(--g-red) 0%, transparent 75%);
    animation-delay: -6s;
}

.orb-yellow {
    top: 40%;
    left: 20%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--g-yellow) 0%, transparent 75%);
    animation-delay: -12s;
}

.orb-green {
    top: 20%;
    right: 15%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, var(--g-green) 0%, transparent 75%);
    animation-delay: -15s;
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -25px) scale(1.1);
    }

    100% {
        transform: translate(-25px, 35px) scale(0.92);
    }
}

.app-wrapper {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom: 98px;
    position: relative;
    z-index: 1;
}

.floating-header {
    position: sticky;
    top: 12px;
    z-index: 50;
    margin: 12px 14px 14px 14px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px) saturate(280%) contrast(110%);
    -webkit-backdrop-filter: blur(24px) saturate(280%) contrast(110%);
    border-radius: 26px;
    border-top: 1.5px solid var(--border-glass-top);
    border-left: 1px solid var(--border-glass-side);
    border-right: 1px solid var(--border-glass-side);
    border-bottom: 1.5px solid var(--border-glass-bottom);
    box-shadow: var(--shadow-physical-glass);
    display: flex;
    direction: ltr !important;
    justify-content: flex-start;
    align-items: center;
    transition: transform 0.3s var(--liquid-ease);
}

.brand-badge {
    display: flex;
    flex-direction: row;
    direction: ltr !important;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.brand-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.12) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.85);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 6px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
}

.brand-text-group {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.05rem;
    font-weight: 800;
}

.brand-text-group span {
    color: var(--text-white);
    letter-spacing: -0.3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.verified-badge {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    -webkit-text-fill-color: initial;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
}

.user-badges {
    display: flex;
    align-items: center;
    gap: 7px;
}

.pill-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    transition: transform 0.25s var(--spring-ease), box-shadow 0.25s var(--liquid-ease);
}

.pill-badge:active {
    transform: scale(0.92);
}

.pill-badge.gold {
    background: rgba(251, 191, 36, 0.16);
    color: var(--accent-amber);
    border: 1px solid rgba(251, 191, 36, 0.45);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pill-badge.cyan {
    background: rgba(56, 189, 248, 0.16);
    color: var(--accent-cyan);
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 4px 15px rgba(0, 0, 0, 0.2);
}

.floating-hero {
    margin: 0 14px 14px 14px;
    padding: 22px 20px;
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(24px) saturate(280%);
    -webkit-backdrop-filter: blur(24px) saturate(280%);
    border-top: 1.5px solid var(--border-glass-top);
    border-left: 1px solid var(--border-glass-side);
    border-right: 1px solid var(--border-glass-side);
    border-bottom: 1.5px solid var(--border-glass-bottom);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-physical-glass);
}

.hero-shine {
    position: absolute;
    top: -60%;
    right: -20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.45;
}

.search-bar-wrapper {
    margin: 0 14px 14px 14px;
}

.search-glass-input {
    position: relative;
    width: 100%;
}

.search-glass-input input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px) saturate(280%);
    -webkit-backdrop-filter: blur(24px) saturate(280%);
    border-top: 1.5px solid var(--border-glass-top);
    border-left: 1px solid var(--border-glass-side);
    border-right: 1px solid var(--border-glass-side);
    border-bottom: 1.5px solid var(--border-glass-bottom);
    padding: 14px 44px 14px 18px;
    border-radius: var(--radius-lg);
    color: var(--text-white);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.35s var(--liquid-ease);
    box-shadow: var(--shadow-physical-glass);
}

body.lang-en .search-glass-input input {
    padding: 14px 18px 14px 44px;
}

.search-glass-input input:focus {
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.9), 0 0 30px rgba(255, 255, 255, 0.3), 0 15px 35px rgba(0, 0, 0, 0.6);
    background: rgba(255, 255, 255, 0.16);
}

.search-glass-input input::placeholder {
    color: var(--text-dim);
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 0.95rem;
    transition: color 0.3s var(--liquid-ease);
}

body.lang-en .search-icon {
    right: auto;
    left: 16px;
}

.search-glass-input input:focus~.search-icon {
    color: var(--text-white);
}

.content-container {
    padding: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 14px;
}

.product-card {
    background: var(--bg-glass-card);
    backdrop-filter: blur(24px) saturate(280%);
    -webkit-backdrop-filter: blur(24px) saturate(280%);
    border-top: 1.5px solid var(--border-glass-top);
    border-left: 1px solid var(--border-glass-side);
    border-right: 1px solid var(--border-glass-side);
    border-bottom: 1.5px solid var(--border-glass-bottom);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.4s var(--smooth-ease), box-shadow 0.4s var(--smooth-ease), border-color 0.4s var(--smooth-ease), background 0.4s var(--smooth-ease);
    box-shadow: var(--shadow-physical-glass);
    position: relative;
    will-change: transform, box-shadow;
}

.product-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%, rgba(255, 255, 255, 0.14) 100%);
    border-color: rgba(255, 255, 255, 0.65);
    transform: translateY(-4px) scale(1.015);
    box-shadow: inset 0 1.5px 1.5px rgba(255, 255, 255, 0.8), 0 20px 45px -8px rgba(0, 0, 0, 0.8);
}

.product-card:active {
    transform: scale(0.96);
}

.card-img-wrapper {
    width: 100%;
    height: 150px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.45));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--liquid-ease);
}

.product-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.card-img-wrapper .placeholder-icon {
    font-size: 3.2rem;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4));
    transition: transform 0.35s var(--spring-ease);
}

.product-card:hover .placeholder-icon {
    transform: scale(1.12) rotate(-4deg);
}

.card-badge {
    display: none !important;
}

.card-body {
    padding: 14px 16px 16px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.card-title {
    font-size: 0.96rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
    height: auto;
    max-height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-footer {
    margin-top: 12px;
}

.btn-price {
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.12) 100%);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.55);
    padding: 9px 12px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.8), 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s var(--spring-ease), background 0.2s var(--liquid-ease);
}

.btn-price:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.45);
}

.bottom-bar-line {
    position: fixed;
    bottom: 16px;
    left: 14px;
    right: 14px;
    width: calc(100% - 28px);
    max-width: 450px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.side-circle-btn {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: var(--bg-glass-nav);
    backdrop-filter: blur(24px) saturate(280%) contrast(110%);
    -webkit-backdrop-filter: blur(24px) saturate(280%) contrast(110%);
    border-top: 1.5px solid rgba(255, 255, 255, 0.85);
    border-left: 1px solid var(--border-glass-side);
    border-right: 1px solid var(--border-glass-side);
    border-bottom: 1px solid var(--border-glass-side);
    box-shadow: var(--shadow-nav-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-white);
    font-size: 1.35rem;
    outline: none;
    transition: transform 0.35s var(--smooth-ease), border-color 0.35s var(--smooth-ease), box-shadow 0.35s var(--smooth-ease);
    flex-shrink: 0;
    will-change: transform;
}

.side-circle-btn:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.9), 0 16px 35px rgba(0, 0, 0, 0.7);
}

.side-circle-btn:active {
    transform: scale(0.9);
}

.side-circle-btn.profile-btn.active {
    border-color: var(--g-blue);
    box-shadow: 0 0 25px rgba(66, 133, 244, 0.75), inset 0 0 12px rgba(66, 133, 244, 0.5);
}

.side-circle-btn.profile-btn.active .outer-avatar-circle {
    background: linear-gradient(135deg, #4285F4, #34A853);
    box-shadow: 0 0 16px rgba(66, 133, 244, 0.9);
}

.outer-avatar-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.25));
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.outer-avatar-circle.large {
    width: 86px;
    height: 86px;
    margin: 0 auto;
    padding: 3px;
}

.inner-avatar-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-dark);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1rem;
}

.outer-avatar-circle.large .inner-avatar-circle {
    font-size: 2.3rem;
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.floating-nav-bar.compact-2tab {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    flex: 1;
    max-width: 215px;
    margin: 0 6px;
    height: 66px;
    background: var(--bg-glass-nav);
    backdrop-filter: blur(24px) saturate(280%) contrast(110%);
    -webkit-backdrop-filter: blur(24px) saturate(280%) contrast(110%);
    border-top: 1.5px solid rgba(255, 255, 255, 0.85);
    border-left: 1px solid var(--border-glass-side);
    border-right: 1px solid var(--border-glass-side);
    border-bottom: 1px solid var(--border-glass-side);
    border-radius: 33px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
    box-shadow: var(--shadow-nav-glass);
    overflow: hidden;
}

.nav-pill-slider {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 0;
    width: 47%;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.15) 100%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.9), 0 8px 25px rgba(0, 0, 0, 0.45);
    transition: transform 400ms var(--spring-nav), width 300ms ease;
    pointer-events: none;
    z-index: 1;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--text-dim);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.35s var(--smooth-ease), transform 0.35s var(--smooth-ease);
    width: 47%;
    height: 56px;
    border-radius: 28px;
    position: relative;
    z-index: 2;
}

.nav-item i {
    font-size: 1.1rem;
    transition: transform 0.35s var(--smooth-ease), color 0.35s var(--smooth-ease), filter 0.35s var(--smooth-ease);
}

.nav-item:hover i {
    transform: translateY(-2px) scale(1.18);
    color: var(--text-white);
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.6));
}

.nav-item.active {
    color: var(--text-white);
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.7);
}

.nav-item.active i {
    transform: scale(1.08);
}

.nav-item:active {
    transform: scale(0.92);
}

.view-section {
    display: none;
    opacity: 0;
    transform: translateY(12px);
}

.view-section.active {
    display: block;
    animation: viewFadeIn 0.35s var(--liquid-ease) forwards;
}

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

body.modal-open {
    overflow: hidden !important;
    height: 100vh !important;
    height: 100dvh !important;
    touch-action: none !important;
}

body.modal-open .app-wrapper {
    pointer-events: none !important;
}

.detail-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

#weblogin-modal {
    z-index: 3000 !important;
}

.detail-modal.active {
    display: flex;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: var(--modal-overlay-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    opacity: 0;
    transition: opacity 0.38s var(--smooth-ease), background 0.38s var(--smooth-ease);
}

.detail-modal.active .modal-overlay {
    opacity: 1;
}

.detail-modal.closing .modal-overlay {
    opacity: 0;
}

.modal-sheet {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    background: var(--bg-modal-sheet);
    backdrop-filter: blur(28px) saturate(280%);
    -webkit-backdrop-filter: blur(28px) saturate(280%);
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    border-top: 1.5px solid var(--border-glass-top);
    border-left: 1px solid var(--border-glass-side);
    border-right: 1px solid var(--border-glass-side);
    padding: 0;
    overflow: hidden;
    z-index: 1;
    transform: translateY(105%);
    transition: transform 0.42s var(--smooth-ease), background 0.38s var(--liquid-ease), box-shadow 0.38s var(--liquid-ease);
    box-shadow: var(--shadow-modal-sheet);
    will-change: transform;
}

.modal-scroll-content {
    padding: 0 20px 45px 20px;
    max-height: 90vh;
    overflow-y: auto;
}

.detail-modal.active .modal-sheet {
    transform: translateY(0);
}

.detail-modal.closing .modal-sheet {
    transform: translateY(105%);
}

.modal-drag-handle {
    width: 40px;
    height: 4px;
    background: var(--drag-handle-bg);
    border-radius: 100px;
    margin: 12px auto 14px auto;
    transition: background 0.38s var(--liquid-ease);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-top: 6px;
    padding-left: 44px;
}

.btn-close-circle,
.btn-close {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 50;
    background: var(--close-btn-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--close-btn-border);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s var(--liquid-ease), transform 0.2s var(--spring-ease), border-color 0.2s var(--liquid-ease);
    box-shadow: var(--close-btn-shadow);
    flex-shrink: 0;
}

.btn-close-circle:active,
.btn-close:active {
    transform: scale(0.9);
}

.modal-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 18px;
    white-space: pre-wrap;
    word-break: break-word;
    background: var(--desc-bg);
    border: 1px solid var(--desc-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: var(--desc-shadow);
    transition: background 0.38s var(--liquid-ease), border-color 0.38s var(--liquid-ease), color 0.38s var(--liquid-ease);
}

.modal-desc strong {
    color: var(--desc-strong-color);
    font-weight: 700;
}

.modal-desc em {
    color: var(--accent-cyan);
    font-style: normal;
}

.modal-desc code.inline-code {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass-side);
    padding: 2px 6px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--accent-amber);
}

.glass-card {
    background: var(--bg-glass-card);
    backdrop-filter: blur(24px) saturate(280%);
    -webkit-backdrop-filter: blur(24px) saturate(280%);
    border-top: 1.5px solid var(--border-glass-top);
    border-left: 1px solid var(--border-glass-side);
    border-right: 1px solid var(--border-glass-side);
    border-bottom: 1.5px solid var(--border-glass-bottom);
    border-radius: 26px;
    padding: 22px;
    margin: 0 14px 14px 14px;
    box-shadow: var(--shadow-physical-glass);
    transition: background 0.38s var(--liquid-ease), border-color 0.38s var(--liquid-ease);
}

/* Portals Market Style Two-Piece Split Profile Card */
.port-profile-card {
    padding: 0 0 16px 0 !important;
    margin-bottom: 14px;
    border-radius: 24px;
    direction: ltr !important;
    text-align: left !important;
    overflow: hidden;
}

.port-top-inner-box {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.port-user-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.port-user-details h2 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-white);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.port-referral-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass-side);
    border-radius: 14px;
    padding: 6px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 85px;
    flex-shrink: 0;
    user-select: none;
}

.inventory-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2px;
    line-height: 1;
}

.inventory-val {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.1;
}

.port-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 18px;
}

.port-stat-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.port-stat-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.2;
}

.port-stat-col.approved .port-stat-num {
    color: var(--accent-emerald);
}

.port-stat-col.rejected .port-stat-num {
    color: var(--accent-rose);
}

.port-stat-lbl {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 4px;
    white-space: nowrap;
}

.profile-settings-card {
    padding: 18px 20px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    background: var(--input-bg);
    border-top: 1.5px solid var(--border-glass-top);
    border-left: 1px solid var(--border-glass-side);
    border-right: 1px solid var(--border-glass-side);
    border-bottom: 1.5px solid var(--border-glass-bottom);
    padding: 13px 16px;
    border-radius: var(--radius-md);
    color: var(--input-color);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.25s var(--liquid-ease), box-shadow 0.25s var(--liquid-ease), background 0.25s var(--liquid-ease), color 0.25s var(--liquid-ease);
}

.form-group input::placeholder {
    color: var(--input-placeholder);
}

.form-group input:focus,
.form-group select:focus {
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.6), 0 0 20px rgba(255, 255, 255, 0.25);
}

/* Glassmorphic File Upload Dropzone */
.glass-file-dropzone {
    position: relative;
    width: 100%;
    min-height: 120px;
    background: var(--desc-bg);
    border: 2px dashed var(--border-glass-side);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s var(--liquid-ease);
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-file-dropzone:hover,
.glass-file-dropzone.dragover {
    border-color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.08);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.glass-file-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.dropzone-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.dropzone-icon {
    font-size: 2rem;
    color: var(--accent-cyan);
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 10px rgba(56, 189, 248, 0.3));
    transition: transform 0.3s var(--spring-ease);
}

.glass-file-dropzone:hover .dropzone-icon {
    transform: translateY(-4px) scale(1.1);
}

.dropzone-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.dropzone-subtitle {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.dropzone-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    z-index: 20;
}

.dropzone-preview img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-glass-top);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.preview-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

#preview-filename {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.btn-remove-file {
    background: rgba(251, 113, 133, 0.18);
    border: 1px solid rgba(251, 113, 133, 0.4);
    color: var(--accent-rose);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-remove-file:hover {
    background: rgba(251, 113, 133, 0.35);
    transform: scale(1.08);
}

.btn-primary,
.btn-submit {
    width: 100%;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-color);
    border: 1px solid var(--btn-primary-border);
    padding: 15px;
    border-radius: var(--radius-md);
    font-size: 0.98rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--btn-primary-shadow);
    transition: transform 0.2s var(--spring-ease), background 0.2s var(--liquid-ease), border-color 0.2s var(--liquid-ease);
}

.btn-primary:active,
.btn-submit:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.45);
}

.purchases-list {
    padding: 0 14px;
}

.purchase-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(280%);
    -webkit-backdrop-filter: blur(24px) saturate(280%);
    border-top: 1.5px solid var(--border-glass-top);
    border-left: 1px solid var(--border-glass-side);
    border-right: 1px solid var(--border-glass-side);
    border-bottom: 1px solid var(--border-glass-side);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-physical-glass);
    cursor: pointer;
    transition: transform 0.4s var(--smooth-ease), box-shadow 0.4s var(--smooth-ease), border-color 0.4s var(--smooth-ease), background 0.4s var(--smooth-ease);
    will-change: transform, box-shadow;
}

.purchase-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%, rgba(255, 255, 255, 0.14) 100%);
    border-color: rgba(255, 255, 255, 0.65);
    transform: translateY(-3px) scale(1.01);
    box-shadow: inset 0 1.5px 1.5px rgba(255, 255, 255, 0.8), 0 18px 40px -8px rgba(0, 0, 0, 0.8);
}

.status-tag {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-pending {
    background: rgba(251, 191, 36, 0.15);
    color: var(--accent-amber);
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.status-approved {
    background: rgba(52, 211, 153, 0.15);
    color: var(--accent-emerald);
    border: 1px solid rgba(52, 211, 153, 0.4);
}

.status-rejected {
    background: rgba(251, 113, 133, 0.15);
    color: var(--accent-rose);
    border: 1px solid rgba(251, 113, 133, 0.4);
}

/* Delivery Outputs & Copy Button Styling */
.delivery-outputs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.delivery-output-card {
    background: var(--desc-bg);
    border: 1px solid var(--border-glass-side);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: var(--desc-shadow);
    transition: all 0.25s var(--liquid-ease);
}

.delivery-output-card:hover {
    border-color: var(--border-glass-top);
    background: var(--bg-glass-card-hover);
}

.delivery-output-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    overflow: hidden;
}

.delivery-url-link {
    color: var(--accent-cyan);
    font-size: 0.86rem;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.delivery-url-link:hover {
    text-decoration: underline;
}

.delivery-code-val {
    font-family: monospace;
    font-size: 0.86rem;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: text;
    -webkit-user-select: text;
}

.btn-copy-item {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--border-glass-side);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s var(--spring-ease);
    flex-shrink: 0;
}

.btn-copy-item:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: var(--border-glass-top);
    color: var(--text-white);
}

.btn-copy-item.copied {
    background: rgba(52, 211, 153, 0.25) !important;
    border-color: var(--accent-emerald) !important;
    color: var(--accent-emerald) !important;
}

.tgs-emoji-box {
    width: 28px;
    height: 28px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.toast-pill {
    position: fixed;
    bottom: 96px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(24, 24, 36, 0.92);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border: 1px solid var(--border-glass-top);
    color: var(--text-white);
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--spring-ease);
    z-index: 300;
}

.toast-pill.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.profile-avatar-wrapper {
    text-align: center;
    margin-bottom: 24px;
}

.avatar-ring {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.12) 100%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.8), 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.2rem;
}

.avatar-ring+h2 {
    margin-top: 12px;
    font-size: 1.3rem;
    color: var(--text-white);
}

.avatar-ring~p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: var(--radius-lg);
}

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

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

.skeleton-card {
    height: 220px;
}

/* ====== Language Switcher & Profile Fixes ====== */

.port-profile-card {
    min-height: 165px !important;
    box-sizing: border-box !important;
}

.port-stat-lbl {
    min-height: 16px;
    line-height: 1.3;
}

.profile-settings-card {
    padding: 16px 18px !important;
    border-radius: 24px;
    min-height: 100px !important;
    box-sizing: border-box !important;
}

.form-group label {
    min-height: 22px;
}

.glass-lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 48px;
    background: rgba(15, 15, 20, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 4px;
    margin-top: 10px;
    backdrop-filter: blur(16px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
    user-select: none;
    direction: ltr !important;
    box-sizing: border-box;
    overflow: hidden;
}

.lang-slider-pill {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.07) 100%);
    border-top: 1.5px solid rgba(255, 255, 255, 0.35);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 1;
    box-sizing: border-box;
}

.lang-option-btn {
    position: relative;
    z-index: 2;
    flex: 1 1 50%;
    width: 50%;
    min-width: 50%;
    max-width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: rgba(255, 255, 255, 0.5);
    padding: 0 8px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
}

.lang-option-btn:hover {
    color: rgba(255, 255, 255, 0.85);
}

.lang-option-btn.active {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

.flag-icon {
    font-size: 1.1rem;
    transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

.lang-option-btn.active .flag-icon {
    transform: scale(1.2);
}

.lang-name {
    transition: opacity 0.3s ease;
}

.port-stat-num,
.port-stat-lbl,
.inventory-label,
#user-ref-count,
#lang-label {
    transition: opacity 0.22s var(--liquid-ease), transform 0.22s var(--liquid-ease);
}

.lang-fade-out {
    opacity: 0 !important;
    transform: translateY(3px) scale(0.97) !important;
    transition: opacity 0.12s ease-out, transform 0.12s ease-out !important;
}

.lang-fade-in {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    transition: opacity 0.22s var(--liquid-ease), transform 0.22s var(--liquid-ease) !important;
}

/* ==========================================================================
   DESKTOP RESPONSIVE DESIGN (@media min-width: 900px)
   ========================================================================== */
@media (min-width: 900px) {
    .app-wrapper {
        max-width: 1200px;
        margin: 0 auto;
        padding-right: 125px;
        padding-left: 35px;
        padding-bottom: 40px;
    }

    body.lang-en .app-wrapper {
        padding-right: 35px;
        padding-left: 125px;
    }

    .floating-header {
        margin: 16px 0 24px 0;
        max-width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
        padding: 0;
    }

    .product-card {
        min-height: 380px;
        border-radius: 28px;
    }

    .card-img-wrapper {
        height: 200px;
    }

    .card-body {
        padding: 18px 20px 20px 20px;
    }

    .card-title {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }

    .card-sub {
        font-size: 0.84rem;
        line-height: 1.5;
        height: auto;
        max-height: 62px;
        -webkit-line-clamp: 3;
    }

    .card-footer {
        margin-top: 14px;
    }

    .btn-price {
        padding: 12px 18px;
        font-size: 0.95rem;
        font-weight: 700;
        border-radius: 16px;
    }

    .purchases-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 16px;
    }

    /* Vertical Right/Left Docked Sidebar */
    .bottom-bar-line {
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        right: 28px;
        left: auto;
        bottom: auto;
        width: 76px;
        max-width: 76px;
        height: auto;
        flex-direction: column-reverse;
        gap: 26px;
        margin: 0;
        z-index: 1000;
    }

    body.lang-en .bottom-bar-line {
        right: auto;
        left: 28px;
    }

    .side-circle-btn {
        width: 72px;
        height: 72px;
    }

    .floating-nav-bar {
        width: 72px;
        max-width: 72px;
        height: 168px;
        flex-direction: column;
        padding: 4px 0;
        border-radius: 40px;
        margin: 0;
        overflow: hidden;
    }

    .nav-pill-slider {
        left: 4px;
        right: 4px;
        width: auto;
        height: 76px;
        top: 0;
        border-radius: 34px;
        transition: transform 400ms var(--spring-nav), height 300ms ease;
    }

    .nav-item {
        width: 100%;
        height: 76px;
        flex-direction: column;
        border-radius: 34px;
        gap: 4px;
        font-size: 0.75rem;
    }

    /* Modals centered on Desktop */
    .detail-modal {
        align-items: center;
    }

    .detail-modal .modal-sheet {
        max-width: 580px;
        width: 90%;
        border-radius: var(--radius-xl);
        max-height: 85vh;
    }
}