:root {
    --bg-base: #030712;
    --bg-surface: rgba(17, 24, 39, 0.45);
    --bg-surface-hover: rgba(31, 41, 55, 0.65);
    --bg-terminal: #090d16;
    
    --border-dim: rgba(255, 255, 255, 0.04);
    --border-normal: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(99, 102, 241, 0.25);
    --border-accent-focus: rgba(6, 182, 212, 0.6);
    
    --accent-indigo: #6366f1;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;
    --accent-amber: #f59e0b;
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'Fira Code', 'Courier New', Courier, monospace;

    --transition-fast: 0.15s ease;
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    --glow-indigo: 0 0 25px rgba(99, 102, 241, 0.15);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    pointer-events: none;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--border-normal);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-indigo);
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-normal);
    border-radius: 16px;
    transition: border-color var(--transition-smooth), background var(--transition-smooth), box-shadow var(--transition-smooth);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(3, 7, 18, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-dim);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.7px;
    color: var(--text-primary);
    text-decoration: none;
    cursor: default;
}

.logo span {
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.primary-btn, .secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    border: 1px solid transparent;
    outline: none;
    position: relative;
    overflow: hidden;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-indigo), #4f46e5);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}

.primary-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: 0.5s;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4), var(--glow-indigo);
    border-color: rgba(255,255,255,0.1);
}

.primary-btn:hover::after {
    left: 100%;
}

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

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

.header-btn {
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-icon {
    width: 16px;
    height: 16px;
}

/* Hero Section */
.hero {
    min-height: 92vh;
    max-width: 1300px;
    margin: 0 auto;
    padding: 8.5rem 2rem 4rem;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent-indigo);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.8rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.05);
}

.badge-icon {
    width: 14px;
    height: 14px;
    animation: rotate-pulse 4s linear infinite;
}

@keyframes rotate-pulse {
    0% { transform: rotate(0deg); opacity: 0.8; }
    50% { opacity: 1; }
    100% { transform: rotate(360deg); opacity: 0.8; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    color: var(--text-primary);
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent-indigo) 10%, var(--accent-cyan) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.1);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Live Terminal Widget (illustrative demo visual, not a live feed) */
.terminal-widget {
    background: var(--bg-terminal);
    border: 1px solid var(--border-normal);
    box-shadow: var(--shadow-premium), 0 0 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 400px;
    border-radius: 12px;
}

.terminal-header {
    background: rgba(3, 7, 18, 0.8);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-dim);
}

.terminal-dots {
    display: flex;
    gap: 0.4rem;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
.dot.red { background-color: var(--accent-rose); }
.dot.yellow { background-color: var(--accent-amber); }
.dot.green { background-color: var(--accent-emerald); }

.terminal-title {
    margin-left: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.terminal-badge {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
    font-weight: bold;
}

.terminal-chart-container {
    height: 160px;
    position: relative;
    border-bottom: 1px solid var(--border-dim);
    padding: 0.5rem;
}

#terminal-chart {
    width: 100%;
    height: 100%;
    display: block;
}

.terminal-log-output {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #a7f3d0;
    line-height: 1.5;
    background: #040810;
    text-align: left;
}

.log-entry {
    margin-bottom: 0.35rem;
    opacity: 0.9;
    animation: log-fade 0.2s ease-out;
}

@keyframes log-fade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 0.9; transform: translateY(0); }
}

.log-info { color: var(--text-secondary); }
.log-buy { color: var(--accent-emerald); font-weight: 600; }
.log-sell { color: var(--accent-rose); font-weight: 600; }
.log-perf { color: var(--accent-cyan); }

/* Metrics Banner Section */
.metrics-section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.metric-card {
    padding: 1.6rem;
    text-align: center;
    border-color: rgba(255, 255, 255, 0.05);
}

.metric-card:hover {
    border-color: var(--border-accent);
    background: rgba(255, 255, 255, 0.02);
}

.metric-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 40%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-sublabel {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.75;
    margin-top: 0.3rem;
    font-family: var(--font-mono);
    letter-spacing: 0;
    text-transform: none;
}

/* Catalog / Marketplace Section */
.catalog-section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 4rem 2rem 8rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    letter-spacing: -1px;
}

.section-header h2 span {
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-answer {
    max-width: 760px !important;
    font-size: 0.9rem !important;
    color: var(--text-muted) !important;
    margin-top: 1rem !important;
    line-height: 1.6;
}

/* Skip link (accessibility + agent navigation aid) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 1000;
    background: var(--accent-indigo);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

/* FAQ Section */
.faq-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2rem 6rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    padding: 1.5rem 1.75rem;
}

.faq-item h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Dashboard controls toolbar */
.dashboard-controls {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    padding: 1.1rem;
    margin-bottom: 2.5rem;
    align-items: center;
    border-radius: 14px;
}

.controls-left {
    display: flex;
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

#bot-search {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.6rem;
    background: rgba(3, 7, 18, 0.4);
    border: 1px solid var(--border-normal);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-fast);
}

#bot-search:focus {
    border-color: var(--border-accent-focus);
    background: rgba(3, 7, 18, 0.6);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}

.controls-center {
    display: flex;
    justify-content: center;
}

.category-tabs {
    display: flex;
    gap: 0.4rem;
    background: rgba(3, 7, 18, 0.5);
    padding: 0.3rem;
    border-radius: 9px;
    border: 1px solid var(--border-dim);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

.tab-btn.active {
    background: var(--accent-indigo);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.controls-right {
    display: flex;
    justify-content: flex-end;
}

.view-toggles {
    display: flex;
    gap: 0.3rem;
    background: rgba(3, 7, 18, 0.5);
    padding: 0.3rem;
    border-radius: 8px;
    border: 1px solid var(--border-dim);
}

.view-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.view-btn svg {
    width: 16px;
    height: 16px;
}

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

.view-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-cyan);
}

/* Grid & Card layout styles */
.grid-container {
    transition: opacity 0.2s ease;
}

.grid-container.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Dynamic grid container fadeUp anim helper */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Premium Bot Cards */
.bot-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-normal);
    border-radius: 16px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color var(--transition-smooth), background var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

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

.bot-card:hover {
    transform: translateY(-4px);
    background: var(--bg-surface-hover);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 25px 45px -10px rgba(0, 0, 0, 0.8), 0 0 35px rgba(99, 102, 241, 0.05);
}

.bot-card:hover::before {
    opacity: 1;
}

.bot-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.bot-tag-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(3, 7, 18, 0.7);
    color: var(--text-secondary);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    border: 1px solid var(--border-normal);
}

.bot-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.bot-status-dot {
    width: 5px;
    height: 5px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    animation: blink 2.5s infinite;
}

.bot-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bot-card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.bot-card-tagline {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-bottom: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* Sparkline Performance Chart */
.bot-sparkline-container {
    height: 60px;
    margin: 0.4rem 0 1.2rem;
    position: relative;
}

.bot-sparkline {
    width: 100%;
    height: 100%;
}

.sparkline-line {
    fill: none;
    stroke: var(--accent-emerald);
    stroke-width: 2;
    stroke-linecap: round;
}

.sparkline-grad {
    fill: url(#sparkline-gradient);
    opacity: 0.08;
}

/* Card metrics dashboard stats */
.bot-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(3, 7, 18, 0.4);
    border: 1px solid var(--border-normal);
    border-radius: 8px;
    margin-bottom: 1.2rem;
}

.kpi-item {
    text-align: center;
}

.kpi-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.15rem;
}

.kpi-value {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-primary);
}

.kpi-value.yield { color: var(--accent-emerald); }
.kpi-value.risk-low { color: var(--accent-emerald); }
.kpi-value.risk-med { color: var(--accent-amber); }
.kpi-value.risk-high { color: var(--accent-rose); }

.bot-card-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.bot-card-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.bot-card-features li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.bot-card-features li::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
}

.bot-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-dim);
    padding-top: 1.2rem;
    margin-top: auto;
}

.bot-card-price-container {
    display: flex;
    flex-direction: column;
}

.price-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.price-val {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.request-btn {
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
    border-radius: 8px;
    border-color: rgba(99, 102, 241, 0.4);
}

.request-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent-indigo);
}

/* TABLE VIEW STYLE (List layout) */
.table-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-normal);
    border-radius: 12px;
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-premium);
}

.bot-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

.bot-table th {
    padding: 1.1rem 1.3rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--border-normal);
    background: rgba(3, 7, 18, 0.45);
}

.bot-table td {
    padding: 1.1rem 1.3rem;
    border-bottom: 1px solid var(--border-dim);
    vertical-align: middle;
    color: var(--text-secondary);
}

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

.bot-table tr {
    transition: background var(--transition-fast);
}

.bot-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.table-bot-info {
    display: flex;
    flex-direction: column;
}

.table-bot-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.table-bot-tagline {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    font-weight: 500;
}

/* Modal Overlay & Dialog */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: rgba(10, 15, 30, 0.9);
    border: 1px solid var(--border-accent);
    padding: 2.5rem;
    border-radius: 20px;
    width: 95%;
    max-width: 480px;
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 50px rgba(99, 102, 241, 0.1);
}

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

.close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-primary);
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Honeypot Security Field */
.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Form Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(3, 7, 18, 0.6);
    border: 1px solid var(--border-normal);
    border-radius: 8px;
    color: white;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--border-accent-focus);
    background: rgba(3, 7, 18, 0.8);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.error-message {
    display: none;
    color: var(--accent-rose);
    font-size: 0.75rem;
    margin-top: 0.4rem;
    font-weight: 500;
}

.form-group.invalid input, .form-group.invalid textarea {
    border-color: rgba(244, 63, 94, 0.6);
}

.form-group.invalid .error-message {
    display: block;
}

.submit-btn {
    width: 100%;
    margin-top: 0.8rem;
    padding: 0.9rem 1.6rem;
}

/* Loader spinner */
.loader {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.7s linear infinite;
    display: none;
}

.loader.active {
    display: inline-block;
}

.btn-text.hidden {
    display: none;
}

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

/* Form Success State styling */
.success-state {
    text-align: center;
    padding: 1.5rem 0;
}

.success-state.hidden {
    display: none;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: rgba(16, 185, 129, 0.08);
    color: var(--accent-emerald);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.success-state h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.success-state p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2.2rem;
    line-height: 1.5;
}

/* Footer Section */
.footer {
    text-align: center;
    padding: 4rem 2rem;
    border-top: 1px solid var(--border-dim);
    background: rgba(3, 7, 18, 0.5);
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-about {
    max-width: 480px;
    margin: 0 auto 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-dim);
}

.footer-about h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.footer-about p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.disclaimer {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    max-width: 700px;
    margin: 0.6rem auto 0;
    line-height: 1.5;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }

    .hero-left {
        align-items: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .dashboard-controls {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }
    
    .search-wrapper {
        max-width: 100%;
    }
    
    .controls-center {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.2rem;
    }
    
    .category-tabs {
        width: max-content;
    }
    
    .controls-right {
        display: none; /* Hide view toggles on mobile - fallback to Grid always */
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 7rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        padding: 1rem 1.25rem;
    }
    
    .modal-content {
        padding: 2rem 1.25rem;
    }
}
