/* =========================================================
   Ibnerizam Shipping Lines — Main Stylesheet
   Theme: Dark Violet (#3B0764) + Black (#0A0A0A)
   ========================================================= */

/* --- CSS Variables --- */
:root {
    --adm-violet:        #800080;
    --adm-violet-dark:   #5C005C;
    --adm-violet-deeper: #1A001A;
    --adm-sidebar-bg:    #1A001A;
    --adm-sidebar-brand: #0D000D;
    --adm-sidebar-hover: #330033;
    --adm-sidebar-text:  #E8B0E8;
    --adm-sidebar-muted: #9B709B;
    --adm-accent:        #CC66CC;
    --primary:           #7C3AED;
    --primary-light:     #8B5CF6;
    --accent:            #CC66CC;
    --accent-hover:      #E879F9;
    --bg:                #0A0A0A;
    --bg-card:           #110D1E;
    --bg-card-2:         #1A1030;
    --bg-input:          #1C1530;
    --border:            rgba(128, 0, 128, 0.25);
    --border-strong:     rgba(128, 0, 128, 0.5);
    --text:              #F0EFF5;
    --text-muted:        #9B709B;
    --text-dim:          #6B6380;
    --success:           #22C55E;
    --danger:            #EF4444;
    --warning:           #F59E0B;
    --info:              #3B82F6;
    --shadow:            0 4px 24px rgba(128, 0, 128, 0.35);
    --shadow-lg:         0 8px 40px rgba(128, 0, 128, 0.5);
    --radius:            0.75rem;
    --radius-sm:         0.5rem;
    --transition:        0.25s ease;
    --header-h:          70px;
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--header-h);
}

main { flex: 1; }

a { color: var(--accent); transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* =========================================================
   HEADER
   ========================================================= */
#main-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1050;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 1.5rem;
}

/* Logo / Brand */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--text) !important;
}

.brand-img-wrap {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(124, 58, 237, 0.35);
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.22);
    transition: box-shadow var(--transition);
}

.brand-logo:hover .brand-img-wrap {
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.38);
}

.brand-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1;
}

.brand-name {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text);
    text-transform: uppercase;
    line-height: 1.1;
}

.brand-tagline {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
    line-height: 1;
}

/* Nav links */
.header-nav { display: flex; align-items: center; gap: 0.25rem; }

.header-nav .nav-link {
    color: var(--text-muted) !important;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.header-nav .nav-link:hover,
.header-nav .nav-link.active {
    color: var(--text) !important;
    background: rgba(124, 58, 237, 0.15);
}

/* Header right actions */
.header-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

/* Verification warning badge in header */
.verify-badge {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--warning);
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.verify-badge:hover { background: rgba(245, 158, 11, 0.25); color: var(--warning); }

/* Hamburger toggle */
.hamburger-btn {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 0.4rem 0.6rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition);
}

.hamburger-btn:hover { background: rgba(124, 58, 237, 0.15); }

/* Mobile nav drawer */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    z-index: 1049;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav.open { display: flex; }

.mobile-nav .nav-link {
    color: var(--text-muted);
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition);
}

.mobile-nav .nav-link:hover { color: var(--text); background: rgba(124, 58, 237, 0.15); }

/* =========================================================
   FOOTER
   ========================================================= */
#main-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-brand .brand-name    { font-size: 1rem; letter-spacing: 0.08em; }
.footer-brand .brand-tagline { }

.footer-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    line-height: 1.7;
}

.footer-heading {
    color: var(--text);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-contact-item i { color: var(--accent); margin-top: 2px; flex-shrink: 0; }

.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    padding-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-bottom p { color: var(--text-dim); font-size: 0.8rem; margin: 0; }

/* =========================================================
   VERIFICATION WARNING BANNER
   ========================================================= */
.verify-banner {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.06));
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.7rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.verify-banner p {
    margin: 0;
    color: var(--warning);
    font-size: 0.875rem;
    font-weight: 500;
}

.verify-banner .btn-resend {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: var(--warning);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.verify-banner .btn-resend:hover { background: rgba(245, 158, 11, 0.35); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.75rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.3);
    letter-spacing: 0.02em;
}

.btn-primary-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
    color: #fff;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-hover));
}

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

.btn-outline-custom {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--accent);
    font-weight: 600;
    padding: 0.65rem 1.75rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.btn-outline-custom:hover {
    background: rgba(124, 58, 237, 0.12);
    border-color: var(--accent);
    color: var(--accent-hover);
}

.btn-google {
    background: #fff;
    border: 1px solid #E2E2E2;
    color: #3C4043;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    text-decoration: none !important;
}

.btn-google:hover { background: #F5F5F5; box-shadow: 0 2px 8px rgba(0,0,0,0.15); color: #3C4043; text-decoration: none !important; }

.btn-google img { height: 18px; width: 18px; }

/* Book Now button */
.btn-book-now {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    padding: 1rem 3rem;
    border-radius: 3rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 6px 32px rgba(124, 58, 237, 0.5);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-book-now::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    opacity: 0;
    transition: opacity var(--transition);
}

.btn-book-now:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(124, 58, 237, 0.65); color: #fff; }
.btn-book-now:hover::before { opacity: 1; }
.btn-book-now span { position: relative; z-index: 1; }

/* =========================================================
   CARDS
   ========================================================= */
.card-dark {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
}

.card-dark:hover { box-shadow: var(--shadow-lg); }

.card-dark .card-header {
    background: var(--bg-card-2);
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--text);
}

.card-dark .card-body { padding: 1.5rem; }

/* =========================================================
   FORMS
   ========================================================= */
.form-label-custom {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}

.form-control-dark {
    background: var(--bg-input) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.92rem !important;
    transition: all var(--transition) !important;
}

.form-control-dark::placeholder { color: var(--text-dim) !important; }

.form-control-dark:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2) !important;
    outline: none !important;
}

.form-control-dark:disabled,
.form-control-dark[readonly] {
    background: rgba(28, 21, 48, 0.5) !important;
    color: var(--text-dim) !important;
    cursor: not-allowed;
}

.form-select-dark {
    background-color: var(--bg-input) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239D93B8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.65rem 2.5rem 0.65rem 1rem !important;
    font-size: 0.92rem !important;
    transition: all var(--transition) !important;
}

.form-select-dark:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2) !important;
}

.form-check-input-custom {
    background-color: var(--bg-input) !important;
    border-color: var(--border-strong) !important;
}

.form-check-input-custom:checked {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
}

.form-check-input-custom:focus { box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2) !important; }

.invalid-feedback { font-size: 0.78rem; }

/* Input group */
.input-group-dark .input-group-text {
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

/* Password toggle */
.password-wrapper { position: relative; }
.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0.2rem;
    transition: color var(--transition);
    z-index: 5;
}
.password-toggle:hover { color: var(--accent); }

/* =========================================================
   SECTION TITLES
   ========================================================= */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.section-title span { color: var(--accent); }

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

.divider-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    margin: 0.75rem 0 1.5rem;
}

/* =========================================================
   AUTH PAGES (Login / Register)
   ========================================================= */
.auth-page {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: radial-gradient(ellipse at top left, rgba(59, 7, 100, 0.3) 0%, transparent 60%),
                radial-gradient(ellipse at bottom right, rgba(124, 58, 237, 0.15) 0%, transparent 60%),
                var(--bg);
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
}

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    gap: 0.5rem;
}

.auth-logo .logo-circle {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: #fff;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.auth-title { font-size: 1.5rem; font-weight: 700; color: var(--text); text-align: center; }
.auth-subtitle { color: var(--text-muted); font-size: 0.875rem; text-align: center; }

.divider-text {
    display: flex; align-items: center; gap: 1rem;
    color: var(--text-dim); font-size: 0.8rem;
    margin: 1.25rem 0;
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Password strength bar */
.password-strength { margin-top: 0.4rem; }
.strength-bar {
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    overflow: hidden;
    margin-bottom: 0.3rem;
}
.strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
    width: 0;
}
.strength-text { font-size: 0.75rem; color: var(--text-dim); }

/* =========================================================
   LANDING PAGE
   ========================================================= */
.hero-section {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 20% 50%, rgba(59, 7, 100, 0.5) 0%, transparent 55%),
                radial-gradient(ellipse at 80% 20%, rgba(124, 58, 237, 0.2) 0%, transparent 45%),
                var(--bg);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233B0764' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: var(--accent);
    border-radius: 2rem;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
}

.hero-badge i { font-size: 0.7rem; }

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent), #C084FC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 2rem;
}

/* Booking verification card on landing */
.booking-verify-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
}

.booking-verify-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.25rem;
}

/* Stats row on landing */
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 2.5rem; }

.stat-item .stat-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.stat-item .stat-num span { color: var(--accent); }
.stat-item .stat-label { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.2rem; }

/* Feature cards */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: all var(--transition);
    height: 100%;
}

.feature-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #fff;
    margin-bottom: 1rem;
}

.feature-card h5 { font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.875rem; margin: 0; }

/* Contact form section */
.contact-section { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* =========================================================
   HOME PAGE
   ========================================================= */
.home-page {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: radial-gradient(ellipse at center, rgba(59, 7, 100, 0.3) 0%, transparent 65%), var(--bg);
    position: relative;
    overflow: hidden;
}

.home-page .welcome-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.home-page .user-name {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 2.5rem;
}

.home-page .user-name span { color: var(--accent); }

.home-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 1.5rem;
    max-width: 400px;
}

/* Quick links below book now */
.quick-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

.quick-link-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.6rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    display: flex; align-items: center; gap: 0.5rem;
    transition: all var(--transition);
}

.quick-link-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(124, 58, 237, 0.08); }

/* =========================================================
   BOOKING WIZARD
   ========================================================= */
.booking-page { padding: 2rem 0 4rem; }

/* Step progress bar */
.wizard-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 2.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    width: 5rem;
}

.step-circle {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dim);
    transition: all var(--transition);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.wizard-step.active .step-circle {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.4);
}

.wizard-step.completed .step-circle {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.step-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
    transition: color var(--transition);
}

.wizard-step.active .step-label,
.wizard-step.completed .step-label { color: var(--accent); font-weight: 600; }

.step-connector {
    flex: 1;
    height: 2px;
    background: var(--border);
    min-width: 1.5rem;
    margin-top: 1.2rem;
    transition: background var(--transition);
    flex-shrink: 1;
}
.step-connector.filled { background: var(--accent); }

/* ── Vessel schedule cards ── */
.vessel-schedule-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s;
    background: var(--bg-card);
}
.vessel-schedule-card.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.vessel-card-img {
    position: relative;
    height: 130px;
}
.vessel-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.85rem 1rem;
}
.vessel-card-name {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
}
.vessel-card-time {
    color: rgba(255,255,255,0.8);
    font-size: 0.78rem;
    margin-top: 0.2rem;
}
.vessel-card-body {
    padding: 0.85rem 1rem;
}
.vessel-beds {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.vessel-accom-row {
    display: flex;
    gap: 0.5rem;
}
.vessel-accom-btn {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.6rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.18s;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.vessel-accom-btn:hover { border-color: var(--accent); background: rgba(124,58,237,0.05); }
.vessel-accom-btn.selected { border-color: var(--accent); background: rgba(124,58,237,0.1); }
.accom-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.vessel-accom-btn.selected .accom-label { color: var(--accent); }
.accom-price {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
}
.vessel-accom-btn.selected .accom-price { color: var(--accent); }

/* Booking card */
.booking-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.booking-card-header {
    background: var(--bg-card-2);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.75rem;
}

.booking-card-header h4 {
    font-weight: 700; color: var(--text); margin: 0;
    display: flex; align-items: center; gap: 0.6rem;
}

.booking-card-header h4 i { color: var(--accent); }

.booking-card-body { padding: 1.75rem; }

/* Passenger card in step 2 */
.passenger-card {
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    position: relative;
}

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

.passenger-num {
    display: flex; align-items: center; gap: 0.5rem;
    font-weight: 700; color: var(--text); font-size: 0.95rem;
}

.passenger-num .num-badge {
    width: 28px; height: 28px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; color: #fff; font-weight: 700;
}

/* Price breakdown */
.price-breakdown {
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.price-row:last-child { border-bottom: none; }

.price-row .label { color: var(--text-muted); }
.price-row .amount { color: var(--text); font-weight: 500; }

.price-row.total {
    font-size: 1rem;
    font-weight: 700;
    padding-top: 0.75rem;
}

.price-row.total .label { color: var(--text); }
.price-row.total .amount { color: var(--accent); font-size: 1.15rem; }

/* Review table */
.review-table { width: 100%; border-collapse: separate; border-spacing: 0; }

.review-table th {
    background: var(--bg-card-2);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.review-table td {
    color: var(--text);
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(124, 58, 237, 0.08);
    font-size: 0.9rem;
    vertical-align: middle;
}

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

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-upcoming  { background: rgba(59, 130, 246, 0.15); color: var(--info); border: 1px solid rgba(59, 130, 246, 0.3); }
.status-completed { background: rgba(34, 197, 94, 0.15);  color: var(--success); border: 1px solid rgba(34, 197, 94, 0.3); }
.status-cancelled { background: rgba(239, 68, 68, 0.15);  color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }

/* Booking navigation buttons */
.booking-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* =========================================================
   BOOKING HISTORY
   ========================================================= */
.history-page { padding: 2.5rem 0 4rem; }

.history-filters {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.booking-history-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all var(--transition);
}

.booking-history-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }

.booking-ref {
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* =========================================================
   PROFILE PAGE
   ========================================================= */
.profile-page { padding: 2.5rem 0 4rem; }

.profile-avatar {
    width: 88px; height: 88px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; color: #fff; font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.profile-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}

.profile-info-item:last-child { border-bottom: none; }
.profile-info-item .info-label { color: var(--text-dim); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.profile-info-item .info-value { color: var(--text); font-size: 0.95rem; }

/* =========================================================
   LOADING SPINNER / OVERLAY
   ========================================================= */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    gap: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.loading-spinner {
    width: 52px; height: 52px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text { color: var(--text); font-size: 0.9rem; font-weight: 600; }

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

/* Skeleton screen */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-2) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: var(--radius-sm);
}

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

/* =========================================================
   MODALS (Bootstrap dark overrides)
   ========================================================= */
.modal-dark .modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.modal-dark .modal-header {
    background: var(--bg-card-2);
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 1rem 1.5rem;
}

.modal-dark .modal-title { color: var(--text); font-weight: 700; }
.modal-dark .modal-body { padding: 1.5rem; color: var(--text); }
.modal-dark .modal-footer { border-top: 1px solid var(--border); padding: 1rem 1.5rem; }

.modal-dark .btn-close { filter: invert(1) grayscale(1); }

/* Terms list in modal */
.terms-list { list-style: none; padding: 0; margin: 0; }
.terms-list li {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted); font-size: 0.9rem; line-height: 1.6;
}
.terms-list li:last-child { border-bottom: none; }

/* =========================================================
   ALERTS / FLASH MESSAGES
   ========================================================= */
.alert-dark-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.1rem;
    font-size: 0.875rem;
}

.alert-dark-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.1rem;
    font-size: 0.875rem;
}

.alert-dark-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.1rem;
    font-size: 0.875rem;
}

/* =========================================================
   UTILITIES
   ========================================================= */
.text-accent    { color: var(--accent) !important; }
.text-muted-custom { color: var(--text-muted) !important; }
.bg-card-dark   { background: var(--bg-card) !important; }
.border-custom  { border-color: var(--border) !important; }

.page-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.page-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }

/* Back link */
.back-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    color: var(--text-muted); font-size: 0.875rem;
    text-decoration: none; margin-bottom: 1.5rem;
    transition: color var(--transition);
}
.back-link:hover { color: var(--accent); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991px) {
    .header-nav { display: none; }
    .hamburger-btn { display: flex; }
}

@media (max-width: 768px) {
    .auth-card { padding: 1.75rem 1.25rem; }
    .booking-card-body { padding: 1.25rem; }
    .hero-stats { gap: 1.5rem; }
    .booking-nav { flex-direction: column-reverse; gap: 0.75rem; }
    .booking-nav .btn { width: 100%; }
    .wizard-steps { justify-content: flex-start; padding: 0 1rem 0.5rem; }
    .step-label { display: none; }
    .history-filters { flex-direction: column; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2rem; }
    .btn-book-now { font-size: 1.1rem; padding: 0.85rem 2.25rem; }
    .section-title { font-size: 1.6rem; }
    /* Price breakdown: slightly smaller font so label + amount fit side-by-side */
    .price-row { font-size: 0.82rem; }
    .price-row.total .amount { font-size: 1.05rem; }
    /* Hide verify badge text, keep icon only */
    .verify-badge .badge-text { display: none; }
    /* Scale down reCAPTCHA v2 widget (304px fixed) on narrow phones */
    .g-recaptcha { transform: scale(0.85); transform-origin: center top; }
}
