/* ============================================================
   Dark Hacker Theme — CryptoGoods
   Terminal / Matrix / Cyberpunk aesthetic
   ============================================================ */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'JetBrains Mono', 'Fira Code', 'Source Code Pro', monospace;
    background-color: #0a0a0a;
    color: #b0b0b0;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* --- Scanline Overlay --- */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #1a1a1a; }
::-webkit-scrollbar-thumb:hover { background: #00ff41; }

/* --- Selection --- */
::selection {
    background: rgba(0, 255, 65, 0.3);
    color: #00ff41;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: #00ff41;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }

p { margin-bottom: 0.75rem; }

a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: #00ff41;
}

code, pre {
    font-family: 'JetBrains Mono', 'Fira Code', 'Source Code Pro', monospace;
}

strong { color: #e0e0e0; }

small, .text-muted { color: #666666; }

.text-green { color: #00ff41; }
.text-cyan { color: #00d4ff; }
.text-red { color: #ff0040; }
.text-warning { color: #ffb800; }

/* --- Layout Container --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* --- Terminal Prompt Prefix --- */
.term-prefix::before {
    content: '> ';
    color: #00ff41;
    font-weight: 700;
}

/* --- Header / Nav --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid #1a1a1a;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.site-brand {
    font-size: 1.125rem;
    font-weight: 900;
    color: #00ff41;
    text-decoration: none;
    letter-spacing: 0.03em;
}
.site-brand:hover { color: #00ff41; text-shadow: 0 0 10px rgba(0, 255, 65, 0.5); }
.site-brand span.cursor-blink {
    animation: blink 1s step-end infinite;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.site-nav a,
.site-nav button {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #888;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.2s, text-shadow 0.2s;
}
.site-nav a:hover,
.site-nav button:hover {
    color: #00ff41;
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.3);
}

.site-nav .nav-cmd::before {
    content: './';
    color: #00ff41;
    font-weight: 700;
}

/* Mobile menu toggle */
.mobile-toggle {
    display: none;
    padding: 0.5rem;
    background: none;
    border: 1px solid #222;
    color: #00ff41;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
}

/* Language switcher */
.lang-select {
    background: #0d0d0d;
    border: 1px solid #222;
    color: #b0b0b0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
}
.lang-select:focus {
    outline: none;
    border-color: #00ff41;
}
.lang-select option {
    background: #111;
    color: #b0b0b0;
}

/* --- Mobile Nav --- */
.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 1.25rem 1rem;
    border-top: 1px solid #1a1a1a;
    background: #0a0a0a;
}
.mobile-nav.open { display: flex; }

/* --- Flash Messages (Terminal Style) --- */
.flash-msg {
    max-width: 1100px;
    margin: 1rem auto;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid;
}

.flash-msg--success {
    color: #00ff41;
    background: rgba(0, 255, 65, 0.05);
    border-color: rgba(0, 255, 65, 0.2);
}
.flash-msg--success::before { content: '[OK] '; font-weight: 700; }

.flash-msg--error {
    color: #ff0040;
    background: rgba(255, 0, 64, 0.05);
    border-color: rgba(255, 0, 64, 0.2);
}
.flash-msg--error::before { content: '[ERROR] '; font-weight: 700; }

.flash-msg--info {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.2);
}
.flash-msg--info::before { content: '[INFO] '; font-weight: 700; }

/* --- Main Content --- */
main {
    min-height: calc(100vh - 56px - 48px);
    padding-top: 1rem;
}

/* --- Cards --- */
.card {
    background: #111111;
    border: 1px solid #1a1a1a;
    border-radius: 0;
    padding: 1.5rem;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
    border-color: #222;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid;
    line-height: 1.4;
}

.btn-primary {
    color: #00ff41;
    background: transparent;
    border-color: #00ff41;
}
.btn-primary:hover {
    background: #00ff41;
    color: #0a0a0a;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.btn-secondary {
    color: #888;
    background: transparent;
    border-color: #444;
}
.btn-secondary:hover {
    color: #e0e0e0;
    border-color: #666;
}

.btn-danger {
    color: #ff0040;
    background: transparent;
    border-color: #ff0040;
}
.btn-danger:hover {
    background: #ff0040;
    color: #0a0a0a;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-ghost {
    color: #666;
    background: transparent;
    border-color: transparent;
}
.btn-ghost:hover {
    color: #00ff41;
}

/* --- Forms --- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: #e0e0e0;
    background: #0d0d0d;
    border: 1px solid #222;
    border-radius: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #00ff41;
    box-shadow: 0 0 0 1px rgba(0, 255, 65, 0.2);
}
.form-input::placeholder,
.form-textarea::placeholder {
    color: #444;
}

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

.form-select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2300ff41' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}
.form-select option {
    background: #111;
    color: #b0b0b0;
}

/* Terminal cursor on focused inputs */
.form-input:focus {
    animation: terminal-cursor 1s step-end infinite;
}

/* --- Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid;
}

.badge-paid, .badge-success {
    color: #00ff41;
    border-color: rgba(0, 255, 65, 0.3);
    background: rgba(0, 255, 65, 0.08);
}
.badge-pending {
    color: #ffb800;
    border-color: rgba(255, 184, 0, 0.3);
    background: rgba(255, 184, 0, 0.08);
}
.badge-expired {
    color: #666;
    border-color: rgba(102, 102, 102, 0.3);
    background: rgba(102, 102, 102, 0.08);
}
.badge-manual_review {
    color: #00d4ff;
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.08);
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border: 1px solid rgba(0, 255, 65, 0.2);
    background: rgba(0, 255, 65, 0.05);
    color: #00ff41;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: #00ff41;
    animation: blink 1.5s ease infinite;
}

.hero h1 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}
.hero h1 .accent { color: #00d4ff; }

.hero p {
    color: #666;
    font-size: 0.9375rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

/* --- Search --- */
.search-bar {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}
.search-bar .form-input {
    padding-left: 2.5rem;
    padding-right: 5rem;
}
.search-bar .search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #444;
    pointer-events: none;
    font-size: 0.875rem;
}
.search-bar .btn {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    padding: 0 1rem;
}

/* --- Filters --- */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.cat-pill {
    padding: 0.375rem 0.875rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    background: transparent;
    border: 1px solid #222;
    text-decoration: none;
    transition: all 0.2s;
}
.cat-pill:hover {
    color: #00ff41;
    border-color: #00ff41;
}
.cat-pill.active {
    color: #0a0a0a;
    background: #00ff41;
    border-color: #00ff41;
}

.sort-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sort-form label {
    font-size: 0.75rem;
    color: #666;
    white-space: nowrap;
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.product-card {
    background: #111;
    border: 1px solid #1a1a1a;
    transition: box-shadow 0.3s, border-color 0.3s;
    overflow: hidden;
}
.product-card:hover {
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
    border-color: rgba(0, 255, 65, 0.2);
}

.product-card .card-img {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-bottom: 1px solid #1a1a1a;
}
.product-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%) brightness(0.8);
    transition: filter 0.3s, transform 0.5s;
}
.product-card:hover .card-img img {
    filter: grayscale(0%) brightness(0.9);
    transform: scale(1.05);
}

.card-img .price-tag {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid #00ff41;
    color: #00ff41;
    font-size: 0.6875rem;
    font-weight: 700;
}

.card-img .stock-tag {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
}
.card-img .stock-tag.sold-out {
    background: rgba(255, 0, 64, 0.9);
    color: #fff;
}
.card-img .stock-tag.low-stock {
    background: rgba(255, 184, 0, 0.9);
    color: #0a0a0a;
}

.card-img .rating-tag {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: #ffb800;
    font-size: 0.6875rem;
    font-weight: 600;
}

.product-card .card-body {
    padding: 1rem;
}

.product-card .card-title {
    font-size: 0.9375rem;
    color: #00ff41;
    margin-bottom: 0.375rem;
    font-weight: 700;
}

.product-card .card-desc {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.product-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-card .card-price-label {
    font-size: 0.625rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.product-card .card-price {
    font-size: 1.25rem;
    font-weight: 900;
    color: #00ff41;
}

.product-card .btn-view::before {
    content: '$ ';
    color: #00ff41;
    font-weight: 700;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 2rem 0;
}

.pagination a {
    padding: 0.5rem 1rem;
    border: 1px solid #222;
    color: #888;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.pagination a:hover {
    border-color: #00ff41;
    color: #00ff41;
}

.pagination .current-page {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 255, 65, 0.3);
    color: #00ff41;
    font-size: 0.8125rem;
    font-weight: 600;
    background: rgba(0, 255, 65, 0.05);
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
}
.empty-state .icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}
.empty-state h2 {
    color: #666;
    margin-bottom: 0.5rem;
}
.empty-state p {
    color: #444;
    margin-bottom: 1.5rem;
}

/* --- Product Detail --- */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    padding: 2rem 0;
}

.product-image {
    position: relative;
    overflow: hidden;
    border: 1px solid #1a1a1a;
}
.product-image img {
    width: 100%;
    display: block;
    filter: brightness(0.85);
}
.product-image .img-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid #00ff41;
    background: rgba(10, 10, 10, 0.85);
    color: #00ff41;
    font-size: 0.6875rem;
    font-weight: 700;
}

.product-info .card {
    position: sticky;
    top: 72px;
}

.product-price-display {
    margin-bottom: 1.25rem;
}
.product-price-display .label {
    font-size: 0.625rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}
.product-price-display .price {
    font-size: 2.75rem;
    font-weight: 900;
    color: #00ff41;
    line-height: 1;
}
.product-price-display .hint {
    font-size: 0.75rem;
    color: #444;
    margin-top: 0.375rem;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #1a1a1a, transparent);
    margin: 1.25rem 0;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 1rem;
}
.features-list .feature {
    padding: 0.25rem 0.625rem;
    border: 1px solid #1a1a1a;
    color: #666;
    font-size: 0.6875rem;
}

/* Payment network selector */
.network-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.network-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.network-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #222;
    color: #888;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.network-pill:hover {
    border-color: #00ff41;
    color: #b0b0b0;
}
.network-option input[type="radio"]:checked + .network-pill {
    border-color: #00ff41;
    color: #00ff41;
    background: rgba(0, 255, 65, 0.08);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
}

/* Notice box */
.notice-box {
    padding: 0.875rem 1rem;
    border: 1px solid rgba(0, 255, 65, 0.15);
    background: rgba(0, 255, 65, 0.03);
    font-size: 0.75rem;
    color: #666;
}
.notice-box strong {
    color: #888;
}

/* Stock info */
.stock-info {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.stock-info.low { color: #ffb800; }
.stock-info.available { color: #666; }

/* Sold out panel */
.sold-out-panel {
    text-align: center;
    padding: 2rem;
    border: 1px solid rgba(255, 0, 64, 0.2);
    background: rgba(255, 0, 64, 0.05);
}
.sold-out-panel .icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.sold-out-panel p { color: #ff0040; font-weight: 700; font-size: 1rem; }

/* --- Reviews --- */
.reviews-section {
    margin-top: 2rem;
}

.review-card {
    padding: 1rem;
    border: 1px solid #1a1a1a;
    background: #111;
    margin-bottom: 0.75rem;
}
.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.review-author {
    font-weight: 600;
    color: #b0b0b0;
}
.review-verified {
    font-size: 0.625rem;
    color: #00ff41;
    border: 1px solid rgba(0, 255, 65, 0.3);
    padding: 0.125rem 0.375rem;
    font-weight: 700;
    text-transform: uppercase;
}
.review-stars { color: #ffb800; font-size: 0.8125rem; }
.review-title {
    color: #e0e0e0;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}
.review-body {
    color: #888;
    font-size: 0.8125rem;
    line-height: 1.6;
}

.review-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border: 1px solid #222;
    background: transparent;
    color: #666;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6875rem;
    cursor: pointer;
    transition: all 0.2s;
}
.review-vote-btn:hover {
    border-color: #00ff41;
    color: #00ff41;
}
.review-vote-btn:disabled {
    color: #00ff41;
    border-color: rgba(0, 255, 65, 0.3);
    background: rgba(0, 255, 65, 0.05);
    cursor: default;
}

/* --- Auth Pages --- */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 56px);
    padding: 2rem 1rem;
}

.auth-box {
    width: 100%;
    max-width: 420px;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.auth-header .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 1px solid #00ff41;
    background: rgba(0, 255, 65, 0.05);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.auth-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.375rem;
}
.auth-header p {
    color: #666;
    font-size: 0.8125rem;
}

.auth-card {
    background: #111;
    border: 1px solid #1a1a1a;
    padding: 1.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: #444;
}
.auth-footer a {
    color: #00ff41;
    font-weight: 600;
}

.error-alert {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 0, 64, 0.3);
    background: rgba(255, 0, 64, 0.05);
    color: #ff0040;
    font-size: 0.8125rem;
    margin-bottom: 1.25rem;
}
.error-alert::before { content: '[ERROR] '; font-weight: 700; }

/* Password strength bars */
.strength-bars {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.75rem;
    margin-bottom: 0.375rem;
}
.strength-bars .bar {
    height: 3px;
    flex: 1;
    background: #1a1a1a;
    transition: background 0.3s;
}
.strength-label {
    font-size: 0.6875rem;
    color: #444;
}

/* --- Orders --- */
.orders-table-wrap {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}
.orders-table th {
    text-align: left;
    padding: 0.625rem 0.5rem;
    color: #00ff41;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid #1a1a1a;
    white-space: nowrap;
}
.orders-table td {
    padding: 0.625rem 0.5rem;
    border-bottom: 1px solid #0d0d0d;
    color: #b0b0b0;
}
.orders-table tr:hover td {
    background: rgba(0, 255, 65, 0.02);
}

/* --- Order Detail --- */
.order-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.order-detail h1 {
    margin-bottom: 0.75rem;
}

.status-row {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #888;
}

.detail-list {
    margin-bottom: 1.5rem;
}
.detail-list dt {
    color: #666;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.5rem 0 0.125rem;
}
.detail-list dd {
    color: #e0e0e0;
    font-size: 0.875rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #0d0d0d;
    word-break: break-all;
}

.delivery-section {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border: 1px solid rgba(0, 255, 65, 0.2);
    background: rgba(0, 255, 65, 0.03);
}
.delivery-section h2, .delivery-section h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}
.delivery-section pre {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    padding: 1rem;
    color: #00ff41;
    font-size: 0.8125rem;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-x: auto;
}
.delivery-section .download-note {
    color: #666;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* --- Account Dashboard --- */
.account-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
}

.account-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.account-avatar {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #00ff41;
    background: rgba(0, 255, 65, 0.05);
    font-size: 1.5rem;
    font-weight: 900;
    color: #00ff41;
}
.account-info h1 {
    font-size: 1.5rem;
    margin-bottom: 0.125rem;
}
.account-info p {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: #111;
    border: 1px solid #1a1a1a;
    padding: 1rem;
}
.stat-card .stat-label {
    font-size: 0.625rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}
.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 900;
}
.stat-card .stat-value.green { color: #00ff41; }
.stat-card .stat-value.yellow { color: #ffb800; }
.stat-card .stat-value.white { color: #e0e0e0; }

.account-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.order-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-bottom: 1px solid #0d0d0d;
    transition: background 0.15s;
}
.order-row:hover {
    background: rgba(0, 255, 65, 0.02);
}
.order-row .order-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #e0e0e0;
}
.order-row .order-id {
    font-size: 0.6875rem;
    color: #444;
}
.order-row .order-meta {
    font-size: 0.6875rem;
    color: #666;
}
.order-row .order-price {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #e0e0e0;
}

/* Referral card */
.referral-card {
    background: #111;
    border: 1px solid #1a1a1a;
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.referral-card h3 {
    font-size: 0.9375rem;
    margin-bottom: 0.375rem;
}
.referral-card p {
    font-size: 0.75rem;
    color: #666;
}

.referral-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.375rem;
    margin: 0.75rem 0;
}
.referral-stat {
    text-align: center;
    padding: 0.5rem;
    border: 1px solid #1a1a1a;
    background: #0d0d0d;
}
.referral-stat .val {
    font-size: 1rem;
    font-weight: 900;
}
.referral-stat .lbl {
    font-size: 0.5625rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.referral-url-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem;
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    margin-top: 0.75rem;
}
.referral-url-box code {
    flex: 1;
    font-size: 0.6875rem;
    color: #00d4ff;
    word-break: break-all;
}
.referral-url-box button {
    flex-shrink: 0;
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: 1px solid #222;
    color: #666;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s;
}
.referral-url-box button:hover {
    color: #00ff41;
    border-color: #00ff41;
}

.referred-order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.375rem 0.5rem;
    border: 1px solid #1a1a1a;
    background: #0d0d0d;
    margin-bottom: 0.25rem;
    font-size: 0.6875rem;
}

.quick-links a {
    display: block;
    padding: 0.625rem 0.75rem;
    border: 1px solid #1a1a1a;
    color: #888;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    transition: all 0.2s;
}
.quick-links a:hover {
    border-color: #00ff41;
    color: #00ff41;
}
.quick-links a.danger {
    color: #ff0040;
    border-color: rgba(255, 0, 64, 0.2);
}
.quick-links a.danger:hover {
    border-color: #ff0040;
}

/* --- Payment Page --- */
.payment-page {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1.25rem;
}

.payment-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00ff41;
    animation: pulse 1.5s ease infinite;
    margin-right: 0.375rem;
}

.payment-card {
    background: #111;
    border: 1px solid #1a1a1a;
}

.payment-section {
    padding: 1.25rem;
    border-bottom: 1px solid #0d0d0d;
}
.payment-section:last-child { border-bottom: none; }

.payment-section-title {
    font-size: 0.625rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0;
    font-size: 0.875rem;
}
.payment-row .label { color: #666; }
.payment-row .value { color: #e0e0e0; font-weight: 600; }
.payment-row .discount { color: #00ff41; }
.payment-row.total {
    border-top: 1px solid #1a1a1a;
    margin-top: 0.375rem;
    padding-top: 0.75rem;
}
.payment-row.total .value {
    font-size: 1.5rem;
    font-weight: 900;
    color: #00ff41;
}

/* Wallet box — terminal style */
.wallet-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem;
    background: #0a0a0a;
    border: 1px solid #00ff41;
    position: relative;
}
.wallet-box::before {
    content: '> ';
    color: #00ff41;
    font-weight: 700;
}
.wallet-box code {
    flex: 1;
    color: #00ff41;
    font-size: 0.75rem;
    word-break: break-all;
    line-height: 1.5;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem;
    background: transparent;
    border: 1px solid #222;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.copy-btn:hover {
    color: #00ff41;
    border-color: #00ff41;
}

.amount-warning {
    font-size: 0.75rem;
    color: #ffb800;
    margin-top: 0.5rem;
}

/* Countdown */
.countdown-display {
    font-size: 2rem;
    font-weight: 900;
    color: #00ff41;
    letter-spacing: 0.05em;
    margin: 0.5rem 0;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

/* Verify section */
.verify-section {
    padding: 1.25rem;
    text-align: center;
}

.verify-btn {
    width: 100%;
    padding: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0a0a0a;
    background: #00ff41;
    border: 1px solid #00ff41;
    cursor: pointer;
    transition: all 0.2s;
}
.verify-btn:hover {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}
.verify-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.verify-message {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    min-height: 1.25rem;
}

/* Manual section */
.manual-section {
    border-top: 1px solid #1a1a1a;
}

.manual-toggle-btn {
    width: 100%;
    padding: 0.625rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    color: #888;
    background: transparent;
    border: 1px solid #222;
    cursor: pointer;
    transition: all 0.2s;
}
.manual-toggle-btn:hover {
    color: #00d4ff;
    border-color: #00d4ff;
}

.manual-form { margin-top: 1rem; }

/* --- Result Pages (Success/Expired/Manual Review) --- */
.result-page {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1.25rem;
}

.result-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border: 2px solid;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}
.result-icon.success-icon { border-color: #00ff41; color: #00ff41; }
.result-icon.warning-icon { border-color: #ffb800; color: #ffb800; }
.result-icon.info-icon    { border-color: #00d4ff; color: #00d4ff; }

.result-card {
    background: #111;
    border: 1px solid #1a1a1a;
}

.result-section {
    padding: 1.25rem;
    border-bottom: 1px solid #0d0d0d;
}
.result-section:last-child { border-bottom: none; }

.label-caps {
    font-size: 0.625rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

/* Content delivery box */
.content-box {
    background: #0a0a0a;
    border: 1px solid #00ff41;
    padding: 1rem;
}
.content-box pre {
    color: #00ff41;
    font-size: 0.8125rem;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
    line-height: 1.6;
}

.download-warning {
    padding: 0.75rem;
    border: 1px solid rgba(255, 184, 0, 0.3);
    background: rgba(255, 184, 0, 0.05);
    color: #ffb800;
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.info-box {
    padding: 0.75rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    background: rgba(0, 212, 255, 0.03);
    color: #b0b0b0;
    font-size: 0.8125rem;
}

/* --- Wishlist --- */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.wishlist-card {
    background: #111;
    border: 1px solid #1a1a1a;
    padding: 1.25rem;
    transition: box-shadow 0.3s, border-color 0.3s;
}
.wishlist-card:hover {
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
    border-color: rgba(0, 255, 65, 0.2);
}
.wishlist-card .wl-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}
.wishlist-card h2 {
    font-size: 0.9375rem;
    line-height: 1.3;
}
.wishlist-card .wl-desc {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wishlist-card .wl-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wishlist-card .wl-price {
    font-size: 1.25rem;
    font-weight: 900;
    color: #00ff41;
}
.wishlist-card .wl-actions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* --- Support Page --- */
.support-page {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1.25rem;
}
.support-page h1 {
    margin-bottom: 1rem;
}
.support-content {
    color: #b0b0b0;
    font-size: 0.875rem;
    line-height: 1.7;
}

/* --- Guest Pages --- */
.guest-orders {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1.25rem;
}
.guest-hint {
    color: #666;
    font-size: 0.8125rem;
    margin-bottom: 1.5rem;
}

.guest-expired {
    max-width: 500px;
    margin: 4rem auto;
    padding: 0 1.25rem;
    text-align: center;
}
.guest-expired h1 {
    margin-bottom: 0.75rem;
}
.guest-expired p {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

/* --- Receipt --- */
.receipt-wrap {
    max-width: 680px;
    margin: 0 auto;
    background: #111;
    border: 1px solid #1a1a1a;
    overflow: hidden;
}

.receipt-header {
    background: linear-gradient(135deg, #0d0d0d, #111);
    border-bottom: 1px solid #00ff41;
    padding: 1.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.receipt-header h1 {
    font-size: 1.5rem;
}
.receipt-header .subtitle {
    color: #666;
    font-size: 0.8125rem;
}
.receipt-header .order-ref {
    font-size: 1.25rem;
    font-weight: 900;
    color: #00ff41;
}
.receipt-header .date {
    font-size: 0.75rem;
    color: #666;
}

.receipt-body { padding: 1.75rem 2rem; }

.receipt-section { margin-bottom: 1.5rem; }
.receipt-section-title {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #444;
    margin-bottom: 0.625rem;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid #1a1a1a;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0;
    font-size: 0.875rem;
}
.receipt-row .label { color: #666; }
.receipt-row .value { font-weight: 600; color: #e0e0e0; }
.receipt-row.total {
    border-top: 1px solid #1a1a1a;
    margin-top: 0.375rem;
    padding-top: 0.625rem;
}
.receipt-row.total .value {
    font-size: 1.25rem;
    font-weight: 900;
    color: #00ff41;
}

.receipt-tx-box {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    padding: 0.625rem 0.875rem;
    font-size: 0.75rem;
    color: #666;
    word-break: break-all;
    margin-top: 0.375rem;
}
.receipt-tx-box a { color: #00d4ff; }

.receipt-footer {
    border-top: 1px solid #1a1a1a;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.receipt-footer p {
    font-size: 0.75rem;
    color: #666;
    margin: 0;
}

/* --- Footer (Status Bar) --- */
.site-footer {
    border-top: 1px solid #1a1a1a;
    background: #0d0d0d;
    padding: 1rem 0;
    margin-top: 3rem;
}
.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.site-footer .footer-brand {
    color: #00ff41;
    font-weight: 700;
    font-size: 0.8125rem;
}
.site-footer .footer-links {
    display: flex;
    gap: 1rem;
}
.site-footer .footer-links a {
    color: #444;
    font-size: 0.75rem;
    transition: color 0.2s;
}
.site-footer .footer-links a:hover { color: #00ff41; }
.site-footer .footer-copy {
    color: #333;
    font-size: 0.6875rem;
}

/* --- Animations --- */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes terminal-cursor {
    50% { border-color: transparent; }
}

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

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
    }
    .wishlist-grid {
        grid-template-columns: 1fr 1fr;
    }
    .product-detail {
        grid-template-columns: 1fr;
    }
    .account-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .site-nav { display: none; }
    .mobile-toggle { display: block; }
    .hero h1 { font-size: 1.75rem; }
    .receipt-header { padding: 1.25rem; }
    .receipt-body { padding: 1.25rem; }
    .receipt-footer { padding: 0.75rem 1.25rem; }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .wishlist-grid {
        grid-template-columns: 1fr;
    }
    .network-grid {
        grid-template-columns: 1fr;
    }
    .referral-stats {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .filters-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Honeypot */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    overflow: hidden;
}

/* sr-only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Resend details */
details summary {
    cursor: pointer;
    color: #666;
    font-size: 0.8125rem;
    text-align: center;
}
details summary:hover { color: #00ff41; }
details .resend-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Print styles */
@media print {
    body { background: #fff; color: #000; }
    body::after { display: none; }
    .no-print { display: none !important; }
    .site-header, .site-footer { display: none; }
}
