/* VerniqIndex — Custom CSS
   Extends Tailwind with glassmorphism, animations, and custom components */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --gold: #F4B400;
    --gold-dark: #D4A000;
    --gold-light: #FDD835;
    --charcoal: #1F2937;
    --dark: #111827;
    --gray-soft: #F9FAFB;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.12);
    --shadow-gold: 0 0 30px rgba(244, 180, 0, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ───────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

/* ── Glassmorphism Card ──────────────────── */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-card-light {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(244, 180, 0, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* ── Gold Gradient Buttons ───────────────── */
.btn-gold {
    background: linear-gradient(135deg, #F4B400, #FDD835);
    color: #111827;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(244, 180, 0, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(244, 180, 0, 0.5);
    background: linear-gradient(135deg, #FDD835, #F4B400);
}

.btn-gold:active {
    transform: translateY(0);
}

.btn-outline-gold {
    background: transparent;
    color: #F4B400;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: 2px solid #F4B400;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-outline-gold:hover {
    background: rgba(244, 180, 0, 0.1);
    transform: translateY(-2px);
}

/* ── Gradient Text ───────────────────────── */
.text-gradient {
    background: linear-gradient(135deg, #F4B400, #FDD835, #F4B400);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Crypto Ticker Strip ─────────────────── */
.ticker-wrap {
    overflow: hidden;
    background: rgba(244, 180, 0, 0.08);
    border-top: 1px solid rgba(244, 180, 0, 0.2);
    border-bottom: 1px solid rgba(244, 180, 0, 0.2);
    padding: 0.6rem 0;
}

.ticker-inner {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
}

.ticker-inner:hover {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ── Animated Counter ────────────────────── */
.counter-num {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #F4B400, #FDD835);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Hero Section ────────────────────────── */
.hero-bg {
    background: radial-gradient(ellipse at 20% 50%, rgba(244, 180, 0, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(244, 180, 0, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #111827 0%, #0d1117 100%);
}

/* ── Section Divider ─────────────────────── */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(244, 180, 0, 0.3), transparent);
    margin: 0 auto;
    width: 80%;
}

/* ── Plan Cards ──────────────────────────── */
.plan-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F4B400, #FDD835);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.plan-card:hover {
    transform: translateY(-8px);
    border-color: rgba(244, 180, 0, 0.3);
    box-shadow: 0 20px 60px rgba(244, 180, 0, 0.12), 0 0 0 1px rgba(244, 180, 0, 0.1);
}

.plan-card:hover::before {
    transform: scaleX(1);
}

.plan-card.featured {
    border-color: rgba(244, 180, 0, 0.4);
    background: rgba(244, 180, 0, 0.05);
}

.plan-card.featured::before {
    transform: scaleX(1);
}

/* ── Nav ─────────────────────────────────── */
.nav-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Dashboard Sidebar ───────────────────── */
.sidebar {
    background: #111827;
    border-right: 1px solid rgba(244, 180, 0, 0.1);
    width: 260px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 50;
    /* Hidden on mobile by default */
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 30px rgba(0, 0, 0, 0.5);
}

/* Mobile: sidebar slides in when open */
@media (max-width: 1023px) {
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 2px 0 30px rgba(244, 180, 0, 0.1);
    }
}

/* Sidebar overlay for mobile */
#sidebar-overlay {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#sidebar-overlay.hidden {
    pointer-events: none;
}

/* Sidebar Section Grouping */
.sidebar-section {
    margin-bottom: 0;
}

.sidebar-section-title {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6B7280;
    padding: 1rem 1.25rem 0.5rem 1.25rem;
    display: block;
    transition: color 0.2s ease;
    user-select: none;
}

.sidebar-section:hover .sidebar-section-title {
    color: #9CA3AF;
}

.sidebar-section-items {
    border-left: 2px solid rgba(244, 180, 0, 0.08);
    margin-left: 0.875rem;
    padding-left: 0;
    transition: border-color 0.3s ease;
}

.sidebar-section-items:hover {
    border-left-color: rgba(244, 180, 0, 0.25);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    color: #9CA3AF;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-bottom: 2px;
    position: relative;
    border-left: 3px solid transparent;
    padding-left: 1rem;
}

.sidebar-link:hover {
    background: rgba(244, 180, 0, 0.12);
    color: #F4B400;
    padding-left: 1.1rem;
}

.sidebar-link.active {
    background: rgba(244, 180, 0, 0.15);
    color: #F4B400;
    border-left-color: #F4B400;
    font-weight: 600;
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #F4B400, #FDD835);
    border-radius: 0 2px 2px 0;
}

.sidebar-link svg,
.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* ── Dashboard Stat Cards ────────────────── */
.stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(244, 180, 0, 0.25);
    box-shadow: 0 4px 20px rgba(244, 180, 0, 0.08);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* ── Table Styles ────────────────────────── */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: rgba(244, 180, 0, 0.06);
    color: #F4B400;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.875rem 1rem;
    text-align: left;
}

.data-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #D1D5DB;
    font-size: 0.9rem;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* ── Forms ───────────────────────────────── */
.form-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
select,
textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    color: #FFFFFF !important;
    /* Force white text in dark mode */
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: 'Inter', sans-serif;
}

/* Fix for Select dropdown background in some browsers */
select option {
    background-color: #1F2937;
    color: #fff;
}

/* Chrome/Safari Autofill Fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 50px #1F2937 inset !important;
    /* Matches your card bg */
    -webkit-text-fill-color: #FFFFFF !important;
    caret-color: #FFFFFF !important;
}

.form-input::placeholder {
    color: #6B7280;
}

.form-input:focus {
    border-color: #F4B400;
    box-shadow: 0 0 0 3px rgba(244, 180, 0, 0.12);
}

.form-label {
    display: block;
    color: #9CA3AF;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}


/* ── Auth Cards ──────────────────────────── */
.auth-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

/* ── Toast Notifications ─────────────────── */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: #1F2937;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    min-width: 280px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: toast-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.success {
    border-left: 4px solid #10B981;
}

.toast.error {
    border-left: 4px solid #EF4444;
}

.toast.warning {
    border-left: 4px solid #F59E0B;
}

.toast.info {
    border-left: 4px solid #3B82F6;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ── Loading Spinner ─────────────────────── */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(244, 180, 0, 0.2);
    border-top-color: #F4B400;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Floating orbs (hero decoration) ─────── */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: orb-float 8s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(244, 180, 0, 0.06);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(244, 180, 0, 0.04);
    bottom: -50px;
    right: 10%;
    animation-delay: -4s;
}

@keyframes orb-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

/* ── Dark/Light toggle ───────────────────── */
body.light-mode {
    background: #F9FAFB;
    color: #111827;
}

body.light-mode .text-white {
    color: #111827 !important;
}

body.light-mode .text-gray-300 {
    color: #374151 !important;
}

body.light-mode .text-gray-400 {
    color: #4B5563 !important;
}

body.light-mode .text-gray-500 {
    color: #6B7280 !important;
}

body.light-mode .bg-\[\#0d1117\] {
    background-color: #F9FAFB !important;
}

body.light-mode .bg-\[\#111827\] {
    background-color: #FFFFFF !important;
}

body.light-mode .bg-\[\#1F2937\] {
    background-color: #FFFFFF !important;
}

body.light-mode .bg-\[\#111827\]\/95 {
    background-color: rgba(255, 255, 255, 0.95) !important;
}

body.light-mode .bg-white\/3 {
    background-color: rgba(0, 0, 0, 0.03) !important;
}

body.light-mode .bg-white\/5 {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .bg-white\/10 {
    background-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .border-white\/5 {
    border-color: rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .border-white\/6 {
    border-color: rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .border-white\/8 {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .border-white\/10 {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .border-white\/20 {
    border-color: rgba(0, 0, 0, 0.2) !important;
}

body.light-mode .hover\:bg-white\/5:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .hover\:bg-white\/10:hover {
    background-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .hover\:text-white:hover {
    color: #111827 !important;
}

body.light-mode .glass-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(31, 41, 55, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
}

body.light-mode .form-input {
    background: #fff;
    border-color: #E5E7EB;
    color: #111827;
}

body.light-mode .data-table td {
    color: #374151;
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .data-table tr:hover td {
    background: rgba(0, 0, 0, 0.02);
}

/* ── Hamburger Menu Animation ────────────── */
.hamburger-btn {
    position: relative;
    overflow: visible;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hamburger-line {
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger-line:first-child {
    width: 100%;
}

.hamburger-line:nth-child(2) {
    width: 100%;
    opacity: 1;
}

.hamburger-line:last-child {
    width: 100%;
}

/* Hamburger active state */
.hamburger-btn.active .hamburger-line:first-child {
    transform: rotate(45deg) translate(10px, 10px);
    width: 100%;
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger-btn.active .hamburger-line:last-child {
    transform: rotate(-45deg) translate(8px, -8px);
    width: 100%;
}



@media (min-width: 1024px) {
    /* Sidebar always visible on desktop */
    .sidebar {
        transform: translateX(0) !important;
        box-shadow: none;
    }

    /* Push main content right of sidebar on desktop */
    .main-content-wrapper {
        margin-left: 260px;
    }
}



/* ── Progress bars ───────────────────────── */
.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #F4B400, #FDD835);
    border-radius: 3px;
    transition: width 1s ease;
}

/* ── FAQ Accordion ───────────────────────── */
.faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-item .faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

/* ── Testimonial Cards ───────────────────── */
.testimonial-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: rgba(244, 180, 0, 0.2);
    transform: translateY(-4px);
}

/* ── Wallet Address Display ──────────────── */
.wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    word-break: break-all;
    color: #F4B400;
}

/* ── Animations ──────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.pulse-gold {
    animation: pulse-gold 2s ease-in-out infinite;
}

@keyframes pulse-gold {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(244, 180, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(244, 180, 0, 0);
    }
}

/* ── KYC Banner Animations ───────────────── */
.animate-kyc-banner {
    animation: slide-down-fade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-down-fade {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-pulse-subtle {
    animation: attention-glow 3s ease-in-out infinite;
}

@keyframes attention-glow {

    0%,
    100% {
        box-shadow: 0 0 0px rgba(244, 180, 0, 0);
        border-color: rgba(244, 180, 0, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(244, 180, 0, 0.3);
        border-color: rgba(244, 180, 0, 0.6);
    }
}

.kyc-ping {
    position: relative;
}

.kyc-ping::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid #F4B400;
    animation: kyc-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes kyc-ping {

    75%,
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}