/* Lelouch Shop - Main Styles */
:root {
    --bg-void: #0A0414;
    --bg-depth: #0F0820;
    --bg-layer: #1A0F2E;
    --bg-surface: #25153F;
    --bg-elevated: #311B52;

    --accent-primary: #8B5CF6;
    --accent-glow: #A78BFA;
    --accent-bright: #C4B5FD;

    --gold: #F59E0B;
    --gold-glow: #FBBF24;
    --success: #4ADE80;

    --text-primary: #FEFEFE;
    --text-secondary: #C4B5FD;
    --text-muted: #9E95B7;

    --border: rgba(139, 92, 246, 0.15);
    --border-bright: rgba(139, 92, 246, 0.4);

    --app-viewport-height: 100vh;
    --app-safe-top: max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px), var(--tg-content-safe-area-inset-top, 0px));
    --app-safe-right: max(env(safe-area-inset-right, 0px), var(--tg-safe-area-inset-right, 0px), var(--tg-content-safe-area-inset-right, 0px));
    --app-safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px), var(--tg-content-safe-area-inset-bottom, 0px));
    --app-safe-left: max(env(safe-area-inset-left, 0px), var(--tg-safe-area-inset-left, 0px), var(--tg-content-safe-area-inset-left, 0px));
}

@supports (height: 100dvh) {
    :root {
        --app-viewport-height: 100dvh;
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3)); }
    50% { filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6)); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

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

@keyframes imperialFlow {
    0%, 100% { background-position: 0% 35%; }
    50% { background-position: 100% 65%; }
}

@keyframes ccSway {
    0%, 100% { transform: translate3d(-5px, 3px, 0) rotate(-0.32deg); }
    28% { transform: translate3d(3px, -5px, 0) rotate(0.16deg); }
    56% { transform: translate3d(6px, 1px, 0) rotate(0.34deg); }
    78% { transform: translate3d(-2px, -4px, 0) rotate(-0.14deg); }
}

/* Compositor-only motion for low-power Telegram WebViews. */
@keyframes ccSwayMobile {
    0%, 100% { transform: translate3d(-2px, 1px, 0) rotate(-0.10deg); }
    28% { transform: translate3d(1px, -2px, 0) rotate(0.05deg); }
    56% { transform: translate3d(3px, 0, 0) rotate(0.12deg); }
    78% { transform: translate3d(-1px, -2px, 0) rotate(-0.05deg); }
}

@keyframes geassDrift {
    0%, 100% { transform: rotate(-7deg) scale(0.98); opacity: 0.22; }
    50% { transform: rotate(5deg) scale(1.04); opacity: 0.34; }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Display', Roboto, sans-serif;
    background:
        radial-gradient(circle at 78% 12%, rgba(176, 82, 255, 0.25), transparent 34%),
        radial-gradient(circle at 14% 68%, rgba(93, 21, 177, 0.38), transparent 40%),
        radial-gradient(circle at 50% 46%, rgba(104, 32, 164, 0.18), transparent 44%),
        linear-gradient(125deg, #030108 0%, #160326 25%, #310957 48%, #10021e 73%, #05010c 100%);
    background-size: 145% 145%, 155% 155%, 130% 130%, 260% 260%;
    animation: imperialFlow 18s ease-in-out infinite;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: var(--app-viewport-height);
    padding-bottom: calc(80px + var(--app-safe-bottom));
}

body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(109, 40, 217, 0.15) 30%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}

.world-decor {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--app-viewport-height);
    z-index: auto;
    overflow: hidden;
    pointer-events: none;
    isolation: auto;
}

.world-decor::before,
.world-decor::after {
    content: '';
    position: absolute;
    inset: 0;
}

.world-decor::before {
    z-index: 0;
    opacity: 0.42;
    background:
        linear-gradient(115deg, transparent 0 48.8%, rgba(202, 148, 255, 0.10) 49.5%, transparent 50.2%),
        linear-gradient(65deg, transparent 0 48.8%, rgba(202, 148, 255, 0.07) 49.5%, transparent 50.2%),
        repeating-radial-gradient(circle at 50% 50%, transparent 0 82px, rgba(145, 64, 214, 0.07) 84px 85px, transparent 87px 164px);
    background-size: 340px 340px, 340px 340px, 100% 100%;
}

.world-decor::after {
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(2, 0, 7, 0.72), transparent 25%, transparent 75%, rgba(2, 0, 7, 0.72)),
        linear-gradient(180deg, rgba(2, 0, 8, 0.30), transparent 24%, transparent 76%, rgba(2, 0, 8, 0.68));
}

.geass-watermark {
    position: absolute;
    z-index: 1;
    width: min(34vw, 340px);
    height: auto;
    max-width: calc(100% - var(--app-safe-left) - var(--app-safe-right) - 40px);
    right: max(20px, var(--app-safe-right), calc((100vw - 1180px) / 2));
    top: calc(var(--app-safe-top) + 20px);
    opacity: 0.26;
    mix-blend-mode: normal;
    filter: drop-shadow(0 0 18px rgba(255, 45, 116, 0.44));
    animation: geassDrift 10s ease-in-out infinite;
}

.cc-guardian {
    position: fixed;
    z-index: 2;
    top: calc(var(--app-safe-top) + 52px);
    right: calc(var(--app-safe-right) + 24px);
    bottom: calc(var(--app-safe-bottom) + 86px);
    left: calc(var(--app-safe-left) + 24px);
    width: calc(100% - var(--app-safe-left) - var(--app-safe-right) - 48px);
    height: calc(var(--app-viewport-height) - var(--app-safe-top) - var(--app-safe-bottom) - 138px);
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    opacity: 0.28;
    mix-blend-mode: normal;
    filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.58)) drop-shadow(0 0 22px rgba(116, 50, 191, 0.24));
    transform-origin: 50% 78%;
    animation: ccSway 11.5s ease-in-out infinite;
    will-change: transform;
    backface-visibility: hidden;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 1.5rem);
    position: relative;
    z-index: 1;
}

.language-switch {
    position: absolute;
    top: calc(clamp(1rem, 3vw, 1.5rem) + var(--app-safe-top));
    left: clamp(1rem, 3vw, 1.5rem);
    z-index: 6;
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid rgba(196, 181, 253, 0.28);
    border-radius: 999px;
    background: rgba(15, 8, 32, 0.82);
    box-shadow: 0 8px 24px rgba(9, 2, 22, 0.32);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.language-switch button {
    min-width: 35px;
    min-height: 30px;
    padding: 0 0.5rem;
    border: 0;
    border-radius: 999px;
    color: var(--text-muted);
    background: transparent;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.language-switch button.active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-primary), #6d28d9);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.language-switch button:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 2px;
}

.top-account {
    width: fit-content;
    margin: 0 0 0.8rem auto;
    padding: 0.48rem 0.8rem 0.48rem 0.48rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(55, 26, 94, 0.92), rgba(24, 10, 48, 0.92));
    border: 1px solid rgba(196, 181, 253, 0.36);
    border-radius: 999px;
    box-shadow: 0 10px 35px rgba(49, 16, 89, 0.5), inset 0 1px rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    cursor: pointer;
    position: relative;
    z-index: 5;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.top-account:active {
    transform: scale(0.97);
}

.top-account-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    font-size: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa, #5b21b6);
    border: 2px solid rgba(255,255,255,0.72);
    box-shadow: 0 0 18px rgba(167, 139, 250, 0.52);
}

.top-account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-account-copy {
    display: grid;
    min-width: 68px;
    line-height: 1.12;
}

.top-account-copy span {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.top-account-copy strong {
    color: #f6dc76;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}

.hero {
    background: linear-gradient(135deg, var(--bg-depth) 0%, var(--bg-layer) 100%);
    border-radius: 24px;
    padding: clamp(2rem, 6vw, 3rem) clamp(1.5rem, 4vw, 2rem);
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.6s ease-out;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    animation: shimmer 3s infinite;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid var(--border-bright);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
    font-weight: 600;
    color: var(--accent-bright);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: clamp(1rem, 3.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.profile-card {
    background: linear-gradient(135deg, var(--bg-layer) 0%, var(--bg-surface) 100%);
    border-radius: 20px;
    padding: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.6s ease-out 0.1s both;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.5;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #6D28D9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.avatar::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-glow), var(--gold-glow));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: glow 3s ease-in-out infinite;
}

.profile-info h2 {
    font-size: clamp(1.375rem, 5vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.profile-info .username {
    color: var(--text-secondary);
    font-size: clamp(0.9375rem, 3.5vw, 1.0625rem);
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-item {
    background: var(--bg-elevated);
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--border-bright);
    transform: translateY(-2px);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-bright) 0%, var(--gold-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: clamp(1.375rem, 5vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-left: 0.5rem;
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, var(--accent-primary), var(--gold));
    border-radius: 999px;
}

.catalog-grid {
    display: grid;
    gap: 1.25rem;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.product-card {
    background: rgba(26, 15, 46, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: clamp(1.5rem, 5vw, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.6s ease-out both;
}

.product-card:nth-child(1) { animation-delay: 0.2s; }
.product-card:nth-child(2) { animation-delay: 0.3s; }
.product-card:nth-child(3) { animation-delay: 0.4s; }
.product-card:nth-child(4) { animation-delay: 0.5s; }

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
}

.product-card:hover::before {
    opacity: 1;
}

.product-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.3));
    position: relative;
    z-index: 1;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.product-title {
    font-size: clamp(1.125rem, 4vw, 1.375rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.product-price {
    font-size: clamp(1.375rem, 5vw, 1.75rem);
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.product-desc {
    color: #a1a1aa;
    font-size: clamp(0.9375rem, 3.5vw, 1rem);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.btn {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 50%, #6D28D9 100%);
    color: var(--text-primary);
    border: none;
    padding: clamp(0.875rem, 3vw, 1.125rem) clamp(1.75rem, 5vw, 2.5rem);
    border-radius: 999px;
    font-size: clamp(1rem, 3.5vw, 1.125rem);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35), 0 0 40px rgba(139, 92, 246, 0.15);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.6), 0 0 60px rgba(139, 92, 246, 0.3);
    filter: brightness(1.1);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(0);
}

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

.btn-icon {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: clamp(0.875rem, 3vw, 1.125rem);
    border-radius: 999px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.btn-icon:hover {
    border-color: var(--border-bright);
    transform: scale(1.1);
}

.btn-icon.active {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    border-color: var(--accent-bright);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold-glow);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.5rem;
}

.badge.pro {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #6D28D9 100%);
    border-color: var(--accent-bright);
    color: var(--text-primary);
}

.empty-state {
    text-align: center;
    padding: clamp(3rem, 8vw, 4rem);
    color: var(--text-muted);
    background: var(--bg-surface);
    border-radius: 20px;
    border: 1px dashed var(--border);
}

.empty-state-icon {
    font-size: clamp(3rem, 8vw, 4rem);
    margin-bottom: 1rem;
    opacity: 0.6;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1.5rem;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 8, 32, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 0.5rem var(--app-safe-right) calc(0.5rem + var(--app-safe-bottom)) var(--app-safe-left);
    display: flex;
    justify-content: space-around;
    z-index: 1000;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bottom-nav::-webkit-scrollbar {
    display: none;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    min-width: 70px;
    flex-shrink: 0;
}

.nav-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.nav-label {
    font-size: 0.625rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-item.active {
    background: rgba(139, 92, 246, 0.15);
}

.nav-item.active .nav-label {
    color: var(--accent-bright);
}

.nav-item.active .nav-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
}

.nav-item:hover:not(.active) {
    background: rgba(139, 92, 246, 0.08);
}

/* Orders Screen */
.orders-list {
    display: grid;
    gap: 1rem;
}

.order-card {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.order-card:hover {
    border-color: var(--border-bright);
    transform: translateX(4px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.order-number {
    font-weight: 700;
    color: var(--accent-bright);
}

.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending { background: rgba(251, 191, 36, 0.2); color: var(--gold-glow); }
.status-processing { background: rgba(139, 92, 246, 0.2); color: var(--accent-bright); }
.status-completed { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.status-cancelled { background: rgba(239, 68, 68, 0.2); color: #f87171; }

.order-product {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.order-price {
    font-weight: 700;
    color: var(--text-primary);
}

/* Reviews Screen */
.reviews-list {
    display: grid;
    gap: 1rem;
}

.review-card {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.review-card:hover {
    border-color: var(--border-bright);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), #6D28D9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.review-user {
    font-weight: 600;
}

.review-rating {
    font-size: 0.875rem;
}

.review-date {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Top Screen */
.top-list {
    display: grid;
    gap: 1rem;
}

.top-card {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.top-card:hover {
    border-color: var(--border-bright);
    transform: translateX(4px);
}

.top-card.me {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(109, 40, 217, 0.1));
    border-color: var(--accent-primary);
}

.top-position {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), #6D28D9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.top-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.top-info {
    flex: 1;
}

.top-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.top-stats {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Cabinet Screen */
.daily-bonus-card, .referral-card, .wheel-card {
    background: var(--bg-surface);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.daily-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.daily-icon {
    font-size: 3rem;
    filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.4));
}

.daily-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.daily-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.daily-progress {
    margin-top: 1.25rem;
}

.daily-days {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.daily-day {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s ease;
}

.daily-day.completed {
    background: linear-gradient(135deg, var(--accent-primary), #6D28D9);
    border-color: var(--accent-bright);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.referral-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.code-box {
    background: var(--bg-elevated);
    border: 2px solid var(--accent-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.code-box:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: scale(1.05);
}

.referral-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.referral-stat {
    background: var(--bg-elevated);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.referral-value {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-bright), var(--gold-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.referral-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.referral-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Wheel Screen */
.wheel-container {
    position: relative;
    width: min(78vw, 330px);
    aspect-ratio: 1;
    margin: 2.35rem auto 1.6rem;
}

.wheel-rim {
    width: 100%;
    height: 100%;
    padding: 9px;
    border-radius: 50%;
    background: conic-gradient(from 15deg, #fff0a6, #a87920, #fff4bd, #8f5e12, #fff0a6);
    box-shadow:
        0 0 0 4px rgba(52, 19, 88, 0.95),
        0 0 0 7px rgba(207, 170, 75, 0.42),
        0 18px 55px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(147, 79, 255, 0.45);
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        repeating-conic-gradient(from -45deg, rgba(255, 241, 174, 0.98) 0 2deg, transparent 2deg 90deg),
        conic-gradient(from -45deg,
            #6d28d9 0 90deg,
            #b42359 90deg 180deg,
            #244fb6 180deg 270deg,
            #8f3cc0 270deg 360deg);
    border: 2px solid rgba(255, 245, 193, 0.75);
    position: relative;
    overflow: hidden;
    transform: rotate(0deg);
    transition: transform 4.2s cubic-bezier(0.12, 0.72, 0.08, 1);
    box-shadow: inset 0 0 45px rgba(9, 2, 22, 0.54);
    will-change: transform;
    backface-visibility: hidden;
}

.wheel::after {
    content: '';
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: inset 0 0 24px rgba(255,255,255,0.08);
    pointer-events: none;
}

.wheel-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    transform: translate(-50%, -50%);
    z-index: 4;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle, #42126f 0%, #190528 68%, #08010f 100%);
    border: 4px solid #efd277;
    box-shadow: 0 4px 18px rgba(0,0,0,.65), inset 0 0 16px rgba(163, 78, 255, 0.42);
    overflow: hidden;
}

.wheel-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    filter: drop-shadow(0 0 5px rgba(255, 44, 110, 0.72));
}

.wheel-prize {
    position: absolute;
    left: calc(50% + var(--x));
    top: calc(50% + var(--y));
    width: 92px;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.08rem;
    z-index: 2;
    color: #fff;
    text-align: center;
    line-height: 1.05;
    text-shadow: 0 2px 5px rgba(0,0,0,.8);
}

.wheel-prize-emoji {
    font-size: 1.45rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
}

.wheel-prize strong {
    max-width: 88px;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.wheel-pointer {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 58px;
    z-index: 10;
    filter: drop-shadow(0 6px 8px rgba(0,0,0,.65));
}

.wheel-pointer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #fff1a5, #d29725 55%, #fff0a3);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.wheel-pointer span {
    position: absolute;
    inset: 7px 9px 14px;
    z-index: 1;
    background: #4a176f;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.wheel-info {
    text-align: center;
    color: var(--text-muted);
    margin-top: 1rem;
}

.prize-grid,
.referral-rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0 0 1.25rem;
}

.prize-grid span,
.referral-rules span {
    padding: 0.75rem;
    border-radius: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.82rem;
    text-align: center;
}

.referral-rules span:last-child {
    grid-column: 1 / -1;
}

.app-version {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: center;
    opacity: 0.75;
}

.britannia-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 1rem;
    padding: 0.75rem;
    border-radius: 18px;
    background: rgba(14, 6, 29, 0.78);
    border: 1px solid rgba(244, 202, 75, 0.24);
    box-shadow: 0 14px 35px rgba(0,0,0,.3);
    backdrop-filter: blur(12px);
}

.britannia-footer div {
    display: grid;
    line-height: 1.3;
}

.britannia-footer strong {
    color: #f5d36c;
    font-size: 0.83rem;
    letter-spacing: 0.08em;
}

.britannia-footer span {
    color: var(--text-muted);
    font-size: 0.72rem;
}

@media (max-width: 560px) {
    .container {
        padding: 0.75rem;
    }

    .hero {
        padding-top: 1.6rem;
    }

    .cc-guardian {
        top: calc(var(--app-safe-top) + 50px);
        right: calc(var(--app-safe-right) + 14px);
        bottom: calc(var(--app-safe-bottom) + 90px);
        left: calc(var(--app-safe-left) + 14px);
        width: calc(100% - var(--app-safe-left) - var(--app-safe-right) - 28px);
        height: calc(var(--app-viewport-height) - var(--app-safe-top) - var(--app-safe-bottom) - 140px);
        opacity: 0.26;
    }

    .geass-watermark {
        width: min(52vw, 250px);
        right: calc(var(--app-safe-right) + 14px);
        top: calc(var(--app-safe-top) + 16px);
        opacity: 0.24;
    }

    .wheel-card {
        padding: 1rem 0.7rem 1.2rem;
    }

    .wheel-container {
        width: min(82vw, 310px);
    }

    .wheel-prize {
        --wheel-label-scale: .92;
        transform: translate(-50%, -50%) scale(var(--wheel-label-scale));
    }

}

@media (prefers-reduced-motion: reduce) {
    body,
    .cc-guardian,
    .geass-watermark {
        animation: none;
    }

    .cc-guardian {
        transform: none;
    }

    .wheel {
        transition-duration: 0.01ms;
    }
}

/* MVP 3.0: compact catalog and product details */
.hero {
    border-radius: 20px;
    padding: clamp(1.25rem, 4vw, 1.75rem);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.hero-badge {
    padding: 0.38rem 0.75rem;
    margin-bottom: 0.8rem;
}

.hero-title {
    font-size: clamp(1.55rem, 6vw, 2.45rem);
    margin-bottom: 0.55rem;
}

.hero-subtitle {
    font-size: clamp(0.875rem, 3vw, 1.05rem);
}

.section-heading,
.review-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.section-heading .section-title,
.review-section-head h3 {
    margin: 0;
}

.section-kicker,
.product-category {
    display: inline-flex;
    color: var(--accent-bright);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-count,
.review-section-head > span {
    min-width: 34px;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    text-align: center;
    font-size: 0.78rem;
}

.section-copy {
    margin: -0.35rem 0 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.category-tabs {
    display: flex;
    gap: 0.55rem;
    margin: 0 0 1rem;
    padding-bottom: 0.15rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    flex: 0 0 auto;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-secondary);
    background: rgba(19, 9, 35, 0.76);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.category-tab.active {
    color: #fff;
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, var(--accent-primary), #6d28d9);
    box-shadow: 0 7px 18px rgba(139, 92, 246, 0.25);
}

.catalog-grid {
    gap: 1rem;
}

.product-card {
    padding: clamp(1.15rem, 4vw, 1.5rem);
}

.product-icon,
.product-detail-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--accent-bright);
    border-radius: 14px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(196, 181, 253, 0.18);
}

.product-icon {
    margin-bottom: 0.8rem;
    font-size: 0;
}

.product-icon svg,
.product-detail-icon svg,
.empty-state-icon svg,
.nav-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.product-header {
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.product-desc {
    margin-bottom: 0.75rem;
}

.product-rating,
.detail-rating {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.product-rating strong,
.detail-rating strong {
    color: var(--text-primary);
}

.rating-stars,
.detail-rating > span,
.review-rating {
    color: var(--gold-glow);
}

.product-actions {
    display: flex;
    gap: 0.65rem;
}

.product-actions .btn {
    flex: 1;
}

.detail-back {
    margin-bottom: 0.8rem;
    padding: 0.45rem 0;
    border: 0;
    color: var(--accent-bright);
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.product-detail,
.product-reviews-section,
.review-form,
.review-access-note {
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(28, 14, 49, 0.94), rgba(14, 6, 27, 0.94));
    border-radius: 18px;
}

.product-detail,
.product-reviews-section {
    padding: clamp(1.15rem, 4vw, 1.55rem);
    margin-bottom: 1rem;
}

.product-detail-icon {
    margin-bottom: 0.85rem;
}

.product-detail h2 {
    margin: 0.35rem 0 0.55rem;
    font-size: clamp(1.35rem, 5vw, 2rem);
}

.product-detail > p {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.product-features {
    display: grid;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.product-features li {
    padding-left: 1.25rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 900;
}

.detail-buy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
}

.detail-buy-row > strong {
    color: var(--success);
    font-size: 1.45rem;
}

.product-reviews-section .review-card {
    margin-bottom: 0.75rem;
}

.review-product {
    display: inline-flex;
    margin: 0.65rem 0 0.2rem;
    color: var(--accent-bright);
    font-size: 0.72rem;
    font-weight: 700;
}

.review-form,
.review-access-note {
    margin-top: 1rem;
    padding: 1rem;
}

.review-form {
    display: grid;
    gap: 0.8rem;
}

.review-form h4 {
    margin: 0;
}

.review-form label {
    display: grid;
    gap: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
}

.review-form select,
.review-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 0.75rem;
    color: var(--text-primary);
    background: var(--bg-elevated);
    font: inherit;
}

.review-form textarea {
    min-height: 105px;
    resize: vertical;
}

.review-access-note {
    display: grid;
    gap: 0.25rem;
}

.review-access-note span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.nav-icon {
    display: grid;
    place-items: center;
}

.nav-icon svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 560px) {
    .hero {
        padding-top: 1.2rem;
    }

    .product-actions .btn,
    .detail-buy-row .btn {
        min-height: 44px;
    }
}

/* MVP 3.1: subscription discount, server balance and top-up */
.discount-banner,
.balance-card,
.subscription-card,
.topup-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-bright);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(46, 20, 79, 0.96), rgba(14, 6, 28, 0.96));
    box-shadow: 0 16px 42px rgba(9, 2, 22, 0.34);
}

.discount-banner,
.balance-card,
.subscription-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem;
    margin-bottom: 1rem;
}

.discount-banner::before,
.balance-card::before,
.subscription-card::before,
.topup-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--gold-glow), var(--accent-primary));
}

.discount-banner strong,
.balance-card strong,
.subscription-card strong {
    display: block;
    margin: 0.22rem 0;
    font-size: clamp(1.05rem, 4vw, 1.35rem);
}

.discount-banner p,
.balance-card p,
.subscription-card p,
.topup-card > p {
    color: var(--text-muted);
    font-size: 0.83rem;
    line-height: 1.5;
}

.discount-banner .btn,
.balance-card .btn,
.action-row .btn {
    width: auto;
    min-width: 150px;
    padding: 0.72rem 1rem;
    font-size: 0.84rem;
}

.btn-secondary {
    color: var(--accent-bright);
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(196, 181, 253, 0.32);
    box-shadow: none;
}

.subscription-note {
    margin: 0 0 1rem;
    padding: 0.75rem;
    border-radius: 12px;
    color: #f6dc76;
    background: rgba(245, 158, 11, 0.09);
    border: 1px solid rgba(245, 158, 11, 0.22);
    font-size: 0.8rem;
}

.subscription-card {
    align-items: stretch;
    flex-direction: column;
}

.action-row {
    display: flex;
    gap: 0.7rem;
}

.subscription-status {
    padding: 0.7rem 0.8rem;
    border-radius: 11px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    font-size: 0.8rem;
}

.subscription-status.success {
    color: var(--success);
    border-color: rgba(74, 222, 128, 0.3);
    background: rgba(74, 222, 128, 0.08);
}

.subscription-status.warning {
    color: var(--gold-glow);
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.08);
}

.subscription-status.error {
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.08);
}

.topup-card {
    padding: clamp(1.2rem, 5vw, 1.7rem);
}

.topup-card h2 {
    margin: 0.25rem 0 0.45rem;
    color: #f6dc76;
    font-size: clamp(2rem, 8vw, 3rem);
}

.field-label {
    display: block;
    margin: 1.15rem 0 0.4rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
}

.topup-input {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid var(--border-bright);
    border-radius: 14px;
    outline: none;
    color: var(--text-primary);
    background: rgba(11, 4, 22, 0.74);
    font: inherit;
    font-size: 1.25rem;
    font-weight: 800;
}

.topup-input:focus {
    border-color: var(--accent-bright);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 0.7rem 0 1.2rem;
}

.quick-amounts button {
    padding: 0.58rem 0.3rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.payment-methods {
    display: grid;
    gap: 0.7rem;
}

.payment-method {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text-primary);
    background: rgba(49, 27, 82, 0.72);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.payment-method:hover {
    border-color: var(--border-bright);
}

.payment-method > span:nth-child(2) {
    display: grid;
    gap: 0.12rem;
}

.payment-method small {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.payment-method-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--accent-bright);
    background: rgba(139, 92, 246, 0.16);
    font-size: 1.2rem;
    font-weight: 900;
}

.payment-disclaimer {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border);
}

.pending-topup {
    margin-bottom: 1rem;
    padding: 1.15rem;
    border: 1px solid rgba(246, 220, 118, 0.45);
    border-radius: 18px;
    color: var(--text-primary);
    background: linear-gradient(145deg, rgba(68, 38, 103, 0.96), rgba(21, 9, 39, 0.98));
    box-shadow: 0 16px 38px rgba(9, 2, 22, 0.32);
}

.pending-topup > strong {
    display: block;
    margin: 0.35rem 0;
    color: #f6dc76;
    font-size: clamp(1.55rem, 6vw, 2.2rem);
}

.pending-topup p,
.pending-topup small {
    color: var(--text-muted);
}

.pending-topup-actions {
    display: grid;
    gap: 0.65rem;
    margin: 1rem 0 0.75rem;
}

.pending-topup-actions .btn {
    width: 100%;
}

@media (max-width: 560px) {
    .discount-banner,
    .balance-card {
        align-items: stretch;
        flex-direction: column;
    }

    .discount-banner .btn,
    .balance-card .btn,
    .action-row .btn {
        width: 100%;
        min-width: 0;
    }

    .action-row {
        flex-direction: column;
    }

    .quick-amounts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile WebView performance mode: keeps the art direction, avoids continuous full-screen repaints. */
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
    html.mobile-performance body {
        background:
            radial-gradient(circle at 82% 10%, rgba(176, 82, 255, 0.20), transparent 35%),
            radial-gradient(circle at 12% 66%, rgba(93, 21, 177, 0.28), transparent 42%),
            linear-gradient(145deg, #05010c 0%, #23053d 48%, #0b0115 100%);
        background-size: 100% 100%;
        animation: none;
    }

    html.mobile-performance body::before {
        display: none;
    }

    html.mobile-performance .world-decor {
        contain: strict;
    }

    html.mobile-performance .world-decor::before {
        opacity: 0.25;
        background:
            linear-gradient(115deg, transparent 0 49%, rgba(202, 148, 255, 0.08) 49.5%, transparent 50%),
            repeating-radial-gradient(circle at 50% 50%, transparent 0 94px, rgba(145, 64, 214, 0.05) 96px 97px, transparent 99px 188px);
        background-size: 360px 360px, 100% 100%;
    }

    html.mobile-performance .cc-guardian,
    html.mobile-performance .geass-watermark {
        filter: none;
    }

    html.mobile-performance .cc-guardian {
        animation: ccSwayMobile 14s ease-in-out infinite;
        opacity: 0.23;
        will-change: transform;
    }

    html.mobile-performance .geass-watermark {
        animation: none;
        transform: rotate(-3deg);
        opacity: 0.21;
        will-change: auto;
    }

    html.mobile-performance .language-switch,
    html.mobile-performance .top-account,
    html.mobile-performance .product-card,
    html.mobile-performance .bottom-nav,
    html.mobile-performance .britannia-footer {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    html.mobile-performance .language-switch,
    html.mobile-performance .top-account {
        background-color: rgba(24, 10, 48, 0.96);
    }

    html.mobile-performance .product-card {
        background: rgba(29, 16, 50, 0.94);
    }

    html.mobile-performance .bottom-nav {
        background: #100822;
        box-shadow: 0 -8px 24px rgba(3, 1, 8, 0.26);
    }

    html.mobile-performance .britannia-footer {
        background: rgba(14, 6, 29, 0.96);
    }

    html.mobile-performance .hero,
    html.mobile-performance .info-card,
    html.mobile-performance .product-card,
    html.mobile-performance .profile-avatar::before {
        animation: none;
    }

    html.mobile-performance .hero::before,
    html.mobile-performance .hero::after {
        animation: none;
        display: none;
    }

    html.mobile-performance .product-card,
    html.mobile-performance .nav-item,
    html.mobile-performance .btn,
    html.mobile-performance .category-tab,
    html.mobile-performance .payment-method {
        transition-duration: 0.12s;
    }

    html.mobile-performance .container {
        isolation: isolate;
    }

    html.mobile-performance .products-grid,
    html.mobile-performance .orders-list,
    html.mobile-performance .reviews-list {
        overflow-anchor: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.mobile-performance .cc-guardian {
        animation: none;
        transform: none;
        will-change: auto;
    }
}
