/* ────────────────────────────────────────────────
   NexStore – Styles
   ──────────────────────────────────────────────── */
:root {
    /* Colors */
    --bg-color: #0b0c10;
    --surface-color: rgba(30, 32, 41, 0.6);
    --surface-border: rgba(255, 255, 255, 0.08);
    --primary-color: #00e5ff;
    --primary-glow: rgba(0, 229, 255, 0.4);
    --secondary-color: #b500ff;
    --secondary-glow: rgba(181, 0, 255, 0.4);
    --text-main: #f0f0f0;
    --text-muted: #a0a5b1;
    --danger: #ff3b3b;
    --success: #00ff88;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Animated Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    animation: float 20s infinite alternate;
}

.bg-shape-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--primary-glow);
}

.bg-shape-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--secondary-glow);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 15%) scale(1.1); }
}

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

/* Glassmorphism utility */
.glass-panel {
    background: var(--surface-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(11, 12, 16, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    color: var(--primary-color);
    font-size: 28px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover:not(.btn-primary-outline) {
    color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--gradient-primary);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5);
}

.btn-primary-outline {
    display: inline-block;
    background: transparent;
    color: var(--primary-color) !important;
    padding: 10px 24px;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

.btn-primary-outline:hover {
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.w-100 {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Store Section */
.store-section {
    padding: 100px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-header h2 {
    font-size: 36px;
}

.search-bar {
    position: relative;
    width: 100%;
    max-width: 350px;
}

.search-bar i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 20px;
}

.search-bar input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius-lg);
    padding: 12px 16px 12px 48px;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: var(--transition);
    outline: none;
}

.search-bar input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.product-card:hover::before {
    left: 150%;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.product-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.icon-blue { color: #3b82f6; }
.icon-red { color: #ef4444; }
.icon-purple { color: #a855f7; }
.icon-green { color: #22c55e; }
.icon-cyan { color: #06b6d4; }
.icon-orange { color: #f97316; }

.product-title {
    font-size: 20px;
    font-weight: 600;
}

.product-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.product-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

.buy-btn {
    margin-top: auto;
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--surface-border);
    color: var(--text-main);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Gemini direct-link button */
a.redeem-link.buy-btn {
    background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(181,0,255,0.15));
    border-color: rgba(0,229,255,0.35);
    color: var(--primary);
}

a.redeem-link.buy-btn:hover {
    background: var(--gradient-primary);
    color: #000 !important;
    border-color: transparent;
    box-shadow: 0 4px 18px rgba(0,229,255,0.4);
}

.product-card:hover .buy-btn:not(.redeem-link) {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--text-main);
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    text-align: center;
}

.modal-header i {
    font-size: 48px;
    color: var(--primary-color);
}

.modal-desc {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* input-group base styles moved to message/badge block below */

.message {
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}



.message.error {
    background: rgba(255, 59, 59, 0.1);
    color: var(--danger);
    border: 1px solid rgba(255, 59, 59, 0.2);
}

.message.success {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.message.info {
    background: rgba(0, 229, 255, 0.08);
    color: var(--primary-color);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

/* ── Hidden utility ───────────────────────────── */
.hidden { display: none !important; }

/* ── No results ───────────────────────────────── */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
}

/* ── Product Badge ────────────────────────────── */
.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 4px;
    align-self: flex-start;
}

.badge-instant {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success);
    border: 1px solid rgba(0, 255, 136, 0.25);
}

.badge-manual {
    background: rgba(41, 182, 246, 0.1);
    color: #29b6f6;
    border: 1px solid rgba(41, 182, 246, 0.25);
}

/* ── Labeled input-group ─────────────────────── */
.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.input-group input {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--surface-border);
    padding: 13px 16px;
    border-radius: var(--border-radius-sm);
    color: var(--text-main);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
    font-family: var(--font-body);
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.15);
}

.input-group input::placeholder {
    color: #555;
}

.input-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    opacity: 0.7;
}

/* ── Etsy Order Note ──────────────────────────── */
.etsy-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255, 183, 77, 0.08);
    border: 1px solid rgba(255, 183, 77, 0.35);
    border-radius: var(--border-radius-sm);
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.5;
    color: #ffd580;
}

.etsy-note i {
    font-size: 18px;
    color: #ffb74d;
    flex-shrink: 0;
    margin-top: 1px;
}

.etsy-note strong {
    color: #ffa726;
}

.etsy-note em {
    font-style: normal;
    text-decoration: underline dotted;
}

/* ── Order Token Display ────────────────────────── */
.order-token-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, rgba(0,229,255,0.06), rgba(181,0,255,0.06));
    border: 1px solid rgba(0,229,255,0.25);
    border-radius: var(--border-radius-md);
    padding: 16px 20px;
    margin-bottom: 16px;
    text-align: center;
}

.token-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.token-value {
    font-family: 'Courier New', monospace;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Link Box ─────────────────────────────────── */
.link-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius-sm);
    padding: 12px 14px;
    margin-bottom: 20px;
    word-break: break-all;
}

.link-text {
    flex: 1;
    font-size: 13px;
    color: var(--primary-color);
    font-family: monospace;
}

.copy-btn {
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--surface-border);
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.copy-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ── Activate Button ─────────────────────────── */
.activate-anchor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    padding: 14px;
    text-decoration: none;
    margin-bottom: 16px;
}

/* ── Email note under result ─────────────────── */
.email-note {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.email-note strong {
    color: var(--text-main);
}

/* ── Telegram contact card ───────────────────── */
.tg-contact-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(41, 182, 246, 0.06);
    border: 1px solid rgba(41, 182, 246, 0.2);
    border-radius: var(--border-radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.tg-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(41, 182, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #29b6f6;
    flex-shrink: 0;
}

.tg-handle {
    font-size: 18px;
    font-weight: 700;
    color: #29b6f6;
}

.tg-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.tg-btn {
    background: linear-gradient(135deg, #29b6f6, #0288d1);
    box-shadow: 0 4px 15px rgba(41, 182, 246, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    padding: 14px;
    text-decoration: none;
    margin-bottom: 16px;
}

.tg-btn:hover {
    box-shadow: 0 6px 20px rgba(41, 182, 246, 0.5);
    transform: translateY(-2px);
}

/* ── Footer Telegram link ─────────────────────── */
.tg-link {
    color: #29b6f6;
    text-decoration: none;
    font-weight: 500;
}

.tg-link:hover {
    text-decoration: underline;
}

/* ── Loader spin animation ───────────────────── */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.bx-spin {
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

/* ── Already Delivered Box ───────────────────── */
.delivered-box {
    background: rgba(0,229,255,0.05);
    border: 1px solid rgba(0,229,255,0.2);
    border-radius: var(--border-radius-md);
    padding: 16px; margin-bottom: 14px; text-align: center;
}

.delivered-order {
    font-size: 11px; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px;
}

.delivered-id {
    font-family: monospace; font-size: 18px; font-weight: 700; color: var(--primary);
}

.delivered-date {
    font-size: 12px; color: var(--text-muted); margin-top: 4px;
}

/* ── Etsy Help Box (modal) ───────────────────── */
.etsy-help-box {
    display: flex; align-items: flex-start; gap: 10px;
    background: rgba(255,90,90,0.06);
    border: 1px solid rgba(255,90,90,0.2);
    border-radius: var(--border-radius-sm);
    padding: 12px 14px; margin-top: 14px;
    font-size: 13px; color: #ff8080; line-height: 1.5;
}

.etsy-help-box i {
    font-size: 20px; color: #ff6b6b; flex-shrink: 0; margin-top: 1px;
}

.etsy-help-box a {
    color: #ffa0a0; font-weight: 600; text-decoration: none;
}

.etsy-help-box a:hover { text-decoration: underline; }

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--surface-border);
    margin-top: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile handling for demo */
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}
