/* ==========================================================================
   ELITE VERIFIED TRADER CSS
   Glassmorphism, Trust Badges, Wizard Flow
   ========================================================================== */

/* Layout & Globals */
.vrf-container { margin-left: 20px; padding: 32px; min-height: 100vh; color: #ffffff; font-family: 'Inter', sans-serif; display: flex; flex-direction: column; position: relative; overflow-x: hidden; }

/* Utilities */
.hidden { display: none !important; opacity: 0; pointer-events: none; }
.m-0 { margin: 0; } .my-16 { margin-top: 16px; margin-bottom: 16px; } .mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.p-16 { padding: 16px; } .pt-16 { padding-top: 16px; } .pb-16 { padding-bottom: 16px; } .border-top { border-top: 1px solid rgba(255,255,255,0.1); } .border-bottom { border-bottom: 1px solid rgba(255,255,255,0.1); }
.text-xs { font-size: 0.75rem; } .text-sm { font-size: 0.85rem; } .text-muted { color: rgba(255,255,255,0.6); } .w-full { width: 100%; } .text-center { text-align: center; } .block { display: block; }
.uppercase { text-transform: uppercase; } .letter-spacing { letter-spacing: 1px; } .font-bold { font-weight: 700; } .tabular-nums { font-variant-numeric: tabular-nums; }
.flex-between { display: flex; justify-content: space-between; align-items: center; } .flex-align-center { display: flex; align-items: center; } .gap-8 { gap: 8px; } .gap-16 { gap: 16px; }

/* Palette */
.text-purple { color: #c084fc; } .text-cyan { color: #06b6d4; } .text-gold { color: #fbbf24; } .text-red { color: #ef5350; } .text-green { color: #22c55e; } .text-white { color: #ffffff; }
.bg-cyan { background: #06b6d4; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { 0% { transform: scale(0.9); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes pulseBadge { 0% { filter: drop-shadow(0 0 10px rgba(255,255,255,0.1)); transform: scale(1); } 50% { filter: drop-shadow(0 0 25px rgba(255,255,255,0.3)); transform: scale(1.02); } 100% { filter: drop-shadow(0 0 10px rgba(255,255,255,0.1)); transform: scale(1); } }
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes pulseBtn { 0% { box-shadow: 0 0 0 0 rgba(168,85,247,0.5); } 70% { box-shadow: 0 0 0 15px rgba(168,85,247,0); } 100% { box-shadow: 0 0 0 0 rgba(168,85,247,0); } }

.fade-in { animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.spinning { animation: spin 2s linear infinite; }
.unverified-pulse { animation: pulseBadge 3s infinite; }
.pulse-btn { animation: pulseBtn 2s infinite; }

/* Cards & Buttons */
.vrf-card { background: rgba(255,255,255,0.03); backdrop-filter: blur(24px) saturate(180%); border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; padding: 24px; box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05); transition: all 0.4s; }
.vrf-card--danger { border-color: rgba(239,83,80,0.5); background: rgba(239,83,80,0.05); }

.vrf-btn { padding: 10px 20px; border-radius: 12px; font-weight: 700; font-size: 0.85rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s; border: none; text-transform: uppercase; font-family: inherit; }
.vrf-btn--primary { background: linear-gradient(135deg, #a855f7, #7e22ce); color: white; box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3); }
.vrf-btn--primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5); }
.vrf-btn--primary:disabled { opacity: 0.5; cursor: not-allowed; }
.vrf-btn--secondary { background: rgba(255,255,255,0.05); color: white; border: 1px solid rgba(255,255,255,0.1); }
.vrf-btn--secondary:hover:not(:disabled) { background: rgba(255,255,255,0.1); border-color: #c084fc; color: #c084fc; }
.vrf-btn--secondary:disabled { opacity: 0.3; cursor: not-allowed; }
.vrf-btn--massive { padding: 16px 32px; font-size: 1.1rem; border-radius: 16px; }

/* Inputs */
.vrf-input, .vrf-select { width: 100%; padding: 12px 16px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: white; border-radius: 8px; transition: 0.3s; font-family: inherit; font-size: 0.9rem; outline: none; }
.vrf-input:focus, .vrf-select:focus { border-color: #c084fc; box-shadow: 0 0 0 2px rgba(192,132,252,0.2); }
.vrf-form-group { margin-bottom: 16px; }
.vrf-form-group label { display: block; margin-bottom: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.8); font-weight: 600; }
.vrf-range { -webkit-appearance: none; width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; outline: none; }
.vrf-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #c084fc; cursor: pointer; transition: 0.2s; box-shadow: 0 0 10px rgba(192,132,252,0.5); }

/* Header & Status Pill */
.vrf-header { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 24px; }
.vrf-header__title { font-size: 2.2rem; font-weight: 800; margin: 0 0 8px 0; letter-spacing: 1px; }
.vrf-header__subtitle { color: #c084fc; margin: 0; font-size: 1rem; }
.vrf-header__actions { display: flex; gap: 16px; }
.vrf-status-pill { padding: 6px 16px; border-radius: 20px; font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.6); }
.pill-pending { border-color: #fbbf24; color: #fbbf24; background: rgba(251,191,36,0.1); animation: pulseBadge 2s infinite; }
.pill-verified { border-color: #22c55e; color: #22c55e; background: rgba(34,197,94,0.1); }
.pill-rejected { border-color: #ef5350; color: #ef5350; background: rgba(239,83,80,0.1); }

/* Hero Views */
.vrf-hero-wrapper { position: relative; min-height: 350px; }
.vrf-hero-view { display: none; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 24px; padding: 40px; box-shadow: 0 20px 50px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05); }
.vrf-hero-view.active { display: flex; animation: popIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.vrf-hero-content { display: flex; align-items: center; gap: 40px; width: 100%; }

.vrf-badge-container { width: 180px; height: 180px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.vrf-giant-icon { font-size: 6rem; }
.vrf-huge-icon { font-size: 3rem; }

.vrf-perks-row { display: flex; gap: 24px; flex-wrap: wrap; }
.vrf-perk { font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.8); display: flex; align-items: center; gap: 8px; }

/* Timeline (Pending) */
.vrf-timeline { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 auto; width: 100%; max-width: 600px; }
.vrf-t-step { font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.vrf-t-step.active { color: #fbbf24; text-shadow: 0 0 10px rgba(251,191,36,0.5); }
.vrf-t-step.passed { color: #22c55e; }
.vrf-t-line { flex-grow: 1; height: 2px; background: rgba(255,255,255,0.1); }
.vrf-t-line.passed { background: #22c55e; }

/* Verified Stats */
.vrf-tier-text { padding: 4px 12px; border-radius: 8px; font-size: 1.2rem; background: rgba(255,255,255,0.1); }
.tier-bronze { color: #cd7f32; border: 1px solid #cd7f32; box-shadow: 0 0 15px rgba(205,127,50,0.3); }
.tier-silver { color: #c0c0c0; border: 1px solid #c0c0c0; box-shadow: 0 0 15px rgba(192,192,192,0.3); }
.tier-gold { color: #ffd700; border: 1px solid #ffd700; box-shadow: 0 0 15px rgba(255,215,0,0.3); }
.tier-platinum { color: #e5e4e2; border: 1px solid #e5e4e2; box-shadow: 0 0 15px rgba(229,228,226,0.3); }
.tier-diamond { color: #b9f2ff; border: 1px solid #b9f2ff; box-shadow: 0 0 15px rgba(185,242,255,0.3); background: rgba(185,242,255,0.1); }

.vrf-stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; background: rgba(0,0,0,0.3); padding: 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); }
.vrf-stat-box { display: flex; flex-direction: column; }
.vrf-stat-box .lbl { font-size: 0.7rem; color: rgba(255,255,255,0.5); text-transform: uppercase; }
.vrf-stat-box .val { font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }

.vrf-perks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.8); }
.vrf-trust-val { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); font-size: 1.5rem; font-weight: 800; color: #22c55e; }

/* Tier Ladder */
.vrf-tiers-scroll { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 16px; scrollbar-width: thin; }
.vrf-tiers-scroll::-webkit-scrollbar { height: 6px; }
.vrf-tiers-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }
.vrf-tier-card { min-width: 250px; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; transition: 0.3s; position: relative; }
.vrf-tier-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.03); }
.vrf-tier-card.qualified { border-color: rgba(34,197,94,0.5); box-shadow: 0 0 20px rgba(34,197,94,0.1); }
.vrf-tier-card.current { border-color: rgba(192,132,252,0.5); box-shadow: 0 0 30px rgba(192,132,252,0.2); background: rgba(192,132,252,0.05); }

.t-icon { font-size: 2.5rem; margin-bottom: 16px; }
.t-name { font-size: 1.2rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 16px 0; }
.t-req-row { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 8px; border-bottom: 1px dashed rgba(255,255,255,0.05); padding-bottom: 4px; }
.t-req-row .lbl { color: rgba(255,255,255,0.5); }
.t-req-row .val { font-weight: 700; tabular-nums: tabular-nums; }
.t-perks { list-style: none; padding: 0; margin: 16px 0 0 0; font-size: 0.8rem; color: rgba(255,255,255,0.7); display: flex; flex-direction: column; gap: 6px; }

/* History Table */
.vrf-table-wrap { overflow-x: auto; }
.vrf-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.vrf-table th { text-align: left; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); text-transform: uppercase; font-size: 0.75rem; }
.vrf-table td { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.05); font-variant-numeric: tabular-nums; }

/* Modals & Wizard */
.vrf-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.vrf-modal__overlay { position: absolute; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); }
.vrf-modal__content { position: relative; background: #0d0b12; border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); animation: popIn 0.3s cubic-bezier(0.16,1,0.3,1) forwards; }
.vrf-modal__close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: rgba(255,255,255,0.5); font-size: 1.5rem; cursor: pointer; transition: 0.3s; z-index: 10; }
.vrf-modal__close:hover { color: white; }

.vrf-wizard-container { width: 95%; max-width: 800px; padding: 32px; display: flex; flex-direction: column; }
.vrf-progress-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; }
.vrf-progress-fill { height: 100%; border-radius: 3px; transition: width 0.4s ease-out; }
.vrf-wizard-body { min-height: 350px; padding: 16px 0; }
.vrf-step { animation: fadeInUp 0.3s forwards; }

.vrf-checkbox-list { display: flex; flex-direction: column; gap: 12px; }
.vrf-chk-row { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 0.9rem; color: rgba(255,255,255,0.8); background: rgba(0,0,0,0.2); padding: 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); transition: 0.2s; }
.vrf-chk-row:hover { background: rgba(255,255,255,0.05); border-color: rgba(192,132,252,0.3); }
.vrf-chk-row input { accent-color: #c084fc; width: 18px; height: 18px; margin-top: 2px; cursor: pointer; }

.vrf-dropzone { border: 2px dashed rgba(6,182,212,0.4); border-radius: 16px; padding: 40px; text-align: center; background: rgba(6,182,212,0.05); transition: 0.3s; cursor: pointer; }
.vrf-dropzone:hover, .vrf-dropzone.dragover { border-color: #06b6d4; background: rgba(6,182,212,0.1); }