/* ============================================
   Imperium Motors — Redesigned Theme
   Design tokens: deep navy (#151B4E), ice blue (#D8E2F0)
   ============================================ */

/* ── BCBarell Font Family ── */
@font-face {
    font-family: 'BCBarell';
    src: url('/fonts/BCBarellTEST-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'BCBarell';
    src: url('/fonts/BCBarellTEST-CondensedThin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'BCBarell';
    src: url('/fonts/BCBarellTEST-ExtendedBlack.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'BCBarell Inline';
    src: url('/fonts/BCBarellTEST-Inline.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'BCBarell 1973';
    src: url('/fonts/BCBarellTEST-1973.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ── Underline-style Form Inputs ── */
.form-input-underline {
    border: none;
    border-bottom: 1.5px solid #151B4E;
    border-radius: 0;
    background: transparent;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}
.form-input-underline:focus {
    border-bottom: 2px solid #151B4E;
    box-shadow: 0 2px 0 0 rgba(21, 27, 78, 0.1);
    outline: none;
}
.form-input-underline::placeholder {
    color: rgba(21, 27, 78, 0.3);
}

/* ── Scroll Reveal Animations ── */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal { transform: translateY(30px); }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-scale { transform: scale(0.95); }

.revealed {
    opacity: 1 !important;
    transform: translateY(0) translateX(0) scale(1) !important;
}

/* Stagger delays for grid children */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ── Tilted Vehicle Cards ── */
.vehicle-card-tilted {
    transition: transform 0.4s ease;
}
.vehicle-card-tilted:nth-child(1) { transform: rotate(-2deg); }
.vehicle-card-tilted:nth-child(2) { transform: rotate(1.5deg); }
.vehicle-card-tilted:nth-child(3) { transform: rotate(-1deg); }
.vehicle-card-tilted:nth-child(4) { transform: rotate(2deg); }
.vehicle-card-tilted:hover {
    transform: rotate(0deg) scale(1.03);
    z-index: 10;
}

/* ── Kanban Board Styles ── */
.kanban-column {
    background: rgba(21, 27, 78, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(21, 27, 78, 0.08);
}
.kanban-column-header {
    border-bottom: 1px solid rgba(21, 27, 78, 0.08);
}
.kanban-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.kanban-card.dragging {
    opacity: 0.5;
}

/* ── Badge Styles ── */
.badge-coming-soon {
    background: rgba(243, 156, 18, 0.15);
    color: #F39C12;
}
.badge-pending {
    background: rgba(243, 156, 18, 0.15);
    color: #d97706;
}
.badge-confirmed {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}
.badge-completed {
    background: rgba(39, 174, 96, 0.15);
    color: #27AE60;
}
.badge-cancelled {
    background: rgba(192, 57, 43, 0.15);
    color: #C0392B;
}

/* ── Card Lift Effect ── */
.card-lift {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(21, 27, 78, 0.15),
                0 8px 16px rgba(21, 27, 78, 0.08);
}

/* Primary horizontal logo in navbar / footer */
.imperium-logo-nav {
    height: 2.25rem;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.imperium-logo-nav-sm {
    height: 1.75rem;
    width: auto;
    object-fit: contain;
}

.imperium-logo-sidebar {
    height: 2rem;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

/* ── Scroll Behavior ── */
html {
    scroll-behavior: smooth;
}

/* ── Alpine.js Cloak ── */
[x-cloak] {
    display: none !important;
}

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

::-webkit-scrollbar-track {
    background: #D8E2F0;
}

::-webkit-scrollbar-thumb {
    background: rgba(21, 27, 78, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(21, 27, 78, 0.5);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(21, 27, 78, 0.3) #D8E2F0;
}

/* ── HTMX Transitions ── */
.htmx-swapping {
    opacity: 0;
    transition: opacity 200ms ease-out;
}

.htmx-settling {
    opacity: 1;
    transition: opacity 300ms ease-in;
}

.htmx-added {
    opacity: 0;
    animation: fadeIn 300ms ease-in forwards;
}

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

/* ── HTMX Loading Indicator ── */
.htmx-indicator {
    display: none;
    opacity: 0;
    transition: opacity 200ms ease-in;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    display: inline-flex;
    opacity: 1;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #D8E2F0;
    border-top-color: #151B4E;
    border-radius: 50%;
    animation: spin 600ms linear infinite;
}

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

/* ── Image Zoom ── */
.img-zoom {
    transition: transform 300ms ease;
}

.img-zoom:hover {
    transform: scale(1.05);
}

/* ── Accessible focus states ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #151B4E;
    outline-offset: 2px;
}

/* Safe area for mobile sticky bars (iPhone notch) */
.safe-bottom {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}

/* ── Text Selection ── */
::selection {
    background-color: rgba(21, 27, 78, 0.2);
    color: #151B4E;
}

/* ── Print Styles ── */
@media print {
    nav, footer, .no-print, button, [x-data] {
        display: none !important;
    }
    main {
        padding-top: 0 !important;
        margin: 0 !important;
    }
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }
    .qr-code, .print-only {
        display: block !important;
    }
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
    .vehicle-card, .card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    aside {
        display: none !important;
    }
    .lg\:ml-64 {
        margin-left: 0 !important;
    }
}

/* ── Slide Up Animation ── */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 400ms ease-out forwards;
}

/* ── Shimmer Placeholder ── */
.img-placeholder {
    background: linear-gradient(135deg, #D8E2F0 25%, #C5D1E8 50%, #D8E2F0 75%);
    background-size: 200% 200%;
    animation: shimmer 1.5s infinite;
}

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

/* ============================================
   Glass Panels
   ============================================ */

.glass {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(21, 27, 78, 0.08);
}

.glass-card-strong {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(21, 27, 78, 0.10);
}

.glass-dark {
    background: rgba(21, 27, 78, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-nav {
    background: rgba(21, 27, 78, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-sidebar {
    background: rgba(13, 17, 51, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.glass-table {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.30);
    box-shadow: 0 4px 24px rgba(21, 27, 78, 0.08);
}

/* ── Navy Gradient Backgrounds ── */
.bg-navy-gradient {
    background: linear-gradient(135deg, #090C26 0%, #151B4E 50%, #111640 100%);
}

.bg-navy-gradient-public {
    background: linear-gradient(180deg, #151B4E 0%, #111640 8%, #9FB3D6 35%, #C5D1E8 55%, #D8E2F0 100%);
}

.bg-navy-gradient-admin {
    background: linear-gradient(180deg, #C5D1E8 0%, #D8E2F0 30%, #D8E2F0 100%);
}

.bg-navy-gradient-hero {
    background: linear-gradient(135deg, #050719 0%, #090C26 30%, #151B4E 70%, #1E2766 100%);
}

/* ── Input Fields on Glass Backgrounds ── */
.glass-card input,
.glass-card select,
.glass-card textarea,
.glass-card-strong input,
.glass-card-strong select,
.glass-card-strong textarea {
    background: rgba(255, 255, 255, 0.60);
}

.glass-card input:focus,
.glass-card select:focus,
.glass-card textarea:focus,
.glass-card-strong input:focus,
.glass-card-strong select:focus,
.glass-card-strong textarea:focus {
    background: rgba(255, 255, 255, 0.90);
}

/* ============================================
   Scroll-Reveal Animation System
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: none;
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: none;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: none;
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ============================================
   Hover Effects
   ============================================ */

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::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: left 0.5s ease;
}

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

/* ============================================
   Lightbox / Fullscreen Gallery
   ============================================ */

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 3rem 3.5rem;
    background: rgba(5, 7, 25, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
}

.lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    z-index: 10;
    transition: color 0.2s;
}
.lightbox-close:hover { color: #fff; }

.lightbox-counter {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 10;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-nav-prev { left: 1rem; }
.lightbox-nav-next { right: 1rem; }

/* ============================================
   Skeleton Loading
   ============================================ */

.skeleton {
    background: linear-gradient(90deg, #C5D1E8 25%, #D8E2F0 50%, #C5D1E8 75%);
    background-size: 400% 100%;
    animation: skeleton-shimmer 1.8s ease-in-out infinite;
    border-radius: 8px;
}

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

/* ============================================
   Animated Checkmark
   ============================================ */

@keyframes checkmark-circle {
    0% { stroke-dashoffset: 166; }
    100% { stroke-dashoffset: 0; }
}

@keyframes checkmark-check {
    0% { stroke-dashoffset: 48; }
    100% { stroke-dashoffset: 0; }
}

.checkmark-svg .circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: checkmark-circle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-svg .check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkmark-check 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

/* ============================================
   404 Pulse
   ============================================ */

@keyframes subtle-pulse {
    0%, 100% { opacity: 0.06; transform: scale(1); }
    50% { opacity: 0.1; transform: scale(1.02); }
}

.animate-subtle-pulse {
    animation: subtle-pulse 4s ease-in-out infinite;
}


/* ============================================
   Public Navbar
   ============================================ */

.pub-navbar {
    background-color: #151B4E;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.pub-navbar--premium {
    background: #151B4E;
    box-shadow: 0 2px 12px rgba(21, 27, 78, 0.3);
}

.pub-navbar-link {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.15s ease;
}
.pub-navbar-link:hover {
    color: white;
}

.pub-navbar-cta {
    background-color: #151B4E;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    transition: all 0.15s ease;
}
.pub-navbar-cta:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pub-navbar-hamburger {
    transition: background 0.15s ease;
}
.pub-navbar-hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pub-navbar-mobile {
    background-color: #151B4E;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pub-navbar-mobile-link {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.15s ease;
}
.pub-navbar-mobile-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.pub-navbar--premium .pub-navbar-mobile {
    background: rgba(13, 17, 51, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}


/* ============================================
   Admin Sidebar
   ============================================ */

.admin-sidebar-toggle {
    background-color: #151B4E;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transition: background-color 0.15s ease;
}
.admin-sidebar-toggle:hover {
    background-color: #1E2766;
}

.admin-sidebar-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.admin-sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-brand {
    color: white;
}

.admin-sidebar-subtitle {
    color: rgba(255, 255, 255, 0.4);
}

.admin-sidebar-link {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.15s ease;
}
.admin-sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-sidebar-link-active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.admin-sidebar-user-name {
    color: white;
}

.admin-sidebar-user-role {
    color: rgba(255, 255, 255, 0.4);
}

.admin-sidebar-user-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-logout {
    color: #f87171;
    transition: all 0.15s ease;
}
.admin-sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}


/* ============================================
   Footer
   ============================================ */

.site-footer {
    background-color: #151B4E;
    color: rgba(255, 255, 255, 0.7);
}

.footer-heading {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}
.footer-link:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.4);
}


/* ============================================
   Vehicle Card
   ============================================ */

.vehicle-card {
    background: white;
    border: 1px solid rgba(21, 27, 78, 0.08);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
}
.vehicle-card:hover {
    box-shadow: 0 4px 12px rgba(21, 27, 78, 0.12);
}

.vehicle-card-title {
    color: #151B4E;
    transition: color 0.3s ease;
}
.group:hover .vehicle-card-title {
    color: #1E2766;
}

.vehicle-card-price {
    color: #151B4E;
}


/* ============================================
   Buttons
   ============================================ */

.btn-primary {
    background-color: #151B4E;
    color: white;
    transition: background-color 0.15s ease;
}
.btn-primary:hover {
    background-color: #1E2766;
}

.btn-cta {
    background-color: #151B4E;
    color: white;
    transition: background-color 0.15s ease;
}
.btn-cta:hover {
    background-color: #1E2766;
}

.btn-whatsapp {
    background-color: #27AE60;
    color: white;
    transition: background-color 0.15s ease;
}
.btn-whatsapp:hover {
    background-color: rgba(39, 174, 96, 0.9);
}

.btn-danger {
    background-color: #C0392B;
    color: white;
    transition: background-color 0.15s ease;
}
.btn-danger:hover {
    background-color: #a93226;
}

.btn-confirm {
    background-color: #27AE60;
    color: white;
    transition: background-color 0.15s ease;
}
.btn-confirm:hover {
    background-color: rgba(39, 174, 96, 0.9);
}

.btn-complete {
    background-color: #151B4E;
    color: white;
    transition: background-color 0.15s ease;
}
.btn-complete:hover {
    background-color: #1E2766;
}

.btn-cancel {
    background: #D8E2F0;
    color: #151B4E;
    transition: all 0.15s ease;
}
.btn-cancel:hover {
    background-color: #C0392B;
    color: white;
}


/* ============================================
   Badges (Solid - Vehicle Cards)
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.badge-available { background-color: #27AE60; }
.badge-reserved { background-color: #F39C12; }
.badge-sold { background-color: #C0392B; }
.badge-in-transit { background-color: #151B4E; }
.badge-in-repair { background-color: #6b7280; }


/* ============================================
   Badges (Light - Admin Tables)
   ============================================ */

.badge-light {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-light-available { background: #dcfce7; color: #166534; }
.badge-light-reserved { background: #fef3c7; color: #92400e; }
.badge-light-sold { background: #fee2e2; color: #991b1b; }
.badge-light-in-transit { background: #dbeafe; color: #1e40af; }
.badge-light-in-repair { background: #f3f4f6; color: #1f2937; }

.badge-light-watchlist { background: #f3f4f6; color: #1f2937; }
.badge-light-bidding { background: #fef3c7; color: #92400e; }
.badge-light-won { background: #dbeafe; color: #1e40af; }
.badge-light-paid { background: #e0e7ff; color: #3730a3; }
.badge-light-shipping { background: #cffafe; color: #155e75; }
.badge-light-customs { background: #ffedd5; color: #9a3412; }
.badge-light-arrived { background: #dcfce7; color: #166534; }
.badge-light-ready { background: #d1fae5; color: #065f46; }

.badge-light-pending { background: #fef3c7; color: #92400e; }
.badge-light-confirmed { background: #dcfce7; color: #166534; }
.badge-light-completed { background: #dbeafe; color: #1e40af; }
.badge-light-cancelled { background: #fee2e2; color: #991b1b; }


/* ============================================
   Toast Notifications
   ============================================ */

.toast {
    color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.toast-success { background-color: #27AE60; }
.toast-error { background-color: #C0392B; }
.toast-warning { background-color: #F39C12; }
.toast-info { background-color: #151B4E; }


/* ============================================
   Form Inputs
   ============================================ */

.form-input {
    border: 1px solid #C5D1E8;
    transition: all 0.15s ease;
}
.form-input::placeholder {
    color: #9FB3D6;
}
.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(21, 27, 78, 0.2);
    border-color: #151B4E;
}


/* ============================================
   Alerts
   ============================================ */

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #C0392B;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #27AE60;
}


/* ============================================
   Media Thumbnail
   ============================================ */

.media-thumb-overlay {
    background: transparent;
    transition: all 0.2s ease;
    opacity: 0;
}
.group:hover .media-thumb-overlay {
    background: rgba(0, 0, 0, 0.4);
    opacity: 1;
}

.media-thumb-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #374151;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.media-thumb-star:hover {
    background-color: #F39C12;
    color: white;
}

.media-thumb-delete:hover {
    background-color: #C0392B;
    color: white;
}

.media-thumb-primary-badge {
    background-color: #F39C12;
    color: white;
}


/* ============================================
   Login Page
   ============================================ */

.login-submit {
    background-color: #151B4E;
    color: white;
    transition: background-color 0.2s ease;
}
.login-submit:hover {
    background-color: #1E2766;
}
.login-submit:focus {
    outline: none;
    box-shadow: 0 0 0 2px white, 0 0 0 4px rgba(21, 27, 78, 0.5);
}


/* ============================================
   Cost System
   ============================================ */

.cost-tab {
    color: #6B7280;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
}
.cost-tab:hover {
    color: #151B4E;
}
.cost-tab-active {
    color: #151B4E;
    border-bottom-color: #151B4E;
    font-weight: 600;
}

.currency-toggle {
    display: inline-flex;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #C5D1E8;
}

.currency-toggle-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: white;
    color: #6B7280;
    transition: all 0.15s ease;
    cursor: pointer;
    border: none;
}

.currency-toggle-btn-active {
    background: #151B4E;
    color: white;
}

.badge-cat-auction { background: #EDE9FE; color: #6D28D9; }
.badge-cat-shipping { background: #DBEAFE; color: #1D4ED8; }
.badge-cat-taxes { background: #FEF3C7; color: #92400E; }
.badge-cat-repairs { background: #FEE2E2; color: #991B1B; }
.badge-cat-security { background: #D1FAE5; color: #065F46; }
.badge-cat-ads { background: #FCE7F3; color: #9D174D; }
.badge-cat-fixed_costs { background: #E0E7FF; color: #3730A3; }
.badge-cat-other { background: #F3F4F6; color: #374151; }

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #C5D1E8;
    background: white;
    flex-shrink: 0;
}

.timeline-dot-filled {
    border-color: #151B4E;
    background: #151B4E;
}

.timeline-line {
    height: 2px;
    background: #C5D1E8;
    flex: 1;
}

.timeline-line-filled {
    background: #151B4E;
}


/* ============================================
   Public Site Premium
   ============================================ */

.pub-hero {
    position: relative;
    isolation: isolate;
}

.pub-hero__mesh {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(165deg, #050719 0%, #151B4E 38%, #111640 72%, #090C26 100%);
}

.pub-hero__mesh::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 60% at 75% 15%, rgba(21, 27, 78, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 10% 80%, rgba(21, 27, 78, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.pub-hero__noise {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.pub-section-heading {
    font-family: BCBarell, Outfit, Inter, system-ui, sans-serif;
    letter-spacing: -0.02em;
}

.page-hero-banner {
    background: linear-gradient(135deg, #151B4E 0%, #111640 50%, #0D1133 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.form-input-premium {
    transition: border-left 0.2s ease, padding-left 0.2s ease;
}

.form-input-premium:focus {
    border-left: 3px solid #151B4E;
    padding-left: 13px;
}
