/*
Theme Name: FileHub
Theme URI: https://www.filehub.local
Author: EvylTR
Author URI: https://www.youtube.com/@example
Description: Sistema completo de descargas protegidas para WordPress con panel de administración, autenticación segura y estadísticas en tiempo real.
Version: 2.1.1
License: Proprietary
License URI: #
Text Domain: filehub
Tags: file-download, download-manager, protected-files, security, admin-panel
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ================================================
   FILEHUB PRO — DESIGN SYSTEM
   ================================================ */

:root {
    --primary:        #00b8ff;
    --primary-dark:   #0088ff;
    --primary-light:  rgba(0,184,255,.14);
    --accent:         #ff3b6b;
    --accent-dark:    #e11d48;
    --success:        #38bdf8;
    --success-light:  rgba(56,189,248,.14);
    --error:          #ef4444;
    --error-light:    rgba(239,68,68,.14);
    --warning:        #f59e0b;
    --warning-light:  rgba(245,158,11,.14);
    --info:           #3b82f6;
    --info-light:     rgba(59,130,246,.14);
    --surface:        #0b1020;
    --surface-2:      #070b14;
    --surface-3:      #11182b;
    --border:         #24304a;
    --border-dark:    #33415f;
    --text:           #f8fafc;
    --text-2:         #dbeafe;
    --text-3:         #94a3b8;
    --text-4:         #64748b;
    --radius-sm:      6px;
    --radius:         10px;
    --radius-lg:      16px;
    --radius-xl:      24px;
    --shadow-sm:      0 1px 3px rgba(0,0,0,.38), 0 0 18px rgba(0,184,255,.035);
    --shadow:         0 8px 24px rgba(0,0,0,.38), 0 0 22px rgba(0,184,255,.055);
    --shadow-lg:      0 18px 48px rgba(0,0,0,.48), 0 0 30px rgba(0,184,255,.075);
    --shadow-xl:      0 28px 72px rgba(0,0,0,.58), 0 0 38px rgba(255,59,107,.08);
    --transition:     all .18s cubic-bezier(.4,0,.2,1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--surface-2) !important;
    background-image:
        radial-gradient(circle at 12% 8%, rgba(0,184,255,.08), transparent 28rem),
        radial-gradient(circle at 88% 18%, rgba(255,59,107,.055), transparent 26rem);
    color: var(--text);
    line-height: 1.65;
    transition: background .25s, color .25s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
button { cursor: pointer; font-family: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; color: var(--text); letter-spacing: -.018em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

/* ================================================
   LAYOUT
   ================================================ */
.fh-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 1.75rem); }
.fh-section { padding: clamp(3.25rem, 6vw, 5rem) 0; }

/* ================================================
   HEADER
   ================================================ */
.fh-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(7,11,20,.92);
    box-shadow: var(--shadow-sm);
    transition: background .25s;
}
.fh-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 66px;
}
.fh-logo {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
}
.fh-logo-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 1rem;
    box-shadow: 0 0 22px rgba(0,184,255,.28), 0 5px 18px rgba(0,0,0,.35);
    flex-shrink: 0;
}
.fh-nav { display: flex; align-items: center; gap: .5rem; }
.fh-nav a {
    padding: .45rem 1rem;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-2);
    transition: var(--transition);
    border: 1.5px solid transparent;
}
.fh-nav a:hover { color: var(--primary); background: var(--primary-light); }
.fh-nav a.active { color: var(--primary); background: var(--primary-light); }
.fh-nav-cta {
    padding: .38rem .85rem !important;
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: var(--radius) !important;
    font-size: .8rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: .35rem !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    transition: background .15s, transform .15s !important;
}
.fh-nav-cta:hover { background: var(--primary-dark, #0088ff) !important; transform: translateY(-1px) !important; }

/* Mobile hamburger */
.fh-hamburger {
    width: 38px; height: 38px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    display: none;
    align-items: center; justify-content: center;
    background: var(--surface);
    color: var(--text-2);
    flex-shrink: 0;
}
@media (max-width: 767px) {
    .fh-hamburger { display: flex; }
    .fh-nav {
        display: none;
        position: absolute;
        top: 67px; left: 0; right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.25rem;
        flex-direction: column;
        align-items: stretch;
        gap: .35rem;
        box-shadow: var(--shadow);
    }
    .fh-nav.open { display: flex; }
    .fh-nav a { text-align: center; padding: .65rem 1rem; border-radius: var(--radius); }
    .fh-header-inner { flex-wrap: wrap; height: auto; padding: .75rem 0; }
}

/* ================================================
   TOAST NOTIFICATIONS
   ================================================ */
#fh-toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    pointer-events: none;
}
.fh-toast {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1.2rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    font-size: .9rem;
    font-weight: 500;
    color: var(--text);
    min-width: 260px;
    max-width: 380px;
    pointer-events: all;
    animation: toastIn .25s ease forwards;
    transition: var(--transition);
}
.fh-toast.hiding { animation: toastOut .25s ease forwards; }
.fh-toast-icon { font-size: 1.2rem; flex-shrink: 0; }
.fh-toast.success { border-left: 4px solid var(--success); }
.fh-toast.error   { border-left: 4px solid var(--error); }
.fh-toast.warning { border-left: 4px solid var(--warning); }
.fh-toast.info    { border-left: 4px solid var(--info); }
@keyframes toastIn  { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(6px); } }

/* ================================================
   BUTTONS
   ================================================ */
.fh-btn {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .6rem 1.4rem;
    border-radius: var(--radius);
    font-weight: 600; font-size: .9rem;
    border: 1.5px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    line-height: 1.4;
}
.fh-btn:hover { transform: translateY(-1px); }
.fh-btn:active { transform: translateY(0); }

.fh-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 5px 20px rgba(0,184,255,.25);
}
.fh-btn-primary:hover { color: #fff; box-shadow: 0 8px 28px rgba(255,59,107,.24), 0 0 18px rgba(0,184,255,.18); }

.fh-btn-secondary {
    background: var(--surface-3);
    color: var(--text-2);
    border-color: var(--border);
}
.fh-btn-secondary:hover { background: var(--surface-2); border-color: var(--border-dark); }

.fh-btn-danger {
    background: var(--error);
    color: #fff;
    box-shadow: 0 4px 12px rgba(239,68,68,.3);
}
.fh-btn-danger:hover { color: #fff; box-shadow: 0 6px 18px rgba(239,68,68,.4); }

.fh-btn-success {
    background: var(--success);
    color: #fff;
}
.fh-btn-success:hover { color: #fff; }

.fh-btn-sm { padding: .4rem .9rem; font-size: .8rem; }
.fh-btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.fh-btn-icon { padding: .5rem; width: 36px; height: 36px; justify-content: center; }

/* ================================================
   CARDS
   ================================================ */
.fh-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.fh-card:hover { box-shadow: var(--shadow); }
.fh-card-body { padding: 1.5rem; }
.fh-card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.fh-card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* ================================================
   STAT CARDS
   ================================================ */
.fh-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.fh-stat::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    border-radius: 50%;
    opacity: .08;
    transform: translate(20px, -20px);
}
.fh-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.fh-stat-label { font-size: .78rem; font-weight: 700; letter-spacing: .015em; color: var(--text-3); margin-bottom: .5rem; }
.fh-stat-value { font-size: 2.25rem; font-weight: 800; line-height: 1; margin-bottom: .35rem; }
.fh-stat-sub { font-size: .8rem; color: var(--text-3); }
.fh-stat.blue  { border-top: 3px solid var(--info);    } .fh-stat.blue::before  { background: var(--info);    } .fh-stat.blue  .fh-stat-value { color: var(--info); }
.fh-stat.green { border-top: 3px solid var(--accent); } .fh-stat.green::before { background: var(--accent); } .fh-stat.green .fh-stat-value { color: var(--accent); }
.fh-stat.purple{ border-top: 3px solid var(--primary); } .fh-stat.purple::before{ background: var(--primary); } .fh-stat.purple .fh-stat-value { color: var(--primary); }
.fh-stat.orange{ border-top: 3px solid var(--warning); } .fh-stat.orange::before{ background: var(--warning); } .fh-stat.orange .fh-stat-value { color: var(--warning); }

/* ================================================
   FORMS
   ================================================ */
.fh-label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-2); margin-bottom: .4rem; }
.fh-input, .fh-select, .fh-textarea {
    width: 100%;
    padding: .65rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: .9rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}
.fh-input:focus, .fh-select:focus, .fh-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.fh-input::placeholder { color: var(--text-4); }
.fh-textarea { resize: vertical; min-height: 100px; }
.fh-input-icon { position: relative; }
.fh-input-icon input { padding-left: 2.5rem; }
.fh-input-icon .icon { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--text-4); pointer-events: none; }

/* ================================================
   TABLES
   ================================================ */
.fh-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.fh-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.fh-table thead { background: var(--surface-2); border-bottom: 2px solid var(--border); }
.fh-table th { padding: .85rem 1rem; text-align: left; font-weight: 700; color: var(--text-2); font-size: .8rem; letter-spacing: .01em; white-space: nowrap; }
.fh-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: middle; }
.fh-table tbody tr { transition: var(--transition); }
.fh-table tbody tr:hover { background: var(--surface-2); }
.fh-table tbody tr:last-child td { border-bottom: none; }

/* Responsive table cards on mobile */
@media (max-width: 640px) {
    .fh-table-responsive thead { display: none; }
    .fh-table-responsive tbody tr {
        display: block;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        margin-bottom: .75rem;
        padding: .75rem;
    }
    .fh-table-responsive td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: .4rem .5rem;
        border-bottom: 1px dashed var(--border);
        font-size: .85rem;
    }
    .fh-table-responsive td:last-child { border-bottom: none; }
    .fh-table-responsive td::before { content: attr(data-label); font-weight: 700; color: var(--text-3); font-size: .75rem; }
}

/* ================================================
   BADGES
   ================================================ */
.fh-badge {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .2rem .65rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
}
.fh-badge-blue    { background: var(--info-light);    color: #60a5fa; }
.fh-badge-green   { background: var(--success-light); color: var(--success); }
.fh-badge-red     { background: var(--error-light);   color: #f87171; }
.fh-badge-yellow  { background: var(--warning-light); color: #fbbf24; }
.fh-badge-purple  { background: var(--primary-light); color: var(--primary-dark); }

/* ================================================
   FILE TYPE ICONS
   ================================================ */
.fh-file-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
    font-weight: 700; font-size: .7rem;
    letter-spacing: .02em;
}
.fh-file-icon.pdf   { background: rgba(239,68,68,.14); color: #f87171; }
.fh-file-icon.zip   { background: rgba(245,158,11,.14); color: #fbbf24; }
.fh-file-icon.rar   { background: rgba(245,158,11,.14); color: #fbbf24; }
.fh-file-icon.exe   { background: rgba(59,130,246,.14); color: #60a5fa; }
.fh-file-icon.mp4   { background: rgba(0,184,255,.14); color: #22d3ee; }
.fh-file-icon.mp3   { background: rgba(255,59,107,.14); color: #fb7185; }
.fh-file-icon.img   { background: rgba(255,59,107,.14); color: #ff6b8d; }
.fh-file-icon.doc   { background: rgba(59,130,246,.14); color: #60a5fa; }
.fh-file-icon.other { background: var(--surface-3); color: var(--text-3); }

/* ================================================
   PROGRESS BAR
   ================================================ */
.fh-progress { background: var(--surface-3); border-radius: 999px; overflow: hidden; height: 8px; }
.fh-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width .4s ease;
}
.fh-progress-bar.animated { animation: progressPulse 1.5s ease-in-out infinite; }
@keyframes progressPulse { 0%,100% { opacity:1; } 50% { opacity:.7; } }

/* ================================================
   MODAL
   ================================================ */
.fh-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    animation: fadeIn .18s ease;
}
#fhLoginOverlay { z-index: 10000; }
.fh-modal {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%; max-width: 480px;
    animation: modalIn .22s cubic-bezier(.34,1.56,.64,1);
}
.fh-modal-header { padding: 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 1rem; }
.fh-modal-body { padding: 1.5rem; }
.fh-modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: .75rem; }
@keyframes fadeIn  { from { opacity:0; } to { opacity:1; } }
@keyframes modalIn { from { opacity:0; transform: scale(.92) translateY(20px); } to { opacity:1; transform: none; } }

/* ================================================
   ADMIN SIDEBAR LAYOUT
   ================================================ */
.fh-admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 66px);
}
.fh-sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 1.5rem 0;
    position: sticky;
    top: 66px;
    height: calc(100vh - 66px);
    overflow-y: auto;
}
.fh-sidebar-section { padding: 0 .75rem; margin-bottom: 1.5rem; }
.fh-sidebar-label { font-size: .72rem; font-weight: 800; letter-spacing: .035em; color: var(--text-4); padding: 0 .75rem; margin-bottom: .5rem; }
.fh-sidebar-item {
    display: flex; align-items: center; gap: .75rem;
    padding: .6rem .75rem;
    border-radius: var(--radius);
    color: var(--text-2);
    font-size: .875rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none; background: none; width: 100%; text-align: left;
}
.fh-sidebar-item:hover { background: var(--surface-2); color: var(--primary); }
.fh-sidebar-item.active { background: var(--primary-light); color: var(--primary); font-weight: 700; }
.fh-sidebar-item .icon { font-size: 1.1rem; flex-shrink: 0; }
.fh-sidebar-item .badge { margin-left: auto; background: var(--primary); color: #fff; font-size: .7rem; padding: .1rem .45rem; border-radius: 999px; }
.fh-admin-main { min-width: 0; padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--surface-2); overflow-y: auto; }
.fh-tab-content { width: 100%; max-width: 1180px; }

/* Session bar */
.fh-session-bar {
    display: flex; align-items: center; gap: .75rem;
    padding: .75rem;
    margin: 0 .75rem 1rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .8rem;
    color: var(--text-3);
}
.fh-session-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex-shrink: 0; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.4; } }

@media (max-width: 900px) {
    .fh-admin-layout { grid-template-columns: 1fr; }
    .fh-sidebar { position: fixed; left: -260px; top: 66px; height: calc(100vh - 66px); z-index: 90; transition: left .25s; width: 250px; border-right: 1px solid var(--border); box-shadow: var(--shadow-lg); }
    .fh-sidebar.open { left: 0; }
    .fh-admin-main { padding: 1.25rem; }
}

/* ================================================
   DRAG & DROP UPLOAD
   ================================================ */
.fh-dropzone {
    border: 2px dashed var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    background: var(--surface-2);
    cursor: pointer;
}
.fh-dropzone:hover, .fh-dropzone.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.fh-dropzone .fh-drop-icon { font-size: 3rem; margin-bottom: 1rem; }
.fh-dropzone h4 { font-size: 1.1rem; margin-bottom: .4rem; color: var(--text); }
.fh-dropzone p { color: var(--text-3); font-size: .875rem; }

/* ================================================
   STEPS (download flow)
   ================================================ */
.fh-steps { display: flex; gap: 0; margin-bottom: 2rem; }
.fh-step {
    flex: 1; text-align: center; position: relative;
    padding: 1rem .5rem;
}
.fh-step::after {
    content: '';
    position: absolute; top: 22px; left: 50%; right: -50%;
    height: 2px; background: var(--border);
}
.fh-step:last-child::after { display: none; }
.fh-step-num {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--surface-3);
    border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto .6rem;
    font-weight: 800; font-size: .9rem; color: var(--text-3);
    position: relative; z-index: 1;
    transition: var(--transition);
}
.fh-step.active .fh-step-num  { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 4px var(--primary-light); }
.fh-step.done .fh-step-num    { background: var(--success); border-color: var(--success); color: #fff; }
.fh-step.done::after           { background: var(--success); }
.fh-step-label { font-size: .78rem; font-weight: 600; color: var(--text-3); }
.fh-step.active .fh-step-label { color: var(--primary); }
.fh-step.done .fh-step-label   { color: var(--success); }

/* ================================================
   EMPTY STATE
   ================================================ */
.fh-empty {
    text-align: center; padding: 4rem 2rem;
    color: var(--text-3);
}
.fh-empty-icon { font-size: 3.5rem; margin-bottom: 1rem; opacity: .5; }
.fh-empty h3 { font-size: 1.25rem; margin-bottom: .5rem; color: var(--text-2); }
.fh-empty p  { font-size: .9rem; max-width: 320px; margin: 0 auto; }

/* ================================================
   STORAGE BAR
   ================================================ */
.fh-storage-bar { margin-top: .5rem; }
.fh-storage-track { height: 6px; background: var(--surface-3); border-radius: 999px; overflow: hidden; margin-bottom: .35rem; }
.fh-storage-fill { height: 100%; background: linear-gradient(90deg, var(--success), var(--primary)); border-radius: 999px; }
.fh-storage-labels { display: flex; justify-content: space-between; font-size: .75rem; color: var(--text-3); }

/* ================================================
   HERO (landing)
   ================================================ */
.fh-hero {
    padding: clamp(4.5rem, 8vw, 6.5rem) 0 clamp(3.5rem, 6vw, 4.75rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.fh-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(rgba(0,184,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,184,255,.025) 1px, transparent 1px),
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,184,255,.17), transparent 68%);
    background-size: 42px 42px, 42px 42px, auto;
    pointer-events: none;
}
.fh-hero-eyebrow {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .4rem 1rem;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: .8rem; font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0,184,255,.32);
}
.fh-hero h1 { max-width: 900px; margin: 0 auto 1.25rem; }
.fh-hero p { font-size: clamp(1rem, 2vw, 1.15rem); color: var(--text-3); max-width: 640px; margin: 0 auto 2.5rem; }
.fh-hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ================================================
   FEATURE CARDS
   ================================================ */
.fh-section .text-center.mb-8 { max-width: 720px; margin-left: auto; margin-right: auto; }
.fh-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; align-items: stretch; }
.fh-feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    height: 100%;
    transition: var(--transition);
}
.fh-feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.fh-feature-icon {
    width: 50px; height: 50px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    background: var(--primary-light);
}
.fh-feature-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.fh-feature-card p  { font-size: .875rem; color: var(--text-3); line-height: 1.6; }

/* ================================================
   COUNTER ANIMATION
   ================================================ */
.fh-counter { display: inline-block; }

/* ================================================
   FOOTER
   ================================================ */
.fh-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}
.fh-footer-grid { display: grid; grid-template-columns: 1.5fr repeat(2, 1fr); gap: 2rem; margin-bottom: 2rem; }
.fh-footer-brand .fh-logo { margin-bottom: .75rem; }
.fh-footer-brand p { font-size: .875rem; color: var(--text-3); max-width: 240px; line-height: 1.6; }
.fh-footer-col h4 { font-size: .85rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; letter-spacing: .01em; }
.fh-footer-col ul { list-style: none; }
.fh-footer-col ul li { margin-bottom: .5rem; }
.fh-footer-col ul li a { font-size: .875rem; color: var(--text-3); transition: var(--transition); }
.fh-footer-col ul li a:hover { color: var(--primary); }
.fh-footer-bottom { border-top: 1px solid var(--border); padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; font-size: .8rem; color: var(--text-4); }
@media (max-width: 640px) { .fh-footer-grid { grid-template-columns: 1fr; } }

/* ================================================
   CONFIRM MODAL
   ================================================ */
.fh-confirm-modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
    z-index: 300;
    align-items: center; justify-content: center;
    padding: 1rem;
}
.fh-confirm-modal.show { display: flex; }
.fh-confirm-box {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 420px; width: 100%;
    box-shadow: var(--shadow-xl);
    animation: modalIn .22s cubic-bezier(.34,1.56,.64,1);
    text-align: center;
}
.fh-confirm-box .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.fh-confirm-box h3 { margin-bottom: .5rem; }
.fh-confirm-box p { color: var(--text-3); font-size: .9rem; margin-bottom: 1.5rem; }
.fh-confirm-actions { display: flex; gap: .75rem; justify-content: center; }

/* ================================================
   MISC UTILITIES
   ================================================ */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: .25rem; } .mb-2 { margin-bottom: .5rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .flex-wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 768px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .fh-btn-lg { width: 100%; justify-content: center; } }
@media (min-width: 640px) and (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-4); }
