/* ==========================================================================
   TIPOGRAFIA LOCAL: Inter (Carregamento Otimizado)
   ========================================================================== */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; src: url('../assets/fonts/Inter-Regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; src: url('../assets/fonts/Inter-Medium.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; src: url('../assets/fonts/Inter-SemiBold.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; src: url('../assets/fonts/Inter-Bold.woff2') format('woff2'); font-display: swap; }

/* ==========================================================================
   Laperm.tech — Shared Stylesheet
   Sections: Tokens / Base / Liquid field / Nav / Buttons / Footer /
             Home (hero, categories, product grid) / Product page /
             Account page / Auth pages (login + register)
   ========================================================================== */

:root {
    --bg: #050B16;
    --glass: rgba(255,255,255,0.03);
    --glass-hover: rgba(255,255,255,0.06);
    --glass-border: rgba(255,255,255,0.09);
    --text-main: #FFFFFF;
    --text-muted: #96A1B0;
    --text-dim: #57616E;
    --orange: #FF7A1A;
    --orange-deep: #FF3D00;
    --blue: #38BDF8;
    --blue-deep: #0EA5E9;
    --blue-glow: rgba(56,189,248,0.22);
    --green: #10B981;
    --error: #F87171;
    --success: #34D399;
}

/* ---------- Light theme ---------- */
html[data-theme="light"] {
    --bg: #F5F7FA;
    --glass: rgba(10, 20, 35, 0.035);
    --glass-hover: rgba(10, 20, 35, 0.06);
    --glass-border: rgba(10, 20, 35, 0.09);
    --text-main: #0B1220;
    --text-muted: #4B5563;
    --text-dim: #8A93A0;
}

html[data-theme="light"] .liquid-field {
    background:
        radial-gradient(ellipse 700px 500px at 12% -5%, rgba(255,122,26,0.10) 0%, transparent 60%),
        radial-gradient(ellipse 600px 500px at 90% 10%, rgba(56,189,248,0.08) 0%, transparent 55%),
        radial-gradient(ellipse 500px 400px at 50% 100%, rgba(255,61,0,0.04) 0%, transparent 60%);
}

html[data-theme="light"] .auth-wrapper,
html[data-theme="light"] .dl-row,
html[data-theme="light"] .upgrade-inner {
    background: rgba(255,255,255,0.85);
}

html[data-theme="light"] .form-input { background: rgba(10,20,35,0.04); color: var(--text-main); }
html[data-theme="light"] .form-input::placeholder { color: rgba(11,18,32,0.35); }
html[data-theme="light"] .form-input:focus { background: rgba(10,20,35,0.08); }
html[data-theme="light"] .password-requirements { background: rgba(10,20,35,0.03); }

html[data-theme="light"] nav {
    background: rgba(245, 247, 250, 0.6);
}
html[data-theme="light"] .sold-out-tag {
    background: rgba(255,255,255,0.85);
    border-color: rgba(10,20,35,0.12);
}
html[data-theme="light"] .eyebrow {
    color: #0369A1;
    border-color: rgba(3,105,161,0.3);
    background: rgba(3,105,161,0.08);
}
html[data-theme="light"] body.auth-body {
    background-image:
        linear-gradient(rgba(245,247,250,0.32), rgba(245,247,250,0.5)),
        url('../assets/images/background_firstpage_img.webp');
}

html, body {
    transition: background-color .3s ease, color .3s ease;
}

/* ---------- Theme toggle button ---------- */
.theme-toggle {
    width: 38px; height: 38px; border-radius: 12px;
    background: var(--glass); border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .25s;
}
.theme-toggle:hover { background: var(--glass-hover); }
.theme-toggle svg { width: 16px; height: 16px; stroke: var(--text-main); }
.theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text-main);
    font-family: "Inter", sans-serif;
    font-weight: 400;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo, .auth-title { font-family: "Inter", sans-serif; font-weight: 700; }

a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* ---------- Liquid field (ambient background glow) ---------- */
.liquid-field {
    position: fixed; top:0; right:0; bottom:0; left:0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 700px 500px at 12% -5%, rgba(255,122,26,0.16) 0%, transparent 60%),
        radial-gradient(ellipse 600px 500px at 90% 10%, rgba(56,189,248,0.13) 0%, transparent 55%),
        radial-gradient(ellipse 500px 400px at 50% 100%, rgba(255,61,0,0.07) 0%, transparent 60%);
    animation: field-drift 16s ease-in-out infinite alternate, field-glow 6s ease-in-out infinite alternate;
}
@keyframes field-glow {
    0% { filter: brightness(1) saturate(1); }
    100% { filter: brightness(1.18) saturate(1.25); }
}
@keyframes field-drift {
    0% { transform: translate(0,0) scale(1); }
    100% { transform: translate(-1.5%, 1.5%) scale(1.03); }
}

nav, main, footer { position: relative; z-index: 1; }

/* ---------- Nav ---------- */
nav {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 48px;
    background: rgba(5, 11, 22, 0.5);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.nav-left { display: flex; align-items: center; gap: 44px; }
.logo { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none; color: var(--text-main); }
.logo img { height: 34px; width: auto; filter: drop-shadow(0 2px 8px rgba(255,122,26,0.35)); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.87rem; font-weight: 500; transition: color .25s; }
.nav-links a:hover { color: var(--text-main); }
.nav-right { display: flex; align-items: center; gap: 16px; }

.currency-pill {
    font-size: 0.78rem; color: var(--text-muted);
    border: 1px solid var(--glass-border); border-radius: 100px;
    padding: 6px 14px; cursor: pointer; transition: all .25s ease;
}
.currency-pill:hover { border-color: var(--blue); color: var(--text-main); }

.icon-btn {
    width: 38px; height: 38px; border-radius: 12px;
    background: var(--glass); border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .25s; position: relative;
}
.icon-btn:hover { background: var(--glass-hover); border-color: rgba(255,255,255,0.18); }
.icon-btn svg { width: 16px; height: 16px; stroke: var(--text-main); }

.cart-count {
    position: absolute; top: -5px; right: -5px;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--orange); color: #1a0800;
    font-size: 0.6rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}

/* ---------- Mobile menu (hamburger + drawer) ---------- */
.menu-toggle {
    display: none;
    width: 38px; height: 38px; border-radius: 12px;
    background: var(--glass); border: 1px solid var(--glass-border);
    align-items: center; justify-content: center;
    cursor: pointer; transition: all .25s;
}
.menu-toggle svg { width: 18px; height: 18px; stroke: var(--text-main); }

.nav-drawer {
    position: fixed; top:0; right:0; bottom:0; left:0; z-index: 200;
    background: rgba(5,11,22,0.7);
    backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s ease, visibility 0s linear .25s;
}
.nav-drawer.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .25s ease; }

.nav-drawer-panel {
    position: absolute; top: 0; right: 0; height: 100%; width: min(78vw, 320px);
    background: var(--bg);
    border-left: 1px solid var(--glass-border);
    padding: 20px;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column; gap: 4px;
}
.nav-drawer.open .nav-drawer-panel { transform: translateX(0); }

.nav-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.nav-drawer-close {
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--glass); border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.nav-drawer-close svg { width: 16px; height: 16px; stroke: var(--text-main); }

.nav-drawer-panel a {
    color: var(--text-muted); text-decoration: none;
    font-size: 0.95rem; font-weight: 500; padding: 12px 10px;
    border-radius: 10px; transition: all .2s ease;
}
.nav-drawer-panel a:hover { background: var(--glass); color: var(--text-main); }
.nav-drawer-panel .btn-account { text-align: center; margin-top: 14px; }

@media (max-width: 900px) {
    .nav-links { display: none; }
    nav { padding: 14px 20px; }
    .menu-toggle { display: flex; }
}
@media (min-width: 901px) {
    .nav-drawer { display: none !important; }
}

/* ---------- Buttons (shared) ---------- */
.btn-account {
    font-size: 0.85rem; font-weight: 700; padding: 9px 20px; border-radius: 100px;
    background: linear-gradient(135deg, var(--orange), var(--orange-deep));
    color: #FFFFFF; text-decoration: none; border: none; cursor: pointer;
    box-shadow: 0 8px 22px rgba(255,122,26,0.3);
    transition: transform .25s ease, box-shadow .25s ease;
    display: inline-flex; align-items: center; justify-content: center; line-height: 1.2;
}
.btn-account:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,122,26,0.4); }

.btn-primary {
    padding: 13px 28px; border-radius: 100px;
    background: linear-gradient(135deg, var(--orange), var(--orange-deep));
    color: #FFFFFF; font-weight: 700; font-size: 0.92rem; text-decoration: none; border: none; cursor: pointer;
    box-shadow: 0 10px 30px rgba(255,122,26,0.32);
    transition: transform .25s ease, box-shadow .25s ease;
    display: inline-flex; align-items: center; justify-content: center; line-height: 1.2;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,122,26,0.4); }

.btn-ghost {
    padding: 13px 28px; border-radius: 100px;
    background: var(--glass); backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text-main); font-weight: 600; font-size: 0.92rem;
    text-decoration: none; transition: all .25s ease;
    display: inline-flex; align-items: center; justify-content: center; line-height: 1.2;
}
.btn-ghost:hover { background: var(--glass-hover); border-color: rgba(255,255,255,0.2); }

/* ---------- Footer ---------- */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 48px 40px;
    max-width: 1350px;
    margin: 0 auto;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer h4 { font-size: 0.85rem; margin-bottom: 16px; color: var(--text-main); }
footer p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; max-width: 280px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer ul a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: color .25s; }
footer ul a:hover { color: var(--text-main); }
.footer-bottom {
    border-top: 1px solid var(--glass-border); padding-top: 24px;
    color: var(--text-dim); font-size: 0.78rem;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-simple { text-align: center; color: var(--text-dim); font-size: 0.78rem; padding: 40px 48px; border-top: 1px solid var(--glass-border); }

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

/* ==========================================================================
   HOME — hero, category strip, product grid
   ========================================================================== */

.hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}
.hero-banner::before {
    content: ""; position: absolute; top:0; right:0; bottom:0; left:0; z-index: 0;
    background-image:
        linear-gradient(rgba(4,9,20,0.6), rgba(4,9,20,0.82)),
        url('../assets/images/background_firstpage_img.webp');
    background-size: cover; background-position: center;
}
.hero-banner::after {
    content: ""; position: absolute; top:0; left:0; right:0; height: 2px; z-index: 1;
    background: linear-gradient(90deg, transparent, var(--orange), var(--blue), transparent);
    box-shadow: 0 0 16px rgba(255,122,26,0.5), 0 0 16px rgba(56,189,248,0.4);
    opacity: 0.8;
}
html[data-theme="light"] .hero-banner::before {
    background-image:
        linear-gradient(rgba(245,247,250,0.68), rgba(245,247,250,0.88)),
        url('../assets/images/background_firstpage_img.webp');
}

.hero {
    padding: 120px 48px 90px; max-width: 1100px; margin: 0 auto;
    text-align: center; position: relative; z-index: 1;
}

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--blue); border: 1px solid rgba(56,189,248,0.25);
    background: rgba(56,189,248,0.06); padding: 7px 16px; border-radius: 100px; margin-bottom: 28px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); animation: dot-pulse 2s infinite ease-in-out; }
@keyframes dot-pulse { 0%,100%{opacity:.5;} 50%{opacity:1;} }

.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 24px; }
.hero h1 span {
    background: linear-gradient(120deg, var(--orange) 0%, var(--orange-deep) 45%, var(--blue-deep) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--text-muted); font-size: 1.08rem; max-width: 560px; margin: 0 auto 40px; line-height: 1.6; }
.hero-actions { display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap; }

.category-strip { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; max-width: 900px; margin: 40px auto 90px; padding: 0 48px; }
.cat-pill {
    display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 100px;
    border: 1px solid var(--glass-border); background: var(--glass); backdrop-filter: blur(20px);
    font-size: 0.85rem; color: var(--text-muted); cursor: pointer; transition: all .25s ease;
}
.cat-pill:hover, .cat-pill.active { color: var(--text-main); border-color: var(--pill-color, var(--orange)); }
.cat-pill .swatch { width: 8px; height: 8px; border-radius: 50%; background: var(--pill-color, var(--orange)); }

.section-head { max-width: 1350px; margin: 0 auto; padding: 0 48px; display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; }
.section-head h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.section-head a { color: var(--text-muted); font-size: 0.85rem; text-decoration: none; }
.section-head a:hover { color: var(--text-main); }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; max-width: 1350px; margin: 0 auto 100px; padding: 0 48px; }

.product-card {
    background: var(--glass); backdrop-filter: blur(28px) saturate(150%); -webkit-backdrop-filter: blur(28px) saturate(150%);
    border: 1px solid var(--glass-border); border-radius: 24px; padding: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all .4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.product-card:hover { transform: translateY(-6px); border-color: var(--tag-color); box-shadow: 0 28px 56px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1); }

.product-art { width: 100%; min-height: 200px; aspect-ratio: 1.3/1; border-radius: 18px; margin-bottom: 20px; position: relative; overflow: hidden; background: var(--art-bg); border: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; }
.art-glyph { position: relative; z-index: 2; width: 46px; height: 46px; border-radius: 13px; background: rgba(255,255,255,0.1); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.3); }
.art-glyph svg { width: 22px; height: 22px; stroke: #fff; }

.sold-out-tag { position: absolute; top: 12px; left: 12px; z-index: 3; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; background: rgba(4,9,20,0.75); border: 1px solid rgba(255,255,255,0.15); color: var(--text-muted); }

.cat-tag { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tag-color); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.cat-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tag-color); box-shadow: 0 0 8px var(--tag-color); }

.product-card h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; line-height: 1.35; }
.product-desc { color: var(--text-muted); font-size: 0.8rem; line-height: 1.5; margin-bottom: 18px; flex-grow: 1; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.price { font-size: 1.05rem; font-weight: 700; }
.price span { color: var(--text-dim); font-size: 0.75rem; font-weight: 500; }

.btn-add {
    font-size: 0.8rem; font-weight: 600; padding: 9px 16px; border-radius: 100px;
    border: 1px solid var(--tag-color);
    background: rgba(255,255,255,0.08);
    background: color-mix(in srgb, var(--tag-color) 12%, transparent);
    color: var(--text-main); cursor: pointer; transition: all .25s ease;
}
.btn-add:hover { background: var(--tag-color); color: #FFFFFF; }
.btn-add:disabled { opacity: .35; cursor: not-allowed; border-color: var(--glass-border); background: transparent; color: var(--text-dim); }

@media (max-width: 900px) {
    .hero { padding: 80px 20px 60px; }
    .products-grid, .section-head, .category-strip { padding-left: 20px; padding-right: 20px; }
}

/* ==========================================================================
   PRODUCT PAGE
   ========================================================================== */

.breadcrumb { max-width: 1200px; margin: 28px auto 0; padding: 0 48px; font-size: 0.8rem; color: var(--text-dim); }
.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--text-muted); }

.product-hero { max-width: 1200px; margin: 0 auto; padding: 32px 48px 70px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

.gallery { position: sticky; top: 100px; border-radius: 32px; padding: 3px; background: linear-gradient(155deg, rgba(255,122,26,0.35), rgba(56,189,248,0.15) 40%, rgba(255,255,255,0.04)); }
.gallery-inner { border-radius: 30px; background: var(--glass); backdrop-filter: blur(30px); border: 1px solid var(--glass-border); padding: 36px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.gallery-inner::before {
    content: ""; position: absolute; top:-40%; right:-40%; bottom:-40%; left:-40%;
    background: radial-gradient(circle at 30% 20%, rgba(255,122,26,0.35), transparent 55%), radial-gradient(circle at 80% 80%, rgba(56,189,248,0.22), transparent 55%);
    filter: blur(50px); animation: blob-morph 9s ease-in-out infinite alternate;
}
@keyframes blob-morph { 0% { transform: translate(0,0) rotate(0deg) scale(1); } 100% { transform: translate(4%, -4%) rotate(8deg) scale(1.15); } }
.gallery-inner img { position: relative; z-index: 1; width: 100%; max-width: 380px; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5)); }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 16px; }
.thumb { width: 56px; height: 56px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-border); cursor: pointer; transition: all .25s; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.thumb.active { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(255,122,26,0.2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.rating-row { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.stars { display: flex; gap: 2px; }
.stars svg { width: 15px; height: 15px; fill: var(--orange); }
.rating-row span { font-size: 0.82rem; color: var(--text-muted); }

.product-info h1 { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 14px; }
.product-info .product-desc { max-width: 480px; margin-bottom: 28px; font-size: 0.96rem; }

.version-select { margin-bottom: 26px; }
.version-select label { display: block; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; font-weight: 600; }
.segmented { display: inline-flex; padding: 4px; border-radius: 100px; background: var(--glass); border: 1px solid var(--glass-border); gap: 4px; }
.segmented button { border: none; background: transparent; color: var(--text-muted); font-size: 0.82rem; font-weight: 600; padding: 8px 18px; border-radius: 100px; cursor: pointer; transition: all .25s; }
.segmented button.active { background: linear-gradient(135deg, var(--orange), var(--orange-deep)); color: #FFFFFF; box-shadow: 0 6px 16px rgba(255,122,26,0.3); }

.price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.price-row .price { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.price-row .price-sub { font-size: 0.85rem; color: var(--text-dim); }

.cta-row { display: flex; gap: 12px; margin-bottom: 30px; }
.btn-buy {
    flex: 1; padding: 15px 24px; border: none; border-radius: 16px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
    color: #FFFFFF; font-weight: 700; font-size: 0.95rem; cursor: pointer;
    box-shadow: 0 14px 30px rgba(255,122,26,0.32), inset 0 1px 0 rgba(255,255,255,0.35);
    transition: transform .25s ease;
}
.btn-buy:hover { transform: translateY(-2px); }
.btn-cart {
    padding: 15px 22px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-border);
    color: var(--text-main); font-weight: 600; font-size: 0.95rem; cursor: pointer;
    display: flex; align-items: center; gap: 8px; transition: all .25s;
}
.btn-cart:hover { background: var(--glass-hover); border-color: var(--blue); }
.btn-cart svg { width: 17px; height: 17px; stroke: var(--text-main); }

.trust-row { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 34px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--text-muted); }
.trust-item svg { width: 16px; height: 16px; stroke: var(--blue); flex-shrink: 0; }

.feature-list { display: flex; flex-direction: column; gap: 14px; }
.feature-item { display: flex; align-items: flex-start; gap: 12px; }
.feature-glyph { width: 30px; height: 30px; flex-shrink: 0; border-radius: 10px; background: linear-gradient(135deg, rgba(255,122,26,0.18), rgba(56,189,248,0.14)); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; }
.feature-glyph svg { width: 14px; height: 14px; stroke: var(--orange); }
.feature-item p { font-size: 0.87rem; color: var(--text-muted); line-height: 1.5; padding-top: 5px; }
.feature-item strong { color: var(--text-main); }

.detail-tabs { max-width: 1200px; margin: 0 auto; padding: 0 48px 90px; }
.tab-bar { display: inline-flex; padding: 5px; border-radius: 100px; background: var(--glass); border: 1px solid var(--glass-border); margin-bottom: 32px; gap: 4px; }
.tab-bar button { border: none; background: transparent; color: var(--text-muted); font-size: 0.85rem; font-weight: 600; padding: 10px 22px; border-radius: 100px; cursor: pointer; transition: all .25s; }
.tab-bar button.active { background: rgba(255,255,255,0.08); color: var(--text-main); }
.tab-panel { background: var(--glass); backdrop-filter: blur(24px); border: 1px solid var(--glass-border); border-radius: 24px; padding: 36px; color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; max-width: 760px; }
.tab-panel strong { color: var(--text-main); }

.related { max-width: 1200px; margin: 0 auto; padding: 0 48px 100px; }
.related h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 26px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.rp-card { background: var(--glass); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: 20px; padding: 20px; transition: all .35s cubic-bezier(.16,1,.3,1); }
.rp-card:hover { transform: translateY(-5px); border-color: var(--blue); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.rp-art { min-height: 150px; aspect-ratio: 1.3/1; border-radius: 14px; margin-bottom: 16px; background: radial-gradient(circle at 30% 20%, var(--blue) 0%, #0F172A 65%); display: flex; align-items: center; justify-content: center; }
.rp-art svg { width: 22px; height: 22px; stroke: #fff; }
.rp-card h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.rp-card .rp-price { font-size: 0.85rem; color: var(--text-muted); font-weight: 700; }

@media (max-width: 900px) {
    .product-hero { grid-template-columns: 1fr; padding: 24px 20px 50px; gap: 36px; }
    .gallery { position: static; }
    .detail-tabs, .related { padding-left: 20px; padding-right: 20px; }
}

/* ==========================================================================
   ACCOUNT PAGE
   ========================================================================== */

body.account-body { display: flex; }

.sidebar {
    position: relative; z-index: 1; width: 268px; flex-shrink: 0; min-height: 100vh;
    background: rgba(255,255,255,0.02); border-right: 1px solid var(--glass-border);
    backdrop-filter: blur(24px); padding: 26px 20px; display: flex; flex-direction: column;
}
.sb-logo { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; padding: 6px 10px 30px; text-decoration: none; color: var(--text-main); }
.sb-logo img { height: 30px; }

.sb-user { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-border); margin: 18px 0 26px; }
.avatar { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--orange), var(--blue-deep)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.sb-user div p { font-size: 0.85rem; font-weight: 600; }
.sb-user div span { font-size: 0.72rem; color: var(--text-dim); }

.sb-nav { list-style: none; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.sb-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: var(--text-muted); text-decoration: none; font-size: 0.87rem; font-weight: 500; transition: all .25s; }
.sb-nav a svg { width: 17px; height: 17px; stroke: currentColor; flex-shrink: 0; }
.sb-nav a:hover { background: var(--glass-hover); color: var(--text-main); }
.sb-nav a.active { background: linear-gradient(135deg, rgba(255,122,26,0.16), rgba(56,189,248,0.10)); border: 1px solid rgba(255,122,26,0.25); color: var(--text-main); }
.sb-nav .badge { margin-left: auto; font-size: 0.65rem; font-weight: 700; background: rgba(255,122,26,0.18); color: var(--orange); padding: 2px 8px; border-radius: 100px; }
.sb-logout { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; margin-top: 10px; color: var(--text-dim); text-decoration: none; font-size: 0.87rem; font-weight: 500; }
.sb-logout:hover { color: #FF5C5C; }
.sb-logout svg { width: 17px; height: 17px; stroke: currentColor; }

.main { position: relative; z-index: 1; flex-grow: 1; padding: 32px 44px 60px; max-width: 1180px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.topbar h1 { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; }
.topbar p { color: var(--text-muted); font-size: 0.88rem; margin-top: 4px; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.stat-card { background: var(--glass); backdrop-filter: blur(22px); border: 1px solid var(--glass-border); border-radius: 22px; padding: 24px; position: relative; overflow: hidden; }
.stat-card::before { content: ""; position: absolute; top: -30%; right: -20%; width: 140px; height: 140px; background: radial-gradient(circle, var(--glow, var(--orange)) 0%, transparent 70%); opacity: 0.18; filter: blur(10px); }
.stat-icon { width: 38px; height: 38px; border-radius: 12px; margin-bottom: 18px; background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; }
.stat-icon svg { width: 17px; height: 17px; stroke: var(--glow, var(--orange)); }
.stat-card .num { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.stat-card .label { font-size: 0.8rem; color: var(--text-muted); }

.panel { background: var(--glass); backdrop-filter: blur(22px); border: 1px solid var(--glass-border); border-radius: 22px; margin-bottom: 28px; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--glass-border); }
.panel-head h2 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.panel-head a { color: var(--text-muted); font-size: 0.8rem; text-decoration: none; }
.panel-head a:hover { color: var(--text-main); }

.downloads-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--glass-border); }
.dl-row { background: #070d19; padding: 18px 26px; display: flex; align-items: center; gap: 16px; transition: background .25s; }
.dl-row:hover { background: #0a1220; }
.dl-thumb { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; background: radial-gradient(circle at 30% 20%, var(--blue), #0F172A 65%); display: flex; align-items: center; justify-content: center; }
.dl-thumb svg { width: 18px; height: 18px; stroke: #fff; }
.dl-info { flex-grow: 1; min-width: 0; }
.dl-info p { font-size: 0.86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-info span { font-size: 0.72rem; color: var(--text-dim); }
.btn-dl { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; background: linear-gradient(135deg, var(--orange), var(--orange-deep)); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.btn-dl svg { width: 15px; height: 15px; stroke: #FFFFFF; }

table { width: 100%; border-collapse: collapse; }
thead th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); padding: 14px 26px; font-weight: 600; }
tbody td { padding: 16px 26px; font-size: 0.85rem; border-top: 1px solid var(--glass-border); }
tbody tr:hover { background: rgba(255,255,255,0.02); }
.order-id { color: var(--text-main); font-weight: 600; }
.order-date { color: var(--text-muted); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; padding: 4px 12px; border-radius: 100px; }
.status-pill.paid { background: rgba(16,185,129,0.14); color: var(--green); }
.status-pill.paid::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.upgrade-card { border-radius: 24px; padding: 3px; margin-top: 8px; background: linear-gradient(135deg, var(--orange), var(--blue-deep)); }
.upgrade-inner { border-radius: 22px; background: #070d19; padding: 28px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; position: relative; overflow: hidden; }
.upgrade-inner::before { content: ""; position: absolute; top:-50%; right:-50%; bottom:-50%; left:-50%; background: radial-gradient(circle at 20% 30%, rgba(255,122,26,0.25), transparent 55%), radial-gradient(circle at 80% 70%, rgba(56,189,248,0.2), transparent 55%); filter: blur(40px); animation: field-drift 10s ease-in-out infinite alternate; }
.upgrade-inner h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; position: relative; }
.upgrade-inner p { font-size: 0.85rem; color: var(--text-muted); position: relative; max-width: 400px; }

.account-topbar-mobile {
    display: none;
    position: relative; z-index: 1;
    align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(5, 11, 22, 0.6);
    backdrop-filter: blur(20px);
}
.account-topbar-mobile .logo img { height: 22px; }

.account-mobile-nav {
    display: none;
    position: relative; z-index: 1;
    gap: 8px; padding: 14px 20px;
    overflow-x: auto;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(5, 11, 22, 0.6);
    backdrop-filter: blur(20px);
}
.account-mobile-nav a {
    flex-shrink: 0; display: flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 100px;
    background: var(--glass); border: 1px solid var(--glass-border);
    color: var(--text-muted); text-decoration: none; font-size: 0.82rem; font-weight: 500;
    white-space: nowrap;
}
.account-mobile-nav a.active { color: var(--text-main); border-color: var(--orange); background: rgba(255,122,26,0.1); }

@media (max-width: 980px) {
    .sidebar { display: none; }
    .account-topbar-mobile { display: flex; }
    .account-mobile-nav { display: flex; }
    .main { padding: 24px 20px 50px; }
    .stats-grid { grid-template-columns: 1fr; }
    .downloads-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   AUTH PAGES (login + register)
   ========================================================================== */

body.auth-body {
    display: flex; align-items: center; justify-content: center; padding: 20px;
    animation: fadeInPage .5s ease-out;
    background-image:
        linear-gradient(rgba(5,11,22,0.55), rgba(5,11,22,0.75)),
        url('../assets/images/background_firstpage_img.webp');
    background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: fixed;
}
@keyframes fadeInPage { from{opacity:0; transform:translateY(8px);} to{opacity:1; transform:translateY(0);} }

.auth-frame { position: relative; z-index: 1; width: 100%; max-width: 420px; border-radius: 30px; padding: 2px; background: linear-gradient(150deg, rgba(255,122,26,0.35), rgba(56,189,248,0.14) 45%, rgba(255,255,255,0.05)); }
.auth-wrapper { background: rgba(7,13,25,0.92); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); border-radius: 28px; padding: 34px 30px 24px; text-align: center; box-shadow: 0 24px 48px rgba(0,0,0,0.45); }

.auth-logo { width: 42px; height: 42px; object-fit: contain; margin-bottom: 12px; filter: drop-shadow(0 0 14px rgba(255,122,26,0.35)); }
.auth-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.auth-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 22px; line-height: 1.4; }

.auth-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.form-group { display: flex; flex-direction: column; gap: 5px; position: relative; }
.form-group label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.input-wrapper { position: relative; display: flex; align-items: center; }

.form-input { width: 100%; background: rgba(4,9,20,0.6); border: 1px solid rgba(255,255,255,0.1); padding: 11px 14px; border-radius: 13px; color: var(--text-main); font-size: 14px; outline: none; transition: all .3s ease; font-family: inherit; }
.form-input.has-icon { padding-right: 42px; }
.form-input:focus { border-color: var(--blue); box-shadow: 0 0 15px var(--blue-glow); background: rgba(4,9,20,0.9); }
.form-input::placeholder { color: rgba(150,161,176,0.45); }

.password-toggle { position: absolute; right: 14px; background: none; border: none; cursor: pointer; color: var(--text-muted); display: flex; align-items: center; justify-content: center; transition: color .2s ease; }
.password-toggle:hover { color: #fff; }
.password-toggle svg { width: 18px; height: 18px; }

.error-message { font-size: 11px; color: var(--error); margin-top: 2px; display: none; }
.form-group.error .form-input { border-color: var(--error); }
.form-group.error .error-message { display: block; }

.password-requirements { background: rgba(4,9,20,0.4); border: 1px solid rgba(255,255,255,0.05); border-radius: 10px; padding: 9px 11px; margin-top: 2px; display: flex; flex-direction: column; gap: 4px; }
.req-item { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; transition: color .2s ease; }
.req-item::before { content: '•'; font-size: 14px; line-height: 1; }
.req-item.valid { color: var(--success); }
.req-item.valid::before { content: '✓'; font-size: 11px; }

.options-row { display: flex; align-items: center; justify-content: space-between; margin-top: -2px; }
.remember-me { display: flex; align-items: center; gap: 7px; }
.remember-me input { accent-color: var(--orange); width: 14px; height: 14px; cursor: pointer; }
.remember-me label { font-size: 12px; color: var(--text-muted); cursor: pointer; }
.forgot-link { font-size: 12px; color: var(--blue); text-decoration: none; }
.forgot-link:hover { text-decoration: underline; }

.terms-row { display: flex; align-items: flex-start; gap: 8px; margin-top: 2px; text-align: left; }
.terms-row input[type="checkbox"] { accent-color: var(--orange); width: 15px; height: 15px; cursor: pointer; margin-top: 2px; flex-shrink: 0; }
.terms-label { font-size: 12px; color: var(--text-muted); line-height: 1.35; cursor: pointer; user-select: none; }
.terms-label a { color: var(--blue); text-decoration: none; }
.terms-label a:hover { text-decoration: underline; }

.btn-submit {
    width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(135deg, var(--orange), var(--orange-deep));
    border: none; color: #FFFFFF; padding: 13px; border-radius: 13px;
    font-weight: 700; font-size: 14px; cursor: pointer;
    box-shadow: 0 10px 26px rgba(255,122,26,0.3), inset 0 1px 0 rgba(255,255,255,0.35);
    transition: all .25s ease; margin-top: 4px;
}
.btn-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(255,122,26,0.4); }
.btn-submit:disabled { opacity: .65; cursor: not-allowed; }

.spinner { width: 15px; height: 15px; border: 2px solid rgba(26,8,0,0.3); border-radius: 50%; border-top-color: #FFFFFF; animation: spin .8s linear infinite; display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.social-divider { display: flex; align-items: center; text-align: center; margin: 20px 0 14px; color: rgba(150,161,176,0.4); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.social-divider::before, .social-divider::after { content: ''; flex: 1; border-bottom: 1px solid rgba(255,255,255,0.08); }
.social-divider span { padding: 0 10px; }

.social-buttons { display: flex; gap: 10px; }
.btn-social { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--glass); border: 1px solid var(--glass-border); color: var(--text-main); padding: 10px 12px; border-radius: 13px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all .25s ease; }
.btn-social:hover { background: rgba(255,255,255,0.07); border-color: var(--blue); transform: translateY(-1px); }
.btn-social svg { width: 16px; height: 16px; flex-shrink: 0; }

.auth-footer { margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.auth-footer a { color: var(--blue); text-decoration: none; font-weight: 600; }
.auth-footer a:hover { color: #fff; text-decoration: underline; }
.security-trust { margin-top: 14px; font-size: 11px; color: rgba(150,161,176,0.45); }

@media (max-width: 480px) {
    .auth-wrapper { padding: 28px 20px 20px; }
    .social-buttons { flex-direction: column; }
}
/* ==========================================================================
   NOVA ESTRATÉGIA: Troca via Slots (Instantânea)
   ========================================================================== */

/* Esconde o texto e mostra o ícone quando o usuário está logado */
html.user-logged-in .slot-signin { 
    display: none !important; 
}
html.user-logged-in .slot-account-icon { 
    display: inline-flex !important; 
    align-items: center; 
    justify-content: center;
}

/* ==========================================================================
   BLINDAGEM TOTAL: BOTÃO MOBILE NEON (SEM PISCAR AZUL/BRANCO AO CLICAR)
   ========================================================================== */
.mobile-neon-btn,
.mobile-neon-btn:link,
.mobile-neon-btn:visited,
.mobile-neon-btn:hover,
.mobile-neon-btn:active,
.mobile-neon-btn:focus {
    background: linear-gradient(135deg, var(--orange), var(--orange-deep)) !important;
    color: #ffffff !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    text-decoration: none !important;
}

.mobile-neon-btn:active {
    transform: scale(0.97) !important;
    box-shadow: 0 0 22px rgba(255, 122, 26, 0.7), inset 0 0 10px rgba(255, 255, 255, 0.4) !important;
}

/* ==========================================================================
   CORREÇÃO RESPONSIVA MOBILE: PÁGINAS DE LOGIN E REGISTRO
   ========================================================================== */
@media (max-width: 768px) {
    body.auth-body {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 16px !important;
        min-height: 100vh;
        overflow-x: hidden !important;
    }

    body.auth-body > div, 
    body.auth-body > form,
    .auth-container, 
    .auth-layout {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        align-items: center !important;
        gap: 16px !important;
        margin: 0 !important;
    }

    .auth-frame {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .auth-wrapper {
        padding: 24px 18px !important;
        width: 100% !important;
        border-radius: 22px !important;
    }

    .auth-back-link, 
    a[href*="index.html"] {
        margin-bottom: 8px !important;
        align-self: flex-start !important;
    }
} /* <--- Chave que fecha o @media do Login */

/* ==========================================================================
   CORREÇÃO RESPONSIVA MOBILE: ACCOUNT PAGE (PAINEL DO USUÁRIO)
   ========================================================================== */
@media (max-width: 980px) {
    body.account-body {
        display: block !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    .sidebar {
        display: none !important;
    }

    .account-topbar-mobile,
    .account-mobile-nav {
        display: flex !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .main {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 16px 60px !important;
        box-sizing: border-box;
    }

    .stats-grid,
    .downloads-grid {
        grid-template-columns: 1fr !important;
    }
} /* <--- Chave que fecha o @media do Account (O erro sumirá aqui!) */