:root {
     
    --bg-dark: #0b0812;
    
     
    --glass-bg: rgba(25, 20, 40, 0.35); 
    
     
    --glass-border: rgba(255, 255, 255, 0.12); 
    
    --accent: #a78bfa;
    --accent-hover: #8b5cf6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

html[data-theme="light"] {
    --bg-dark: #ddd7e7;
    --glass-bg: rgba(248, 245, 253, 0.82);
    --glass-border: rgba(100, 78, 135, 0.24);
    --accent: #6843a8;
    --accent-hover: #57358f;
    --text-main: #30253f;
    --text-muted: #62596f;
}

 
html[data-theme="light"] .glass-btn:not(.accent):not(.danger) { color: var(--text-main); background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.3); }
html[data-theme="light"] .glass-btn:not(.accent):not(.danger):hover { background: rgba(139, 92, 246, 0.2); }
html[data-theme="light"] .glass-input { background: rgba(255, 255, 255, 0.65); color: var(--text-main); border: 1px solid rgba(139, 92, 246, 0.3); font-weight: 500; }
html[data-theme="light"] .glass-inner-panel { background: rgba(139, 92, 246, 0.05); border: 1px solid rgba(139, 92, 246, 0.2); }

 
html[data-theme="light"] .modal-overlay { background: rgba(46, 16, 101, 0.4); backdrop-filter: blur(4px); }

 
html[data-theme="light"] .glass-modal,
html[data-theme="light"] #profile-dropdown,
html[data-theme="light"] .my-tooltip { 
    background: var(--floating-glass);
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 40px rgba(72, 48, 106, 0.14);
}

 
html[data-theme="light"] [style*="color: #cbd5e1"] { color: #6d28d9 !important; font-weight: 500; }
html[data-theme="light"] [style*="color: #fca5a5"] { color: #dc2626 !important; font-weight: bold; }
html[data-theme="light"] .warning-text { color: #dc2626 !important; }

body { margin: 0; font-family: 'Space Grotesk', sans-serif; background-color: var(--bg-dark); color: var(--text-main); overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; transition: background-color 0.6s, color 0.6s; }
.payment-breakdown { padding:1rem; margin:1rem 0; border:1px solid var(--glass-border); border-radius:14px; background:rgba(167,139,250,.06); }
.payment-breakdown:empty { display:none; }
.payment-breakdown > div { display:flex; justify-content:space-between; align-items:baseline; gap:1rem; color:var(--text-muted); font-size:.85rem; line-height:1.5; }
.payment-breakdown > div + div { margin-top:.55rem; }
.payment-breakdown strong { color:var(--text-main); white-space:nowrap; font-variant-numeric:tabular-nums; }
.payment-breakdown > div:last-child { border-top:1px solid var(--glass-border); padding-top:.7rem; color:var(--text-main); }

.bg-shapes { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; overflow: hidden; background: radial-gradient(circle at center, rgba(139, 92, 246, 0.05) 0%, transparent 70%); }
.shape { position: absolute; border-radius: 50%; filter: blur(90px); animation: float 20s infinite alternate ease-in-out; opacity: 0.5; }
.shape-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: rgba(99, 102, 241, 0.4); }
.shape-2 { bottom: -10%; right: -10%; width: 60vw; height: 60vw; background: rgba(139, 92, 246, 0.35); animation-delay: -5s; }
.shape-3 { top: 30%; left: 30%; width: 40vw; height: 40vw; background: rgba(59, 130, 246, 0.25); animation-delay: -10s; opacity: 0.4; }
html[data-theme="dark"] .shape { opacity: 0.22; }
html[data-theme="dark"] .bg-shapes { background: radial-gradient(circle at center, rgba(139, 92, 246, 0.02) 0%, transparent 70%); }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 10%) scale(1.1); }
    100% { transform: translate(-5%, 5%) scale(0.95); }
}

.glass-panel, .glass-header, .glass-sidebar, .glass-modal, .product-tile, .glass-inner-panel { background: var(--glass-bg); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); border: 1px solid var(--glass-border); border-radius: 20px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.1); transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); padding: 1.5rem; }

.glass-header { position: relative; z-index: 1000; margin: 1.5rem auto; max-width: 1400px; width: calc(100% - 3rem); padding: 0.8rem 1.5rem; display: flex; justify-content: space-between; align-items: center; box-sizing: border-box; }
.logo { display:flex; align-items:center; gap:12px; user-select:none; padding:0; border:0; background:transparent; color:var(--text-main); font:inherit; cursor:pointer; text-align:start; flex-shrink:0; }
.logo:focus-visible { outline:2px solid var(--accent); outline-offset:6px; border-radius:14px; }
.user-controls { display: flex; gap: 1rem; align-items: center; }

.circle-btn { background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); border: 1px solid rgba(255, 255, 255, 0.15); color: var(--text-main); width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1); }
.circle-btn:hover { transform: translateY(-3px) scale(1.05); border-color: rgba(255, 255, 255, 0.3); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.2); }
html[data-theme="light"] .circle-btn { background: rgba(255, 255, 255, 0.55); color: var(--text-main); border-color: var(--glass-border); }
.logo-portrait { display:block; width:42px; height:42px; flex:0 0 42px; overflow:hidden; border:1px solid rgba(167,139,250,.4); border-radius:14px; background:rgba(167,139,250,.08); box-shadow:0 3px 12px rgba(94,56,157,.12),inset 0 1px 0 rgba(255,255,255,.15); }
.logo-avatar { display:block; width:100%; height:100%; object-fit:cover; object-position:50% 40%; border:0; border-radius:0; box-shadow:none; filter:none; }
.logo-text { font-size:20px; line-height:1.15; letter-spacing:-.02em; font-weight:600; white-space:nowrap; background:linear-gradient(110deg,#b9a0ff,#80aaff); background-clip:text; -webkit-background-clip:text; color:transparent; }
.logo-mail { font-weight:600; color:inherit; }
html[data-theme="light"] .logo-text { background-image:linear-gradient(110deg,#7950b7,#4267b4); }
html[data-theme="light"] .logo-portrait { border-color:rgba(111,71,170,.3); background:rgba(167,139,250,.07); }

.app-container { display: flex; flex: 1; margin: 0 auto 2rem auto; max-width: 1400px; width: 100%; gap: 2rem; padding: 0 1.5rem; box-sizing: border-box; }
.glass-sidebar { width: 250px; padding: 1.5rem; display: flex; flex-direction: column; flex-shrink: 0; }
.nav-item { 
    background: transparent; 
    border: none; 
    color: var(--text-muted); 
    padding: 0.8rem 1rem; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: all 0.3s; 
    font-size: 1rem; 
    margin-bottom: 0.5rem; 
    
     
    display: flex !important; 
    align-items: center; 
    gap: 0.8rem;
}

 
.nav-item[style*="none"] {
    display: none !important;
}

 
.nav-item svg {
    flex-shrink: 0;
    margin-top: -2px;  
}

.nav-item:hover {
    background: rgba(0, 0, 0, 0.2); 
    color: var(--text-main); 
}
.nav-item.active { 
    background: rgba(0, 0, 0, 0.35); 
    color: var(--text-main); 
    box-shadow: inset 3px 0 0 var(--accent); 
}
html[data-theme="light"] .nav-item:hover { background: rgba(0, 0, 0, 0.05); }
html[data-theme="light"] .nav-item.active { background: rgba(0, 0, 0, 0.12); }
.content-area { flex: 1; display: flex; flex-direction: column; padding: 0.5rem 1.5rem; min-width: 0; }
.content-section { display: none; animation: fadeIn 0.3s; }
.content-section.active-section { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.product-tile { padding: 1.5rem; text-align: center; display: flex; flex-direction: column; gap: 1rem; position: relative; }
.product-tile:hover { transform: translateY(-5px); border-color: rgba(99, 102, 241, 0.5); }
.product-price { font-size: 1.25rem; font-weight: bold; color: var(--accent); }

.glass-btn { background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); border: 1px solid rgba(255, 255, 255, 0.15); color: white; padding: 0.6rem 1.2rem; border-radius: 12px; cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); font-size: 1rem; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.1); }
.glass-btn:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.25); }
.glass-btn.accent { background: var(--accent); border-color: var(--accent); font-weight: bold; }
.glass-btn.accent:hover { background: var(--accent-hover); }

.glass-input { width: 100%; background: rgba(0, 0, 0, 0.2); backdrop-filter: blur(12px) saturate(150%); -webkit-backdrop-filter: blur(12px) saturate(150%); border: 1px solid rgba(255, 255, 255, 0.1); color: white; padding: 0.8rem; border-radius: 12px; margin-bottom: 1rem; box-sizing: border-box; outline: none; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); }
.glass-input:focus { background: rgba(0, 0, 0, 0.3); border-color: var(--accent); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(167, 139, 250, 0.2); }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; z-index: 100; }
.glass-modal { width: 100%; max-width: 400px; padding: 2.5rem 2rem; position: relative; }
html, body, .main-navigation, .quantity-dialog { scrollbar-width:thin; scrollbar-color:var(--accent) transparent; }
* { scrollbar-width:thin; scrollbar-color:var(--accent) transparent; }
html:has(dialog[open]), html:has(.modal-overlay[style*="display: flex"]) { overflow:hidden; }
.modal-overlay { box-sizing:border-box; height:100dvh; padding:16px; overflow-y:auto; }
.modal-overlay > .glass-modal { box-sizing:border-box; max-height:calc(100dvh - 32px); overflow-y:auto; overscroll-behavior:contain; }
dialog { overscroll-behavior:contain; }
.content-section .glass-input { max-width:100%; box-sizing:border-box; }
.quantity-dialog { box-sizing:border-box; width:min(440px,calc(100vw - 32px)); max-width:440px; max-height:calc(100dvh - 32px); overflow:auto; padding:clamp(1.25rem,5vw,2rem); color:var(--text-main); text-align:center; }
.quantity-dialog::backdrop { background:rgba(11,8,18,.6); backdrop-filter:blur(7px); }
#purchase-modal.quantity-dialog { position:fixed; inset-inline:0; bottom:auto; top:calc(var(--purchase-viewport-top, 0px) + var(--purchase-viewport-height, 100dvh) / 2); transform:translateY(-50%); margin:0 auto; max-height:calc(var(--purchase-viewport-height, 100dvh) - 24px); overscroll-behavior:contain; transition:none; }
.quantity-emblem { display:grid; place-items:center; margin:0 auto 1rem; width:50px; height:50px; border:1px solid var(--glass-border); border-radius:16px; color:var(--accent); background:rgba(167,139,250,.12); }
.quantity-emblem svg { width:26px; height:26px; }
.quantity-dialog h2 { margin:0; font-size:1.4rem; }
.quantity-dialog p { color:var(--text-muted); font-size:.9rem; line-height:1.6; margin:.65rem 0 1.4rem; }
.quantity-dialog #purchase-quantity { box-sizing:border-box; width:100%; margin:0; padding:1rem; text-align:center; font:600 2rem 'Space Grotesk',sans-serif; border:1px solid var(--glass-border); border-radius:16px; background:rgba(167,139,250,.07); color:var(--text-main); appearance:textfield; -moz-appearance:textfield; }
#purchase-quantity::-webkit-inner-spin-button, #purchase-quantity::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.quantity-presets { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.6rem; margin:.85rem 0 1.5rem; }
.quantity-presets button { padding:.7rem .25rem; border:1px solid var(--glass-border); border-radius:12px; background:rgba(167,139,250,.06); color:var(--text-muted); font:inherit; cursor:pointer; }
.quantity-presets button:hover, .quantity-presets button[aria-pressed="true"] { color:var(--accent); border-color:var(--accent); background:rgba(167,139,250,.15); }
.quantity-actions { display:grid; grid-template-columns:1fr 1fr; gap:.75rem; }
.quantity-actions button { min-width:0; }
.quantity-dialog :is(button,input):focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.close-btn { position: absolute; top: 1rem; right: 1.5rem; background: transparent; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }
.auth-switch { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-muted); }
.auth-switch a { color: var(--accent); text-decoration: none; font-weight: bold; }
.error-msg { color: #fca5a5; font-size: 0.9rem; text-align: center; margin-top: 0.5rem; min-height: 1.2rem; }

.profile-toast { position:fixed; z-index:2000; top:50%; top:50dvh; left:50%; transform:translate(-50%,-50%); display:flex; align-items:center; justify-content:center; gap:.7rem; box-sizing:border-box; width:max-content; max-width:min(440px,calc(100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right))); margin:0; padding:clamp(.9rem,3vw,1.25rem); border:1px solid var(--glass-border); border-radius:16px; background:var(--floating-glass); color:var(--text-main); backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px); box-shadow:0 10px 35px var(--glass-shadow); font-size:clamp(.85rem,2.5vw,.95rem); line-height:1.5; text-align:center; overflow-wrap:anywhere; pointer-events:none; }
.profile-toast::before { content:'✓'; display:grid; place-items:center; flex-shrink:0; width:28px; height:28px; border-radius:50%; color:var(--accent); background:rgba(167,139,250,.15); }
.profile-toast.is-error::before { content:'!'; }
.profile-toast { top:max(var(--toast-top,104px),calc(12px + env(safe-area-inset-top))); right:auto; bottom:auto; transform:translateX(-50%); }
.profile-toast.is-loading::before { content:''; width:22px; height:22px; box-sizing:border-box; border:2px solid rgba(167,139,250,.25); border-top-color:var(--accent); animation:toast-spin .8s linear infinite; }
@keyframes toast-spin { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .profile-toast.is-loading::before { animation:none; } }
.profile-toast[hidden] { display:none; }
#auth-modal,#key-modal { box-sizing:border-box; padding:20px; height:100dvh; overflow-y:auto; }
.auth-card { box-sizing:border-box; width:100%; max-width:440px; max-height:calc(100dvh - 40px); overflow-y:auto; padding:2rem; color:var(--text-main); }
.auth-emblem { display:grid; place-items:center; width:48px; height:48px; border:1px solid var(--glass-border); border-radius:15px; background:rgba(167,139,250,.1); color:var(--accent); margin-bottom:1.2rem; }
.auth-emblem svg { width:25px; height:25px; }
.auth-card h2 { font-size:1.45rem; margin:0 0 .6rem; }
.auth-description { color:var(--text-muted); font-size:.88rem; line-height:1.65; margin:0 0 1.5rem; }
.auth-card label { display:block; color:var(--text-muted); font-size:.8rem; margin-bottom:.6rem; }
.auth-key-field { display:flex; align-items:center; border:1px solid var(--glass-border); border-radius:12px; overflow:hidden; background:rgba(167,139,250,.06); }
.auth-key-field .glass-input,.auth-key-field .glass-input:focus,html[data-theme="light"] .auth-key-field .glass-input { border:0; background:transparent; margin:0; min-width:0; box-shadow:none; }
.auth-key-field button { padding:.8rem; flex-shrink:0; font-size:.75rem; }
.auth-key-field:focus-within { outline:2px solid var(--accent); outline-offset:2px; }
.auth-card :is(button,a):focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.auth-card .error-msg:empty { display:none; }
.auth-card .error-msg { color:#fda4af; font-size:.85rem; line-height:1.5; }
html[data-theme="light"] .auth-card .error-msg { color:#a6264a; }
.auth-card .api-key-group { flex-wrap:wrap; }
.auth-card .api-key-group input { flex:1 1 100%; font-size:.8rem; }
@media(max-width:480px) { .auth-card { padding:1.5rem; } .auth-switch { font-size:.82rem; line-height:1.7; } }
.help-heading { margin-bottom:1.5rem; }
.help-heading h2 { margin:0 0 .5rem; font-size:1.7rem; }
.help-heading p,.help-card p,.help-empty p { color:var(--text-muted); line-height:1.65; font-size:.9rem; }
.help-layout { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr); gap:1.4rem; align-items:start; }
.help-main,.help-aside { min-width:0; display:flex; flex-direction:column; gap:1rem; }
.help-search label { display:block; font-size:.8rem; color:var(--text-muted); margin-bottom:.65rem; }
.help-search input { width:100%; box-sizing:border-box; padding:.9rem 1rem; border:1px solid var(--glass-border); border-radius:12px; background:rgba(167,139,250,.07); color:var(--text-main); font:inherit; font-size:.9rem; }
.help-search input::placeholder { color:var(--text-muted); opacity:1; }
.help-categories { display:flex; gap:.5rem; flex-wrap:wrap; }
.help-category { display:flex; align-items:center; gap:.5rem; border:1px solid var(--glass-border); border-radius:12px; background:var(--glass-bg); color:var(--text-muted); padding:.7rem .8rem; font:inherit; font-size:.8rem; cursor:pointer; }
.help-category:hover,.help-category[aria-pressed="true"] { color:var(--accent); background:rgba(167,139,250,.15); border-color:var(--accent); }
#help-section svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.help-category svg { width:18px!important; height:18px!important; }
.help-answers > h3 { margin:.5rem 0 1rem; font-size:1rem; }
.help-question-list { display:flex; flex-direction:column; gap:.7rem; }
.help-question { padding:0; overflow:hidden; }
.help-question summary { position:relative; padding:1.1rem 3rem 1.1rem 1.2rem; padding-inline-end:3rem; padding-inline-start:1.2rem; list-style:none; cursor:pointer; font-size:.92rem; line-height:1.5; font-weight:500; }
.help-question summary::-webkit-details-marker { display:none; }
.help-question summary::after { content:'+'; position:absolute; inset-inline-end:1.2rem; top:1rem; font-size:1.3rem; font-weight:400; color:var(--accent); }
.help-question[open] summary::after { content:'−'; }
.help-question[open] summary { color:var(--accent); }
.help-question p { margin:0; padding:0 1.2rem 1.2rem; color:var(--text-muted); font-size:.88rem; line-height:1.8; }
.help-card > svg { color:var(--accent); padding:.65rem; border:1px solid var(--glass-border); border-radius:14px; background:rgba(167,139,250,.09); }
.help-card h3 { font-size:1rem; margin:1rem 0 .5rem; }
.help-card p { margin:0 0 1rem; }
.help-card .glass-btn { display:block; width:100%; box-sizing:border-box; text-align:center; text-decoration:none; line-height:1.5; font-size:.85rem; white-space:normal; }
.help-handle { display:block; color:var(--accent); font-size:.85rem; margin-bottom:1rem; }
.help-email { display:block; margin-top:1rem; color:var(--accent); font-size:.82rem; text-align:center; overflow-wrap:anywhere; text-underline-offset:3px; }
#help-section :is(button,input,a,summary):focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
@media(max-width:1000px) { .help-layout { grid-template-columns:1fr; } .help-aside { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); } .help-aside > :last-child { grid-column:1/-1; } }
@media(max-width:600px) { .help-aside { display:flex; } .help-search,.help-card { padding:1.2rem; } .help-heading h2 { font-size:1.45rem; } .help-category { flex:1 1 auto; justify-content:center; } }
.profile-title { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:1.5rem; }
.profile-title h2 { margin:0 0 .45rem; }
.profile-title p, .profile-muted, .profile-wallet p, .profile-rank-content p { color:var(--text-muted); font-size:.85rem; line-height:1.6; }
.profile-title p { margin:0; }
#profile-status:empty, #profile-key-status:empty { display:none; }
#profile-status { padding:.8rem 1rem; margin-bottom:1rem; border:1px solid var(--glass-border); border-radius:12px; color:var(--text-muted); }
.profile-hero { display:flex; align-items:center; gap:1.25rem; padding:1.5rem; margin-bottom:1.25rem; }
.profile-avatar { display:grid; place-items:center; width:64px; height:64px; flex-shrink:0; border-radius:20px; color:var(--accent); background:rgba(167,139,250,.1); border:1px solid rgba(167,139,250,.25); }
.profile-avatar svg { width:32px; height:32px; }
.profile-identity { min-width:0; }
.profile-identity h3 { margin:.35rem 0 .65rem; font-size:1.25rem; overflow-wrap:anywhere; }
.profile-eyebrow { color:var(--text-muted); font-size:.8rem; }
.profile-meta { display:flex; flex-wrap:wrap; gap:.45rem 1rem; font-size:.75rem; color:var(--text-muted); }
.profile-active { margin-inline-start:auto; padding:.4rem .75rem; border:1px solid rgba(167,139,250,.25); background:rgba(167,139,250,.08); color:var(--accent); border-radius:20px; font-size:.75rem; white-space:nowrap; }
.profile-overview { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:1.25rem; }
.profile-wallet, .profile-rank { padding:1.5rem; }
.profile-wallet { display:flex; flex-direction:column; align-items:flex-start; gap:1.25rem; }
.profile-wallet #prof-balance { display:block; color:var(--accent); font-size:2.7rem; line-height:1.2; margin:0; padding:.2rem 0; direction:ltr; unicode-bidi:isolate; overflow-wrap:anywhere; max-width:100%; }
.profile-wallet .glass-btn { margin-top:auto; min-height:42px; }
.profile-card-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.profile-card h3, .profile-card-heading h3, .profile-wallet h3, .profile-stat h3 { font-size:1.05rem; font-weight:600; line-height:1.4; color:var(--text-main); margin:0; }
.profile-period { font-size:.7rem; color:var(--text-muted); }
.profile-rank-line { display:flex; align-items:center; justify-content:space-between; margin-top:1.1rem; gap:1rem; }
.profile-rank-line strong { font-size:1.3rem; }
.profile-rank-badge { display:flex; align-items:center; gap:.65rem; min-width:0; }
.profile-rank-line b { font-size:1.9rem; color:var(--accent); }
#profile-rank-content p { font-size:.8rem; color:var(--text-muted); }
.profile-rank progress { width:100%; height:6px; border:0; border-radius:20px; overflow:hidden; background:rgba(167,139,250,.15); accent-color:var(--accent); }
.profile-rank progress::-webkit-progress-bar { background:rgba(167,139,250,.15); }
.profile-rank progress::-webkit-progress-value { background:var(--accent); }
.profile-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; min-width:0; }
.profile-stat { padding:1.5rem; display:flex; flex-direction:column; justify-content:space-between; gap:1rem; min-height:140px; box-sizing:border-box; }
.profile-stat strong { font-size:1.6rem; font-weight:600; line-height:1.2; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.profile-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.25rem; margin-top:1.25rem; }
.profile-card { padding:1.5rem; min-width:0; }
.profile-details { margin:1rem 0 0; }
.profile-details > div { display:flex; gap:1rem; justify-content:space-between; padding:.7rem 0; border-bottom:1px solid var(--glass-border); font-size:.8rem; }
.profile-details > div:last-child { border:0; }
.profile-details dt { color:var(--text-muted); }
.profile-details dd { margin:0; text-align:end; overflow-wrap:anywhere; }
.profile-key-field { display:flex; gap:.5rem; align-items:center; margin:.5rem 0 .8rem; }
.profile-key-field .glass-input { min-width:0; margin:0; font-family:monospace; }
.profile-actions { display:flex; gap:.6rem; flex-wrap:wrap; align-items:center; }
.profile-actions .glass-btn { font-size:.8rem; }
.profile-link { border:0; background:none; color:var(--accent); padding:.4rem 0; font:inherit; font-size:.8rem; cursor:pointer; text-align:start; }
.profile-link:hover { text-decoration:underline; }
.profile-key-warning { display:flex; align-items:flex-start; gap:.65rem; margin-top:1rem; padding:.85rem 1rem; border:1px solid rgba(251,191,36,.28); border-radius:12px; background:rgba(251,191,36,.07); color:#fcd58a; font-size:.8rem; line-height:1.6; }
.profile-key-warning svg { width:19px; height:19px; flex-shrink:0; margin-top:2px; }
html[data-theme="light"] .profile-key-warning { color:#855315; background:rgba(217,145,35,.08); border-color:rgba(180,115,20,.25); }
.profile-signout { grid-column:1/-1; display:flex; justify-content:center; padding-top:.3rem; }
.profile-signout-btn { display:flex; align-items:center; justify-content:center; gap:.65rem; padding:.8rem 1.2rem; border:1px solid rgba(248,113,113,.22); border-radius:14px; background:rgba(248,113,113,.05); color:#f4a2ae; cursor:pointer; font:inherit; font-size:.85rem; transition:background .2s,border-color .2s; }
.profile-signout-btn svg { width:19px; height:19px; }
.profile-signout-btn:hover { background:rgba(248,113,113,.12); border-color:rgba(248,113,113,.45); }
html[data-theme="light"] .profile-signout-btn { color:#a33b54; }
@media(max-width:600px) { .profile-signout-btn { max-width:100%; } }
.profile-activity { display:flex; flex-wrap:wrap; gap:.5rem .8rem; align-items:center; padding:.9rem 0; border-bottom:1px solid var(--glass-border); }
.profile-activity > div { display:flex; flex-direction:column; gap:.4rem; flex:1; min-width:110px; }
.profile-activity strong { font-size:.85rem; overflow-wrap:anywhere; }
.profile-activity small { font-size:.7rem; color:var(--text-muted); }
.profile-activity b { font-size:.8rem; white-space:nowrap; }
.profile-activity .profile-link { font-size:.7rem; }
.profile-empty { padding:1.25rem 0; color:var(--text-muted); font-size:.85rem; }
.profile-network { grid-column:1/-1; display:flex; justify-content:space-between; align-items:center; gap:1rem; }
#profile-ips { display:flex; flex-wrap:wrap; gap:.5rem; }
#profile-ips code { direction:ltr; padding:.4rem .6rem; border-radius:8px; background:rgba(167,139,250,.08); border:1px solid var(--glass-border); font-size:.75rem; overflow-wrap:anywhere; }
#profile-section button:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
@media(max-width:1100px) { .profile-columns { grid-template-columns:1fr; } .profile-stats { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .profile-overview { grid-template-columns:1fr; } .profile-hero { flex-wrap:wrap; gap:.8rem; } .profile-identity { flex:1; } .profile-active { margin-inline-start:0; } .profile-network { flex-direction:column; align-items:stretch; } .profile-title { align-items:flex-start; } .profile-title p { font-size:.75rem; } .profile-stat { padding:1rem; } .profile-stat strong { font-size:1.2rem; } }
@media(max-width:600px) { .profile-identity { min-width:calc(100% - 80px); } .profile-active { margin-inline-start:calc(64px + .8rem); } }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.purchase-heading { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:1.4rem; }
.purchase-heading h2 { margin:0 0 .45rem; }
.purchase-heading p { margin:0; color:var(--text-muted); font-size:.85rem; line-height:1.5; }
.purchase-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin-bottom:1.25rem; }
.purchase-stats > div { padding:1.2rem 1.4rem; display:flex; flex-direction:column; gap:.7rem; min-width:0; }
.purchase-stats span { font-size:.8rem; color:var(--text-muted); flex:1; }
.purchase-stats strong { font-size:1.6rem; font-weight:600; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.purchase-filters { display:grid; grid-template-columns:minmax(160px,1.5fr) minmax(135px,1fr) minmax(130px,1fr) auto; align-items:end; gap:.8rem; padding:1.2rem; }
.purchase-filters label,.purchase-filter-field { display:flex; flex-direction:column; gap:.5rem; min-width:0; font-size:.75rem; color:var(--text-muted); }
.purchase-filters { position:relative; z-index:3; overflow:visible; }
.purchase-picker { position:relative; min-width:0; }
.purchase-picker-trigger { width:100%; min-height:41px; padding:.7rem .75rem; border:1px solid var(--glass-border); border-radius:10px; background:rgba(167,139,250,.06); color:var(--text-main); font:inherit; font-size:.82rem; text-align:start; cursor:pointer; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; transition:background .2s,border-color .2s; }
.purchase-picker-trigger:hover,.purchase-picker-trigger[aria-expanded="true"] { border-color:var(--accent); background:rgba(167,139,250,.12); }
.purchase-picker-trigger:focus-visible,.purchase-picker-option:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.purchase-picker-menu { position:absolute; top:calc(100% + 10px); left:50%; transform:translateX(-50%); width:100%; min-width:0; max-height:260px; overflow:auto; box-sizing:border-box; padding:.55rem; border-radius:18px; background:rgba(25,20,40,.97); z-index:20; scrollbar-width:thin; scrollbar-color:var(--accent) transparent; animation:purchase-picker-in .18s ease-out; }
.purchase-picker-menu[hidden] { display:none; }
html[data-theme="light"] .purchase-picker-menu { background-color:var(--floating-glass); }
.purchase-picker-option { width:100%; font-size:.82rem; gap:.4rem; }
.purchase-picker-option > span:first-child { overflow-wrap:anywhere; }
.purchase-picker-option[aria-selected="true"] { background:rgba(167,139,250,.13); border-color:rgba(167,139,250,.3); }
.purchase-picker-check { margin-inline-start:auto; color:var(--accent); visibility:hidden; }
[aria-selected="true"] > .purchase-picker-check { visibility:visible; }
@keyframes purchase-picker-in { from { opacity:0; translate:0 -6px; } to { opacity:1; translate:0 0; } }
@media(prefers-reduced-motion:reduce) { .purchase-picker-menu { animation:none; } }
.purchase-filters input,.purchase-filters select,.purchase-support textarea { box-sizing:border-box; width:100%; min-width:0; border:1px solid var(--glass-border); border-radius:10px; background:rgba(167,139,250,.06); color:var(--text-main); padding:.7rem .75rem; font:inherit; font-size:.82rem; outline:none; }
.purchase-filters select option { color:var(--text-main); background:var(--bg-dark); }
.purchase-filters input::placeholder { color:var(--text-muted); opacity:.85; }
.purchase-filters input:focus,.purchase-filters select:focus,.purchase-support textarea:focus { border-color:var(--accent); box-shadow:0 0 0 2px rgba(167,139,250,.13); }
.purchase-reset,.purchase-link,.purchase-order-id { border:0; background:none; color:var(--accent); cursor:pointer; font:inherit; font-size:.8rem; padding:.5rem 0; }
.purchase-reset { min-height:38px; }
.purchase-order-id { font-weight:600; }
.purchase-link:hover,.purchase-order-id:hover,.purchase-reset:hover { text-decoration:underline; }
.purchase-status { color:var(--text-muted); font-size:.85rem; line-height:1.5; }
.purchase-status:empty { display:none; }
.purchase-table-panel { margin-top:1.25rem; padding:0; overflow:hidden; }
.purchase-table-panel table { width:100%; border-collapse:collapse; text-align:start; }
.purchase-table-panel th { text-align:start; padding:1rem; color:var(--text-muted); font-size:.72rem; font-weight:500; background:rgba(167,139,250,.04); border-bottom:1px solid var(--glass-border); }
.purchase-table-panel td { padding:1rem; border-bottom:1px solid var(--glass-border); font-size:.82rem; line-height:1.45; }
.purchase-table-panel tbody tr:last-child td { border-bottom:0; }
.purchase-table-panel tbody tr { cursor:pointer; }
.purchase-table-panel tbody tr:hover { background:rgba(167,139,250,.05); }
.purchase-table-panel td:nth-child(2) { color:var(--text-muted); font-size:.75rem; min-width:95px; }
.purchase-table-panel td:nth-child(3) { overflow-wrap:anywhere; }
.purchase-table-panel td:nth-child(4) { font-variant-numeric:tabular-nums; }
.purchase-amount { display:flex; flex-direction:column; gap:.35rem; white-space:nowrap; }
.purchase-amount small { font-size:.67rem; color:var(--accent); }
.purchase-row-actions { display:flex; flex-direction:column; align-items:stretch; gap:.45rem; }
.purchase-row-actions .glass-btn { padding:.5rem .65rem; font-size:.72rem; white-space:nowrap; color:var(--text-main); }
.purchase-row-actions .purchase-link { font-size:.7rem; }
.purchase-empty { padding:3rem 1.5rem; text-align:center; }
.purchase-empty-symbol { display:grid; place-items:center; width:48px; height:48px; margin:0 auto 1rem; border-radius:14px; background:rgba(167,139,250,.12); color:var(--accent); font-size:1.7rem; }
.purchase-empty h3 { font-size:1.05rem; }
.purchase-empty p { max-width:420px; margin:.5rem auto; font-size:.85rem; line-height:1.6; color:var(--text-muted); }
.purchase-pagination { display:flex; align-items:center; justify-content:center; gap:1rem; margin-top:1rem; }
.purchase-pagination span { font-size:.8rem; color:var(--text-muted); }
.purchase-pagination .glass-btn { font-size:.8rem; color:var(--text-main); }
#purchases-history-section button:disabled,.purchase-dialog button:disabled { opacity:.45; cursor:default; }
#purchases-history-section button:focus-visible,.purchase-dialog button:focus-visible,.purchase-dialog a:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.purchase-dialog { width:min(620px,calc(100vw - 32px)); max-height:calc(100dvh - 48px); padding:1.75rem; box-sizing:border-box; color:var(--text-main); background-color:var(--floating-glass); overflow-y:auto; }
.purchase-dialog::backdrop { background:rgba(12,8,22,.65); backdrop-filter:blur(6px); }
.purchase-dialog-heading { display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.purchase-dialog-heading h2 { font-size:1.2rem; margin:0; }
.purchase-close { border:1px solid var(--glass-border); border-radius:10px; background:rgba(167,139,250,.08); color:var(--text-main); width:34px; height:34px; font-size:1.5rem; cursor:pointer; flex-shrink:0; }
.purchase-dialog-lead { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin:1.5rem 0; }
.purchase-dialog-lead strong { overflow-wrap:anywhere; }
.purchase-paid { color:var(--accent); background:rgba(167,139,250,.1); border:1px solid var(--glass-border); padding:.3rem .6rem; border-radius:20px; font-size:.7rem; }
.purchase-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin:0 0 1.25rem; }
.purchase-detail-grid > div { border-bottom:1px solid var(--glass-border); padding-bottom:.8rem; min-width:0; }
.purchase-detail-grid dt { color:var(--text-muted); font-size:.75rem; margin-bottom:.45rem; }
.purchase-detail-grid dd { margin:0; font-size:.95rem; font-weight:500; overflow-wrap:anywhere; }
.purchase-muted { font-size:.8rem; color:var(--text-muted); line-height:1.5; }
.purchase-support { margin-top:1.5rem; padding-top:1.25rem; border-top:1px solid var(--glass-border); }
.purchase-support h3 { font-size:1rem; margin:0; }
.purchase-support p { font-size:.8rem; line-height:1.5; color:var(--text-muted); }
.purchase-support textarea { resize:vertical; min-height:140px; line-height:1.5; }
.purchase-support-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; margin-top:.6rem; }
.purchase-download-center { display:flex; justify-content:center; margin:1rem 0; }
.purchase-discount-badge { display:flex; align-items:center; gap:.5rem; }
.purchase-discount-badge svg { width:25px; height:25px; color:var(--accent); }
.support-form { display:flex; flex-direction:column; gap:.7rem; margin-top:1rem; }
.support-form label { color:var(--text-muted); font-size:.8rem; }
.support-form textarea { box-sizing:border-box; width:100%; resize:vertical; min-height:110px; border:1px solid var(--glass-border); border-radius:12px; padding:.8rem; background:rgba(167,139,250,.06); color:var(--text-main); font:inherit; font-size:.88rem; line-height:1.6; }
.support-form .support-contact { margin:0; font-size:.78rem; color:var(--text-muted); line-height:1.5; }
.support-contact-note { padding:.85rem 1rem; border-inline-start:2px solid var(--accent); border-radius:0 12px 12px 0; background:rgba(167,139,250,.07); color:var(--text-muted); font-size:.8rem; line-height:1.65; }
.support-contact-note p { margin:0; font-size:inherit; line-height:inherit; }
.support-contact-note p+p { margin-top:.5rem; }
.support-contact-note a { color:var(--accent); font-weight:500; text-underline-offset:3px; }
.help-support-channels { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.5rem; }
.help-support-channels > button { grid-column:1/-1; }
.help-support-channels > a.glass-btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:100%;
    max-width:100%;
    min-height:32px;
    padding:.3rem .75rem;
    border-radius:10px;
    font-size:.8rem;
}
@media (pointer:coarse) { .help-support-channels > a.glass-btn { min-height:44px; } }
.support-workspace { box-sizing:border-box; max-width:900px; margin:0 auto; color:var(--text-main); }
.support-workspace .support-dialog-heading { flex-wrap:wrap; }
.support-workspace .support-messages { height:min(480px,50dvh); }
.support-workspace .support-form { max-width:650px; margin:1.3rem auto 0; }
.support-topic-options { display:flex; flex-wrap:wrap; gap:.5rem; }
.support-topic-options button { font-size:.8rem; padding:.65rem .8rem; }
.support-topic-options button[aria-pressed="true"] { border-color:var(--accent); color:var(--accent); background:rgba(167,139,250,.15); }
.support-form label[hidden] { display:none; }
.support-form label input { display:block; width:100%; box-sizing:border-box; margin-top:.5rem; padding:.8rem; border:1px solid var(--glass-border); border-radius:12px; background:rgba(167,139,250,.06); color:var(--text-main); font:inherit; }
.support-workspace :is(button,a,input,textarea):focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
@media(max-width:600px) { .support-workspace { padding:1.1rem; } .support-workspace .support-dialog-heading h2 { font-size:1.1rem; } }
.support-form textarea:focus { outline:2px solid var(--accent); outline-offset:2px; }
.support-message-box { border:1px solid var(--glass-border); border-radius:12px; background:rgba(167,139,250,.06); overflow:hidden; }
.support-message-box label { display:block; width:fit-content; max-width:calc(100% - 1.6rem); box-sizing:border-box; margin:.8rem .8rem .25rem; padding:.35rem .6rem; border-radius:8px; background:rgba(167,139,250,.14); color:var(--accent); font-weight:500; }
.support-message-box textarea { border:0; background:transparent; border-radius:0; }
.support-message-box:focus-within { outline:2px solid var(--accent); outline-offset:2px; }
.support-message-box textarea:focus { outline:none; }
.purchase-support .support-message-box textarea, .purchase-support .support-message-box textarea:focus { border:0; outline:none; box-shadow:none; background:transparent; border-radius:0; }
.support-unread { display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 .3rem; border-radius:8px; background:var(--accent); color:var(--bg-dark); font-size:.72rem; font-weight:600; margin-inline-start:auto; }
.support-unread[hidden] { display:none; }
html[data-theme="light"] .support-unread { color:#fff; }
.support-dialog { box-sizing:border-box; width:min(620px,calc(100vw - 32px)); max-height:calc(100dvh - 40px); padding:1.5rem; background-color:var(--floating-glass); color:var(--text-main); overflow:auto; }
.support-dialog::backdrop { background:rgba(11,8,18,.65); backdrop-filter:blur(6px); }
.support-dialog-heading { display:flex; align-items:center; gap:.7rem; margin-bottom:1rem; }
.support-dialog-heading h2 { flex:1; font-size:1.15rem; margin:0; }
.support-back { display:grid; place-items:center; flex-shrink:0; width:40px; height:40px; padding:0; border:1px solid var(--glass-border); border-radius:12px; background:rgba(167,139,250,.08); color:var(--accent); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); box-shadow:inset 0 1px 0 rgba(255,255,255,.12); cursor:pointer; transition:background .18s,border-color .18s; }
.support-back svg { width:19px; height:19px; }
.support-back:hover { background:rgba(167,139,250,.17); border-color:var(--accent); }
.support-back:active { background:rgba(167,139,250,.24); }
html[dir="rtl"] .support-back svg { transform:scaleX(-1); }
.support-thread-list { display:flex; flex-direction:column; gap:.65rem; }
.support-empty { display:flex; flex-direction:column; align-items:center; text-align:center; padding:clamp(1.5rem,5vw,3rem) 1rem; }
.support-empty h3 { margin:0; font-size:1.05rem; font-weight:500; }
.support-empty p { max-width:380px; margin:.7rem 0 1.4rem; }
.support-empty .glass-btn { max-width:100%; }
.support-thread-row { display:flex; align-items:center; gap:.5rem; min-width:0; }
.support-thread-row .support-thread { flex:1; min-width:0; }
.support-delete-button { display:grid; place-items:center; flex:none; width:40px; height:40px; border:1px solid var(--glass-border); border-radius:12px; background:rgba(167,139,250,.07); color:var(--text-muted); cursor:pointer; }
.support-delete-button:hover { color:var(--accent); border-color:var(--accent); background:rgba(167,139,250,.15); }
.support-delete-dialog { width:min(440px,calc(100vw - 32px)); }
.support-delete-dialog h2 { font-size:1.1rem; }
.support-delete-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:.7rem; margin-top:1.4rem; }
:is(.support-workspace,.support-dialog,.support-messages,.support-composer textarea) { scrollbar-width:thin; scrollbar-color:var(--accent) transparent; }
:is(.support-workspace,.support-dialog,.support-messages,.support-composer textarea)::-webkit-scrollbar { width:6px; height:6px; }
:is(.support-workspace,.support-dialog,.support-messages,.support-composer textarea)::-webkit-scrollbar-track { background:transparent; }
:is(.support-workspace,.support-dialog,.support-messages,.support-composer textarea)::-webkit-scrollbar-thumb { background:var(--accent); border-radius:10px; }
.support-thread { width:100%; display:flex; flex-direction:column; gap:.6rem; padding:1rem; border:1px solid var(--glass-border); border-radius:14px; background:rgba(167,139,250,.06); color:var(--text-main); font:inherit; text-align:start; cursor:pointer; }
.support-thread:hover { border-color:var(--accent); background:rgba(167,139,250,.12); }
.support-thread-title { display:flex; align-items:center; gap:.6rem; font-size:.9rem; }
.support-preview { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; font-size:.85rem; color:var(--text-muted); }
.support-thread time,.support-message time { font-size:.7rem; color:var(--text-muted); }
.support-muted,.support-chat-status { color:var(--text-muted); font-size:.85rem; line-height:1.6; }
.support-chat-status:empty { display:none; }
.support-messages { display:flex; flex-direction:column; gap:.8rem; height:min(400px,45dvh); min-height:140px; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; overflow-anchor:none; scrollbar-gutter:stable; padding:.3rem; scrollbar-width:thin; }
.support-messages > .support-message { flex-shrink:0; min-width:0; }
.support-messages:focus-visible { outline:2px solid var(--accent); outline-offset:3px; border-radius:10px; }
.support-message { box-sizing:border-box; padding:.85rem 1rem; border:1px solid var(--glass-border); border-radius:15px; max-width:90%; background:rgba(167,139,250,.06); align-self:flex-start; }
.support-message.from-customer { align-self:flex-end; background:rgba(167,139,250,.16); }
.support-message strong { font-size:.73rem; color:var(--accent); }
.support-message p { margin:.5rem 0; white-space:pre-wrap; overflow-wrap:anywhere; font-size:.9rem; line-height:1.65; }
.support-delivery { display:block; color:var(--text-muted); font-size:.7rem; margin-top:.5rem; }
.support-composer { display:flex; flex-direction:column; gap:.7rem; margin-top:1rem; }
.support-composer textarea { box-sizing:border-box; width:100%; resize:vertical; max-height:160px; min-height:75px; padding:.8rem; border:1px solid var(--glass-border); border-radius:12px; background:rgba(167,139,250,.06); color:var(--text-main); font:inherit; font-size:.88rem; }
.support-composer button { align-self:flex-end; }
.support-direct-link { display:block; margin-top:1rem; color:var(--accent); text-align:center; font-size:.8rem; text-underline-offset:3px; }
.support-dialog :is(button,textarea,a):focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.support-dialog button:disabled { opacity:.55; cursor:default; }
@media(max-width:500px) { .support-dialog { padding:1rem; } .support-message { max-width:95%; } }
.purchase-support-actions .glass-btn { display:flex; align-items:center; justify-content:center; box-sizing:border-box; min-width:0; min-height:42px; padding:.65rem .5rem; font-size:.8rem; line-height:1.4; text-align:center; text-decoration:none; overflow-wrap:anywhere; }
@media(max-width:1100px) { .purchase-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } .purchase-filters label:first-child { grid-column:1/-1; } .purchase-reset { justify-self:start; } .purchase-table-panel th,.purchase-table-panel td { padding:.8rem .65rem; } }
@media(max-width:760px) {
    .purchase-stats { gap:.6rem; } .purchase-stats > div { padding:1rem .7rem; } .purchase-stats span { font-size:.7rem; } .purchase-stats strong { font-size:1.15rem; }
    .purchase-heading { align-items:flex-start; } .purchase-heading p { font-size:.75rem; }
    .purchase-table-panel thead { display:none; }
    .purchase-table-panel table,.purchase-table-panel tbody { display:block; }
    .purchase-table-panel tr { display:grid; grid-template-columns:1fr 1fr; padding:1rem; gap:.7rem 1rem; border-bottom:1px solid var(--glass-border); }
    .purchase-table-panel tbody tr:last-child { border-bottom:0; }
    .purchase-table-panel td { display:flex; flex-direction:column; align-items:flex-start; gap:.3rem; padding:0; border:0; min-width:0; }
    .purchase-table-panel td::before { content:attr(data-label); font-size:.65rem; color:var(--text-muted); }
    .purchase-table-panel td:nth-child(3),.purchase-table-panel td:nth-child(6) { grid-column:1/-1; }
    .purchase-row-actions { flex-direction:row; align-items:center; gap:1rem; }
    .purchase-dialog { padding:1.25rem; }
}
.profile-panel { padding: 2.5rem; max-width: 600px; }
.profile-hero > .profile-signout-btn { margin-inline-start:auto; flex-shrink:0; }
.profile-overview { grid-template-columns:repeat(5,minmax(0,1fr)); gap:.8rem; }
.profile-overview .profile-stats { display:contents; }
.profile-overview .profile-wallet, .profile-overview .profile-stat { display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:2.7em minmax(32px,auto); align-content:center; align-items:center; justify-items:center; padding:1rem .85rem; gap:.55rem; min-height:116px; min-width:0; border-radius:16px; box-sizing:border-box; text-align:center; }
.profile-overview h3 { font-size:.8rem; line-height:1.35; min-height:0; font-weight:500; color:var(--text-muted); }
.profile-overview .profile-stat strong, .profile-overview #prof-balance { font-size:1.45rem; font-weight:600; line-height:1.25; padding:0; margin:0; font-variant-numeric:tabular-nums; }
.profile-wallet-value { display:flex; align-items:center; justify-content:center; gap:.55rem; min-width:0; max-width:100%; }
.profile-wallet-icon { width:20px; height:20px; flex-shrink:0; color:var(--accent); }
.profile-overview .profile-wallet .profile-topup-plus { display:grid; place-items:center; flex-shrink:0; width:26px; height:26px; min-height:26px; margin:0; padding:0; border-radius:8px; font-size:1.05rem; line-height:1; font-weight:400; }
.profile-columns .profile-rank { display:flex; flex-direction:column; min-width:0; }
.profile-columns .profile-rank > .profile-link { margin-top:auto; padding-top:1rem; }
.profile-columns #profile-rank-content { margin-top:1rem; }
@media(max-width:1100px) {
    .profile-overview { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .profile-overview .profile-wallet { grid-column:1/-1; grid-template-columns:1fr auto; grid-template-rows:auto; min-height:80px; gap:1rem; justify-items:start; text-align:start; }
    .profile-overview .profile-wallet-value { justify-self:end; }
    .profile-overview .profile-stat { min-height:108px; }
}
@media(max-width:600px) { .profile-hero > .profile-signout-btn { margin-inline-start:calc(64px + .8rem); padding:.6rem .8rem; } }
.glass-inner-panel { padding: 1.5rem; margin-bottom: 1.5rem; background: rgba(15, 12, 25, 0.6); border: 1px solid var(--glass-border); border-radius: 12px; }.balance-amount { font-size: 3.5rem; font-weight: bold; color: var(--accent); display: block; margin-top: 0.5rem; text-shadow: 0 0 20px rgba(99, 102, 241, 0.4); }
.api-key-group { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.api-key-group .glass-input { margin-bottom: 0; flex: 1; color: var(--text-muted); }

 
.product-icon { width: 64px; height: 64px; object-fit: contain; margin: 0 auto; transition: transform 0.4s, filter 0.4s; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3)); will-change: transform; }
.product-tile:hover .product-icon { transform: scale(1.2) translateY(-6px) rotate(-4deg); filter: drop-shadow(0 8px 15px rgba(139, 92, 246, 0.5)); }

 
.info-container { position: relative; display: inline-flex; }
.info-badge { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: var(--text-muted); font-size: 0.75rem; font-weight: bold; font-family: monospace; cursor: help; transition: all 0.3s; }
.info-badge:hover { background: var(--accent); color: white; box-shadow: 0 0 10px var(--accent); }

.product-hover-details {
    position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
    background: rgba(17, 24, 39, 0.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border); border-radius: 12px; padding: 0.85rem 1rem;
    width: max-content; max-width: 310px; box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
    opacity: 0; visibility: hidden; pointer-events: none; transition: all 0.25s ease;
    z-index: 100; text-align: left; white-space: normal; word-wrap: break-word;
}
.product-hover-details::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border-width: 6px; border-style: solid; border-color: rgba(17, 24, 39, 0.96) transparent transparent transparent; }

.info-container:hover .product-hover-details { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.hover-spec-item { display: flex; align-items: flex-start; gap: 8px; font-size: 0.8rem; color: #cbd5e1; margin-bottom: 6px; line-height: 1.4; }
.hover-spec-item:last-child { margin-bottom: 0; }
.hover-icon { font-size: 0.85rem; flex-shrink: 0; margin-top: 1px; }
 
.glass-header .circle-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
}

.glass-header .glass-btn {
    padding: 0 1.2rem !important;
    font-size: 0.95rem !important;
    height: 36px !important;  
    display: flex;
    align-items: center;
}

.lang-dropdown-animated {
    opacity: 0;
    visibility: hidden;
    z-index: 1001;
    transform: translateX(calc(-50% + var(--language-offset, 0px))) translateY(-8px) scale(0.98);
    transform-origin: top center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
    display: flex !important;  
}

.lang-dropdown-animated.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(calc(-50% + var(--language-offset, 0px))) translateY(0) scale(1);
    pointer-events: auto;
}

@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
.slide-in-right { animation: slideInRight 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; }

 
.user-controls { gap: .65rem; }
#auth-controls { align-items: center; gap: .65rem; }
.glass-header .circle-btn { border-radius: 13px; }
.glass-header .circle-btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.glass-header svg { width: 19px; height: 19px; flex-shrink: 0; }
.header-icon-btn span { display: flex; }
html[data-theme="dark"] .theme-moon, html[data-theme="light"] .theme-sun { display: none; }
.glass-header .header-language-btn { width: auto !important; gap: .4rem; padding: 0 .65rem; font-size: .75rem !important; }
.header-balance { display: flex; align-items: center; gap: .5rem; height: 36px; padding: 0 .65rem; border: 1px solid var(--glass-border); border-radius: 13px; background: rgba(167,139,250,.08); color: var(--text-main); cursor: pointer; font: inherit; box-sizing: border-box; }
.header-balance:hover { border-color: var(--accent); background: rgba(167,139,250,.15); }
.header-balance > svg { color: var(--accent); }
.header-balance-copy { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; }
.header-balance-copy strong { font-size: .85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
#lang-dropdown-list { position: absolute; top: calc(100% + 14px); left: 50%; width: 260px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 120px); overflow-y: auto; box-sizing: border-box; padding: .7rem; flex-direction: column; border-radius: 18px; transform-origin: top center; }
.lang-select-btn { display: flex; flex-shrink: 0; align-items: center; gap: .75rem; padding: .65rem; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--text-main); font: inherit; cursor: pointer; text-align: start; }
.lang-select-btn:hover { background: rgba(167,139,250,.08); }
.lang-select-btn[aria-pressed="true"] { background: rgba(167,139,250,.13); border-color: rgba(167,139,250,.3); }
.language-code { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--glass-border); border-radius: 10px; font-size: .7rem; color: var(--accent); }
.language-name { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; }
.language-name small { font-size: .65rem; color: var(--text-muted); }
.language-check { margin-inline-start: auto; color: var(--accent); visibility: hidden; }
[aria-pressed="true"] > .language-check { visibility: visible; }
.user-controls button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 600px) {
    .glass-header .logo-text { display: none; }
    .header-balance { gap: .35rem; padding: .3rem .5rem; }
    #auth-controls { gap: .4rem; }
}

 
.logo, #header-balance, .payment-amount-box, .payment-presets,
.rank-total, .rank-tiers small, .rank-tiers b, .rank-discount strong,
input[type="email"], #prof-api-key, #new-key-input { direction: ltr; unicode-bidi: isolate; }
#lang-dropdown-list { direction: ltr; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
html[dir="rtl"] .rank-summary .rank-discount { text-align: left; }
html[dir="rtl"] .nav-item.active { box-shadow: inset -3px 0 0 var(--accent); }
html[dir="rtl"] .product-hover-details { text-align: right; }
html[dir="rtl"] #profile-section [style*="text-align: left"] { text-align: right !important; }

 
.tool-tab-btn { background: transparent; border: none; color: var(--text-muted); font-size: 1.1rem; font-weight: 600; padding: 0.5rem 0.5rem; cursor: pointer; position: relative; transition: color 0.3s; }
.tool-tab-btn:hover { color: var(--text-main); }
.tool-tab-btn.active { color: var(--text-main); }
.tab-indicator { position: absolute; bottom: -0.6rem; left: 0; width: 0%; height: 2px; background: var(--accent); transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.tool-tab-btn.active .tab-indicator { width: 100%; }
.tool-content-view { display: none; animation: fadeIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.tool-content-view.active { display: block; }

.topup-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 1.25rem; align-items: stretch; }
.topup-layout > * { min-width: 0; }
.topup-layout .payment-form { height: 100%; max-width: none; }
.rank-summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.rank-summary .rank-badge { flex: 1; }
.rank-summary .rank-discount { margin: 0; text-align: right; max-width: 110px; }
.rank-summary .rank-discount strong { font-size: 2rem; }
.rank-window { padding-top: 1rem; border-top: 1px solid var(--glass-border); }
.rank-window .rank-note { margin: 0 0 .35rem; }
.rank-panel { padding: 1.5rem; box-sizing: border-box; }
.rank-panel h3 { margin: 0 0 1rem; font-size: 1.1rem; }
.rank-badge { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.rank-badge strong { font-size: 1.2rem; }
.rank-badge small { width: 100%; color: var(--text-muted); }
.rank-icon { width: 21px; height: 21px; flex-shrink: 0; color: var(--accent); }
.rank-icon-large { width: 30px; height: 30px; }
.rank-discount { display: flex; flex-direction: column; margin: 1rem 0; }
.rank-discount strong { font-size: 2.6rem; color: var(--accent); line-height: 1.2; }
.rank-discount span, .rank-note { font-size: .8rem; color: var(--text-muted); line-height: 1.5; }
.rank-total { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.rank-panel progress { display: block; width: 100%; height: 7px; margin-top: 1rem; border: 0; border-radius: 10px; overflow: hidden; background: rgba(167,139,250,.12); accent-color: var(--accent); }
.rank-panel progress::-webkit-progress-bar { background: rgba(167,139,250,.12); }
.rank-panel progress::-webkit-progress-value { background: var(--accent); border-radius: 10px; }
.rank-panel progress::-moz-progress-bar { background: var(--accent); }
.rank-tiers { list-style: none; margin: 1rem 0 0; padding: 0; }
.rank-tiers li { display: flex; align-items: center; gap: .5rem; padding: .45rem .5rem; border: 1px solid transparent; border-radius: 10px; }
.rank-tiers li.is-current { background: rgba(167,139,250,.12); border-color: var(--glass-border); }
.rank-tiers li > span:nth-child(2) { display: flex; align-items: baseline; flex: 1; justify-content: space-between; gap: .4rem; }
.rank-tiers strong, .rank-tiers b { font-size: .8rem; }
.rank-tiers small { color: var(--text-muted); font-size: .7rem; }
.rank-tiers b { margin-inline-start: auto; }
.rank-rules { font-size: .75rem; color: var(--text-muted); line-height: 1.6; margin: 1rem 0 0; padding-top: .8rem; border-top: 1px solid var(--glass-border); }
.rank-rules summary { cursor: pointer; }
.rank-rules p { margin-bottom: 0; }
#topup-section > .payment-list { max-width: none; }
.payment-form { max-width: 760px; box-sizing: border-box; padding: 2rem; }
@media (max-width: 1250px) { .topup-layout .payment-methods { grid-template-columns: 1fr; } }
@media (max-width: 1050px) { .topup-layout { grid-template-columns: minmax(0,1fr); } }
.payment-form h3 { margin: 0; font-size: 1.45rem; }
.payment-subtitle { margin: 0.5rem 0 1.8rem; }
.payment-form label { display: block; margin-bottom: 0.6rem; }
.payment-form p, .payment-card p { color: var(--text-muted); line-height: 1.5; }
.payment-list { display: grid; gap: 0; margin-top: 1.5rem; max-width: 760px; box-sizing: border-box; border: 1px solid var(--glass-border); border-radius: 20px; background: var(--glass-bg); overflow: hidden; }
.payment-card { min-width: 0; overflow-wrap: anywhere; display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1.25rem 1.5rem; border-top: 1px solid var(--glass-border); }
.payment-card h3 { margin-top: 0; }
.payment-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; grid-column: 1 / -1; }
.payment-actions:empty { display: none; }
.payment-actions a { text-decoration: none; }
#payment-feedback { margin-top: 1rem; overflow-wrap: anywhere; }
#payment-feedback:empty { display: none; }
.payment-form button:disabled, .payment-card button:disabled { opacity: 0.55; cursor: wait; }
.payment-amount-box { display: flex; align-items: center; gap: 0.75rem; padding: 0 1.1rem; border: 1px solid var(--glass-border); border-radius: 14px; background: rgba(128,128,160,0.06); }
.payment-amount-box > span:first-child { font-size: 1.8rem; color: var(--accent); }
.payment-amount-box > span:last-child { color: var(--text-muted); font-size: 0.85rem; }
.payment-amount-box .glass-input { border: 0; box-shadow: none; background: transparent; backdrop-filter: none; margin: 0; padding: 1rem 0; font-size: 1.8rem; min-width: 0; color: var(--text-main); }
.payment-amount-box:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
#topup-amount { appearance: textfield; -moz-appearance: textfield; }
#topup-amount::-webkit-inner-spin-button,
#topup-amount::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.payment-presets { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.65rem; margin: 0.85rem 0 1.8rem; }
.payment-preset { font: inherit; border: 1px solid var(--glass-border); color: var(--text-main); background: rgba(128,128,160,0.06); border-radius: 10px; padding: 0.7rem 0; cursor: pointer; }
.payment-preset[aria-pressed="true"], .payment-preset:hover { background: rgba(167,139,250,0.15); border-color: var(--accent); color: var(--accent); }
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; padding: 0; border: 0; margin: 0; min-width: 0; }
.payment-methods legend { padding: 0; margin-bottom: 0.8rem; }
.payment-form .payment-method { display: flex; position: relative; align-items: center; gap: 0.75rem; padding: 1rem; margin: 0; border: 1px solid var(--glass-border); border-radius: 14px; cursor: pointer; }
.payment-method:has(input:checked) { background: rgba(167,139,250,0.10); border-color: var(--accent); }
.payment-method:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.payment-method input { accent-color: var(--accent); margin: 0; }
.payment-method-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #24232e; color: #fff; font-weight: bold; flex-shrink: 0; }
.payment-method-icon.lolz { color: #43d99c; background: rgba(67,217,156,0.12); }
.payment-method-details { display: flex; flex-direction: column; gap: 0.3rem; }
.payment-method-details small { font-size: 0.75rem; color: var(--text-muted); }
.payment-summary { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0; margin-top: 0.5rem; }
.payment-summary span { color: var(--text-muted); }
.payment-summary strong { font-size: 1.6rem; }
.payment-form button[type="submit"] { width: 100%; min-height: 48px; color: #21162f; margin-top: 22px; }
.payment-form .payment-note { text-align: center; font-size: 0.8rem; margin-bottom: 0; }
.payment-history-heading { display: flex; align-items: center; gap: 0.85rem; padding: 1.5rem; }
.payment-history-heading h3 { margin: 0; font-size: 1.1rem; }
.payment-history-heading p { margin: 0.4rem 0 0; font-size: 0.8rem; color: var(--text-muted); }
.payment-history-icon, .payment-empty-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(167,139,250,0.1); color: var(--accent); font-size: 1.5rem; flex-shrink: 0; }
.payment-count { margin-inline-start: auto; padding: 0.25rem 0.65rem; border: 1px solid var(--glass-border); border-radius: 20px; font-size: 0.8rem; }
.payment-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.8rem; padding: 2rem 1.5rem 2.5rem; border-top: 1px solid var(--glass-border); }
.payment-empty p { max-width: 350px; color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; margin: 0; }
.payment-card-info, .payment-card-value { display: flex; flex-direction: column; gap: 0.5rem; }
.payment-card-info small { color: var(--text-muted); font-size: 0.8rem; }
.payment-card-value { align-items: flex-end; }
.payment-status { font-size: 0.75rem; padding: 0.3rem 0.65rem; border-radius: 20px; max-width: 230px; }
.payment-status.is-paid { background: rgba(52,211,153,0.12); color: #34d399; }
.payment-status.is-pending { background: rgba(167,139,250,0.12); color: var(--accent); }
html[data-theme="light"] .payment-status.is-paid { color: #047857; }
 
:root {
    --glass-sheen: rgba(255,255,255,.07);
    --glass-edge: rgba(255,255,255,.18);
    --glass-shadow: rgba(0,0,0,.24);
    --floating-glass: rgba(25,20,40,.86);
}
html[data-theme="light"] {
    --glass-sheen: rgba(245,235,255,.19);
    --glass-edge: rgba(250,240,255,.48);
    --glass-shadow: rgba(65,40,110,.16);
    --floating-glass: rgba(245,241,251,.95);
}
body { isolation: isolate; }
.glass-panel, .glass-header, .glass-sidebar, .glass-modal, .glass-inner-panel, .payment-list {
    background-image: linear-gradient(135deg,var(--glass-sheen),transparent 42%,rgba(167,139,250,.035));
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    box-shadow: 0 12px 36px var(--glass-shadow), inset 0 1px 0 var(--glass-edge), inset 0 -1px 0 rgba(139,92,246,.06);
    transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease, transform .2s ease;
}
.glass-header { z-index: 40; }
.glass-btn, .circle-btn, .payment-preset, .payment-method, .payment-amount-box {
    background-image: linear-gradient(135deg,var(--glass-sheen),transparent 65%);
    box-shadow: inset 0 1px 0 var(--glass-edge), 0 3px 12px rgba(0,0,0,.05);
}
 
.glass-panel .glass-btn, .glass-header .circle-btn, .glass-header .glass-btn,
.glass-panel .glass-input, .glass-modal .glass-input {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.payment-amount-box .glass-input,
html[data-theme="light"] .payment-amount-box .glass-input { background: transparent; border: 0; box-shadow: none; }
.glass-modal, html[data-theme="light"] .glass-modal,
.lang-dropdown-animated, html[data-theme="light"] .lang-dropdown-animated { background-color: var(--floating-glass); }
#lang-dropdown-list { background-color: rgba(25,20,40,.97); }
html[data-theme="light"] #lang-dropdown-list { background-color: var(--floating-glass); }
.my-tooltip, html[data-theme="light"] .my-tooltip {
    background: var(--floating-glass) !important;
    border-color: var(--glass-border) !important;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 12px 30px var(--glass-shadow), inset 0 1px 0 var(--glass-edge) !important;
}
html[data-theme="light"] .glass-btn.accent {
    color:#fff;
    background-image:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,0) 85%);
    border-color:rgba(91,55,149,.28);
    box-shadow:inset 0 2px 7px rgba(255,255,255,.1),0 3px 10px rgba(104,67,168,.12);
}
html[data-theme="light"] .shape { opacity:.16; }
html[data-theme="light"] .bg-shapes { background:radial-gradient(circle at center,rgba(124,100,155,.04),transparent 70%); }
html[data-theme="light"] .circle-btn { background-color:rgba(222,212,238,.55); }
html[data-theme="light"] .glass-btn:not(.accent):not(.danger) { background-color:rgba(104,67,168,.06); border-color:var(--glass-border); }
html[data-theme="light"] .glass-input { background:rgba(217,205,235,.4); border-color:var(--glass-border); font-weight:400; }
html[data-theme="light"] .nav-item.active { background:rgba(104,67,168,.1); }
html[data-theme="light"] .payment-method-icon.lolz { color:#16734c; }
html[data-theme="light"] .glass-input:focus { background-color: rgba(229,217,245,.65); border-color: var(--accent); }
html[data-theme="light"] .payment-amount-box .glass-input:focus { background: transparent; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass-panel, .glass-header, .glass-modal, .payment-list { background-color: var(--floating-glass); }
}
@media (prefers-reduced-motion: reduce) {
    .shape, .content-section { animation: none; }
    .glass-panel, .glass-header, .glass-modal, .payment-list { transition: none; }
}
@media (max-width: 760px) {
    .product-tile .my-tooltip { box-sizing:border-box; width:min(280px,calc(100vw - 64px)) !important; left:auto !important; right:0; transform:none !important; }
    .app-container { flex-direction: column; gap: 1rem; padding: 0 1rem; }
    .app-container > nav { flex-direction: row !important; overflow-x: auto; height: auto !important; }
    .app-container > nav .nav-item { white-space: nowrap; flex-shrink: 0; }
    .content-area { padding: 0; }
    .glass-header { width: calc(100% - 2rem); padding: 0.75rem; }
    .user-controls { gap: 0.4rem; }
    .logo { gap: 0.4rem; }
    .payment-form { padding: 1.25rem; }
    .payment-methods { grid-template-columns: 1fr; }
    .payment-history-heading, .payment-card { padding: 1rem; }
}

