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

/* ---- CSS Variables / Design Tokens ---- */
:root {
    /* Primary Palette (Warm Gold) */
    --primary: #D4A64A;
    --primary-dark: #B88B35;
    --primary-light: #F3D28C;
    --primary-glow: rgba(212, 166, 74, 0.15);

    /* Midnight Charcoal Surfaces */
    --dark: #0B0C0E;
    --dark-soft: #141619;
    --dark-lighter: #222428;
    --dark-surface: #1C1E22;

    /* Backgrounds */
    --bg-light: #FBFBFA;
    --bg-white: #FFFFFF;
    --bg-subtle: #F5F3EE;
    --bg-card: #141619;

    /* Text */
    --text-primary: #1C1E22;
    --text-secondary: #4A4D52;
    --text-muted: #7E828A;
    --text-light: #A5AAB2;
    --text-white: #F5F3EE;
    --text-on-primary: #0B0C0E;

    /* Status Colors */
    --success: #4ADE80;
    --success-bg: #ECFDF5;
    --success-border: #A7F3D0;
    --warning: #F59E0B;
    --warning-bg: #FFFBEB;
    --warning-border: #FDE68A;
    --danger: #EF4444;
    --danger-bg: #FEF2F2;
    --danger-border: #FECACA;
    --info: #D4A64A;
    --info-bg: #FDFBF7;
    --info-border: #FDE68A;

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(15, 23, 42, 0.06);
    --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.04);
    --glass-blur: blur(20px);

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.02);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 12px 24px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.08);
    --shadow-xl: 0 32px 64px rgba(15, 23, 42, 0.1);
    --shadow-primary: 0 8px 30px rgba(0, 82, 255, 0.2);
    --shadow-success: 0 8px 24px rgba(16, 185, 129, 0.12);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-2xl: 36px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Fonts */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sidebar: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    color: var(--dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
.cta-section h1, .cta-section h2, .cta-section h3, .cta-section h4, .cta-section h5, .cta-section h6,
.integration-section h1, .integration-section h2, .integration-section h3, .integration-section h4, .integration-section h5, .integration-section h6 {
    color: var(--text-white);
}

h1 { font-size: 3rem; letter-spacing: -0.03em; }
h2 { font-size: 2.25rem; letter-spacing: -0.02em; }
h3 { font-size: 1.75rem; letter-spacing: -0.01em; }
h4 { font-size: 1.35rem; letter-spacing: -0.01em; }
h5 { font-size: 1.15rem; }
h6 { font-size: 1rem; }

.text-gradient {
    background: linear-gradient(135deg, var(--text-primary), var(--dark-lighter));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Buttons ---- */
.btn-primary-custom {
    background: linear-gradient(180deg, #E6BA62 0%, #D4A64A 100%);
    color: var(--text-on-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 30px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(212, 166, 74, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #F3D28C 0%, #B88B35 100%);
    box-shadow: 0 12px 32px rgba(212, 166, 74, 0.35);
    color: var(--text-on-primary);
}

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

.btn-primary-custom:active {
    transform: translateY(0);
}

.btn-dark-custom {
    background: var(--dark);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 14px 30px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-dark-custom:hover {
    background: var(--dark-soft);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text-white);
}

.btn-outline-custom {
    background: transparent;
    color: var(--dark);
    border: 1.5px solid var(--dark);
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-custom:hover {
    background: var(--dark);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-ghost:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.08);
    background: var(--bg-white);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
    border-color: rgba(0,0,0,0.12);
}

/* ---- Cards ---- */
.card-custom {
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-xs);
}

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

.card-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    padding: 24px;
}

.card-gradient {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.card-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(198, 229, 71, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* ---- Stat Cards ---- */
.stat-card {
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: 4px 0 0 4px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

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

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.stat-card .stat-icon.primary { background: rgba(198, 229, 71, 0.15); color: var(--dark); }
.stat-card .stat-icon.success { background: var(--success-bg); color: var(--success); }
.stat-card .stat-icon.warning { background: var(--warning-bg); color: var(--warning); }
.stat-card .stat-icon.danger { background: var(--danger-bg); color: var(--danger); }
.stat-card .stat-icon.info { background: var(--info-bg); color: var(--info); }

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.stat-card .stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.stat-card .stat-trend.up {
    color: var(--success);
    background: var(--success-bg);
}

.stat-card .stat-trend.down {
    color: var(--danger);
    background: var(--danger-bg);
}

/* ---- Status Badges ---- */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger-border);
}

.badge-info {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid var(--info-border);
}

.badge-neutral {
    background: var(--bg-subtle);
    color: var(--text-secondary);
    border: 1px solid rgba(0,0,0,0.08);
}

.badge-primary {
    background: rgba(198, 229, 71, 0.15);
    color: var(--dark);
    border: 1px solid rgba(198, 229, 71, 0.3);
}
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.pulse-dot.active {
    background: var(--success);
}

.pulse-dot.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--success);
    animation: pulse-ring 1.5s ease infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* ---- Form Inputs ---- */
.form-control-custom {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: all var(--transition-normal);
    outline: none;
}

.form-control-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

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

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

.form-group {
    margin-bottom: 20px;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    width: 18px;
    height: 18px;
}

.input-icon-wrapper .form-control-custom {
    padding-left: 44px;
}

/* ---- Tables ---- */
.table-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.table-custom thead th {
    background: var(--bg-subtle);
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    text-align: left;
    white-space: nowrap;
}

.table-custom tbody td {
    padding: 14px 20px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    vertical-align: middle;
}

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

.table-custom tbody tr:hover {
    background: var(--bg-subtle);
}

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

/* ---- Modals ---- */
.modal-content {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    background: var(--bg-subtle);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 20px 24px;
}

.modal-title {
    font-weight: 700;
    font-size: 18px;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid rgba(0,0,0,0.06);
    padding: 16px 24px;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.25);
}

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

.empty-state .empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--text-muted);
}

.empty-state h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto 24px;
}

/* ---- Loading / Skeleton ---- */
.skeleton {
    background: linear-gradient(90deg, var(--bg-subtle) 25%, #e8ede5 50%, var(--bg-subtle) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---- Animations ---- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

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

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

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-fade-in { animation: fadeIn 0.5s ease forwards; }
.animate-fade-in-up { animation: fadeInUp 0.5s ease forwards; }
.animate-fade-in-down { animation: fadeInDown 0.5s ease forwards; }
.animate-slide-left { animation: slideInLeft 0.5s ease forwards; }
.animate-slide-right { animation: slideInRight 0.5s ease forwards; }
.animate-scale-in { animation: scaleIn 0.4s var(--transition-spring) forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* Stagger children animations */
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }

/* ---- Utility Classes ---- */
.text-primary-custom { color: var(--primary) !important; }
.text-dark-custom { color: var(--dark) !important; }
.text-success-custom { color: var(--success) !important; }
.text-warning-custom { color: var(--warning) !important; }
.text-danger-custom { color: var(--danger) !important; }
.text-muted-custom { color: var(--text-muted) !important; }

.bg-primary-custom { background: var(--primary) !important; }
.bg-dark-custom { background: var(--dark) !important; }
.bg-light-custom { background: var(--bg-light) !important; }
.bg-success-light { background: var(--success-bg) !important; }
.bg-warning-light { background: var(--warning-bg) !important; }
.bg-danger-light { background: var(--danger-bg) !important; }

.rounded-custom { border-radius: var(--radius-lg) !important; }
.shadow-custom { box-shadow: var(--shadow-md) !important; }

.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 24px; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .stat-card .stat-value {
        font-size: 22px;
    }
    
    .card-custom, .card-glass, .stat-card {
        padding: 16px;
    }
    
    .btn-primary-custom, .btn-dark-custom, .btn-outline-custom {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* ---- SweetAlert2 Overrides ---- */
.swal2-popup {
    border-radius: var(--radius-xl) !important;
    font-family: var(--font-primary) !important;
}

.swal2-confirm {
    background: var(--primary) !important;
    color: var(--text-on-primary) !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    padding: 12px 28px !important;
    box-shadow: var(--shadow-primary) !important;
}

.swal2-cancel {
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    padding: 12px 28px !important;
}

/* ---- Tooltips ---- */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: var(--dark);
    color: var(--text-white);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-fast);
    z-index: var(--z-tooltip, 600);
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* ---- Code Blocks ---- */
.code-block {
    background: #1a1a2e;
    border-radius: var(--radius-md);
    padding: 20px;
    overflow-x: auto;
    position: relative;
}

.code-block code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #e0e0e0;
}

.code-block .copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #ccc;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.code-block .copy-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* ---- Pagination ---- */
.pagination-custom {
    display: flex;
    gap: 4px;
    align-items: center;
}

.pagination-custom .page-item .page-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,0,0,0.08);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
    background: var(--bg-white);
}

.pagination-custom .page-item .page-link:hover {
    background: var(--bg-subtle);
    border-color: var(--primary);
    color: var(--dark);
}

.pagination-custom .page-item.active .page-link {
    background: var(--dark);
    color: var(--text-white);
    border-color: var(--dark);
}

/* ---- Toast Notifications ---- */
.toast-custom {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: var(--z-toast);
    animation: slideInRight 0.3s ease;
    min-width: 300px;
}

.toast-custom.success { border-left: 4px solid var(--success); }
.toast-custom.error { border-left: 4px solid var(--danger); }
.toast-custom.warning { border-left: 4px solid var(--warning); }

/* ==================================================
   TOP 1% SAAS DESIGN OVERHAUL STYLES
   ================================================== */

/* --- Advanced Premium Background --- */
.aurora-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 0%, #161512 0%, #0B0C0E 100%);
}

.aurora-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
    mix-blend-mode: screen;
}

.aurora-blob-1 {
    background: radial-gradient(circle, #D4A64A 0%, transparent 80%);
    top: -200px;
    left: -100px;
    animation: blobMove1 30s ease-in-out infinite alternate;
}

.aurora-blob-2 {
    background: radial-gradient(circle, #8C6A2E 0%, transparent 80%);
    bottom: -100px;
    right: -100px;
    animation: blobMove2 25s ease-in-out infinite alternate;
}

.aurora-blob-3 {
    background: radial-gradient(circle, #4ADE80 0%, transparent 80%);
    top: 40%;
    left: 50%;
    width: 500px;
    height: 500px;
    opacity: 0.1;
    animation: blobMove3 35s ease-in-out infinite alternate;
}

@keyframes blobMove1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(150px, 100px) scale(1.1); }
    100% { transform: translate(-50px, 200px) scale(0.9); }
}

@keyframes blobMove2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-200px, -150px) scale(0.85); }
    100% { transform: translate(100px, 50px) scale(1.15); }
}

@keyframes blobMove3 {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-30%, -20%) rotate(360deg); }
}

/* Subtle Animated Grid */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse at 50% 50%, black 60%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 60%, transparent 100%);
    z-index: 1;
}

/* Noise Texture Overlay */
.noise-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.015'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 2;
}

/* Mouse Reactive Spotlight Overlay */
.mouse-spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background: radial-gradient(circle 250px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212, 166, 74, 0.08), transparent 80%);
    transition: background 0.1s ease;
}

/* --- Hero Typography Animation --- */
.hero-headline-animate {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(20px);
    animation: heroTextReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    letter-spacing: -0.03em;
}

@keyframes heroTextReveal {
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
        letter-spacing: -0.04em;
    }
}

.gradient-text-animate {
    background: linear-gradient(90deg, #D4A64A, #F3D28C, #D4A64A);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradientShift 8s linear infinite;
}

@keyframes textGradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* --- Shimmer Badge --- */
.shimmer-badge {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: badgeFloat 4s ease-in-out infinite alternate;
}

.shimmer-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-20deg);
    animation: badgeShimmer 6s infinite ease-in-out;
}

@keyframes badgeFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

@keyframes badgeShimmer {
    0% { left: -150%; }
    50% { left: 150%; }
    100% { left: 150%; }
}

/* --- 3D Interactive Card --- */
.tilt-card-container {
    perspective: 1200px;
    z-index: 10;
    position: relative;
}

.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.1s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(15, 23, 42, 0.7) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-xl);
    box-shadow: 
        0 24px 64px -12px rgba(5, 8, 22, 0.5),
        0 0 40px rgba(37, 99, 235, 0.08);
}

.tilt-card:hover {
    box-shadow: 
        0 32px 80px -16px rgba(5, 8, 22, 0.6),
        0 0 50px rgba(37, 99, 235, 0.15);
}

.tilt-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle 120px at var(--reflect-x, 50%) var(--reflect-y, 50%), rgba(255, 255, 255, 0.08), transparent 80%);
    pointer-events: none;
    z-index: 1;
}

/* --- QR Code Laser Scanning Line --- */
.qr-container-relative {
    position: relative;
    overflow: hidden;
}

.qr-laser-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: linear-gradient(90deg, transparent, var(--success), transparent);
    box-shadow: 0 0 10px var(--success), 0 0 20px var(--success);
    top: 0;
    animation: laserScan 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes laserScan {
    0%, 100% { top: 0%; opacity: 0; }
    5%, 95% { opacity: 1; }
    50% { top: 100%; }
}

/* --- Terminal Custom Design --- */
.terminal-window {
    background: rgba(10, 15, 29, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    font-family: 'Fira Code', 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #e2e8f0;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    text-align: left;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #22c55e; }

.terminal-title {
    margin-left: 12px;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.terminal-body {
    padding: 20px;
    height: 220px;
    overflow-y: auto;
}

.terminal-cursor {
    display: inline-block;
    width: 6px;
    height: 14px;
    background: var(--primary);
    vertical-align: middle;
    margin-left: 4px;
    animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
    50% { opacity: 0; }
}

/* --- Floating Status Cards --- */
.floating-card-wrapper {
    position: absolute;
    z-index: 15;
    pointer-events: none;
}

.floating-micro-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 10px 14px;
    color: #ffffff;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
}

.floating-micro-card.success-pill {
    border-left: 3px solid var(--success);
}

.floating-micro-card.webhook-pill {
    border-left: 3px solid var(--info);
}

.floating-micro-card.api-pill {
    border-left: 3px solid var(--primary);
}

.float-bob-1 { animation: floatBob1 6s ease-in-out infinite alternate; }
.float-bob-2 { animation: floatBob2 7s ease-in-out infinite alternate; }
.float-bob-3 { animation: floatBob3 5s ease-in-out infinite alternate; }

@keyframes floatBob1 {
    0% { transform: translateY(0) rotate(1deg); }
    100% { transform: translateY(-12px) rotate(-1deg); }
}

@keyframes floatBob2 {
    0% { transform: translateY(0) rotate(-2deg); }
    100% { transform: translateY(-15px) rotate(1deg); }
}

@keyframes floatBob3 {
    0% { transform: translateY(0) rotate(1deg); }
    100% { transform: translateY(-8px) rotate(-2deg); }
}

/* --- Staggered Entrance Reveal animations --- */
@keyframes entranceTerminalReveal {
    from {
        opacity: 0;
        transform: rotateY(-12deg) rotateX(6deg) translateY(40px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: rotateY(-6deg) rotateX(3deg) translateY(0) scale(1);
    }
}

@keyframes entranceBadgePop {
    from {
        opacity: 0;
        transform: scale(0.7) translateZ(0);
    }
    to {
        opacity: 1;
        transform: scale(1) translateZ(var(--z-depth, 20px));
    }
}

.tilt-card-container.entrance-animate {
    opacity: 0;
    animation: entranceTerminalReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.floating-card-wrapper.entrance-animate {
    opacity: 0;
    animation: entranceBadgePop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

