/* ═══════════════════════════════════════════
   NUZZLY.AI — Gift Card Store
   Clean, Modern, Professional
   ═══════════════════════════════════════════ */

:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --bg-input: #16161f;
    --bg-section-alt: #0e0e15;
    --text: #e4e4e7;
    --text-muted: #8b8b96;
    --text-dim: #5a5a66;
    --border: #1e1e2a;
    --border-hover: #2e2e3e;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-glow: rgba(99,102,241,0.15);
    --green: #22c55e;
    --red: #ef4444;
    --yellow: #f59e0b;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --transition: 0.2s ease;
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

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

/* ─── Navbar ─── */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
}

.nav-inner {
    display: flex; align-items: center; gap: 20px;
    height: 64px;
}

.nav-logo {
    display: flex; align-items: center; gap: 8px;
    font-size: 1.35rem; font-weight: 700; color: var(--text);
}
.nav-logo:hover { color: var(--text); }
.logo-icon { color: var(--accent); font-size: 1.2rem; }
.logo-text { letter-spacing: -0.5px; }

.nav-search {
    flex: 1; max-width: 420px; position: relative;
}
.nav-search i {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-dim); font-size: 0.85rem;
}
.nav-search input {
    width: 100%; padding: 10px 16px 10px 40px;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: 999px; color: var(--text); font-size: 0.9rem;
    outline: none; transition: border var(--transition);
}
.nav-search input:focus { border-color: var(--accent); }
.nav-search input::placeholder { color: var(--text-dim); }

.search-dropdown {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); max-height: 320px; overflow-y: auto;
    box-shadow: var(--shadow); z-index: 200;
}
.search-dropdown.active { display: block; }
.search-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px; cursor: pointer; transition: background var(--transition);
}
.search-item:hover { background: var(--bg-card-hover); }
.search-item img { width: 32px; height: 32px; border-radius: var(--radius-xs); object-fit: cover; }
.search-item span { font-size: 0.9rem; }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.country-select select {
    background: var(--bg-input); border: 1px solid var(--border);
    color: var(--text); padding: 8px 12px; border-radius: var(--radius-xs);
    font-size: 0.85rem; cursor: pointer; outline: none;
}

.nav-btn {
    padding: 8px 18px; border-radius: var(--radius-xs);
    font-size: 0.9rem; font-weight: 500; transition: all var(--transition);
    display: inline-flex; align-items: center; gap: 6px;
}
.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover, .btn-ghost.active { color: var(--text); background: var(--bg-card); }
.btn-primary {
    background: var(--accent); color: #fff; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.mobile-toggle {
    display: none; background: none; border: none;
    color: var(--text); font-size: 1.3rem; cursor: pointer;
}

.mobile-menu {
    display: none; flex-direction: column; gap: 4px;
    padding: 12px 20px 20px; background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
    padding: 12px 16px; color: var(--text-muted);
    border-radius: var(--radius-xs); display: flex; align-items: center; gap: 10px;
}
.mobile-menu a:hover { background: var(--bg-card-hover); color: var(--text); }
.mobile-search { position: relative; margin-bottom: 8px; }
.mobile-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-dim); }
.mobile-search input {
    width: 100%; padding: 12px 16px 12px 40px;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius-xs); color: var(--text); font-size: 0.9rem; outline: none;
}

/* ─── Hero ─── */
.hero {
    padding: 80px 0 60px; text-align: center;
    background: radial-gradient(ellipse at 50% 0%, var(--accent-glow) 0%, transparent 60%);
}
.hero h1 { font-size: 3rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; }
.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 50%, #818cf8 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
    font-size: 1.15rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 32px;
}
.hero-search {
    max-width: 500px; margin: 0 auto 40px; position: relative;
}
.hero-search i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--text-dim); }
.hero-search input {
    width: 100%; padding: 16px 24px 16px 50px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 999px; color: var(--text); font-size: 1.05rem; outline: none;
}
.hero-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.hero-search input::placeholder { color: var(--text-dim); }

.hero-stats {
    display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.hero-stats div { text-align: center; }
.hero-stats strong { display: block; font-size: 1.5rem; font-weight: 700; color: var(--text); }
.hero-stats span { font-size: 0.85rem; color: var(--text-muted); }

/* ─── Sections ─── */
.section { padding: 60px 0; }
.section-dark { background: var(--bg-section-alt); }
.section-title {
    font-size: 1.6rem; font-weight: 700; margin-bottom: 32px;
    letter-spacing: -0.3px;
}
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.section-header .section-title { margin-bottom: 0; }

/* ─── Categories ─── */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}
.cat-card {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 24px 16px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); cursor: pointer;
    transition: all var(--transition); text-align: center; color: var(--text);
}
.cat-card:hover {
    border-color: var(--accent); background: var(--bg-card-hover);
    transform: translateY(-2px); color: var(--text);
}
.cat-icon { font-size: 1.6rem; color: var(--accent); }
.cat-card span { font-size: 0.85rem; font-weight: 500; }

/* ─── Brand Grid ─── */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}
.brand-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px 16px;
    text-align: center; cursor: pointer; transition: all var(--transition);
    display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.brand-card:hover {
    border-color: var(--accent); transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(99,102,241,0.1);
}
.brand-card img {
    width: 64px; height: 64px; border-radius: var(--radius-sm);
    object-fit: cover; background: #fff;
}
.brand-card .brand-name {
    font-size: 0.85rem; font-weight: 600; color: var(--text);
    line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

.filter-btn {
    padding: 8px 20px; border-radius: 999px;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-muted); font-size: 0.85rem; cursor: pointer;
    transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--accent); color: #fff; border-color: var(--accent);
}

/* ─── Steps ─── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.step-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px 24px; text-align: center;
}
.step-num {
    width: 48px; height: 48px; margin: 0 auto 16px;
    background: var(--accent); color: #fff; font-weight: 700; font-size: 1.2rem;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.step-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.step-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ─── Crypto Badges ─── */
.crypto-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.crypto-badge {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 999px; font-size: 0.9rem; font-weight: 500;
}
.crypto-badge img { width: 24px; height: 24px; }

/* ─── Product Page ─── */
.back-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px;
}
.back-link:hover { color: var(--accent); }

.product-page { max-width: 900px; }

.product-header {
    display: flex; align-items: center; gap: 20px;
    padding: 24px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius);
    margin-bottom: 32px;
}
.product-logo { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; background: #fff; }
.product-info h1 { font-size: 1.5rem; margin-bottom: 4px; }
.product-info p { color: var(--text-muted); font-size: 0.9rem; }

.product-body { display: grid; grid-template-columns: 1fr 380px; gap: 32px; }

.denom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.denom-btn {
    padding: 14px 10px; background: var(--bg-card); border: 2px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text); font-size: 1rem;
    font-weight: 600; cursor: pointer; text-align: center;
    transition: all var(--transition);
}
.denom-btn:hover { border-color: var(--accent); }
.denom-btn.selected { border-color: var(--accent); background: var(--accent-glow); }

.custom-amount { margin-top: 16px; }
.custom-amount label { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 8px; display: block; }
.custom-input-wrap {
    display: flex; align-items: center; gap: 0;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius-sm); overflow: hidden;
}
.custom-input-wrap span { padding: 12px 14px; color: var(--text-muted); font-weight: 600; }
.custom-input-wrap input {
    flex: 1; padding: 12px; background: transparent; border: none;
    color: var(--text); font-size: 1rem; outline: none;
}
.range-info { margin-top: 6px; font-size: 0.8rem; color: var(--text-dim); }

.order-summary h3 { margin-bottom: 16px; }
.summary-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
}
.summary-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--border);
}
.summary-row:last-of-type { border: none; }
.summary-row span { color: var(--text-muted); font-size: 0.9rem; }
.crypto-price { color: var(--green); }

.payment-select, .email-input { margin-top: 16px; }
.payment-select label, .email-input label {
    display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px;
}
.payment-select select, .email-input input {
    width: 100%; padding: 10px 14px;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius-xs); color: var(--text); font-size: 0.9rem; outline: none;
}
.email-input small { color: var(--text-dim); font-size: 0.78rem; }

/* ─── Buttons ─── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--radius-sm);
    font-size: 0.95rem; font-weight: 600; cursor: pointer;
    border: none; transition: all var(--transition);
}
.btn-buy {
    width: 100%; margin-top: 20px; padding: 14px;
    background: var(--accent); color: #fff; font-size: 1.05rem;
}
.btn-buy:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-full { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; background: var(--bg-card); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius-xs); }
.btn-sm:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Modal ─── */
.modal {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
}
.modal-content {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); width: 90%; max-width: 500px;
    box-shadow: var(--shadow);
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { display: flex; align-items: center; gap: 10px; }
.modal-close {
    background: none; border: none; color: var(--text-muted);
    font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.modal-body { padding: 24px; }

.wallet-address {
    background: var(--bg-input); padding: 14px;
    border-radius: var(--radius-xs); font-family: monospace;
    font-size: 0.82rem; word-break: break-all; margin: 12px 0;
    border: 1px solid var(--border); position: relative;
}
.copy-btn {
    position: absolute; top: 8px; right: 8px;
    background: var(--accent); color: #fff; border: none;
    padding: 4px 10px; border-radius: var(--radius-xs);
    font-size: 0.75rem; cursor: pointer;
}
.payment-amount {
    font-size: 1.8rem; font-weight: 700; color: var(--green);
    text-align: center; margin: 16px 0;
}
.payment-coin { font-size: 0.9rem; color: var(--text-muted); text-align: center; }
.payment-timer {
    text-align: center; color: var(--yellow); font-size: 0.9rem; margin-top: 12px;
}

/* ─── Auth Pages ─── */
.auth-section { display: flex; align-items: center; min-height: 70vh; }
.auth-card {
    max-width: 440px; margin: 0 auto; width: 100%;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 40px 32px;
}
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-header h2 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-header p { color: var(--text-muted); font-size: 0.95rem; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-footer { text-align: center; margin-top: 24px; color: var(--text-muted); font-size: 0.9rem; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
.form-group input, .form-group select {
    padding: 12px 16px; background: var(--bg-input);
    border: 1px solid var(--border); border-radius: var(--radius-xs);
    color: var(--text); font-size: 0.95rem; outline: none;
    transition: border var(--transition);
}
.form-group input:focus, .form-group select:focus { border-color: var(--accent); }
.form-group input::placeholder { color: var(--text-dim); }
.form-group small { color: var(--text-dim); font-size: 0.78rem; }
.form-group input:disabled { opacity: 0.5; }

.alert {
    padding: 12px 16px; border-radius: var(--radius-xs);
    font-size: 0.9rem; margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
}
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: var(--red); }
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: var(--green); }

/* ─── Profile ─── */
.profile-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; }
.profile-sidebar {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px; height: fit-content;
    position: sticky; top: 80px;
}
.profile-avatar { text-align: center; margin-bottom: 24px; }
.avatar-circle {
    width: 72px; height: 72px; margin: 0 auto 12px;
    background: var(--accent); color: #fff; font-size: 1.8rem; font-weight: 700;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.profile-avatar h3 { font-size: 1.1rem; margin-bottom: 4px; }
.profile-avatar p { color: var(--text-muted); font-size: 0.85rem; }
.profile-nav { display: flex; flex-direction: column; gap: 4px; }
.profile-nav a {
    padding: 10px 14px; border-radius: var(--radius-xs);
    color: var(--text-muted); display: flex; align-items: center; gap: 10px;
    font-size: 0.9rem; transition: all var(--transition);
}
.profile-nav a:hover, .profile-nav a.active { background: var(--bg-card-hover); color: var(--text); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel h2 { font-size: 1.4rem; margin-bottom: 24px; }

.empty-state {
    text-align: center; padding: 60px 20px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius);
}
.empty-state i { font-size: 3rem; color: var(--text-dim); margin-bottom: 16px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 20px; }

.orders-table { overflow-x: auto; }
.orders-table table { width: 100%; border-collapse: collapse; }
.orders-table th {
    text-align: left; padding: 12px 16px;
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-dim); border-bottom: 1px solid var(--border);
}
.orders-table td {
    padding: 14px 16px; font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.settings-form { max-width: 400px; display: flex; flex-direction: column; gap: 18px; }

.status-badge {
    padding: 4px 12px; border-radius: 999px;
    font-size: 0.78rem; font-weight: 600; text-transform: capitalize;
}
.status-done, .status-completed { background: rgba(34,197,94,0.15); color: var(--green); }
.status-pending, .status-waitingforpayment { background: rgba(245,158,11,0.15); color: var(--yellow); }
.status-expired, .status-failed, .status-paymentfailed { background: rgba(239,68,68,0.15); color: var(--red); }

/* ─── Track ─── */
.track-result { margin-top: 24px; }
.track-card {
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
}
.track-status { margin-bottom: 16px; }

/* ─── About ─── */
.about-page { max-width: 800px; margin: 0 auto; }
.about-page h1 { font-size: 2rem; margin-bottom: 16px; }
.about-lead { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 40px; line-height: 1.7; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 48px; }
.about-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px 24px;
}
.about-icon { font-size: 1.5rem; color: var(--accent); margin-bottom: 12px; }
.about-card h3 { margin-bottom: 10px; font-size: 1.05rem; }
.about-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.about-section { margin-bottom: 40px; }
.about-section h2 { font-size: 1.4rem; margin-bottom: 16px; }
.about-section p { color: var(--text-muted); line-height: 1.7; }
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 20px 24px;
}
.faq-item h4 { margin-bottom: 8px; font-size: 1rem; }
.faq-item p { color: var(--text-muted); font-size: 0.9rem; }

/* ─── Footer ─── */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 24px; margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; margin-bottom: 32px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin: 12px 0; line-height: 1.6; }
.footer-coins { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-coins span {
    padding: 4px 10px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-xs); font-size: 0.75rem; color: var(--text-muted);
}
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dim); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.9rem; padding: 4px 0; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
    border-top: 1px solid var(--border); padding-top: 20px;
    text-align: center; color: var(--text-dim); font-size: 0.82rem;
}

/* ─── Loading ─── */
.loading-spinner { text-align: center; padding: 40px; }
.spinner {
    width: 36px; height: 36px; margin: 0 auto 12px;
    border: 3px solid var(--border); border-top-color: var(--accent);
    border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-spinner p { color: var(--text-muted); font-size: 0.9rem; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .nav-search { display: none; }
    .nav-actions { gap: 6px; }
    .mobile-toggle { display: block; }
    .country-select { display: none; }

    .hero h1 { font-size: 2rem; }
    .hero-sub { font-size: 1rem; }
    .hero-stats { gap: 24px; }

    .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .cat-card { padding: 16px 8px; }
    .cat-card span { font-size: 0.75rem; }

    .brands-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
    .brand-card img { width: 48px; height: 48px; }

    .product-body { grid-template-columns: 1fr; }
    .profile-layout { grid-template-columns: 1fr; }
    .profile-sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .denom-grid { grid-template-columns: repeat(3, 1fr); }
    .hero h1 { font-size: 1.6rem; }
    .footer-grid { grid-template-columns: 1fr; }
}
