/* Custom CSS for TradeFlow Pro */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

/* Body and general styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    padding-top: 76px; /* Account for fixed navbar */
}

/* Hero section gradient */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

.hero-section {
    min-height: 80vh;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Feature icons */
.feature-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

/* Avatar styles */
.avatar {
    width: 48px;
    height: 48px;
    font-size: 18px;
    font-weight: bold;
}

/* Card enhancements */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border-radius: 12px;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Table improvements */
.table th {
    border-top: none;
    font-weight: 600;
    color: var(--dark-color);
}

.table-responsive {
    border-radius: 0 0 12px 12px;
}

/* Progress bar customization */
.progress {
    height: 8px;
    border-radius: 4px;
}

/* Badge improvements */
.badge {
    font-size: 0.75em;
    padding: 0.375em 0.75em;
}

/* Button enhancements */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

/* Navbar customization */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem !important;
}

/* Form improvements */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Alert customizations */
.alert {
    border-radius: 8px;
    border: none;
}

/* Testimonials section */
.testimonials .card {
    border-left: 4px solid var(--warning-color);
}

/* Hero chart animation */
.hero-chart i {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Footer */
footer {
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .hero-section {
        min-height: 60vh;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Loading animations */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility classes */
.text-primary { color: var(--primary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-info { color: var(--info-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }
.bg-info { background-color: var(--info-color) !important; }

/* Print styles */
@media print {
    .navbar, .btn, .alert, footer {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

/* Commercio Enterprise Design System */
:root {
    color-scheme: light;
    --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --brand-950: #07111f;
    --brand-900: #0b1627;
    --brand-800: #111f35;
    --brand-700: #162f56;
    --brand-600: #1f4f8f;
    --brand-500: #2563eb;
    --brand-400: #3b82f6;
    --brand-100: #dbeafe;
    --brand-50: #eff6ff;
    --accent: #0ea5e9;
    --success: #12a06b;
    --warning: #d88a05;
    --danger: #dc3545;
    --bg: #f6f8fb;
    --surface: #ffffff;
    --surface-soft: #f9fafb;
    --surface-raised: rgba(255, 255, 255, 0.94);
    --text: #111827;
    --text-muted: #667085;
    --text-soft: #98a2b3;
    --border: #e4e7ec;
    --border-strong: #d0d5dd;
    --ring: rgba(37, 99, 235, 0.18);
    --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
    --shadow-sm: 0 8px 18px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 18px 42px rgba(16, 24, 40, 0.10);
    --radius-md: 12px;
    --radius-lg: 16px;
    --nav-height: 72px;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --bg: #080c13;
        --surface: #0f1624;
        --surface-soft: #111827;
        --surface-raised: rgba(15, 22, 36, 0.92);
        --text: #f4f7fb;
        --text-muted: #aab4c3;
        --text-soft: #768195;
        --border: #202b3d;
        --border-strong: #344054;
        --ring: rgba(59, 130, 246, 0.28);
        --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.24);
        --shadow-sm: 0 12px 28px rgba(0, 0, 0, 0.28);
        --shadow-md: 0 24px 52px rgba(0, 0, 0, 0.34);
    }
}

* {
    letter-spacing: 0;
}

html {
    background: var(--bg);
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 0%, rgba(37, 99, 235, 0.08), transparent 28rem),
        linear-gradient(180deg, #fbfcfe 0%, var(--bg) 24rem);
    color: var(--text);
    font-family: var(--font-sans);
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    line-height: 1.55;
    padding-top: var(--nav-height);
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
}

@media (prefers-color-scheme: dark) {
    body {
        background:
            radial-gradient(circle at 18% 0%, rgba(37, 99, 235, 0.15), transparent 28rem),
            linear-gradient(180deg, #0b111d 0%, var(--bg) 24rem);
    }
}

.container {
    max-width: 1180px;
}

.app-shell {
    flex: 1 0 auto;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.app-shell-flush {
    padding-top: 0;
    padding-bottom: 0;
}

.app-shell-admin {
    max-width: 1520px;
    margin-right: auto;
    margin-left: auto;
    padding-right: clamp(1rem, 3vw, 2rem);
    padding-left: clamp(1rem, 3vw, 2rem);
}

a {
    color: var(--brand-600);
}

a:hover {
    color: var(--brand-500);
}

/* Navigation */
.app-navbar {
    min-height: var(--nav-height);
    background: rgba(7, 17, 31, 0.88) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 10px 30px rgba(7, 17, 31, 0.18);
    backdrop-filter: blur(18px);
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: #fff !important;
    font-size: 1.24rem;
    font-weight: 760;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #fff;
    background: linear-gradient(145deg, var(--brand-500), var(--accent));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 18px rgba(37, 99, 235, 0.25);
}

.navbar-nav {
    align-items: center;
    gap: 0.25rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.72) !important;
    border-radius: 999px;
    font-size: 0.91rem;
    font-weight: 620;
    padding: 0.62rem 0.9rem !important;
    transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.10);
    transform: translateY(-1px);
}

.navbar .btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.dropdown-menu {
    overflow: hidden;
    padding: 0.45rem;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.dropdown-item {
    color: var(--text);
    border-radius: 9px;
    font-size: 0.91rem;
    font-weight: 560;
    padding: 0.68rem 0.82rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--text);
    background: var(--brand-50);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    font-weight: 740;
    line-height: 1.14;
}

.display-4,
.display-6 {
    font-weight: 780;
}

.lead {
    color: var(--text-muted);
    line-height: 1.7;
}

.text-muted {
    color: var(--text-muted) !important;
}

.fw-medium {
    font-weight: 650 !important;
}

/* Surfaces */
.card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs) !important;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card:hover {
    border-color: var(--border-strong) !important;
    box-shadow: var(--shadow-sm) !important;
    transform: translateY(-1px);
}

.card-header,
.card-footer {
    background: var(--surface-soft) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
    font-weight: 680;
}

.card-header.bg-primary,
.card-header.bg-success,
.card-header.bg-warning,
.card-header.bg-dark {
    background: linear-gradient(180deg, var(--surface-soft), var(--surface)) !important;
    color: var(--text) !important;
}

.shadow,
.shadow-sm {
    box-shadow: var(--shadow-xs) !important;
}

.bg-light {
    background-color: var(--surface-soft) !important;
}

.bg-dark {
    background-color: var(--brand-950) !important;
}

.bg-primary {
    background-color: var(--brand-600) !important;
}

.bg-gradient-primary {
    background:
        linear-gradient(135deg, rgba(7, 17, 31, 0.96), rgba(17, 47, 86, 0.94)),
        linear-gradient(135deg, var(--brand-900), var(--brand-600));
}

/* Landing */
.hero-section {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    isolation: isolate;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

.hero-section .display-4 {
    max-width: 760px;
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.hero-section .lead {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.74);
}

.min-vh-75 {
    min-height: 76vh;
}

.hero-chart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(360px, 70vw);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
        rgba(255, 255, 255, 0.06);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--brand-600);
    font-size: 0.75rem;
    font-weight: 780;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.enterprise-hero .eyebrow {
    color: #bfdbfe;
    padding: 0.42rem 0.7rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.trust-row small {
    color: rgba(255, 255, 255, 0.68) !important;
    font-weight: 560;
}

.hero-metric {
    width: min(290px, 78%);
    padding: 1.4rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.hero-metric .metric-label,
.hero-metric .metric-trend {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
    font-weight: 650;
}

.hero-metric strong {
    display: block;
    margin: 0.45rem 0;
    color: #fff;
    font-size: clamp(3rem, 7vw, 5.4rem);
    line-height: 0.95;
}

.hero-metric .metric-trend {
    color: #bfdbfe;
}

.final-cta {
    background:
        linear-gradient(135deg, var(--brand-900), var(--brand-700)) !important;
}

.final-cta h3,
.final-cta p {
    color: #fff;
}

.hero-chart i {
    color: #93c5fd !important;
    opacity: 0.9 !important;
    animation: float 4s ease-in-out infinite;
}

section.py-5 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.app-page-index section h2 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.feature-icon {
    width: 58px;
    height: 58px;
    font-size: 1.25rem;
    border-radius: 16px !important;
    box-shadow: var(--shadow-xs);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.55rem;
    border-radius: 10px;
    font-weight: 680;
    line-height: 1;
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background 150ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--brand-600);
    border-color: var(--brand-600);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--brand-500);
    border-color: var(--brand-500);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.btn-warning {
    color: #111827;
    background: #f4b63f;
    border-color: #f4b63f;
    box-shadow: 0 8px 18px rgba(216, 138, 5, 0.18);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-light {
    border-color: var(--border-strong);
    color: var(--text);
    background: var(--surface);
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-success:hover {
    color: var(--brand-700);
    border-color: var(--brand-100);
    background: var(--brand-50);
}

.btn-lg {
    min-height: 3.15rem;
    padding: 0.88rem 1.25rem;
    font-size: 0.98rem;
}

.btn-sm {
    min-height: 2.15rem;
    border-radius: 9px;
}

/* Forms */
.form-label {
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 690;
    margin-bottom: 0.45rem;
}

.form-control,
.form-select {
    min-height: 2.75rem;
    color: var(--text);
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-xs);
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.form-control::placeholder {
    color: var(--text-soft);
}

.form-control:focus,
.form-select:focus {
    color: var(--text);
    background-color: var(--surface);
    border-color: var(--brand-400);
    box-shadow: 0 0 0 4px var(--ring);
}

.form-text {
    color: var(--text-soft);
    font-size: 0.78rem;
}

/* Data tables */
.table-responsive {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.table {
    margin-bottom: 0;
    color: var(--text);
    vertical-align: middle;
}

.table th {
    position: sticky;
    top: 0;
    z-index: 2;
    color: var(--text-muted);
    background: var(--surface-soft) !important;
    border-top: none;
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 760;
    text-transform: uppercase;
}

.table td {
    border-color: var(--border);
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
}

.table-hover tbody tr {
    transition: background 120ms ease;
}

.table-hover tbody tr:hover {
    background: rgba(37, 99, 235, 0.045);
}

.table-dark {
    --bs-table-bg: var(--brand-950);
    --bs-table-color: #fff;
}

/* Badges */
.badge {
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 730;
    padding: 0.38rem 0.62rem;
}

.badge.bg-primary {
    background: var(--brand-50) !important;
    border-color: var(--brand-100);
    color: var(--brand-700);
}

.badge.bg-secondary {
    background: #f2f4f7 !important;
    border-color: #e4e7ec;
    color: #475467;
}

.badge.bg-success {
    background: rgba(18, 160, 107, 0.11) !important;
    border-color: rgba(18, 160, 107, 0.20);
    color: #08724d;
}

.badge.bg-info {
    background: rgba(14, 165, 233, 0.12) !important;
    border-color: rgba(14, 165, 233, 0.22);
    color: #075985;
}

.badge.bg-warning {
    background: rgba(244, 182, 63, 0.18) !important;
    border-color: rgba(216, 138, 5, 0.24);
    color: #8a5600 !important;
}

.badge.bg-danger {
    background: rgba(220, 53, 69, 0.11) !important;
    border-color: rgba(220, 53, 69, 0.20);
    color: #b42318;
}

/* Dashboard/admin */
.avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px !important;
    font-size: 1rem;
    font-weight: 760;
}

.progress {
    height: 0.55rem;
    background: var(--surface-soft);
    border-radius: 999px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--brand-600), var(--accent));
    border-radius: 999px;
}

.list-group-item {
    color: var(--text);
    background: transparent;
    border-color: var(--border);
    font-weight: 560;
}

.list-group-item-action {
    border-radius: 10px;
    margin-bottom: 0.25rem;
}

.list-group-item-action:hover {
    background: var(--brand-50);
}

.list-group-item.active {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.alert {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
}

.freemium-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    color: #7a4b00;
    background: rgba(244, 182, 63, 0.16);
    border: 1px solid rgba(216, 138, 5, 0.22);
    border-radius: var(--radius-md);
}

.dashboard-layout,
.admin-workspace {
    row-gap: 1.5rem;
}

.profile-card .card-body,
.usage-card .card-body {
    padding: 1.35rem;
}

.search-card .card-body {
    padding: 1.45rem;
}

.section-heading,
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.data-card .card-header {
    padding: 1rem 1.15rem;
}

.empty-state .card-body {
    padding: 3.25rem 1.5rem !important;
}

.empty-state i {
    opacity: 0.75;
}

.kpi-card .card-body {
    padding: 1.4rem;
}

.kpi-card .display-6 {
    color: var(--brand-700) !important;
    font-size: 2.6rem;
    letter-spacing: -0.03em;
}

.admin-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 1.25rem);
}

.admin-sidebar .card-body {
    padding: 1rem;
}

.admin-sidebar h5 {
    padding: 0.35rem 0.35rem 0.75rem;
}

.autocomplete-suggestions {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-md);
}

/* First-run tour */
.tour-welcome-modal .modal-content,
.tour-welcome-modal {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(7, 17, 31, 0.58);
}

.tour-highlight {
    position: relative;
    z-index: 1090 !important;
    outline: 4px solid rgba(14, 165, 233, 0.34);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.94), var(--shadow-md) !important;
}

.tour-card {
    position: absolute;
    z-index: 1100;
    width: min(360px, calc(100vw - 32px));
    padding: 1rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.tour-progress {
    color: var(--brand-600);
    font-size: 0.74rem;
    font-weight: 760;
    margin-bottom: 0.4rem;
}

.tour-title {
    margin-bottom: 0.45rem;
}

.tour-text {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

.tour-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Legal pages */
.terms-section {
    padding-top: 1.35rem;
    margin-top: 1.35rem;
    border-top: 1px solid var(--border);
}

.terms-section h2 {
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.terms-section p,
.terms-section li {
    color: var(--text-muted);
}

.terms-section ul {
    padding-left: 1.2rem;
}

/* Footer */
.app-footer {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.74) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.app-footer h5,
.app-footer h6 {
    color: #fff;
}

.app-footer p,
.app-footer small {
    color: rgba(255, 255, 255, 0.68);
}

.app-footer .footer-link {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.app-footer .footer-link:hover,
.app-footer .footer-link:focus {
    color: #fff;
    text-decoration: underline;
}

.footer-mark {
    width: 28px;
    height: 28px;
    margin-right: 0.55rem;
    border-radius: 8px;
}

/* Motion */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

@media (prefers-color-scheme: dark) {
    .dropdown-item:hover,
    .dropdown-item:focus,
    .list-group-item-action:hover {
        background: rgba(59, 130, 246, 0.14);
    }
}

@media (max-width: 991px) {
    .navbar-nav {
        align-items: stretch;
        gap: 0.15rem;
        padding-top: 0.75rem;
    }

    .navbar-nav .nav-link {
        border-radius: 10px;
    }

    .hero-section {
        min-height: auto;
    }

    .min-vh-75 {
        min-height: auto;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .hero-chart {
        margin-top: 2.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 68px;
    }

    .app-shell {
        padding-top: 1.25rem;
    }

    section.py-5 {
        padding-top: 3.25rem !important;
        padding-bottom: 3.25rem !important;
    }

    .card-body {
        padding: 1.15rem;
    }

    .table {
        min-width: 820px;
    }
}

@media (max-width: 576px) {
    .hero-section .display-4 {
        font-size: 2.2rem;
    }

    .btn-lg {
        width: 100%;
    }
}
