/* assets/css/style.css - eNavik Mobile-First Maritime Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    /* Oceanic Color Palette aligned with Logo */
    --bg-base: #040d1a;
    --bg-surface: #07172e;
    --bg-card: rgba(8, 24, 48, 0.9);
    --bg-card-hover: rgba(12, 34, 66, 0.95);
    --bg-input: #051326;
    --bg-glass: rgba(7, 21, 42, 0.8);

    /* Nautical Blue & Cyan Accents from Logo */
    --navy-deep: #020b18;
    --navy-mid: #002b66;
    --primary-blue: #005bb5;
    --primary-cyan: #00a3e0;
    --primary-hover: #38c2f8;
    --accent-wave: #0048a8;
    --accent-gold: #f59e0b;
    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;

    /* Text */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #021024;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-light: rgba(0, 163, 224, 0.28);
    --border-glow: rgba(0, 163, 224, 0.5);

    /* Sizing & Radius */
    --radius-xs: 5px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 24px rgba(2, 10, 24, 0.6);
    --shadow-glow: 0 0 20px rgba(0, 163, 224, 0.35);

    /* Fonts - Professional & Compact */
    --font-heading: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 14.5px; /* Professional, sleek, compact font scaling */
    scroll-behavior: smooth;
    height: 100%;
}

body {
    min-height: 100%;
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 91, 181, 0.28), transparent),
        radial-gradient(ellipse 60% 40% at 90% 90%, rgba(0, 163, 224, 0.14), transparent),
        linear-gradient(180deg, #040d1a 0%, #07172e 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9375rem; /* ~13.5px */
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    overflow-x: hidden;
}

/* Typography - Professional & Crisp */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

a {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: var(--primary-hover);
}

/* App Container (Mobile First) */
.app-container {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    padding: 14px 14px 90px 14px;
    flex: 1;
}

.app-container-wide {
    max-width: 900px;
}

/* Offline & Online Notification Bars */
.offline-bar, .online-synced-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 10px 14px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.offline-bar {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    color: #ffffff;
}
.offline-bar.show {
    display: block;
}
.online-synced-bar {
    background: linear-gradient(135deg, #047857, #10b981);
    color: #ffffff;
}

/* Top App Header */
.app-header {
    background: rgba(6, 14, 25, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo-img {
    height: 38px;
    width: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(0, 163, 224, 0.45);
    box-shadow: 0 0 10px rgba(0, 163, 224, 0.3);
    background: #ffffff;
}

.brand-text-group {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #ffffff 40%, var(--primary-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.brand-badge-rpsl {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    color: #38bdf8;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Language Toggle Switch */
.lang-toggle {
    display: inline-flex;
    background: rgba(10, 23, 40, 0.9);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 2px;
}

.lang-btn {
    padding: 4px 9px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: var(--primary-blue);
    color: #ffffff;
    box-shadow: 0 1px 6px rgba(0, 119, 182, 0.4);
}

/* Bottom Navigation Bar (Dock) for Mobile */
.bottom-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(6, 14, 25, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)) 8px;
    z-index: 95;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 12px;
    color: var(--text-muted);
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    text-decoration: none;
    min-width: 60px;
}

.dock-item svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease, stroke 0.2s ease;
}

.dock-item:active {
    transform: scale(0.94);
}

.dock-item.active {
    color: var(--primary-cyan);
}
.dock-item.active svg {
    stroke: var(--primary-cyan);
    transform: translateY(-2px);
}

/* Cards & Surfaces */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.glass-card.highlight {
    border-color: var(--border-light);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    opacity: 0.5;
}

/* Step Header & Segmented Progress for Mobile */
.step-segmented-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.step-segment {
    flex: 1;
    height: 4px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.12);
    transition: background-color 0.3s ease;
}

.step-segment.active {
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-cyan));
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.5);
}

.step-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.step-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 180, 216, 0.15);
    border: 1px solid var(--border-light);
    color: var(--primary-cyan);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Forms & Modern Mobile Inputs */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem; /* 13px */
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-label span.req {
    color: var(--primary-cyan);
    font-weight: 700;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-container .input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-secondary);
    pointer-events: none;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

/* Input size: 48px height minimum for iOS touch target and 16px font to prevent zoom */
.form-input, .form-select, .form-textarea {
    width: 100%;
    min-height: 48px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 16px; /* Prevents auto-zoom on mobile safari */
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.input-container .form-input {
    padding-left: 44px;
    padding-right: 44px;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-cyan);
    background: rgba(10, 26, 48, 0.95);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

.form-helper {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
    line-height: 1.35;
}

/* Validation Icons */
.field-status {
    position: absolute;
    right: 14px;
    display: none;
    font-size: 1.1rem;
}
.field-status.valid {
    display: flex;
    color: var(--accent-emerald);
}
.field-status.invalid {
    display: flex;
    color: var(--accent-rose);
}

/* Touch-Friendly Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 0.9375rem; /* 15px */
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    text-decoration: none;
    user-select: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 119, 182, 0.35);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #0096c7, #48cae4);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.5);
    color: #ffffff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
}

.btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
    background: #1ebd5a;
    color: #ffffff;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
}

/* Floating Sticky Action Bar (Mobile Bottom CTA) */
.mobile-sticky-action {
    position: sticky;
    bottom: 60px; /* Above bottom dock */
    left: 0;
    right: 0;
    background: rgba(8, 20, 36, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-light);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 16px -14px -90px -14px;
    z-index: 90;
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.4);
}

/* Badges & Tags */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-teal {
    background: rgba(0, 180, 216, 0.15);
    color: var(--primary-cyan);
    border: 1px solid var(--border-light);
}
.badge-emerald {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-gold {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-red {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* RPSL Tabs Navigation */
.rpsl-tabs-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 8px 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.rpsl-tabs-nav::-webkit-scrollbar {
    display: none;
}
.rpsl-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 38px;
}
.rpsl-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.rpsl-tab-btn.active-valid {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.4);
}
.rpsl-tab-btn.active-invalid {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.4);
}
.rpsl-tab-btn.active-blocked {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.4);
}
.rpsl-tab-btn.active-all {
    background: rgba(0, 180, 216, 0.18);
    color: var(--primary-cyan);
    border-color: var(--border-light);
}
.rpsl-count-pill {
    padding: 2px 7px;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    background: rgba(0, 0, 0, 0.3);
}

/* Auto-Save Pill */
.autosave-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--primary-cyan);
    background: rgba(0, 180, 216, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}
.autosave-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 6px var(--accent-emerald);
}

/* PWA Install Alert */
.pwa-install-bar {
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.25), rgba(0, 180, 216, 0.18));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

/* Offline / Online Top Bar */
.offline-bar {
    background: var(--accent-rose);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    padding: 6px 12px;
    display: none;
}
.offline-bar.show {
    display: block;
}
.online-synced-bar {
    background: var(--accent-emerald);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    padding: 6px 12px;
    display: none;
}

/* Hero Badge Process Flow (Upload CV -> Hiring -> RPSL) */
.hero-process-strip {
    background: rgba(10, 23, 40, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 18px 0;
}

.hero-process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    flex: 1;
}

.hero-process-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 180, 216, 0.15);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary-cyan);
}

.hero-process-text {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.hero-process-arrow {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: bold;
}

/* Sea Service Mobile Cards */
.vessel-card {
    background: #09172a;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 14px;
    position: relative;
    transition: border-color 0.2s ease;
}
.vessel-card:focus-within, .vessel-card:hover {
    border-color: var(--primary-cyan);
}
.vessel-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.btn-delete-vessel {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.3);
    padding: 4px 8px;
    border-radius: var(--radius-xs);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

/* Digital CV Responsive Styling */
.cv-container {
    background: #ffffff;
    color: #0f172a;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    margin-bottom: 24px;
}

.cv-header-bar {
    background: linear-gradient(135deg, #06172d 0%, #0d2f5a 100%);
    color: #ffffff;
    padding: 24px 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

.cv-avatar-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cv-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-cyan);
    background: #060e19;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.cv-name-rank h2 {
    font-size: 1.35rem;
    color: #ffffff;
    margin-bottom: 2px;
}

.cv-badge-rank {
    display: inline-block;
    background: var(--primary-cyan);
    color: #021024;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cv-indos-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    text-align: right;
}
.cv-indos-label {
    font-size: 0.6875rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cv-indos-val {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-cyan);
}

.cv-body {
    padding: 20px 16px;
}

.cv-section {
    margin-bottom: 20px;
}
.cv-section-title {
    font-size: 0.9375rem;
    font-weight: 800;
    color: #0f172a;
    border-bottom: 2px solid #0077b6;
    padding-bottom: 4px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cv-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.cv-data-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
}
.cv-data-label {
    font-size: 0.6875rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
}
.cv-data-val {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 1px;
}

/* Sea Service: Mobile Voyage Card List */
.sea-voyage-mobile-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 10px;
}
.sea-voyage-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}
.sea-voyage-dates {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: #475569;
}

/* Desktop & Print Table */
.cv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    display: none; /* Shown on screens > 640px */
}
.cv-table th {
    background: #f1f5f9;
    color: #334155;
    font-weight: 700;
    text-align: left;
    padding: 8px 10px;
    border-bottom: 2px solid #cbd5e1;
}
.cv-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
}

/* ==========================================================
   Phase 1 Maritime Document Collapsible Cards & UI Enhancements
   ========================================================== */
.doc-collapse-card {
    background: rgba(7, 19, 34, 0.75);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    overflow: hidden;
    transition: all 0.25s ease;
}
.doc-collapse-card.active {
    border-color: var(--border-light);
    box-shadow: 0 4px 16px rgba(0, 180, 216, 0.12);
}
.doc-collapse-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    background: rgba(10, 23, 40, 0.6);
    transition: background 0.2s ease;
    min-height: 52px;
}
.doc-collapse-header:hover {
    background: rgba(13, 26, 45, 0.85);
}
.doc-collapse-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}
.doc-collapse-icon {
    font-size: 1.25rem;
    line-height: 1;
}
.doc-collapse-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
}
.doc-collapse-sub {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    margin-top: 1px;
}
.doc-collapse-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin-right: 8px;
}
.doc-badge-filled {
    background: rgba(16, 185, 129, 0.18);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.4);
}
.doc-badge-optional {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}
.doc-badge-officer {
    background: rgba(0, 180, 216, 0.15);
    color: var(--primary-cyan);
    border: 1px solid rgba(0, 180, 216, 0.35);
}
.doc-collapse-chevron {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: transform 0.25s ease;
}
.doc-collapse-card.active .doc-collapse-chevron {
    transform: rotate(180deg);
    color: var(--primary-cyan);
}
.doc-collapse-body {
    padding: 16px;
    border-top: 1px solid var(--border-subtle);
    display: none;
    animation: fadeIn 0.2s ease-in-out;
}
.doc-collapse-card.active .doc-collapse-body {
    display: block;
}

/* Visa Row Item */
.visa-entry-box {
    background: rgba(10, 23, 40, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 10px;
    transition: border-color 0.2s ease;
}
.visa-entry-box.not-held {
    opacity: 0.55;
    background: rgba(6, 14, 25, 0.6);
}
.visa-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.visa-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}
.visa-toggle-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6875rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}
.visa-toggle-label input {
    accent-color: var(--accent-rose);
    width: 15px;
    height: 15px;
}

/* Sailing Checkbox & Live Counter */
.current-sailing-box {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.12) 0%, rgba(2, 62, 138, 0.2) 100%);
    border: 1px solid rgba(0, 180, 216, 0.35);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    margin-bottom: 10px;
    min-height: 48px;
    cursor: pointer;
}
.sailing-active-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--accent-emerald);
    color: var(--accent-emerald);
    font-size: 0.6875rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulseGlow 2s infinite ease-in-out;
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 4px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 12px rgba(16, 185, 129, 0.8); }
}
.seatime-live-preview {
    font-size: 0.75rem;
    color: var(--primary-cyan);
    font-weight: 700;
    background: rgba(0, 180, 216, 0.12);
    border: 1px solid rgba(0, 180, 216, 0.25);
    border-radius: var(--radius-full);
    padding: 4px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.form-helper-hi {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 2px;
    font-style: normal;
}

/* Media Queries for Tablet & Desktop */
@media (min-width: 640px) {
    .app-container {
        padding: 24px 20px 80px 20px;
    }
    .cv-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .cv-table {
        display: table;
    }
    .sea-voyages-mobile-container {
        display: none;
    }
    .bottom-dock {
        max-width: 580px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        border-left: 1px solid var(--border-subtle);
        border-right: 1px solid var(--border-subtle);
    }
}

/* ==========================================================================
   PHASE 2 & 3 COMPONENTS (EXPIRIES, AVAILABILITY, INQUIRIES, BREAKDOWN, PRINT)
   ========================================================================== */

/* 1. Document Expiry Alerts Widget */
.expiry-widget-card {
    background: linear-gradient(135deg, rgba(15, 30, 52, 0.95), rgba(8, 20, 36, 0.98));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.expiry-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.expiry-filter-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.expiry-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}
.expiry-filter-btn.active, .expiry-filter-btn:hover {
    background: rgba(0, 180, 216, 0.15);
    color: #fff;
    border-color: var(--primary-cyan);
}
.expiry-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    border-left: 3px solid transparent;
    transition: background 0.15s ease;
}
.expiry-item-row:hover {
    background: rgba(255, 255, 255, 0.06);
}
.expiry-crit {
    border-left-color: #ef4444 !important;
}
.expiry-warn {
    border-left-color: #f59e0b !important;
}
.expiry-ok {
    border-left-color: #10b981 !important;
}

/* 2. Ready to Join Availability Card */
.availability-card {
    background: linear-gradient(135deg, rgba(10, 28, 50, 0.95), rgba(7, 21, 38, 0.95));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 14px;
}
.avail-toggle-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    background: rgba(0, 0, 0, 0.25);
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}
.avail-toggle-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 8px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.avail-toggle-btn.active {
    background: var(--primary-cyan);
    color: #061222;
    box-shadow: 0 2px 10px rgba(0, 180, 216, 0.35);
}
.avail-toggle-btn.active-leave {
    background: #f59e0b !important;
    color: #000 !important;
}
.avail-toggle-btn.active-sailing {
    background: #0ea5e9 !important;
    color: #fff !important;
}
.chip-toggle-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.choice-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.choice-chip:hover {
    border-color: var(--border-light);
    color: #fff;
}
.choice-chip.active {
    background: rgba(0, 180, 216, 0.2);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    font-weight: 700;
}
.contract-length-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.contract-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.contract-pill.active {
    background: rgba(0, 180, 216, 0.2);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

/* 3. Agency Inquiries & Bottom-Sheet Modal */
.inquiry-card {
    background: linear-gradient(135deg, rgba(14, 27, 46, 0.95), rgba(7, 18, 33, 0.95));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 14px;
}
.inquiry-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.inquiry-row:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-light);
}
.inquiry-badge-unread {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-cyan);
    box-shadow: 0 0 8px var(--primary-cyan);
    display: inline-block;
    flex-shrink: 0;
}
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}
.modal-overlay.open {
    display: flex;
}
.bottom-sheet {
    background: #08172b;
    border-top: 1px solid var(--border-light);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 540px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 20px 18px 30px 18px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* 4. Experience Breakdown Bars */
.breakdown-table-box {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.breakdown-row {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
}
.breakdown-progress-track {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 6px;
}
.breakdown-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0077b6, #00b4d8);
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* 5. RPSL Safety Card */
.rpsl-safety-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(217, 119, 6, 0.12));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-top: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

/* Media Queries for Tablet & Desktop */
@media (min-width: 640px) {
    .app-container {
        padding: 24px 20px 80px 20px;
    }
    .cv-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .cv-table {
        display: table;
    }
    .sea-voyages-mobile-container {
        display: none;
    }
    .bottom-dock {
        max-width: 580px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        border-left: 1px solid var(--border-subtle);
        border-right: 1px solid var(--border-subtle);
    }
}

/* Print Styles */
@media print {
    @page {
        size: A4 portrait;
        margin: 10mm 12mm;
    }
    body {
        background: #ffffff !important;
        color: #0f172a !important;
        padding: 0 !important;
        font-size: 11pt !important;
    }
    .app-header, .bottom-dock, .no-print, .mobile-sticky-action, .pwa-install-bar, .offline-bar, .online-synced-bar {
        display: none !important;
    }
    .app-container, .app-container-wide, .cv-view-wrapper {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    .cv-container {
        box-shadow: none !important;
        border: none !important;
        background: #ffffff !important;
        color: #0f172a !important;
    }
    .cv-header-bar {
        background: #032042 !important;
        color: #ffffff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        padding: 16px !important;
        page-break-after: avoid;
    }
    .cv-section {
        page-break-inside: avoid;
        margin-bottom: 12px !important;
    }
    .cv-table {
        display: table !important;
        width: 100% !important;
        border-collapse: collapse !important;
    }
    .cv-table th {
        background: #f1f5f9 !important;
        color: #0f172a !important;
        border: 1px solid #cbd5e1 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .cv-table td {
        border: 1px solid #cbd5e1 !important;
    }
    .sea-voyages-mobile-container {
        display: none !important;
    }
    .breakdown-row {
        page-break-inside: avoid;
    }
    .cv-recruiter-dock, .cv-quick-nav, .cv-toast, #btnToggleVoyages, .btn-copy-indos, .recruiter-pass-btn {
        display: none !important;
    }
    .voyage-extra {
        display: block !important;
    }
}

/* ==========================================================
   Mobile-First Public Digital CV Enhancements (Phase 4)
   ========================================================== */
html {
    scroll-behavior: smooth;
}

.public-cv-wrapper {
    padding-bottom: 95px !important; /* Space for sticky recruiter action dock */
}

/* 1. Recruiter Sticky Action Dock */
.cv-recruiter-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(3, 15, 30, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 180, 216, 0.4);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.3fr 0.8fr;
    gap: 8px;
    z-index: 990;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.5);
}

@media (min-width: 641px) {
    .cv-recruiter-dock {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        border-left: 1px solid rgba(0, 180, 216, 0.4);
        border-right: 1px solid rgba(0, 180, 216, 0.4);
    }
}

.dock-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    min-height: 44px;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    padding: 0 8px;
}

.dock-btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.35);
}
.dock-btn-whatsapp:active, .dock-btn-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-1px);
}

.dock-btn-call {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.45);
}
.dock-btn-call:active, .dock-btn-call:hover {
    background: rgba(14, 165, 233, 0.28);
    transform: translateY(-1px);
}

.dock-btn-inquiry {
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 180, 216, 0.35);
}
.dock-btn-inquiry:active, .dock-btn-inquiry:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.dock-btn-pdf {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.dock-btn-pdf:active, .dock-btn-pdf:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 2. Quick-Jump Anchor Navigation Bar */
.cv-quick-nav {
    position: sticky;
    top: 56px;
    z-index: 850;
    background: rgba(3, 15, 30, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 180, 216, 0.25);
    padding: 8px 12px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -16px 14px -16px;
}
.cv-quick-nav::-webkit-scrollbar {
    display: none;
}
.quick-nav-pill {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
}
.quick-nav-pill:active, .quick-nav-pill:hover {
    background: rgba(0, 180, 216, 0.25);
    border-color: var(--primary-cyan);
    color: #ffffff;
}

/* 3. Hero Micro-Badges & Copy INDOS Chip */
.hero-micro-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.micro-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6875rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.01em;
}
.micro-badge-ready {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}
.micro-badge-leave {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}
.micro-badge-sea {
    background: rgba(14, 165, 233, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.4);
}
.micro-badge-doc {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.indos-copy-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 180, 216, 0.15);
    border: 1px solid rgba(0, 180, 216, 0.4);
    color: var(--primary-cyan);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.indos-copy-chip:hover, .indos-copy-chip:active {
    background: rgba(0, 180, 216, 0.3);
}

/* 4. Nautical Logbook Sea Voyage Cards */
.sea-voyage-mobile-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0077b6;
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}
.sea-voyage-mobile-card:hover {
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.12);
}

/* 5. 48-Hour Recruiter Document Pass Card */
.recruiter-pass-card {
    background: linear-gradient(135deg, #f0fdf4, #e0f2fe);
    border: 1.5px dashed #0284c7;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.recruiter-pass-card .recruiter-pass-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}

/* 6. Floating Toast for Copy/Share */
.cv-toast {
    position: fixed;
    top: 66px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(3, 15, 30, 0.96);
    color: #ffffff;
    border: 1px solid var(--primary-cyan);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 0.8125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.cv-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 7. iOS-Style Privacy Toggle Switch */
.toggle-slider {
    width: 48px;
    height: 26px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    position: relative;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.toggle-slider.active {
    background: #10b981;
    border-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}
.toggle-knob {
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 3px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}
.toggle-slider.active .toggle-knob {
    transform: translateX(21px);
}

/* 8. Professional Compact Mobile Typography (Auto-fit for 360px - 480px) */
@media (max-width: 640px) {
    .cv-header-bar {
        padding: 12px 14px;
        gap: 10px;
    }
    .cv-header-bar h2 {
        font-size: 1.15rem !important;
        font-weight: 800;
        letter-spacing: -0.01em;
        line-height: 1.25;
    }
    .cv-avatar {
        width: 52px;
        height: 52px;
        border-width: 2px;
    }
    .cv-badge-rank {
        font-size: 0.6875rem !important;
        padding: 2px 7px;
        font-weight: 700;
    }
    .cv-indos-box {
        padding: 5px 8px;
    }
    .cv-indos-label {
        font-size: 0.625rem !important;
        letter-spacing: 0.03em;
    }
    .cv-indos-val {
        font-size: 0.9375rem !important;
        font-weight: 800;
    }
    .cv-body {
        padding: 14px 14px 20px 14px;
    }
    .cv-section {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    .cv-section-title {
        font-size: 0.8125rem !important;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 8px;
        padding-bottom: 4px;
        color: #032042;
    }
    .cv-data-item {
        padding: 6px 10px;
    }
    .cv-data-label {
        font-size: 0.625rem !important;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        color: #64748b;
    }
    .cv-data-val {
        font-size: 0.8125rem !important;
        font-weight: 700;
        color: #0f172a;
        margin-top: 2px;
        line-height: 1.35;
    }
    .sea-voyage-mobile-card {
        padding: 10px 12px;
        margin-bottom: 8px;
    }
    .sea-voyage-row strong {
        font-size: 0.875rem !important;
    }
    .quick-nav-pill {
        font-size: 0.6875rem !important;
        padding: 5px 10px;
        min-height: 32px;
        gap: 4px;
    }
    .dock-btn {
        font-size: 0.75rem !important;
        height: 42px;
        min-height: 42px;
        padding: 0 6px;
        gap: 4px;
    }
    .dock-btn svg {
        width: 16px;
        height: 16px;
    }
    .micro-badge {
        font-size: 0.625rem !important;
        padding: 2px 6px;
        font-weight: 700;
    }
    .hero-micro-badges {
        gap: 4px;
        margin-top: 6px;
    }
    .recruiter-pass-card {
        padding: 10px 12px;
    }
    .recruiter-pass-card strong {
        font-size: 0.8125rem !important;
    }
    .breakdown-table-box {
        padding: 6px 8px;
    }
    .breakdown-row {
        padding: 6px 0;
    }
}

/* 9. Maritime Recruiter Suitability & Joining Matrix */
.public-cv-wrapper {
    padding-bottom: 90px;
}

.suitability-matrix-card {
    background: linear-gradient(145deg, #021a36 0%, #032b57 100%) !important;
    border: 1.5px solid rgba(0, 180, 216, 0.5) !important;
    border-top: 3px solid #00b4d8 !important;
    border-radius: var(--radius-md) !important;
    padding: 14px 16px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(2, 26, 54, 0.45);
    color: #ffffff !important;
}
.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 12px;
}
@media (max-width: 480px) {
    .matrix-grid {
        grid-template-columns: 1fr;
    }
}
.matrix-cell {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.matrix-cell-icon {
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}
.matrix-cell-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}
.matrix-cell-val {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 2px;
    line-height: 1.25;
}

/* 10. Structured Vessel Lineup Ticket (Boarding Pass Theme) */
.vessel-lineup-ticket {
    background: linear-gradient(135deg, rgba(3, 32, 66, 0.95), rgba(4, 47, 94, 0.95));
    border: 1.5px solid #00b4d8;
    border-radius: var(--radius-md);
    padding: 14px;
    margin-top: 8px;
    margin-bottom: 8px;
    position: relative;
    box-shadow: 0 4px 14px rgba(0, 180, 216, 0.18);
}
.lineup-ticket-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
    padding-bottom: 8px;
    margin-bottom: 10px;
}
.lineup-tag-pill {
    background: rgba(0, 180, 216, 0.18);
    color: #7dd3fc;
    border: 1px solid rgba(0, 180, 216, 0.35);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.lineup-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.badge-rpsl-verified {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.25));
    border: 1px solid #10b981;
    color: #34d399;
    font-size: 0.6875rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 11. RPSL Live Autocomplete Dropdown */
.rpsl-autocomplete-box {
    position: relative;
}
.rpsl-autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #041b36;
    border: 1.5px solid #00b4d8;
    border-radius: var(--radius-sm);
    max-height: 220px;
    overflow-y: auto;
    z-index: 1050;
    margin-top: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    display: none;
}
.rpsl-autocomplete-item {
    padding: 9px 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.15s ease;
}
.rpsl-autocomplete-item:hover,
.rpsl-autocomplete-item.active {
    background: rgba(0, 180, 216, 0.2);
}
.rpsl-autocomplete-item:last-child {
    border-bottom: none;
}

/* 12. Responsive Lineup & Offer Modal */
.lineup-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1100;
    justify-content: center;
    align-items: flex-end;
    padding: 0;
}
.lineup-modal-dialog {
    width: 100%;
    max-width: 540px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 22px 18px 26px;
    margin: 0;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(0, 180, 216, 0.4);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
    animation: slideUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 641px) {
    .lineup-modal-backdrop {
        align-items: center;
        padding: 20px;
    }
    .lineup-modal-dialog {
        border-radius: var(--radius-lg);
        max-height: 85vh;
        margin: auto;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    }
}
@keyframes slideUpModal {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   STATE-OF-THE-ART REALTIME HUD & FLOATING TOASTS
   ========================================================================== */
.realtime-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    width: calc(100% - 32px);
    pointer-events: none;
}

@media (max-width: 640px) {
    .realtime-toast-container {
        top: 14px;
        right: 16px;
        left: 16px;
        max-width: none;
        width: auto;
    }
}

.realtime-toast {
    pointer-events: auto;
    background: rgba(4, 18, 38, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 242, 254, 0.45);
    border-radius: var(--radius-md);
    padding: 16px;
    color: #f8fafc;
    box-shadow: 0 12px 35px rgba(2, 10, 25, 0.75), 0 0 20px rgba(0, 242, 254, 0.2);
    position: relative;
    overflow: hidden;
    transform: translateY(-20px) scale(0.96);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.realtime-toast.visible {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.realtime-toast.hiding {
    transform: translateY(-15px) scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.toast-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-icon {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(0, 242, 254, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.toast-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9375rem;
    color: #fff;
    letter-spacing: -0.01em;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #fff;
}

.toast-body {
    font-size: 0.8125rem;
    color: #cbd5e1;
    line-height: 1.45;
    margin-bottom: 10px;
}

.toast-body strong {
    color: #fff;
}

.toast-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.toast-action-btn {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.4);
}

.toast-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
}

.toast-progress-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #00b4d8, #10b981);
    animation: toastCountdown 7s linear forwards;
}

@keyframes toastCountdown {
    from { width: 100%; }
    to { width: 0%; }
}

/* Radar Beacon & Live Pulse Indicators */
.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid #10b981;
    animation: radarPulse 1.8s infinite cubic-bezier(0, 0.2, 0.8, 1);
}

.pulse-dot.offline {
    background: #f59e0b;
}

.pulse-dot.offline::after {
    border-color: #f59e0b;
}

@keyframes radarPulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.4); opacity: 0; }
}

.pulse-glow {
    animation: pulseGlowAnim 1.4s ease-in-out infinite alternate;
}

@keyframes pulseGlowAnim {
    from { box-shadow: 0 0 6px rgba(0, 242, 254, 0.4); }
    to { box-shadow: 0 0 16px rgba(0, 242, 254, 0.9); }
}

.pulse-highlight {
    animation: pulseCardHighlight 2.5s ease-out forwards;
}

@keyframes pulseCardHighlight {
    0% {
        box-shadow: 0 0 25px rgba(0, 242, 254, 0.7);
        border-color: #00f2fe;
    }
    100% {
        box-shadow: var(--shadow-md);
        border-color: rgba(0, 180, 216, 0.3);
    }
}

/* ==========================================================================
   HOLOGRAPHIC BIOMETRIC SEAFARER SMART CARD
   ========================================================================== */
.seafarer-smart-card {
    background: linear-gradient(135deg, #041226 0%, #082142 50%, #03142d 100%);
    border: 1px solid rgba(0, 242, 254, 0.35);
    border-radius: var(--radius-xl);
    padding: 22px 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 30px rgba(0, 180, 216, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.seafarer-smart-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 35px rgba(0, 242, 254, 0.25);
    border-color: rgba(0, 242, 254, 0.6);
}

/* Holographic Shimmer Sheen */
.seafarer-smart-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        115deg,
        transparent 35%,
        rgba(0, 242, 254, 0.08) 42%,
        rgba(255, 255, 255, 0.16) 48%,
        rgba(16, 185, 129, 0.1) 53%,
        transparent 60%
    );
    pointer-events: none;
    animation: holoShimmer 7s infinite ease-in-out;
}

@keyframes holoShimmer {
    0% { transform: translateX(-60%) translateY(-30%) rotate(25deg); }
    50% { transform: translateX(60%) translateY(30%) rotate(25deg); }
    100% { transform: translateX(-60%) translateY(-30%) rotate(25deg); }
}

.smart-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.smart-card-authority {
    display: flex;
    align-items: center;
    gap: 10px;
}

.smart-card-flag {
    font-size: 1.4rem;
    line-height: 1;
}

.smart-card-auth-text {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #93c5fd;
    line-height: 1.2;
}

.smart-card-auth-sub {
    font-size: 0.65rem;
    color: #64748b;
    letter-spacing: 0.03em;
}

/* Microchip Graphics */
.smart-card-chip {
    width: 44px;
    height: 34px;
    background: linear-gradient(135deg, #e6b800 0%, #ffd700 45%, #b38600 100%);
    border-radius: 6px;
    border: 1px solid #997300;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 2px 6px rgba(0, 0, 0, 0.4);
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 2px;
    padding: 3px;
}

.smart-card-chip span {
    border: 1px solid rgba(153, 115, 0, 0.7);
    border-radius: 2px;
}

.smart-card-main {
    display: flex;
    gap: 20px;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (max-width: 600px) {
    .smart-card-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

.smart-card-photo-box {
    position: relative;
    flex-shrink: 0;
}

.smart-card-photo {
    width: 90px;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(0, 242, 254, 0.6);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
    background: #020814;
}

.smart-card-verified-seal {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #10b981;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    border: 2px solid #041226;
}

.smart-card-details {
    flex: 1;
    min-width: 0;
}

.smart-card-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.smart-card-rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(0, 180, 216, 0.18);
    border: 1px solid rgba(0, 242, 254, 0.4);
    border-radius: var(--radius-full);
    color: #38bdf8;
    font-weight: 700;
    font-size: 0.8125rem;
    margin: 6px 0 10px 0;
}

.smart-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px 14px;
    margin-top: 8px;
}

.smart-card-item {
    font-size: 0.6875rem;
}

.smart-card-label {
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 2px;
}

.smart-card-value {
    color: #e2e8f0;
    font-weight: 700;
    font-size: 0.8125rem;
    font-family: monospace;
}

.smart-card-bottom {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.smart-card-barcode {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: #94a3b8;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: 4px;
    border-left: 3px solid #00f2fe;
}

/* ==========================================================================
   RECRUITER MOBILE FLOATING ACTION DOCK
   ========================================================================== */
.recruiter-floating-dock {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 580px;
    background: rgba(4, 18, 38, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 242, 254, 0.4);
    border-radius: var(--radius-full);
    padding: 8px 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 180, 216, 0.25);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    animation: slideUpFloatingDock 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFloatingDock {
    from { transform: translate(-50%, 40px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.recruiter-dock-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    font-size: 0.78125rem;
    font-weight: 800;
    border-radius: var(--radius-full);
    text-decoration: none;
    min-height: 40px;
    white-space: nowrap;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.recruiter-dock-btn:active {
    transform: scale(0.96);
}

.dock-btn-whatsapp {
    background: #25d366;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.dock-btn-offer {
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 180, 216, 0.4);
}

.dock-btn-outline {
    background: rgba(255, 255, 255, 0.08);
    color: #38bdf8;
    border: 1px solid rgba(0, 242, 254, 0.3);
}

/* ========================================================
   LANDING PAGE ENHANCEMENT: DUAL FLOW & PWA INSTALL DOCK
   ======================================================== */

.landing-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 180, 216, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.35);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 16px;
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.2);
}

.hero-main-title {
    font-size: clamp(1.45rem, 3.2vw, 2.05rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin-bottom: 10px;
    color: #ffffff;
}

.hero-main-title .gradient-text {
    background: linear-gradient(135deg, #00a3e0 0%, #38c2f8 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    max-width: 660px;
    margin: 0 auto 20px auto;
    line-height: 1.5;
}

/* Role Segmented Controller */
.role-segmented-controller {
    display: inline-flex;
    background: rgba(10, 23, 40, 0.85);
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: var(--radius-full);
    padding: 4px;
    gap: 4px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    max-width: 100%;
    overflow-x: auto;
}

.role-tab-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.role-tab-btn.active {
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 180, 216, 0.4);
}

.role-tab-btn:hover:not(.active) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* Dual Path Cards Grid */
.dual-path-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 12px;
}

.path-card {
    background: rgba(10, 23, 40, 0.75);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.path-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 180, 216, 0.25);
}

.path-card.crew-path {
    border-top: 4px solid #00b4d8;
}

.path-card.rpsl-path {
    border-top: 4px solid #10b981;
}

.path-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.path-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.path-card.crew-path .path-card-icon {
    background: rgba(0, 180, 216, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(0, 180, 216, 0.3);
}

.path-card.rpsl-path .path-card-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.path-card-badge {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.path-feature-list {
    list-style: none;
    margin: 16px 0 22px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.path-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.84375rem;
    color: #e2e8f0;
    line-height: 1.4;
}

.path-feature-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Process Section */
.process-section {
    background: rgba(10, 23, 40, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 32px 20px;
    margin-top: 8px;
    position: relative;
}

.section-head-center {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 28px auto;
}

.section-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 4-Step Flow Grid */
.step-flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.flow-step-card {
    background: rgba(13, 26, 45, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.flow-step-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 180, 216, 0.4);
}

.flow-step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.flow-step-num {
    font-size: 0.75rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #38bdf8;
    background: rgba(0, 180, 216, 0.15);
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: var(--radius-full);
    padding: 2px 8px;
}

.flow-step-icon {
    font-size: 1.6rem;
}

.flow-step-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.flow-step-hi {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 8px;
    font-style: italic;
}

.flow-step-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.45;
    flex: 1;
}

.flow-step-tag {
    margin-top: 12px;
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #7dd3fc;
}

/* Feature Grid */
.features-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.feature-glass-box {
    background: rgba(13, 26, 45, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 18px;
    transition: all 0.2s ease;
}

.feature-glass-box:hover {
    background: rgba(18, 36, 62, 0.85);
    border-color: rgba(0, 180, 216, 0.3);
}

.feature-glass-box-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: inline-block;
}

/* Comparison Table */
.comparison-card {
    background: rgba(10, 23, 40, 0.8);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: 16px 0;
}

.comparison-table {
    width: 100%;
    min-width: 540px;
    border-collapse: collapse;
    font-size: 0.84375rem;
    text-align: left;
}

.comparison-table th {
    background: rgba(0, 30, 60, 0.6);
    padding: 14px 16px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

.comparison-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.comparison-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table .highlight-col {
    color: #38bdf8;
    font-weight: 600;
    background: rgba(0, 180, 216, 0.04);
}

.status-cross {
    color: #f87171;
    font-weight: 700;
}

.status-check {
    color: #34d399;
    font-weight: 700;
}

/* Stats Metric Strip */
.stats-metrics-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.stat-metric-card {
    background: rgba(10, 23, 40, 0.7);
    border: 1px solid rgba(0, 180, 216, 0.2);
    border-radius: var(--radius-md);
    padding: 14px 10px;
    text-align: center;
}

.stat-metric-val {
    font-size: 1.45rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #38bdf8;
    margin-bottom: 2px;
}

.stat-metric-lbl {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* SMART PWA FLOATING NOTIFICATION DOCK (Appears after reading / scroll) */
.pwa-smart-notification {
    position: fixed;
    bottom: 74px;
    right: 20px;
    max-width: 420px;
    width: calc(100% - 40px);
    background: rgba(6, 16, 30, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 242, 254, 0.45);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 30px rgba(0, 180, 216, 0.35);
    z-index: 999;
    display: none;
    transform: translateY(60px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.pwa-smart-notification.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.pwa-smart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.pwa-smart-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pwa-smart-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    box-shadow: 0 0 12px rgba(0, 180, 216, 0.4);
}

.pwa-smart-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.pwa-smart-sub {
    font-size: 0.71875rem;
    color: #38bdf8;
    font-weight: 600;
}

.pwa-smart-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    border-radius: 4px;
}
.pwa-smart-close:hover {
    color: #ffffff;
}

.pwa-smart-desc {
    font-size: 0.78125rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 12px;
}

.pwa-smart-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pwa-btn-install {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
    min-height: 38px;
    transition: transform 0.15s ease;
}
.pwa-btn-install:active {
    transform: scale(0.97);
}

.pwa-btn-later {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    min-height: 38px;
}

/* iOS PWA Instructions Modal */
.ios-pwa-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ios-pwa-modal-card {
    background: #0a1728;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-md);
}

@media (max-width: 600px) {
    .pwa-smart-notification {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 74px;
    }
    .role-segmented-controller {
        width: 100%;
    }
    .role-tab-btn {
        flex: 1;
        justify-content: center;
        padding: 9px 12px;
        font-size: 0.78125rem;
    }
}

/* ==========================================================
   CREW INVITES & MARITIME BROTHERHOOD REFERRAL STYLES
   ========================================================== */
.crew-invite-card {
    background: linear-gradient(135deg, rgba(7, 24, 46, 0.95) 0%, rgba(10, 36, 68, 0.95) 100%);
    border: 1.5px solid rgba(0, 180, 216, 0.35);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}
.crew-invite-card::before {
    content: "⚓";
    position: absolute;
    right: -10px;
    bottom: -15px;
    font-size: 5rem;
    opacity: 0.05;
    pointer-events: none;
}
.crew-invite-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 180, 216, 0.15);
    border: 1px solid rgba(0, 180, 216, 0.4);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 0.6875rem;
    font-weight: 800;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.invite-stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 10px;
    margin: 12px 0;
    text-align: center;
}
.invite-stat-num {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}
.invite-stat-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

/* Modal Tabs */
.invite-tab-nav {
    display: flex;
    background: rgba(0, 0, 0, 0.35);
    border-radius: var(--radius-sm);
    padding: 3px;
    gap: 4px;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}
.invite-tab-nav::-webkit-scrollbar {
    display: none;
}
.invite-tab-nav-btn {
    flex: 1;
    min-width: fit-content;
    padding: 7px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-align: center;
}
.invite-tab-nav-btn.active {
    background: var(--primary-cyan);
    color: #040e1a;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0, 180, 216, 0.35);
}

/* Crew Network Card */
.crew-network-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.crew-network-card:hover {
    background: rgba(0, 180, 216, 0.06);
    border-color: rgba(0, 180, 216, 0.3);
}

/* QR Code Container */
.qr-showcase-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    margin: 10px auto;
}

/* ==========================================================================
   MLC 2006 REST HOURS & MARITIME COMPLIANCE (Regulation 2.3)
   ========================================================================== */
.rest-hours-card {
    background: linear-gradient(135deg, rgba(8, 24, 48, 0.95), rgba(4, 15, 30, 0.98));
    border: 1px solid rgba(0, 180, 216, 0.35);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
}

.rest-hours-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.rest-timeline-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 8px;
    margin: 10px 0;
}

.rest-hour-grid {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 2px;
    margin-top: 6px;
}

.hour-cell {
    height: 38px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hour-cell.rest {
    background: linear-gradient(180deg, #059669, #047857);
    color: #ffffff;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.3);
}

.hour-cell.work {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
}

.hour-cell-num {
    font-size: 0.55rem;
    opacity: 0.8;
}

.rest-summary-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.rest-summary-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 8px;
    text-align: center;
}

.rest-summary-val {
    font-size: 1.15rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1.1;
}

.rest-summary-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}

/* ==========================================================================
   MMD PROMOTION & CAREER ROADMAP ENGINE
   ========================================================================== */
.career-roadmap-card {
    background: linear-gradient(135deg, rgba(7, 26, 54, 0.95), rgba(3, 13, 28, 0.98));
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
}

.career-step-badge {
    background: linear-gradient(135deg, #0077b6, #005bb5);
    color: #fff;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.career-criteria-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
}
.career-criteria-item:last-child {
    border-bottom: none;
}

/* ==========================================================================
   STCW 5-YEAR REFRESHER EXPIRE ALERTS
   ========================================================================== */
.stcw-refresher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.stcw-refresher-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: all 0.2s ease;
}

.stcw-refresher-item.status-valid {
    border-left: 3px solid #10b981;
}
.stcw-refresher-item.status-warning {
    border-left: 3px solid #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}
.stcw-refresher-item.status-expired {
    border-left: 3px solid #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.refresher-code-pill {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary-cyan);
    letter-spacing: 0.5px;
}

.refresher-name-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.refresher-expiry-text {
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   ANTI-FRAUD DG WARNING BANNER & BLACKLIST BADGE
   ========================================================================== */
.fraud-blacklist-alert {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(153, 27, 27, 0.2));
    border: 1.5px solid rgba(239, 68, 68, 0.45);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}





