/* ═══════════════════════════════════════════════════════════
   LeadNexus — Premium Dark Theme
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Variables ─────────────────────────────────────── */
:root {
    --bg-primary:     #0a0e1a;
    --bg-secondary:   #111827;
    --bg-card:        rgba(17, 24, 39, 0.7);
    --bg-card-hover:  rgba(30, 41, 59, 0.8);
    --bg-glass:       rgba(255, 255, 255, 0.03);
    --bg-input:       #0d1117; /* Solid deep dark background */

    --border:         rgba(255, 255, 255, 0.06);
    --border-focus:   rgba(139, 92, 246, 0.5);

    --text-primary:   #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted:     #64748b;

    --accent-purple:  #8b5cf6;
    --accent-blue:    #3b82f6;
    --accent-cyan:    #06b6d4;
    --accent-green:   #10b981;
    --accent-amber:   #f59e0b;
    --accent-red:     #ef4444;
    --accent-pink:    #ec4899;

    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 50%, #06b6d4 100%);
    --gradient-card:    linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    --gradient-hero:    linear-gradient(135deg, #0f0c29 0%, #1a1a2e 50%, #16213e 100%);

    --shadow-sm:   0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md:   0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg:   0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.15);

    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   16px;
    --radius-xl:   24px;

    --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background animated mesh */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

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

/* ── Layout Container ──────────────────────────────────── */
.app-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ── Navbar ────────────────────────────────────────────── */
.navbar {
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    width: 100%;
    align-self: stretch;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

@media (min-width: 1025px) {
    .navbar-header {
        display: flex;
        align-items: center;
    }
    .navbar-menu {
        display: flex;
        flex: 1;
        align-items: center;
        justify-content: space-between;
        margin-left: 64px; /* Professional spacing from logo */
    }
    .navbar-bottom-actions,
    .navbar-actions {
        display: flex;
        align-items: center;
    }
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
    transition: var(--transition);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-primary) !important;
    letter-spacing: -0.02em;
}

.brand-logo-img {
    height: 70px; /* Increased for professional visibility */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.navbar-brand:hover .brand-logo-img {
    filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.7));
    transform: scale(1.04);
}

.brand-logo-container {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.brand-logo-img-large {
    height: 130px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.4));
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary) !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    overflow: hidden;
    z-index: 1;
}

/* Background hover effect */
.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-sm);
    z-index: -1;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active bottom glow line */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-purple);
    box-shadow: 0 0 8px var(--accent-purple);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px 2px 0 0;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
    transform: scale(1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link:hover {
    color: #fff !important;
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--accent-purple) !important;
    background: transparent; /* Relying on pseudoelement */
}

.nav-link .nav-icon-wrapper svg {
    margin-right: 6px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.nav-link:hover .nav-icon-wrapper svg,
.nav-link.active .nav-icon-wrapper svg {
    opacity: 1;
    transform: scale(1.1);
}

/* ── Page Header ───────────────────────────────────────── */
.page-header {
    margin-bottom: 48px;
}

.content-section {
    padding-top: 40px;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 20px;
}

.header-main {
    flex: 1;
}

.header-actions {
    flex-shrink: 0;
    display: flex;
    gap: 12px;
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 400;
}

/* ── Glass Cards ───────────────────────────────────────── */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}
.card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title .card-icon {
    font-size: 1.3rem;
}

/* ── Stat Cards ────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0.08;
    transform: translate(20px, -20px);
}

.stat-card.purple::after  { background: var(--accent-purple); }
.stat-card.blue::after    { background: var(--accent-blue); }
.stat-card.cyan::after    { background: var(--accent-cyan); }
.stat-card.green::after   { background: var(--accent-green); }
.stat-card.amber::after   { background: var(--accent-amber); }
.stat-card.red::after     { background: var(--accent-red); }

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-card.purple .stat-value { color: var(--accent-purple); }
.stat-card.blue   .stat-value { color: var(--accent-blue); }
.stat-card.cyan   .stat-value { color: var(--accent-cyan); }
.stat-card.green  .stat-value { color: var(--accent-green); }
.stat-card.amber  .stat-value { color: var(--accent-amber); }
.stat-card.red    .stat-value { color: var(--accent-red); }

.stat-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ── Forms ─────────────────────────────────────────────── */
.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-control,
.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input) !important; /* Force dark background */
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
    display: block;
}

.form-control:focus,
.form-input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1), inset 0 0 10px rgba(0,0,0,0.5);
    background: #020617 !important; /* Even darker on focus */
}

.form-control:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* ── Premium Neural Select ─────────────────────────────── */
.neural-select {
    appearance: none;
    background: #0b1121 !important; /* Deeper shade for contrast */
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 42px 10px 18px;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%238b5cf6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 13px !important;
    min-width: 190px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    border-color: rgba(139, 92, 246, 0.2);
}

.neural-select:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
    background: #111827 !important;
    transform: translateY(-1px);
}

.neural-select:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

.neural-select option {
    background-color: #0f172a;
    color: #fff;
    padding: 16px;
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: normal;
}

.form-help {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.scraper-form {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.form-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-purple);
    cursor: pointer;
    border-radius: 4px;
}

.form-check-label {
    font-size: 0.92rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-help {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
}

.btn-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.btn-warning:hover {
    background: rgba(245, 158, 11, 0.25);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-flex {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* ── Growth Dashboard Components ───────────────────────── */
.header-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.pagination-flex {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.pagination-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ── Campaign Creation UI ─────────────────────────────── */
.campaign-creation-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0 60px;
}

.campaign-card {
    padding: 40px !important;
}

.form-section {
    margin-bottom: 40px;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-section-title i {
    color: var(--accent-purple);
}

.payload-area {
    min-height: 280px;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.lead-input-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
}

.separator-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    height: 100%;
    justify-content: center;
}

.separator-text::before {
    content: '';
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

.separator-text span {
    background: var(--bg-card);
    padding: 10px;
    z-index: 1;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
}

.manual-leads-area {
    min-height: 160px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.file-drop-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 160px;
    padding: 25px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
}

.file-drop-area:hover {
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.05);
}

.file-input {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
}

.file-dummy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    text-align: center;
}

.file-dummy i {
    width: 40px;
    height: 40px;
    color: var(--accent-purple);
}

.file-dummy span {
    font-size: 0.9rem;
    font-weight: 500;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-pending    { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.badge-running    { background: rgba(59, 130, 246, 0.15);  color: var(--accent-blue);  animation: pulse-badge 2s infinite; }
.badge-completed  { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.badge-failed     { background: rgba(239, 68, 68, 0.15);  color: var(--accent-red);   }
.badge-paused     { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); border: 1px dashed var(--accent-amber); }
.badge-cancelled  { background: rgba(100, 116, 139, 0.15); color: var(--text-muted);  }

/* Membership Badges */
.badge-free       { background: rgba(100, 116, 139, 0.15); color: var(--text-muted); border: 1px solid rgba(100, 116, 139, 0.2); }
.badge-pro        { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); border: 1px solid rgba(139, 92, 246, 0.3); box-shadow: 0 0 10px rgba(139, 92, 246, 0.1); }
.badge-enterprise { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); border: 1px solid rgba(245, 158, 11, 0.3); box-shadow: 0 0 10px rgba(245, 158, 11, 0.1); }

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.6; }
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

/* ── Data Tables ───────────────────────────────────────── */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.data-table thead {
    background: rgba(139, 92, 246, 0.06);
}

.data-table th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: rgba(139, 92, 246, 0.03);
    color: var(--text-primary);
}

.data-table .cell-name {
    font-weight: 600;
    color: var(--text-primary);
}

.data-table .cell-url {
    color: var(--accent-blue);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
}

.data-table .cell-url:hover {
    color: var(--accent-cyan);
}

/* ── Result / Detail Cards ─────────────────────────────── */
.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.result-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    word-break: break-all;
    font-family: 'JetBrains Mono', monospace;
}

.result-value.na {
    color: var(--text-muted);
    font-style: italic;
}

.result-value a {
    color: var(--accent-blue);
}
.result-value a:hover {
    color: var(--accent-cyan);
    text-decoration: underline;
}

/* ── Example Searches Grid ─────────────────────────────── */
.example-searches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.example-search-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.example-search-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139,92,246,0.04), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.example-search-card:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.12);
}

.example-search-card:hover::before {
    opacity: 1;
}

.example-search-card:active {
    transform: translateY(-1px) scale(0.99);
}

.example-search-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid;
    width: fit-content;
}

.example-search-query {
    font-size: 0.88rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 992px) {
    .example-searches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .example-searches-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Progress Bar ──────────────────────────────────────── */
.progress-bar-wrapper {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin: 12px 0;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ── Alerts / Messages ─────────────────────────────────── */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--accent-red);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--accent-amber);
}

/* ── Empty State ───────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state .empty-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state h3 {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ── Tabs ──────────────────────────────────────────────── */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--text-secondary);
}

.tab-btn.active {
    color: var(--accent-purple);
    border-bottom-color: var(--accent-purple);
}

.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Spinner / Loading ─────────────────────────────────── */
.spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255,255,255,0.15);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
    gap: 16px;
}

.loading-overlay.show {
    display: flex;
}

.loading-overlay .spinner {
    width: 40px;
    height: 40px;
}

.loading-overlay p {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
    margin-top: auto;
    padding: 28px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.82rem;
}

.footer .powered-by {
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Sections ──────────────────────────────────────────── */
.content-section {
    padding-bottom: 48px;
}

.section-divider {
    height: 1px;
    background: var(--border);
    margin: 36px 0;
}

/* ── Two-Column Layout ─────────────────────────────────── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

/* ── Hero Banner (for forms) ───────────────────────────── */
.hero-banner {
    padding: 40px;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.hero-banner h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.hero-banner p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 600px;
}

/* ── CSV Upload Zone ───────────────────────────────────── */
.csv-upload-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 48px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 200px;
    margin-top: 8px;
}

.csv-upload-zone:hover {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.04);
}

.csv-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.csv-upload-icon-wrapper {
    transition: transform 0.25s ease;
}

.csv-upload-zone:hover .csv-upload-icon-wrapper {
    transform: translateY(-4px);
}

.csv-upload-main {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.csv-upload-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ── Quick Action Cards ────────────────────────────────── */
.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

.action-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.action-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
    color: inherit;
}

.action-card .action-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.action-card .action-icon.purple {
    background: rgba(139, 92, 246, 0.15);
}
.action-card .action-icon.blue {
    background: rgba(59, 130, 246, 0.15);
}
.action-card .action-icon.cyan {
    background: rgba(6, 182, 212, 0.15);
}

.action-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.action-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
    /* Navbar reset for mobile wrapper */
    .navbar {
        border-bottom: 1px solid rgba(255,255,255,0.05);
        background: rgba(10, 14, 26, 0.95);
    }
    .navbar-inner {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding: 0;
    }

    .navbar-header {
        height: 72px;
        width: 100%;
        padding: 0 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 101;
        position: relative;
    }

    .mobile-menu-toggle {
        display: block;
        padding: 8px;
        z-index: 102;
    }
    
    .mobile-menu-toggle .close-icon {
        display: none;
    }

    /* Menu Open State icon toggle */
    body.menu-open .mobile-menu-toggle .menu-icon { display: none; }
    body.menu-open .mobile-menu-toggle .close-icon { display: block; color: var(--accent-red) !important; }

    /* The new Off-Canvas Mobile Menu */
    .navbar-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100vh - 72px);
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        padding: 40px 24px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 32px;
        
        /* Off-canvas behavior */
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
        z-index: 99;
        overflow-y: auto;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open .navbar-menu {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        align-items: stretch;
    }

    .nav-link {
        width: 100%;
        font-size: 1.15rem;
        font-weight: 600;
        padding: 16px 20px;
        border-radius: var(--radius-md);
        background: rgba(255,255,255,0.02);
        border: 1px solid rgba(255,255,255,0.03);
    }
    
    .nav-link.active {
        background: linear-gradient(90deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
        border-color: rgba(139, 92, 246, 0.2);
    }

    .nav-link .nav-icon-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: rgba(255,255,255,0.05);
        border-radius: 8px;
        margin-right: 12px;
    }

    .nav-link .nav-icon-wrapper svg {
        width: 18px;
        height: 18px;
    }

    .nav-link.active .nav-icon-wrapper {
        background: var(--gradient-primary);
        color: #fff;
    }

    .navbar-bottom-actions {
        width: 100%;
        padding-top: 24px;
        margin-top: auto;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .btn-login {
        width: 100%;
        padding: 16px;
        font-size: 1rem;
    }

    .user-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }
    
    .user-menu .dropdown-menu {
        display: flex !important;
        flex-direction: column;
        position: static;
        width: 100%;
        background: rgba(15, 23, 42, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--radius-lg);
        padding: 24px;
        opacity: 1;
        visibility: visible;
        transform: none;
        gap: 12px;
    }

    .user-menu .dropdown-header {
        margin-bottom: 8px;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .user-header-banner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 4px;
    }

    .user-menu .dropdown-item {
        display: flex;
        align-items: center;
        padding: 12px 14px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-sm);
        font-size: 0.9rem;
        color: var(--text-secondary);
        transition: all 0.2s ease;
    }

    .user-menu .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.05);
        color: #fff;
    }

    .user-menu .dropdown-item.logout {
        margin-top: 4px;
        background: rgba(239, 68, 68, 0.05);
        border-color: rgba(239, 68, 68, 0.1);
        color: var(--accent-red) !important;
    }

    .user-menu > span, .user-menu > .profile-circle {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-banner {
        padding: 24px;
    }

    .action-cards {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-bottom: 20px;
    }

    .tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        flex: 0 0 auto;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* ── Tooltip ───────────────────────────────────────────── */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.tooltip:hover::after {
    opacity: 1;
}

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

/* ── Animate on scroll ─────────────────────────────────── */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.slide-up {
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Profile Cards (LinkedIn results) ──────────────────── */
.profile-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.profile-card:hover {
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: var(--shadow-md);
}

.profile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.profile-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-headline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.profile-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.profile-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-detail-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
}

.profile-detail-value {
    font-size: 0.85rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Copy Button ───────────────────────────────────────── */
.copy-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transition);
}
.copy-btn:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

/* ── How it Works Steps ────────────────────────────────── */
.steps {
    display: flex;
    gap: 20px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.step-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.step-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

@keyframes bgPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

body::before {
    animation: bgPulse 10s ease-in-out infinite;
}

/* ── User Profile & Dropdown ────────────────────────────── */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
}

.profile-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 1.1rem;
}

.profile-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: #0d1117;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    min-width: 220px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Navbar Login Button Global */
.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 50px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-login i {
    width: 16px;
    height: 16px;
}


.user-menu:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.dropdown-user-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 2px;
}

.dropdown-user-email {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
}

.dropdown-item .item-icon {
    width: 24px;
    display: flex;
    justify-content: center;
    font-size: 1.1rem;
}

.dropdown-item.logout {
    color: var(--accent-red);
    margin-top: 4px;
    border-top: 1px solid var(--border);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

/* Fix for form button styling in dropdown */
form.logout-form {
    margin: 0;
    padding: 0;
    width: 100%;
}

form.logout-form button {
    font-family: inherit;
    width: 100%;
    display: flex;
    align-items: center;
}

/* ── Toast Notifications (Popups) ────────────────────────── */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    position: relative;
    padding: 16px 20px;
    background: #0d1117;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: #fff;
    min-width: 320px;
    max-width: 420px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: toastIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: auto;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(50px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

.toast-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-content {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #fff;
}

.toast-success {
    border-left: 4px solid var(--accent-purple);
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-info {
    border-left: 4px solid var(--accent-blue);
}

/* ── Premium Neural Modal System ────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    display: flex !important;
    opacity: 1 !important;
}

.modal-card {
    background: #0f172a; /* Solid deep shade */
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 95%;
    max-width: 480px;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 60px rgba(139, 92, 246, 0.15);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue), var(--accent-cyan));
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 8px auto 24px auto;
    color: var(--accent-purple);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
    position: relative;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    color: #fff;
    letter-spacing: -0.03em;
}

.modal-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-actions .btn {
    min-width: 140px;
    padding: 14px 24px;
}

.modal-close-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
    z-index: 10;
}

.modal-close-icon:hover {
    color: #fff;
    transform: rotate(90deg);
}

/* ── Status Indicators ─────────────────────────────────── */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background-color: var(--accent-green);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.status-dot.offline {
    background-color: var(--accent-red);
}

.status-label {
    font-size: 0.8rem;
    font-weight: 500;
}

/* ── Toggle Switch ─────────────────────────────────────── */
.switch-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(30, 41, 59, 0.3);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin: 20px 0;
}

.switch-label-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.switch-title {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.switch-subtitle {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #334155;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: var(--accent-green);
}

.switch input:checked + .slider:before {
    transform: translateX(20px);
}

/* ── Icon Buttons ──────────────────────────────────────── */
.btn-icon-edit,
.btn-icon-delete {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-edit {
    color: var(--text-muted);
}

.btn-icon-edit:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
}

.btn-icon-delete {
    color: var(--accent-red);
}

.btn-icon-delete:hover {
    background: rgba(239, 68, 68, 0.1);
}


.password-toggle-group {
    position: relative;
    width: 100%;
}

.password-toggle-group .form-control {
    padding-right: 48px !important;
    width: 100% !important;
}

.toggle-password {
    position: absolute !important;
    right: 2px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 90% !important;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    user-select: none;
    z-index: 20 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
    appearance: none !important;
}

.toggle-password:hover {
    color: var(--accent-purple);
}

/* ── SaaS Form Validation ─────────────────────────────────── */
.form-control.is-invalid {
    border-color: #fca5a5 !important; /* Lighter red for dark theme contrast */
    background: rgba(239, 68, 68, 0.05) !important;
    box-shadow: 0 0 0 1px #ef4444, 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
    animation: shake-input 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

.error-feedback {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #fff;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    animation: slideDownFade 0.3s ease forwards;
}

.error-feedback::before {
    content: "⚠️";
    font-size: 0.9rem;
}

.is-invalid + .error-feedback,
.password-toggle-group.is-invalid + .error-feedback {
    display: flex;
}

@keyframes shake-input {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

@keyframes slideDownFade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Success State */
.form-control.is-valid {
    border-color: var(--accent-green) !important;
    background: rgba(16, 185, 129, 0.05) !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15) !important;
}

.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Custom Neural Cursor ──────────────────────────────── */
@media (pointer: fine) {
    body, a, button, input, select, textarea, .tab-btn, .nav-link {
        cursor: none !important;
    }

    .cursor-dot,
    .cursor-outline {
        pointer-events: none;
        position: fixed;
        top: 0;
        left: 0;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        z-index: 999999;
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    }

    .cursor-dot {
        width: 8px;
        height: 8px;
        background-color: var(--accent-purple);
        box-shadow: 0 0 10px var(--accent-purple);
    }

    .cursor-outline {
        width: 40px;
        height: 40px;
        border: 2px solid rgba(139, 92, 246, 0.5);
        background: rgba(139, 92, 246, 0.05);
        backdrop-filter: blur(2px);
        transition: all 0.15s ease-out;
    }

    /* Hover States */
    body.cursor-hover .cursor-dot {
        transform: translate(-50%, -50%) scale(1.5);
        background-color: var(--accent-blue);
    }

    body.cursor-hover .cursor-outline {
        width: 60px;
        height: 60px;
        border-color: var(--accent-blue);
        background: rgba(59, 130, 246, 0.1);
        border-width: 1px;
    }

    /* Click State */
    body.cursor-click .cursor-outline {
        transform: translate(-50%, -50%) scale(0.8);
        background: var(--accent-purple);
        border-color: #fff;
        opacity: 0.5;
    }
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL RESPONSIVE SYSTEM — Applied to ALL pages
   ═══════════════════════════════════════════════════════════ */

/* ── 1280px ──────────────────────────────────────────────── */
@media (max-width: 1280px) {
    .container { padding: 0 20px; }
}

/* ── 1024px: Tablet Landscape ────────────────────────────── */
@media (max-width: 1024px) {
    .container { padding: 0 20px; }

    /* Navbar goes mobile */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .navbar-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .navbar-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 14px 0;
        position: relative;
    }

    .navbar-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 12px 0 16px;
        border-top: 1px solid rgba(255,255,255,0.06);
        gap: 4px;
    }

    /* When burger is open */
    body.menu-open .navbar-menu { display: flex !important; }

    /* Toggle icon visibility */
    .mobile-menu-toggle .menu-icon  { display: block; }
    .mobile-menu-toggle .close-icon { display: none; }
    body.menu-open .mobile-menu-toggle .menu-icon  { display: none; }
    body.menu-open .mobile-menu-toggle .close-icon { display: block; }

    .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        width: 100%;
    }

    .navbar-nav li { width: 100%; }

    .nav-link {
        width: 100%;
        padding: 12px 16px;
        border-radius: var(--radius-sm);
        font-size: 0.95rem;
    }

    .navbar-bottom-actions {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(255,255,255,0.06);
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    /* Ensure login button shows in menu */
    .navbar-bottom-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Hide desktop-only user-menu on mobile, show login btn */
    .user-menu { width: 100%; }
}

/* ── 768px: Tablet Portrait / Large Mobile ────────────────── */
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    
    /* Global Reset Overrides */
    *, *::before, *::after {
        box-sizing: border-box !important;
    }

    /* Navbar brand fix */
    .navbar-brand {
        font-size: 1.1rem !important;
        gap: 8px !important;
    }
    .brand-logo-img {
        height: 32px !important;
    }

    /* Growth Dashboard Specific Mobile fixes */
    .page-title {
        font-size: clamp(0.95rem, 6vw, 1.3rem) !important;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        word-break: break-word;
        width: 100%;
        margin-bottom: 8px;
        line-height: 1.25;
    }
    .page-title i {
        flex-shrink: 0;
        width: 18px !important;
        height: 18px !important;
    }
    .page-subtitle {
        font-size: 0.8rem !important;
        line-height: 1.4;
        margin-top: 4px;
        color: var(--text-secondary);
        overflow-wrap: break-word;
        max-width: 100%;
    }
    .header-flex {
        flex-direction: column;
        gap: 12px;
    }
    .header-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        margin-top: 16px;
    }
    .header-actions .btn {
        width: 100%;
        justify-content: flex-start;
        padding: 10px 14px;
        font-size: 0.78rem;
        min-height: 42px;
        white-space: normal;
        border-radius: 8px;
    }

    .btn-flex {
        flex-direction: column;
        width: 100%;
    }
    .btn-flex .btn {
        width: 100%;
    }

    .card {
        padding: 20px 16px !important;
    }

    /* SMTP & Infrastructure Specific */
    .page-header > div {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px;
    }
    .page-header .btn-sm {
        width: 100%;
        justify-content: center;
    }
    
    .tabs {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 4px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border);
        -webkit-overflow-scrolling: touch;
    }
    .tab-btn {
        flex: 0 0 auto;
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
    }

    .table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 15px -16px; /* Bleed out slightly or just fit */
        width: calc(100% + 32px);
        padding: 0 16px;
    }
    .data-table {
        min-width: 800px; /* Force internal scrolling */
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .card[style*="max-width: 600px"] {
        max-width: 100% !important;
    }

    .pagination-flex {
        flex-direction: column !important;
        gap: 12px;
        align-items: flex-start !important;
        padding: 14px 10px !important;
        width: 100%;
    }
    .pagination-actions {
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 4px;
    }

    /* Buttons */
    .btn-group { flex-direction: column; width: 100%; }

    /* Campaign Creation Responsive */
    .campaign-creation-container { padding: 10px 0 40px; }
    .campaign-card { padding: 24px 16px !important; }
    .lead-input-grid { 
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
    .separator-text { height: 40px; }
    .separator-text::before {
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, transparent, var(--border), transparent);
    }
    .form-section { margin-bottom: 30px; }
    .payload-area { min-height: 200px; }
    
    /* Delivery Infrastructure (SMTP) */
    .usage-progress-container {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 140px;
    }
    .usage-progress-bg {
        flex-grow: 1;
        background: rgba(255,255,255,0.05);
        height: 6px;
        border-radius: 3px;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,0.05);
    }
    .usage-progress-fill {
        height: 100%;
        transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        background: var(--gradient-primary);
    }
    .usage-text {
        font-size: 0.75rem;
        color: var(--text-muted);
        font-weight: 600;
        min-width: 60px;
        text-align: right;
    }
    .status-indicator {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .status-label {
        font-size: 0.8rem;
        font-weight: 500;
    }
    .row-actions {
        display: flex;
        justify-content: flex-end;
    }

    .danger-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px;
    }
    .danger-row .btn {
        width: 100%;
        justify-content: center;
    }
    
}

/* Profile Specific */
.profile-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    align-items: start;
}

.lifetime-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.lifetime-stat-item {
    text-align: center;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.lifetime-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .lifetime-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .lifetime-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .lifetime-stat-item {
        padding: 20px 12px;
    }
    .lifetime-stat-value {
        font-size: 1.5rem;
    }
}

/* Subscription Specific */
.subscription-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.protocol-allocation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.lifetime-intelligence-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.protocol-features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.plan-header h2 {
    margin: 0;
    font-size: 1.5rem;
    word-break: break-word;
}

.plan-header .badge {
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 1200px) {
    .subscription-grid {
        grid-template-columns: 1.5fr 1fr !important;
        gap: 24px !important;
    }
}

@media (max-width: 992px) {
    .subscription-grid {
        grid-template-columns: 1fr !important;
    }
    .protocol-allocation-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .protocol-allocation-grid {
        grid-template-columns: 1fr !important;
    }
    .lifetime-intelligence-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .protocol-features-list {
        grid-template-columns: 1fr !important;
    }
    .plan-comparison-wrapper table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    .plan-details-card {
        padding: 24px 16px !important;
    }
    .lifetime-intelligence-grid {
        grid-template-columns: 1fr !important;
    }
    .plan-header h2 {
        font-size: 1.15rem !important;
    }
    .plan-header .badge {
        font-size: 0.8rem !important;
        padding: 7px 14px !important;
    }
}

/* Global scrollbar fix */
html, body { 
    max-width: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
}
.app-wrapper { 
    width: 100%;
    position: relative;
}

/* ── 480px: Small Mobile ─────────────────────────────────── */
@media (max-width: 480px) {
    .container { padding: 0 12px; }

    .nav-link { padding: 8px 10px; font-size: 0.85rem; }

    .stats-grid { grid-template-columns: 1fr; gap: 10px; }

    .page-title { font-size: 1.25rem !important; }

    .btn-lg { padding: 12px 20px; font-size: 0.9rem; }
}

/* ── Intelligence Extraction Grid ──────────────────────── */
.intelligence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.intelligence-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.intelligence-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: var(--transition);
}

.intelligence-card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.intelligence-card.purple { background: rgba(139, 92, 246, 0.04); }
.intelligence-card.blue   { background: rgba(59, 130, 246, 0.04); }
.intelligence-card.cyan   { background: rgba(6, 182, 212, 0.04); }
.intelligence-card.pink   { background: rgba(236, 72, 153, 0.04); }
.intelligence-card.amber  { background: rgba(245, 158, 11, 0.04); }

.intelligence-card.purple::before { background: var(--accent-purple); }
.intelligence-card.blue::before   { background: var(--accent-blue); }
.intelligence-card.cyan::before   { background: var(--accent-cyan); }
.intelligence-card.pink::before   { background: var(--accent-pink); }
.intelligence-card.amber::before  { background: var(--accent-amber); }

.intelligence-card.purple::after { background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), transparent); }
.intelligence-card.blue::after   { background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), transparent); }
.intelligence-card.cyan::after   { background: linear-gradient(135deg, rgba(6, 182, 212, 0.06), transparent); }
.intelligence-card.pink::after   { background: linear-gradient(135deg, rgba(236, 72, 153, 0.06), transparent); }
.intelligence-card.amber::after  { background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), transparent); }

.intelligence-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.intelligence-card:hover::after { opacity: 1; }

.intelligence-card:hover.purple { border-color: rgba(139, 92, 246, 0.35); box-shadow: 0 12px 32px rgba(139, 92, 246, 0.15); }
.intelligence-card:hover.blue   { border-color: rgba(59, 130, 246, 0.35);  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15); }
.intelligence-card:hover.cyan   { border-color: rgba(6, 182, 212, 0.35);   box-shadow: 0 12px 32px rgba(6, 182, 212, 0.15); }
.intelligence-card:hover.pink   { border-color: rgba(236, 72, 153, 0.35);  box-shadow: 0 12px 32px rgba(236, 72, 153, 0.15); }
.intelligence-card:hover.amber  { border-color: rgba(245, 158, 11, 0.35);  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.15); }

.intelligence-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.intelligence-card.purple .intelligence-icon {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
}

.intelligence-card.blue .intelligence-icon {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}

.intelligence-card.cyan .intelligence-icon {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
}

.intelligence-card.pink .intelligence-icon {
    background: rgba(236, 72, 153, 0.15);
    color: var(--accent-pink);
}

.intelligence-card.amber .intelligence-icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
}

.intelligence-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.intelligence-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Custom Neural Cursor ───────────────────────────────── */
@media (pointer: fine) {
    body.custom-cursor-active *:not(.cursor-dot):not(.cursor-outline) {
        cursor: none !important;
    }

    .cursor-dot,
    .cursor-outline {
        pointer-events: none;
        position: fixed;
        top: 0;
        left: 0;
        border-radius: 50%;
        opacity: 0;
        transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), background 0.3s ease;
        z-index: 999999;
    }

    .cursor-dot {
        width: 8px;
        height: 8px;
        background: var(--accent-purple);
        box-shadow: 0 0 10px var(--accent-purple);
        transform: translate(-50%, -50%);
    }

    .cursor-outline {
        width: 34px;
        height: 34px;
        border: 2px solid rgba(139, 92, 246, 0.4);
        transform: translate(-50%, -50%);
    }

    /* Hover State */
    body.cursor-hover .cursor-dot {
        transform: translate(-50%, -50%) scale(0.5);
    }

    body.cursor-hover .cursor-outline {
        width: 50px;
        height: 50px;
        background: rgba(139, 92, 246, 0.1);
        border-color: var(--accent-purple);
    }

    /* Click State */
    body.cursor-click .cursor-dot {
        transform: translate(-50%, -50%) scale(1.5);
        background: var(--accent-blue);
    }

    body.cursor-click .cursor-outline {
        transform: translate(-50%, -50%) scale(0.9);
        border-color: var(--accent-blue);
    }
}

/* ── Footer Architecture ─────────────────────────────── */
.footer {
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 300px;
}

.footer-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
    object-position: left center;
    margin-left: -15px; /* Offset underlying image padding to align perfectly with text */
    margin-bottom: 0px;
    filter: brightness(1.2);
    display: block;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
    .footer-logo {
        height: 60px !important;
        margin-left: -10px;
    }
}

.footer-heading {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition);
    display: block;
}

.footer-links a:hover {
    color: var(--accent-purple);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gradient-primary);
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px 40px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 0 30px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 48px 20px;
        text-align: left;
    }
    .footer-brand {
        grid-column: span 2;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-grid > div:nth-child(2) {
        grid-column: span 2;
    }
    .footer-social {
        justify-content: flex-start;
        margin-top: 16px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        gap: 40px 16px;
    }
    .footer-brand p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    .footer-links a {
        font-size: 0.85rem;
    }
}
