/* ==========================================================================
   ProjectX — Modern Design System & Stylesheet
   Theme: Dark Slate & Indigo Glassmorphism with Vibrant Accents
   ========================================================================== */

:root {
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

    /* Color Palette */
    --bg-dark: #090d16;
    --bg-surface: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.75);
    --bg-card-hover: rgba(30, 41, 59, 0.85);
    --bg-input: #1e293b;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(99, 102, 241, 0.35);
    --border-active: #6366f1;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.4);

    --emerald: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.25);
    --amber: #f59e0b;
    --amber-glow: rgba(245, 158, 11, 0.25);
    --rose: #f43f5e;
    --cyan: #06b6d4;
    --purple: #a855f7;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 1px 1px var(--border-subtle);
    --shadow-glow: 0 0 40px var(--primary-glow);
}

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

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: #818cf8;
}

code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: rgba(255, 255, 255, 0.08);
    color: #38bdf8;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

/* Background Ambient Glows */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.35;
}
.bg-glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #6366f1, #3b82f6);
    top: -100px;
    left: 20%;
}
.bg-glow-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #8b5cf6, #ec4899);
    top: 500px;
    right: 5%;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 0;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
}
.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
.brand-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.brand-accent {
    color: #818cf8;
}
.brand-badge {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--emerald);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}
.nav-link-admin {
    color: #c084fc;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 6px 14px;
    border-radius: var(--radius-full);
}
.nav-link-admin:hover {
    background: rgba(168, 85, 247, 0.22);
    color: #ffffff;
}

/* Common Layout */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    flex: 1;
    width: 100%;
}

/* Typography & Helpers */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-emerald { color: var(--emerald); }
.text-amber { color: var(--amber); }
.text-cyan { color: var(--cyan); }
.text-purple { color: var(--purple); }
.font-mono { font-family: var(--font-mono); }
.font-semibold { font-weight: 600; }
.d-flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }

/* Badges & Pills */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-full);
    color: #a5b4fc;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}
.badge-pill-admin {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    color: #e9d5ff;
}
.badge-pill-sm {
    padding: 3px 10px;
    font-size: 11px;
}

.status-dot-online {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--emerald);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 14px var(--emerald); }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    outline: none;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.6);
    color: #ffffff;
}
.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}
.btn-xs {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}
.btn-block {
    width: 100%;
}
.copy-inline-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    margin-left: 6px;
    transition: color 0.2s;
    vertical-align: middle;
}
.copy-inline-btn:hover {
    color: #ffffff;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 50px 0 60px;
    max-width: 800px;
    margin: 0 auto;
}
.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}
.hero-title-gradient {
    background: linear-gradient(135deg, #ffffff 30%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}
.hero-features-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 14px 24px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    display: inline-flex;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}
.feature-item i {
    color: var(--emerald);
}

/* Products Grid */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 8px;
}
.section-desc {
    color: var(--text-muted);
    font-size: 16px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 60px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    position: relative;
    box-shadow: var(--shadow-card);
}
.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-accent);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.2);
}
.product-card.featured-card {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.12) 0%, rgba(15, 23, 42, 0.85) 100%);
}
.product-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.product-head {
    margin-bottom: 20px;
}
.product-tag {
    font-size: 12px;
    font-weight: 700;
    color: #818cf8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.product-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
}
.product-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.5;
}

.product-price-box {
    margin: 20px 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.currency-symbol {
    font-size: 24px;
    font-weight: 700;
    color: var(--emerald);
}
.price-value {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #ffffff;
}
.price-period {
    font-size: 14px;
    color: var(--text-dim);
}

.product-features {
    list-style: none;
    margin-bottom: 28px;
    flex-grow: 1;
}
.product-features li {
    font-size: 14px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.product-features li i {
    color: var(--emerald);
    flex-shrink: 0;
}

/* Custom Payment Section */
.custom-pay-box {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 700px;
    margin: 0 auto 60px;
    box-shadow: var(--shadow-card);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
}
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}
.input-with-icon i {
    position: absolute;
    left: 14px;
    color: var(--text-dim);
    pointer-events: none;
}
.input-with-icon input, .input-with-icon select, .custom-pay-box input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s ease;
}
.input-with-icon input:focus, .custom-pay-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}
.modal-card {
    background: #0f172a;
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 24px;
    cursor: pointer;
}
.modal-close-btn:hover { color: #ffffff; }
.modal-body {
    padding: 24px;
}

/* Dynamic QR Screen in Modal */
.qr-checkout-view {
    text-align: center;
}
.qr-box-wrap {
    background: #ffffff;
    padding: 16px;
    border-radius: var(--radius-md);
    display: inline-block;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    margin: 16px 0;
}
.qr-box-wrap img {
    display: block;
    width: 200px;
    height: 200px;
    object-fit: contain;
}
.payable-amount-badge {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: var(--radius-md);
    padding: 12px;
    margin: 16px 0;
}
.payable-amount-badge .payable-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--emerald);
    display: block;
}
.countdown-timer-line {
    font-size: 13px;
    color: var(--amber);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}
.upi-apps-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}
.upi-app-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.upi-app-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Receipt Cards */
.receipt-card-wrapper {
    max-width: 600px;
    margin: 0 auto;
}
.receipt-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-card);
}
.success-icon-bubble {
    width: 64px;
    height: 64px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.pending-icon-bubble {
    width: 64px;
    height: 64px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--amber);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.receipt-header {
    text-align: center;
    margin-bottom: 28px;
}
.receipt-title {
    font-size: 28px;
    font-weight: 800;
    margin: 10px 0 6px;
}
.receipt-subtitle {
    color: var(--text-muted);
    font-size: 14px;
}

.deliverable-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(15, 23, 42, 0.8));
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}
.deliverable-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.deliverable-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #cbd5e1;
}
.deliverable-key code {
    display: block;
    padding: 12px;
    background: #090d16;
    border: 1px solid var(--border-subtle);
    font-size: 16px;
    font-weight: 600;
    color: #38bdf8;
    text-align: center;
    border-radius: var(--radius-sm);
    word-break: break-all;
}
.deliverable-tip {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.receipt-details {
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 0;
    margin-bottom: 24px;
}
.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}
.detail-label {
    color: var(--text-muted);
}
.detail-val {
    color: var(--text-main);
}
.amount-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--emerald);
}
.receipt-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Status Badges */
.badge-status-paid {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}
.badge-status-pending {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.15);
    color: var(--amber);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}
.badge-status-expired {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(244, 63, 94, 0.15);
    color: var(--rose);
    border: 1px solid rgba(244, 63, 94, 0.35);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

/* Admin Dashboard Specific */
.admin-top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}
.admin-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-top: 4px;
}
.admin-top-actions {
    display: flex;
    gap: 12px;
}

.webhook-banner-card {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.8), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: var(--radius-lg);
    padding: 24px 30px;
    margin-bottom: 32px;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.15);
}
.webhook-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}
.webhook-banner-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.webhook-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.5);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d8b4fe;
}
.webhook-banner-title {
    font-size: 18px;
    font-weight: 700;
}
.webhook-banner-subtitle {
    font-size: 13px;
    color: #cbd5e1;
}
.webhook-url-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #090d16;
    padding: 8px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}
.webhook-url-box code {
    background: none;
    padding: 0;
    color: #a78bfa;
    font-size: 14px;
    font-weight: 600;
}
.webhook-keys-summary {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.key-item {
    font-size: 13px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
}
.key-label {
    color: var(--text-dim);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.stat-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.icon-emerald { background: rgba(16, 185, 129, 0.15); color: var(--emerald); }
.icon-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.icon-amber { background: rgba(245, 158, 11, 0.15); color: var(--amber); }
.icon-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    display: block;
}
.stat-number {
    font-size: 24px;
    font-weight: 800;
    margin: 2px 0;
}
.stat-sub {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.admin-sections-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.card-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.card-title {
    font-size: 18px;
    font-weight: 700;
}
.count-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.table-responsive {
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
}
.data-table th {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}
.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    vertical-align: middle;
}
.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}
.amount-tag {
    font-weight: 700;
    color: var(--emerald);
}

.alert-box {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}
.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fde68a;
}
.alert-danger {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fda4af;
}

.json-code-box {
    background: #090d16;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 13px;
    max-height: 400px;
    overflow-y: auto;
    color: #38bdf8;
}

/* Tracker Styles */
.track-header {
    max-width: 650px;
    margin: 20px auto 40px;
}
.page-hero-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 8px 0;
}
.page-hero-sub {
    color: var(--text-muted);
    font-size: 16px;
}
.search-bar-form {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}
.search-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-dim);
}
.search-input-wrap input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 15px;
}
.search-input-wrap input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.order-result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
}
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}
.order-product-name {
    font-size: 16px;
    font-weight: 700;
}
.order-id-tag {
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--text-dim);
}
.card-mid {
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
    margin-bottom: 16px;
    font-size: 13.5px;
}
.price-highlight {
    font-size: 18px;
    font-weight: 800;
    color: var(--emerald);
    margin-left: 8px;
}

/* Footer */
.footer {
    background: #090d16;
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 30px;
    margin-top: auto;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.footer-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    max-width: 380px;
    margin-bottom: 16px;
}
.footer-security {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.badge-secure {
    font-size: 12px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}
.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.footer-col ul li a {
    color: var(--text-muted);
}
.footer-col ul li a:hover {
    color: #ffffff;
}
.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-dim);
}

.spin-icon {
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title { font-size: 34px; }
    .nav-links { display: none; }
    .footer-container { grid-template-columns: 1fr; }
    .webhook-banner-content { flex-direction: column; align-items: flex-start; }
    .webhook-url-box { width: 100%; }
}
