:root {
    --primary-color: #ff7a18;
    --secondary-color: #18c38a;
    --earth-color: #795548;
    --dark-color: #0b1020;
    --light-color: #eef2ff;
    --white: #ffffff;
    --bg-color: #060913;
    --accent-cyan: #38bdf8;
    --accent-purple: #a78bfa;
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.68);
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-bg-strong: rgba(255, 255, 255, 0.10);
    --glass-border: rgba(255, 255, 255, 0.14);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.28);
    --radius: 16px;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text);
    background-color: var(--bg-color);
    scroll-behavior: smooth;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(1000px 600px at 20% 10%, rgba(56, 189, 248, 0.18), transparent 60%),
        radial-gradient(900px 500px at 80% 20%, rgba(167, 139, 250, 0.16), transparent 60%),
        radial-gradient(1000px 700px at 50% 90%, rgba(255, 122, 24, 0.12), transparent 60%);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.14;
    mask-image: radial-gradient(circle at 50% 20%, rgba(0, 0, 0, 1), transparent 70%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    background: rgba(6, 9, 19, 0.55);
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.2px;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    transition: color 180ms ease;
}

.nav-links a:hover {
    color: rgba(255, 255, 255, 0.98);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
}

.lang-select {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.90);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.95rem;
    outline: none;
    backdrop-filter: blur(10px);
}

.lang-select:focus {
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.95), rgba(167, 139, 250, 0.95));
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 12px 26px rgba(56, 189, 248, 0.18);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(56, 189, 248, 0.25);
    filter: saturate(1.05);
}

header {
    background:
        radial-gradient(1200px 600px at 20% 10%, rgba(56, 189, 248, 0.22), transparent 60%),
        radial-gradient(900px 500px at 80% 20%, rgba(167, 139, 250, 0.18), transparent 60%),
        linear-gradient(rgba(6, 9, 19, 0.72), rgba(6, 9, 19, 0.82)),
        url('https://images.unsplash.com/photo-1599940824399-b87987cb971a?auto=format&fit=crop&q=80&w=1200');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 180px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: radial-gradient(800px 400px at 50% 0%, rgba(255, 255, 255, 0.12), transparent 60%);
    opacity: 0.7;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.ginger-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(14px);
}

.ginger-story {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.02);
}

.story-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
}

.ginger-list {
    list-style: none;
    padding: 0;
}

.ginger-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    padding-left: 30px;
}

.ginger-list li::before {
    content: '🫚';
    position: absolute;
    left: 0;
}

.ginger-art {
    font-size: 15rem;
    text-shadow:
        0 0 30px rgba(56, 189, 248, 0.20),
        0 0 60px rgba(167, 139, 250, 0.14);
    transform: rotate(15deg);
}

header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: 0.6px;
    text-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.82);
}

.hero-contact {
    margin: -10px auto 28px;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.98rem;
}

.hero-contact-sep {
    opacity: 0.65;
}

.hero-contact-item span {
    font-weight: 600;
}

.btn-main {
    background: linear-gradient(135deg, rgba(255, 122, 24, 0.92), rgba(56, 189, 248, 0.78));
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 12px;
    margin-right: 15px;
    display: inline-block;
    box-shadow: 0 18px 45px rgba(255, 122, 24, 0.18);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(56, 189, 248, 0.22);
    filter: saturate(1.08);
}

.btn-sub {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    text-decoration: none;
    padding: 13px 30px;
    border-radius: 12px;
    display: inline-block;
    backdrop-filter: blur(14px);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn-sub:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(255, 255, 255, 0.10);
}

.features {
    padding: 60px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.30);
    box-shadow: var(--shadow);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.products {
    padding: 80px 0;
    background:
        radial-gradient(1000px 520px at 30% 10%, rgba(56, 189, 248, 0.10), transparent 60%),
        radial-gradient(900px 520px at 70% 30%, rgba(167, 139, 250, 0.10), transparent 60%),
        rgba(255, 255, 255, 0.02);
    position: relative;
}

.products::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 50px;
    background: linear-gradient(to bottom, rgba(6, 9, 19, 0.85), transparent);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    letter-spacing: 0.6px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-item:hover {
    transform: translateY(-4px);
    border-color: rgba(167, 139, 250, 0.32);
    box-shadow: var(--shadow);
}

.product-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 14px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.price {
    color: rgba(255, 255, 255, 0.92);
    font-weight: bold;
    font-size: 1.2rem;
}

.btn-buy {
    background: linear-gradient(135deg, rgba(24, 195, 138, 0.92), rgba(56, 189, 248, 0.70));
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 16px 40px rgba(24, 195, 138, 0.14);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 55px rgba(56, 189, 248, 0.18);
    filter: saturate(1.08);
}

.market {
    padding: 80px 0;
    background:
        radial-gradient(1000px 520px at 30% 10%, rgba(56, 189, 248, 0.10), transparent 60%),
        radial-gradient(900px 520px at 70% 30%, rgba(167, 139, 250, 0.10), transparent 60%),
        rgba(255, 255, 255, 0.02);
    position: relative;
}

.market-box {
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    border-radius: calc(var(--radius) + 2px);
    padding: 40px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.market-sub {
    margin: 0 0 26px;
    text-align: center;
    color: var(--muted);
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

.market-chart-card {
    grid-column: 1 / -1;
}

.market-paper-card {
    grid-column: 1 / -1;
}

.market-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
    position: relative;
}

.paper-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.paper-balances {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.paper-balance {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.10);
    padding: 8px 10px;
    border-radius: 12px;
}

.paper-k {
    color: rgba(255, 255, 255, 0.65);
    margin-right: 6px;
}

.paper-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.paper-btn {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.90);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.92rem;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.paper-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(56, 189, 248, 0.40);
    background: rgba(255, 255, 255, 0.10);
}

.paper-btn-accent {
    border-color: rgba(56, 189, 248, 0.60);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(167, 139, 250, 0.18));
}

.paper-btn-strong {
    border-color: rgba(255, 122, 24, 0.65);
    background: linear-gradient(135deg, rgba(255, 122, 24, 0.22), rgba(56, 189, 248, 0.14));
}

.paper-form {
    display: grid;
    grid-template-columns: 120px 120px 1fr 120px;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.paper-select,
.paper-input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.18);
    color: rgba(255, 255, 255, 0.90);
    padding: 10px 12px;
    font-size: 0.95rem;
}

.paper-hint {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 8px;
}

.paper-status {
    min-height: 20px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
}

.paper-trades {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding-top: 12px;
}

.paper-trades-head {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.70);
    margin-bottom: 8px;
}

.paper-trades-body {
    white-space: pre-line;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    padding: 10px 12px;
    overflow-x: auto;
}

.market-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 12px;
}

.market-mode-btn {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.18);
    color: rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.92rem;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.market-mode-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(167, 139, 250, 0.42);
    background: rgba(255, 255, 255, 0.10);
}

.market-mode-btn.is-active {
    border-color: rgba(167, 139, 250, 0.70);
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.22), rgba(56, 189, 248, 0.18));
}

.market-asset-btn {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.92rem;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.market-asset-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 122, 24, 0.45);
    background: rgba(255, 255, 255, 0.10);
}

.market-asset-btn.is-active {
    border-color: rgba(255, 122, 24, 0.65);
    background: linear-gradient(135deg, rgba(255, 122, 24, 0.22), rgba(56, 189, 248, 0.14));
}

.market-range-btn {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.92rem;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.market-range-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(56, 189, 248, 0.40);
    background: rgba(255, 255, 255, 0.10);
}

.market-range-btn.is-active {
    border-color: rgba(56, 189, 248, 0.60);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(167, 139, 250, 0.18));
}

.market-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 10px;
}

.market-price {
    font-size: 2rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.4px;
    margin-bottom: 10px;
}

.market-meta {
    margin-top: 10px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.70);
}

#priceChart {
    width: 100%;
    height: 320px;
    display: block;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.18);
    cursor: crosshair;
    touch-action: none;
}

.chart-tooltip {
    position: absolute;
    z-index: 2;
    min-width: 120px;
    max-width: 220px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
    line-height: 1.25;
    white-space: pre-line;
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

@media (max-width: 900px) {
    .market-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .market-grid {
        grid-template-columns: 1fr;
    }
    .market-controls {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
    }
    .paper-form {
        grid-template-columns: 1fr 1fr;
    }
}

.origin {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

.origin-box {
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    border-radius: calc(var(--radius) + 2px);
    padding: 40px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.origin-head .section-title {
    margin-bottom: 14px;
}

.origin-sub {
    margin: 0 0 26px;
    text-align: center;
    color: var(--muted);
}

.origin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.origin-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.origin-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 6px;
}

.origin-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.2px;
}

.origin-meta {
    margin-top: 10px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.70);
    word-break: break-all;
}

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

.order {
    padding: 80px 0;
}

.order-box {
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border-radius: calc(var(--radius) + 2px);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.order-box form {
    display: flex;
    flex-direction: column;
}

.order-box input, .order-box select, .order-box textarea {
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.order-box input:focus, .order-box select:focus, .order-box textarea:focus {
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
    background: rgba(255, 255, 255, 0.08);
}

.btn-submit {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.95), rgba(255, 122, 24, 0.90));
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 18px 45px rgba(56, 189, 248, 0.18);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(167, 139, 250, 0.20);
    filter: saturate(1.08);
}

.order-status {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.order-status.success {
    background: rgba(24, 195, 138, 0.12);
    border-color: rgba(24, 195, 138, 0.25);
    color: rgba(255, 255, 255, 0.92);
}

.order-status.error {
    background: rgba(255, 122, 24, 0.12);
    border-color: rgba(255, 122, 24, 0.28);
    color: rgba(255, 255, 255, 0.92);
}

/* Account */
.account { padding: 60px 0; background: var(--color-bg); }
.account-box { background: var(--color-card); border-radius: 12px; padding: 30px; box-shadow: var(--shadow-sm); max-width: 600px; margin: 0 auto; }
.account-head { text-align: center; margin-bottom: 30px; }
.account-sub { color: var(--color-text-light); }
.account-back { margin-top: 12px; display: inline-block; }
.auth-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.auth-tab { background: none; border: none; font-size: 16px; padding: 10px 20px; cursor: pointer; color: var(--color-text-light); border-bottom: 2px solid transparent; }
.auth-tab.active { color: var(--color-primary); border-bottom: 2px solid var(--color-primary); font-weight: bold; }
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.auth-msg {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.auth-msg.error {
    display: block;
    background: rgba(211, 47, 47, 0.14);
    border: 1px solid rgba(211, 47, 47, 0.30);
    color: rgba(255, 255, 255, 0.92);
}

.auth-msg.ok {
    display: block;
    background: rgba(46, 204, 113, 0.14);
    border: 1px solid rgba(46, 204, 113, 0.30);
    color: rgba(255, 255, 255, 0.92);
}
.profile-info { padding: 20px; background: var(--color-bg); border-radius: 8px; margin-bottom: 20px; text-align: center; }
.profile-info h3 { color: var(--color-text); margin-bottom: 10px; }
.profile-info p { color: var(--color-text-light); margin-bottom: 5px; }
.order-list { display: flex; flex-direction: column; gap: 15px; }
.order-item { background: var(--color-bg); padding: 15px; border-radius: 8px; font-size: 14px; }
.order-item-head { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--color-text-light); font-size: 12px; }
.order-item-title { font-weight: bold; color: var(--color-text); }
.order-item-detail { white-space: pre-wrap; color: var(--color-text); line-height: 1.5; }

body.is-account-page header,
body.is-account-page #story,
body.is-account-page .features,
body.is-account-page #products,
body.is-account-page #delivery,
body.is-account-page #order,
body.is-account-page #contact,
body.is-account-page footer {
    display: none;
}

.contact {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

.contact-box {
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    border-radius: calc(var(--radius) + 2px);
    padding: 40px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: -20px;
}

.contact-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.contact-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 6px;
}

.contact-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    word-break: break-all;
}

.contact-tip {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.70);
    font-size: 0.95rem;
    text-align: center;
}

footer {
    background: rgba(0, 0, 0, 0.35);
    color: white;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(14px);
}

pre {
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.88);
    padding: 25px;
    border-radius: 12px;
    display: inline-block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1em;
    line-height: 1.1;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.35);
}

pre:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.products,
.delivery,
.order {
    padding: 80px 0;
}

.products-box,
.delivery-box,
.order-box {
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    border-radius: calc(var(--radius) + 2px);
    padding: 40px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.products-sub,
.delivery-sub,
.order-sub {
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 18px;
}

.products-tools {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.products-search {
    width: min(720px, 100%);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.18);
    color: rgba(255, 255, 255, 0.90);
    padding: 12px 14px;
    font-size: 1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.product-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.20);
}

.product-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.94);
    margin-bottom: 8px;
}

.product-price {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 12px;
}

.product-controls {
    display: grid;
    grid-template-columns: 46px 1fr 46px;
    gap: 10px;
    align-items: center;
}

.product-btn {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.90);
    border-radius: 12px;
    height: 40px;
    cursor: pointer;
    font-size: 1.1rem;
}

.product-qty {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.18);
    color: rgba(255, 255, 255, 0.90);
    padding: 10px 12px;
    font-size: 0.98rem;
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.delivery-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.20);
}

.delivery-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 10px;
}

.delivery-value {
    color: rgba(255, 255, 255, 0.90);
    font-size: 1.02rem;
    line-height: 1.45;
}

.order-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}

.order-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.20);
}

.order-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 10px;
}

.order-cart {
    white-space: pre-line;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.90);
    background: rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    padding: 12px;
    min-height: 90px;
}

.order-total {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.90);
    font-weight: 800;
}

.order-form {
    display: grid;
    gap: 10px;
}

.order-input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.18);
    color: rgba(255, 255, 255, 0.90);
    padding: 10px 12px;
    font-size: 0.98rem;
}

.order-status {
    min-height: 20px;
    color: rgba(255, 255, 255, 0.80);
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .order-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .delivery-grid {
        grid-template-columns: 1fr;
    }
}

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