/* ============================================================
   GameScript Shop — CRIMSON 电竞赤红风 THEME
   Aesthetic: Bold aggressive esports / competitive gaming
   Palette: True black + Blood crimson + Electric white
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
    --bg-deep: #0a0a0a;
    --bg-base: #0f0f0f;
    --bg-raised: #141414;
    --bg-card: rgba(20, 20, 20, 0.85);
    --bg-glass: rgba(20, 20, 20, 0.55);
    --bg-input: #1a1a1a;

    --text-primary: #f5f5f5;
    --text-secondary: #737373;
    --text-muted: #525252;

    --accent-1: #dc2626;          /* blood crimson */
    --accent-1-glow: rgba(220, 38, 38, 0.35);
    --accent-2: #991b1b;          /* deep red */
    --accent-2-glow: rgba(153, 27, 27, 0.30);
    --accent-3: #ef4444;          /* bright red */
    --accent-success: #22c55e;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;

    --border: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(220, 38, 38, 0.30);

    --radius-sm: 4px;
    --radius: 4px;
    --radius-lg: 4px;
    --radius-xl: 4px;

    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.03);
    --shadow-glow: 0 0 24px var(--accent-1-glow), 0 0 48px rgba(220, 38, 38, 0.12);
    --shadow-cyan: 0 0 20px var(--accent-2-glow);

    --font-display: 'Bebas Neue', 'Noto Sans SC', sans-serif;
    --font-body: 'Noto Sans SC', 'Bebas Neue', sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;

    --container: 1200px;
    --header-h: 68px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body.tpl-crimson {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body.tpl-crimson::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse 70% 45% at 25% 8%, rgba(220, 38, 38, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 50% 35% at 85% 92%, rgba(153, 27, 27, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

a { color: var(--accent-1); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-3); }

img { max-width: 100%; height: auto; }

/* ---- Layout ---- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.site-main {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - var(--header-h) - 120px);
    padding-top: var(--header-h);
}

/* ---- Header ---- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 2px solid var(--accent-1);
    z-index: 1000;
    transition: background 0.2s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.logo:hover { color: var(--accent-1); }

.logo-icon {
    font-size: 26px;
    filter: drop-shadow(0 0 8px var(--accent-1-glow));
}

.main-nav {
    display: flex;
    gap: 6px;
    flex: 1;
}

.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(220, 38, 38, 0.1);
}

.header-actions { display: flex; gap: 8px; }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 0;
    transition: 0.2s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg-raised);
    border-bottom: 2px solid var(--accent-1);
    z-index: 999;
    padding: 16px;
}

.mobile-menu.active { display: block; }
.mobile-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}
.mobile-menu a:hover { color: var(--text-primary); background: rgba(220, 38, 38, 0.1); }

/* ---- Announcement ---- */
.announcement-bar {
    background: #dc2626;
    padding: 10px 0;
    margin-top: var(--header-h);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

.announcement-bar .container {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 4px,
        rgba(255, 255, 255, 0.02) 4px,
        rgba(255, 255, 255, 0.02) 8px
    );
    pointer-events: none;
}

.btn-primary {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 4px 16px var(--accent-1-glow);
}

.btn-primary:hover {
    background: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--accent-1-glow);
    color: #fff;
}

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

.btn-cyan {
    background: #991b1b;
    color: #fff;
    box-shadow: 0 4px 16px var(--accent-2-glow);
}

.btn-cyan:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--accent-2-glow);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-1);
    color: var(--accent-1);
}

.btn-outline:hover {
    background: rgba(220, 38, 38, 0.12);
    border-color: var(--accent-3);
    color: var(--accent-3);
}

.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 16px 40px; font-size: 18px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---- Cards ---- */
.script-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 32px 0;
}

.script-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent-1);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
}

.script-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 6px,
        rgba(220, 38, 38, 0.015) 6px,
        rgba(220, 38, 38, 0.015) 12px
    );
    pointer-events: none;
    z-index: 0;
}

.script-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-glow);
    border-left-color: var(--accent-3);
}

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

.card-cover {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--bg-raised);
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.script-card:hover .card-cover img { transform: scale(1.06); }

.card-cover .card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.75);
    color: var(--accent-3);
    border: 1px solid rgba(220, 38, 38, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-cover .card-game {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 2px;
    background: rgba(220, 38, 38, 0.85);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-body {
    padding: 20px;
    position: relative;
    z-index: 1;
}

.card-body h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.card-body .card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 20px;
    position: relative;
    z-index: 1;
}

.card-price {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--accent-1);
    text-shadow: 0 0 16px var(--accent-1-glow);
    letter-spacing: 1px;
}

.card-price small {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}

.card-sales {
    font-size: 12px;
    color: var(--text-muted);
}

/* ---- Section Headers ---- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0 8px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding-left: 18px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 5px;
    border-radius: 0;
    background: var(--accent-1);
    box-shadow: 0 0 12px var(--accent-1-glow);
}

/* ---- Hero ---- */
.hero-section {
    padding: 80px 0 40px;
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 450px;
    background: radial-gradient(ellipse, rgba(220, 38, 38, 0.18) 0%, rgba(153, 27, 27, 0.06) 40%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 8px,
        rgba(220, 38, 38, 0.02) 8px,
        rgba(220, 38, 38, 0.02) 16px
    );
    pointer-events: none;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 40px var(--accent-1-glow), 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-num {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 700;
    color: var(--accent-1);
    text-shadow: 0 0 20px var(--accent-1-glow);
    letter-spacing: 2px;
}

.hero-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- Detail Page ---- */
.detail-page {
    padding: 40px 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

.detail-cover {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-raised);
    aspect-ratio: 1/1;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-1);
}

.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent-1);
    border-radius: var(--radius);
    padding: 32px;
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.detail-title {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.detail-game {
    font-size: 14px;
    color: var(--accent-1);
    margin-bottom: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.sku-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.sku-item {
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-input);
    color: var(--text-secondary);
    position: relative;
}

.sku-item:hover, .sku-item.active {
    border-color: var(--accent-1);
    color: var(--text-primary);
    background: rgba(220, 38, 38, 0.12);
    box-shadow: 0 0 12px var(--accent-1-glow);
}

.sku-item .sku-price {
    display: block;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-1);
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.sku-item.active .sku-price { color: var(--accent-3); }

.detail-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--text-muted);
}


/* ---- QQ Group Card ---- */
.detail-qq-group {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 24px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.25s;
}

.detail-qq-group:hover {
    border-color: var(--accent-1);
}

.qq-group-icon {
    font-size: 30px;
    line-height: 1;
    flex-shrink: 0;
}

.qq-group-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.qq-group-label {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.qq-group-num {
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 700;
    color: var(--accent-1);
    letter-spacing: 1px;
}

.qq-group-btn {
    padding: 6px 16px;
    background: var(--accent-1);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
    white-space: nowrap;
    flex-shrink: 0;
}

.qq-group-btn:hover {
    opacity: 0.85;
    color: #fff;
    box-shadow: 0 4px 16px var(--accent-1-glow);
}
.order-form { display: flex; flex-direction: column; gap: 12px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px var(--accent-1-glow);
}

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

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23737373' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

textarea.form-input { resize: vertical; min-height: 80px; }

/* ---- Card Result (卡密展示) ---- */
.card-result {
    background: var(--bg-card);
    border: 2px solid var(--accent-1);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-glow);
    max-width: 600px;
    margin: 60px auto;
    position: relative;
}

.card-result::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 8px,
        rgba(220, 38, 38, 0.02) 8px,
        rgba(220, 38, 38, 0.02) 16px
    );
    pointer-events: none;
    border-radius: inherit;
}

.card-result-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--accent-1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    position: relative;
    z-index: 1;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 16px var(--accent-1-glow); }
    50% { box-shadow: 0 0 32px var(--accent-1-glow), 0 0 48px rgba(220, 38, 38, 0.15); }
}

.card-result h2 {
    font-family: var(--font-display);
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--accent-success);
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.card-result .order-no {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.card-info-grid {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.card-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg-input);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent-1);
}

.card-info-label {
    font-size: 13px;
    color: var(--text-muted);
    min-width: 70px;
}

.card-info-value {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-1);
    word-break: break-all;
    flex: 1;
    text-align: right;
    margin-right: 12px;
}

.copy-btn {
    padding: 4px 12px;
    font-size: 12px;
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-sm);
    color: var(--accent-1);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.copy-btn:hover {
    background: var(--accent-1);
    color: #fff;
}

/* ---- Footer ---- */
.site-footer {
    position: relative;
    z-index: 1;
    border-top: 2px solid var(--accent-1);
    padding: 32px 0;
    margin-top: 60px;
    background: var(--bg-base);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links a:hover { color: var(--accent-1); }

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-copy a { color: var(--text-muted); }

/* ---- Toast ---- */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-left: 3px solid var(--text-muted);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-primary);
    transform: translateX(120%);
    transition: transform 0.2s ease;
    min-width: 260px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.toast.show { transform: translateX(0); }
.toast-success { border-left-color: var(--accent-success); }
.toast-error { border-left-color: var(--accent-danger); }
.toast-warning { border-left-color: var(--accent-warning); }
.toast-icon { font-size: 16px; }
.toast-success .toast-icon { color: var(--accent-success); }
.toast-error .toast-icon { color: var(--accent-danger); }

/* ---- Animations ---- */
.animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in { opacity: 0; transition: opacity 0.4s ease; }
.fade-in.visible { opacity: 1; }

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.35;
    filter: grayscale(0.5);
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 24px;
}

/* ---- Order Page ---- */
.order-page {
    max-width: 560px;
    margin: 0 auto;
    padding: 40px 0;
}

.order-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent-1);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
    position: relative;
}

.order-summary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 8px,
        rgba(220, 38, 38, 0.015) 8px,
        rgba(220, 38, 38, 0.015) 16px
    );
    pointer-events: none;
    border-radius: inherit;
}

.order-summary h3 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.order-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.order-row .label { color: var(--text-muted); }
.order-row .value { color: var(--text-primary); font-weight: 500; }

.order-total {
    display: flex;
    justify-content: space-between;
    padding: 20px 0 0;
    margin-top: 16px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.order-total .label {
    font-size: 16px;
    font-weight: 600;
}

.order-total .value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-1);
    text-shadow: 0 0 16px var(--accent-1-glow);
    letter-spacing: 1px;
}

.pay-type-list {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.pay-type-item {
    flex: 1;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-input);
    font-size: 14px;
    color: var(--text-secondary);
}

.pay-type-item:hover, .pay-type-item.active {
    border-color: var(--accent-1);
    color: var(--text-primary);
    background: rgba(220, 38, 38, 0.1);
    box-shadow: 0 0 12px var(--accent-1-glow);
}

.pay-type-item .pay-icon { font-size: 28px; display: block; margin-bottom: 8px; }

/* ---- Pagination ---- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 32px 0;
}

.pagination a, .pagination span {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.pagination a:hover {
    border-color: var(--accent-1);
    color: var(--accent-1);
}

.pagination .active {
    background: var(--accent-1);
    border-color: var(--accent-1);
    color: #fff;
    font-weight: 600;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .header-actions { display: none; }
    .mobile-menu-btn { display: flex; }

    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 15px; }
    .hero-stats { gap: 24px; }
    .hero-stat-num { font-size: 28px; }

    .script-grid { grid-template-columns: 1fr; gap: 16px; }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .detail-info {
        position: static;
        padding: 24px;
    }

    .pay-type-list { flex-direction: column; }

    .section-title { font-size: 24px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-section { padding: 40px 0 20px; }
    .hero-title { font-size: 28px; letter-spacing: 2px; }
    .card-result { padding: 24px; margin: 24px 16px; }
    .card-info-row { flex-direction: column; gap: 8px; align-items: flex-start; }
    .card-info-value { text-align: left; }
}
