:root {
    /* Main Background: Navy/Dark Blue */
    --midnight-900: #0a2540;
    --midnight-800: #1e3a8a;
    --midnight-700: #1e40af;

    /* Accent colors */
    --accent-primary: #c0c0c0;
    /* Silver */
    --accent-secondary: #38bdf8;
    /* Sky Blue */

    /* Backgrounds */
    --bg-body: var(--midnight-900);
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-secondary: rgba(255, 255, 255, 0.05);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Borders */
    --border-color: rgba(255, 255, 255, 0.1);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-primary) 0%, #ffffff 100%);
    --gradient-card: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-body);
    /* Subtle radial gradient at the top for a "glow" effect */
    background-image: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.1) 0%, transparent 50%);
    color: var(--text-primary);
    min-height: 100vh;
}

/* =========================================
   NAVBAR STYLES
   ========================================= */
#main-navbar {
    /* Glassmorphism effect */
    background-color: rgba(30, 41, 59, 0.9) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-weight: 700;
    /* Gradient Text Effect */
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-primary) !important;
}

/* =========================================
   CARD COMPONENT STYLES
   ========================================= */
.card {
    background: var(--gradient-card);

    /* Stronger, cleaner border that really frames the card */
    border: 1px solid rgba(255, 255, 255, 0.18);

    /* Slightly larger radius + consistent with modern design systems */
    border-radius: var(--radius-lg);
    /* or just use 1.5rem if you prefer fixed */

    /* Significantly elevated shadow stack – makes it float beautifully */
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        /* big soft lift */
        0 8px 20px rgba(0, 0, 0, 0.3),
        /* medium shadow */
        0 2px 6px rgba(0, 0, 0, 0.25),
        /* sharp close shadow */
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    /* crisp inner top highlight */

    /* Optional but gorgeous: very subtle inner border glow on top edge */
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Subtle lift on hover – feels alive without being cheesy */
.card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.45),
        0 12px 28px rgba(0, 0, 0, 0.35),
        0 4px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Premium top inner glow (used by Apple, Notion, etc.) */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.25),
            transparent);
    pointer-events: none;
}

/* Optional: very subtle inner glow on the top edge for extra premium feel */
position: relative;
overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
}

.card-title {
    color: var(--text-primary);
}

/* =========================================
   TEXT UTILITY OVERRIDES
   ========================================= */
/* Force Bootstrap text classes to match our dark theme */
.text-muted {
    color: var(--text-secondary) !important;
}

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

.dropzone .dz-message {
    display: block !important;
    order: -1;
    /* Keeps it at the top */
    width: 100%;
    background: transparent !important;
    padding: 0 !important;
    min-width: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left !important;
    color: var(--text-primary) !important;
}

.dropzone .dz-preview .dz-details .dz-size,
.dropzone .dz-preview .dz-details .dz-filename {
    opacity: 1 !important;
    color: var(--text-secondary) !important;
}

.dropzone .dz-preview .dz-details .dz-filename span {
    background-color: transparent !important;
    border: none !important;
    color: var(--text-primary) !important;
    font-weight: 500;
}

/* Image Thumbnail */
.dropzone .dz-preview .dz-image {
    width: 48px !important;
    height: 48px !important;
    margin-right: 1rem;
    border-radius: 0.5rem;
    flex-shrink: 0;
    /* FIX: Replaced black background with File Icon */
    background-color: rgba(56, 189, 248, 0.1) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'%3E%3C/path%3E%3Cpolyline points='13 2 13 9 20 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.dropzone .dz-preview .dz-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Progress Bar */
.dropzone .dz-preview .dz-progress {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 2px;
    border-radius: 0;
    margin: 0;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
}

.dropzone .dz-preview .dz-progress .dz-upload {
    background: var(--accent-primary);
}

/* Success/Error Marks */
.dropzone .dz-preview .dz-success-mark,
.dropzone .dz-preview .dz-error-mark {
    top: 50% !important;
    margin-top: -14px !important;
    right: 1rem !important;
    left: auto !important;
    opacity: 1 !important;
}

.dropzone .dz-preview .dz-success-mark svg,
.dropzone .dz-preview .dz-error-mark svg {
    width: 28px;
    height: 28px;
}

/* Remove Button (Trash Icon) */
.dz-remove {
    margin-left: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.dz-remove:hover {
    color: #ef4444;
    /* Red hover */
}

/* =========================================
   BUTTON STYLES
   ========================================= */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: #0f172a;
    /* Dark text for contrast */
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: var(--shadow-md);
}

.btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--midnight-600);
}

.btn-outline-secondary:hover {
    background-color: var(--midnight-700);
    color: var(--text-primary);
    border-color: var(--midnight-500);
}

/* =========================================
   FORM INPUT STYLES
   ========================================= */
.form-control {
    background-color: var(--bg-input);
    border: 1px solid var(--midnight-600);
    color: var(--text-primary);
}

.form-control:focus {
    background-color: var(--bg-input);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(56, 189, 248, 0.25);
}

/* =========================================
   CUSTOM BADGES
   ========================================= */
.badge-price {
    background-color: rgba(56, 189, 248, 0.1) !important;
    color: var(--accent-primary) !important;
    border: 1px solid rgba(56, 189, 248, 0.2) !important;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* =========================================
   PRICING CARD STYLES (NEW)
   ========================================= */
/* Target the Pricing Card specifically */
[data-card-id="pricing-card"] .card {
    /* You can add specific border or shadow here */
}

/* The big dollar amount ($0.00) */
[data-card-id="pricing-card"] .display-4 {
    font-weight: 800;
    color: var(--accent-primary) !important;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

/* The comparison table rows */
[data-card-id="pricing-card"] .table {
    color: var(--midnight-800) !important;
}

[data-card-id="pricing-card"] .table-primary {
    background-color: rgba(56, 189, 248, 0.1) !important;
    border-color: var(--accent-primary);
}

/* Force darker text for "muted" elements inside the white card */
[data-card-id="pricing-card"] .text-muted {
    color: var(--midnight-600) !important;
}

[data-card-id="pricing-card"] td.fw-bold.text-muted {
    color: var(--midnight-800) !important;
}

/* Darken the Table Header */
[data-card-id="pricing-card"] .table thead th {
    background-color: var(--midnight-800) !important;
    color: var(--text-primary) !important;
    border-bottom: 2px solid var(--accent-primary);
}

/* =========================================
   MODAL STYLES
   ========================================= */
.modal-content {
    background-color: var(--midnight-800) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.modal-header {
    border-bottom: 1px solid var(--border-color) !important;
}

.modal-footer {
    border-top: 1px solid var(--border-color) !important;
}

/* Make the close button white (Bootstrap default is black SVG) */
.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.text-cyan {
    color: var(--accent-secondary) !important;
}

.standout-tagline {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    /* slightly tighter than fs-4 for impact */
    letter-spacing: 0.08em;
    /* wide tracking = premium feel */
    text-transform: uppercase;

    /* Light silver / near-white – looks crisp on dark backgrounds */
    color: #f5f7fa;
    /* very light silver-white */

    /* Subtle but effective glow + depth */
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.4),
        0 0 12px rgba(255, 255, 255, 0.25);

    /* Optional: tiny white inner stroke for extra sharpness */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* Replace the bullets with clean dots */
    display: inline-block;
    padding: 0.35rem 0;
    opacity: 0.95;
    transition: all 0.25s ease;
}

/* Very subtle hover lift – feels premium */
.standout-tagline:hover {
    opacity: 1;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.5),
        0 0 16px rgba(255, 255, 255, 0.35);
}

.important-warning {
    backdrop-filter: blur(8px);
    /* subtle glass effect – looks expensive */
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.15);
    /* gentle amber lift */
    animation: pulse-warning 4s infinite alternate;
}

@keyframes pulse-warning {
    from {
        box-shadow: 0 4px 12px rgba(255, 193, 7, 0.15);
    }

    to {
        box-shadow: 0 6px 20px rgba(255, 193, 7, 0.25);
    }
}