/* ══════════════════════════════════════════════════════════════
   YACHTCARE GUEST PORTAL — LIGHT GLASSMORPHISM LUXURY DESIGN SYSTEM
   Theme: Pearlescent Ice + Frosted Crystal Glass + Deep Slate Navy
   ══════════════════════════════════════════════════════════════ */

:root {
    --bg-app: #f1f5f9;
    --glass-bg: rgba(255, 255, 255, 0.78);
    --glass-card: rgba(255, 255, 255, 0.75);
    --glass-card-hover: rgba(255, 255, 255, 0.95);
    --glass-surface: rgba(248, 250, 252, 0.85);
    
    --border-glass: rgba(255, 255, 255, 0.95);
    --border-subtle: rgba(15, 23, 42, 0.08);
    --border-light: rgba(15, 23, 42, 0.12);
    
    --accent-primary: #0284c7;  /* Ocean Blue */
    --accent-teal: #06b6d4;     /* Vibrant Cyan */
    --accent-gold: #d97706;     /* Rich Amber */
    --accent-coral: #e11d48;    /* Rose Coral */
    --accent-green: #16a34a;    /* Emerald Green */
    --accent-navy: #0f172a;     /* Deep Slate Navy */
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-glass: 0 15px 35px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    --shadow-modal: 0 25px 60px rgba(15, 23, 42, 0.18);
    --font-sans: 'Outfit', sans-serif;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-app);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    color-scheme: light;
    position: relative;
}

/* ─── AMBIENT LIGHT GLOW ORBS ─── */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
}

.glow-1 {
    width: 380px;
    height: 380px;
    background: #e0f2fe;
    top: -80px;
    left: 5%;
}

.glow-2 {
    width: 420px;
    height: 420px;
    background: #bae6fd;
    bottom: 5%;
    right: 5%;
}

.glow-3 {
    width: 280px;
    height: 280px;
    background: #fef3c7;
    top: 35%;
    left: 15%;
    opacity: 0.35;
}

/* APP SHELL CONTAINER */
.client-app-shell {
    width: 100%;
    max-width: 520px;
    background: rgba(248, 250, 252, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-left: 1px solid var(--border-glass);
    border-right: 1px solid var(--border-glass);
    box-shadow: 0 0 50px rgba(15, 23, 42, 0.08);
    z-index: 10;
}

/* ─── LIGHT GLASSMORPHIC HEADER ─── */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: sticky;
    top: 0;
    z-index: 90;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

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

.logo-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(2, 132, 199, 0.1);
    border: 1.5px solid rgba(2, 132, 199, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

.svg-icon-logo {
    width: 22px;
    height: 22px;
}

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

.logo-name {
    font-weight: 800;
    font-size: 16.5px;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.logo-sub {
    font-size: 10px;
    color: var(--accent-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-select {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 800;
    font-family: var(--font-sans);
    color: var(--text-primary);
    cursor: pointer;
    outline: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.lang-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.2);
}

.notif-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid var(--border-subtle);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}

.notif-btn:hover {
    background: #ffffff;
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.svg-icon-hdr {
    width: 21px;
    height: 21px;
}

/* INSIGNIA "1" DE NOTIFICACIÓN MÁS DESTACADA Y ANIMADA */
.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 3px 10px rgba(225, 29, 72, 0.45);
    animation: badge-pulse-glow 2.4s ease-in-out infinite;
}

@keyframes badge-pulse-glow {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.5); }
    50% { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(225, 29, 72, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

.active-profile {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-teal));
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
    border: 2px solid #ffffff;
}

/* MAIN SCROLLABLE AREA */
.app-main {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 90px;
}

/* ─── FULL-PAGE VIEWS NAVIGATION SYSTEM ─── */
.page-view {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    animation: fadeInView 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
}

.view-header h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}

.btn-back {
    background: rgba(2, 132, 199, 0.1);
    border: 1px solid rgba(2, 132, 199, 0.25);
    color: var(--accent-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-back:hover {
    background: rgba(2, 132, 199, 0.2);
}

.svg-back {
    width: 16px;
    height: 16px;
}

.view-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 20px;
}

/* ─── YACHT HERO CARD ─── */
.yacht-hero-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1.5px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
    position: relative;
    height: 250px;
    width: 100%;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.yacht-hero-card:hover {
    transform: scale(1.005);
}

.hero-image-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.15) 30%, rgba(15,23,42,0.6) 100%);
}

.hero-gallery-trigger-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--border-glass);
    color: var(--accent-navy);
    font-size: 11px;
    font-weight: 800;
    padding: 5px 11px;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    z-index: 5;
}

.svg-cam-icon {
    width: 14px;
    height: 14px;
    color: var(--accent-primary);
}

.hero-status-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(22, 163, 74, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 5;
}

.svg-tag-icon {
    width: 14px;
    height: 14px;
}

/* BARRA DELGADA Y ELEGANTE AL PIE DE LA FOTO */
.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1.5px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
}

.hero-text-block {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.hero-text-block h1 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.hero-feet-badge {
    background: rgba(2, 132, 199, 0.12);
    color: var(--accent-primary);
    border: 1.5px solid rgba(2, 132, 199, 0.3);
    font-size: 12px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 10px;
}

.hero-subtext {
    font-size: 11.5px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero-subtext strong {
    color: var(--text-primary);
}

.svg-inline-icon {
    width: 13px;
    height: 13px;
    color: var(--accent-primary);
}

/* ─── LIGHTBOX CARRUSEL DE FOTOS DEL YATE ─── */
/* ─── UNIFIED STRICT MODAL OVERLAY & CONTAINER (FIX HORIZONTAL DISPLACEMENT) ─── */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    z-index: 99999 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
}

.modal-overlay[style*="display: none"],
.modal-overlay[style*="display:none"] {
    display: none !important;
}

.modal-card {
    background: #ffffff !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 20px !important;
    width: 100% !important;
    max-width: 440px !important;
    max-height: 85vh !important;
    overflow: hidden !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25) !important;
    animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
}

@keyframes modalPopIn {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ─── STYLED MODAL HEADER, TITLE, AND CLOSE BUTTON ─── */
.modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    padding: 18px 20px 14px 20px !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    background: rgba(248, 250, 252, 0.8) !important;
    position: relative !important;
}

.modal-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}

.modal-sub {
    font-size: 12px !important;
    color: var(--text-muted) !important;
    margin: 3px 0 0 0 !important;
    line-height: 1.3 !important;
}

.modal-close {
    background: rgba(15, 23, 42, 0.06) !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    color: var(--text-secondary) !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    margin-left: 12px !important;
    transition: var(--transition) !important;
}

.modal-close:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
}

.gallery-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeInView 0.25s ease;
}

.gallery-modal-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(30px);
    border: 1.5px solid var(--border-glass);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    padding: 20px 16px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
}

.gallery-close-btn {
    position: absolute;
    top: -14px;
    right: -14px;
    background: var(--accent-navy);
    color: #ffffff;
    border: 2px solid #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.gallery-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.gallery-slide-container {
    flex: 1;
    height: 280px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-subtle);
    background: #0f172a;
}

.gallery-current-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.gallery-caption-bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.85));
    padding: 14px 14px 10px 14px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-title {
    font-size: 12.5px;
    font-weight: 700;
}

.gallery-counter {
    font-size: 11px;
    font-weight: 800;
    background: rgba(2, 132, 199, 0.8);
    padding: 2px 8px;
    border-radius: 8px;
}

.gallery-nav-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.gallery-nav-btn:hover {
    background: var(--accent-primary);
    color: #ffffff;
}

.gallery-thumbs-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.gallery-thumb-item {
    width: 65px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.65;
    transition: var(--transition);
    flex-shrink: 0;
}

.gallery-thumb-item.active {
    border-color: var(--accent-primary);
    opacity: 1;
    transform: scale(1.05);
}

.gallery-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─── NOTIFICATION BANNER AREA (MÁS NOTABLE & ANIMADA) ─── */
.notification-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-notif-card {
    background: var(--glass-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow-glass);
    overflow: hidden;
}

.home-notif-card.notif-warning {
    border: 1.5px solid rgba(217, 119, 6, 0.45);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(254, 243, 199, 0.35));
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.home-notif-card.notif-warning:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.2);
}

/* NOTIFICATION HEADER ROW (ALWAYS VISIBLE) */
.notif-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.notif-left-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notif-icon-wrap {
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 6px rgba(217, 119, 6, 0.35));
}

.svg-icon-alert {
    width: 25px;
    height: 25px;
}

/* TÍTULO ANIMADO CON DESTELLO AMBAR MÁS NOTABLE */
@keyframes title-sobriety-pulse {
    0% { color: #d97706; text-shadow: 0 0 0px rgba(217, 119, 6, 0); transform: scale(1); }
    50% { color: #b45309; text-shadow: 0 0 12px rgba(217, 119, 6, 0.35); transform: scale(1.015); }
    100% { color: #d97706; text-shadow: 0 0 0px rgba(217, 119, 6, 0); transform: scale(1); }
}

.notif-title-animated {
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: -0.2px;
    animation: title-sobriety-pulse 2.8s ease-in-out infinite;
}

.notif-expand-btn {
    background: rgba(217, 119, 6, 0.12);
    border: 1px solid rgba(217, 119, 6, 0.3);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--accent-gold);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.15);
}

.notif-expand-btn:hover {
    background: rgba(217, 119, 6, 0.22);
}

.svg-chevron {
    width: 17px;
    height: 17px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* COLLAPSED VS EXPANDED STATES */
.home-notif-card.collapsed .notif-body-expandable {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
    pointer-events: none;
    overflow: hidden;
}

.home-notif-card.expanded .notif-body-expandable {
    max-height: 280px;
    opacity: 1;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(217, 119, 6, 0.25);
    pointer-events: auto;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-notif-card.expanded .svg-chevron {
    transform: rotate(180deg);
}

.notif-body-expandable {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.notif-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.notif-time-highlight {
    font-size: 12.5px;
    color: var(--accent-gold);
    font-weight: 700;
}

.notif-value-badge {
    font-size: 11px;
    color: var(--accent-primary);
    background: rgba(2, 132, 199, 0.1);
    padding: 3px 9px;
    border-radius: 8px;
    border: 1px solid rgba(2, 132, 199, 0.2);
}

.notif-desc-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.notif-action-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--accent-primary);
}

/* ─── HOME MENU CARDS GRID (LIGHT GLASS) ─── */
.home-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.menu-card {
    background: var(--glass-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1.5px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-glass);
}

.menu-card:hover {
    background: var(--glass-card-hover);
    border-color: rgba(2, 132, 199, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.svg-card-icon {
    width: 22px;
    height: 22px;
}

.icon-teal { background: rgba(2, 132, 199, 0.1); color: var(--accent-primary); border: 1px solid rgba(2, 132, 199, 0.2); }
.icon-coral { background: rgba(225, 29, 72, 0.1); color: var(--accent-coral); border: 1px solid rgba(225, 29, 72, 0.2); }
.icon-gold { background: rgba(217, 119, 6, 0.1); color: var(--accent-gold); border: 1px solid rgba(217, 119, 6, 0.2); }
.icon-blue { background: rgba(6, 182, 212, 0.1); color: var(--accent-teal); border: 1px solid rgba(6, 182, 212, 0.2); }

.card-arrow {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: var(--transition);
}

.menu-card:hover .card-arrow {
    color: var(--accent-primary);
    transform: translateX(3px);
}

.card-menu-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.card-menu-desc {
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.card-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.mini-pill {
    font-size: 10.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.pill-cyan { background: rgba(6, 182, 212, 0.12); color: #0284c7; border-color: rgba(6, 182, 212, 0.25); }
.pill-amber { background: rgba(217, 119, 6, 0.12); color: var(--accent-gold); border-color: rgba(217, 119, 6, 0.25); }
.pill-green { background: rgba(22, 163, 74, 0.12); color: #16a34a; border-color: rgba(22, 163, 74, 0.25); }

.balance-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 10px;
}

.badge-debt {
    background: rgba(225, 29, 72, 0.12);
    color: var(--accent-coral);
    border: 1px solid rgba(225, 29, 72, 0.3);
}

.badge-paid {
    background: rgba(22, 163, 74, 0.12);
    color: var(--accent-green);
    border: 1px solid rgba(22, 163, 74, 0.3);
}

.next-date-badge {
    background: rgba(217, 119, 6, 0.12);
    color: var(--accent-gold);
    border: 1px solid rgba(217, 119, 6, 0.3);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 10px;
}

.online-indicator {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--accent-green);
    background: rgba(22, 163, 74, 0.12);
    padding: 3px 8px;
    border-radius: 8px;
    border: 1px solid rgba(22, 163, 74, 0.25);
}

/* ─── LIGHT GLASSMORPHIC NAVIGATION BAR ─── */
.app-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 90;
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.05);
}

.nav-btn {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    width: 25%;
    transition: var(--transition);
}

.nav-btn.active, .nav-btn:hover {
    color: var(--accent-primary);
}

.nav-svg-icon {
    width: 20px;
    height: 20px;
}

.nav-badge {
    position: absolute;
    top: -3px;
    right: 26%;
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #ffffff;
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.4);
}

.badge-red {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: #fff;
}

/* ─── FLOATING SAILOR AI WIDGET ─── */
.sailor-ai-widget {
    position: fixed;
    bottom: 75px;
    right: 20px;
    z-index: 95;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sailor-avatar-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-teal));
    border: 2.5px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.35);
    transition: var(--transition);
}

.svg-captain {
    width: 28px;
    height: 28px;
    color: #ffffff;
}

.sailor-ai-widget:hover .sailor-avatar-circle {
    transform: scale(1.08);
}

.widget-pulse {
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    animation: pulse-ring 2.2s infinite;
}

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

.widget-tooltip {
    position: absolute;
    right: 64px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 12px;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(12px);
}

/* PROFILE TABS & EDIT TOGGLE */
.profile-head-tabs {
    display: flex;
    gap: 6px;
}

.tab-pill {
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.tab-pill.active {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
}

.edit-toggle-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
}

.toggle-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--accent-primary);
}

/* SWITCH TOGGLE */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 24px;
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider-round {
    background-color: var(--accent-primary);
}

input:checked + .slider-round:before {
    transform: translateX(20px);
}

/* FORMS & INPUTS */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input, .form-select, .form-textarea {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 11px 14px;
    color: var(--text-primary);
    font-size: 13.5px;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 14px rgba(2, 132, 199, 0.2);
}

.form-input:disabled, .form-select:disabled, .form-textarea:disabled {
    opacity: 0.7;
    background: rgba(241, 245, 249, 0.6);
    cursor: not-allowed;
}

/* BUTTONS */
.btn {
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-teal));
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.4);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.btn-sm {
    padding: 7px 12px;
    font-size: 11.5px;
    border-radius: 8px;
}

.full-width {
    width: 100%;
}

/* D-1 CHECKLIST BOX WITH SVG CHECKMARKS & PLANNED VALUE */
.service-confirm-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.confirm-head-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.planned-val-pill {
    font-size: 11.5px;
    color: var(--accent-green);
    background: rgba(22, 163, 74, 0.12);
    padding: 4px 10px;
    border-radius: 10px;
    border: 1px solid rgba(22, 163, 74, 0.25);
}

.scope-checklist-box {
    background: rgba(2, 132, 199, 0.05);
    border: 1.5px solid rgba(2, 132, 199, 0.2);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.box-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-primary);
}

.scope-list {
    list-style: none;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scope-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.svg-check-icon {
    width: 18px;
    height: 18px;
    color: var(--accent-green);
    flex-shrink: 0;
    margin-top: 1px;
}

.location-stamp-text {
    font-size: 11px;
    color: var(--accent-primary);
    margin-top: 4px;
    display: block;
}

.modal-footer-hstack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

/* FINANCIAL BREAKDOWN */
.balance-summary-box {
    background: rgba(225, 29, 72, 0.08);
    border: 1px solid rgba(225, 29, 72, 0.25);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.balance-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.balance-amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-val {
    font-size: 26px;
    font-weight: 800;
    color: var(--accent-coral);
}

.balance-tag {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
}

.debt-tag {
    background: rgba(225, 29, 72, 0.15);
    color: var(--accent-coral);
}

.balance-sub {
    font-size: 12px;
    color: var(--text-secondary);
}

.financial-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.financial-item {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fin-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.fin-id {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-primary);
}

.fin-item-title-block h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
}

.fin-amount {
    font-size: 16px;
    font-weight: 800;
}

.debt-amount { color: var(--accent-coral); }
.paid-amount { color: var(--accent-green); }

.fin-item-meta {
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
}

.fin-item-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

.paid-check-pill {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-green);
    background: rgba(22, 163, 74, 0.12);
    padding: 4px 10px;
    border-radius: 8px;
}

/* CALENDAR VIEW */
.calendar-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cal-month-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
}

.cal-badge {
    font-size: 11px;
    color: var(--accent-gold);
    background: rgba(217, 119, 6, 0.12);
    padding: 3px 9px;
    border-radius: 10px;
    font-weight: 700;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
}

.cal-day-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    padding-bottom: 4px;
}

.cal-day {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    padding: 10px 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.cal-day.empty { background: transparent; }

.cal-day.has-maint {
    border: 1.5px solid var(--accent-gold);
    background: rgba(217, 119, 6, 0.08);
}

.cal-day.active-scheduled {
    background: rgba(2, 132, 199, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    font-weight: 800;
}

.maint-dot {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.dot-gold { background: var(--accent-gold); }
.dot-green { background: var(--accent-green); }
.dot-cyan { background: var(--accent-teal); }

.calendar-detail-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cal-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cal-detail-head h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.status-pill {
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
}

.status-amber { background: rgba(217, 119, 6, 0.15); color: var(--accent-gold); }

.cal-detail-body p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 4px;
}

/* SAILOR AI ASSISTANT DRAWER */
.sailor-ai-modal-card {
    max-width: 520px;
    height: 85vh;
}

.sailor-ai-head {
    background: linear-gradient(135deg, rgba(2,132,199,0.1), rgba(255,255,255,0.8));
}

.sailor-ai-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sailor-icon-big {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(2, 132, 199, 0.15);
    border: 1.5px solid var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.svg-captain-lg {
    width: 28px;
    height: 28px;
}

.ai-status-sub {
    font-size: 11px;
    color: var(--accent-primary);
}

.sailor-ai-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-suggestions-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.sugg-chip {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 12px;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.sugg-chip:hover {
    background: rgba(2, 132, 199, 0.12);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.ai-chat-box {
    flex: 1;
    background: rgba(241, 245, 249, 0.7);
    border-radius: var(--radius-md);
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--border-subtle);
}

.ai-msg {
    display: flex;
    gap: 10px;
}

.msg-avatar-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(2, 132, 199, 0.15);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.svg-captain-sm {
    width: 18px;
    height: 18px;
}

.msg-bubble {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 12.5px;
    color: var(--text-primary);
    line-height: 1.45;
    max-width: 85%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.user-msg {
    justify-content: flex-end;
}

.user-msg .msg-bubble {
    background: var(--accent-primary);
    color: #ffffff;
    font-weight: 600;
    border-radius: 14px 14px 2px 14px;
}

.ai-input-bar {
    display: flex;
    gap: 8px;
}

.ai-input-bar input {
    flex: 1;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
}

/* ─── DOCK GATE SECURITY CARD (PANTALLA 9) ─── */
.dock-security-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    margin-top: 14px;
}

.dock-security-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.security-title-block {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.security-shield-icon {
    font-size: 24px;
}

.dock-card-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}

.dock-card-sub {
    font-size: 11.5px;
    color: var(--text-muted);
}

.gate-code-box {
    background: rgba(2, 132, 199, 0.06);
    border: 1.5px dashed rgba(2, 132, 199, 0.3);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gate-code-digits-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gate-code-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.gate-code-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.code-value {
    font-family: 'Courier New', Courier, monospace;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--accent-primary);
}

.eye-toggle-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.eye-toggle-btn:hover {
    transform: scale(1.05);
    background: var(--accent-primary);
    color: #ffffff;
}

.gate-validity-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-gold);
}

.security-disclaimer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.25);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 11.5px;
    color: var(--accent-gold);
}

.dock-notes-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 6px;
    border-top: 1px solid var(--border-subtle);
}

.dock-notes-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.dock-note-item {
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* HERO NEXT ACTION BANNER (PANTALLA 1) */
.hero-next-action-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 249, 255, 0.95));
    border: 2px solid var(--accent-primary);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.15);
    margin-bottom: 14px;
}

.next-action-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-label-pill {
    background: rgba(2, 132, 199, 0.12);
    color: var(--accent-primary);
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

.action-card-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
}

.action-card-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.btn-action-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-teal));
    color: #ffffff;
    font-weight: 800;
    font-size: 13.5px;
    padding: 12px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.3);
    transition: var(--transition);
}

/* ─── LIVE STEPPER LIFECYCLE (PANTALLA 2) ─── */
.status-detail-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.status-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.maint-title-text {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
}

.maint-sub-text {
    font-size: 12px;
    color: var(--accent-primary);
    font-weight: 700;
}

.maint-location-text {
    font-size: 11.5px;
    color: var(--text-muted);
}

.status-confirmed-badge {
    background: rgba(2, 132, 199, 0.12);
    color: var(--accent-primary);
    border: 1px solid rgba(2, 132, 199, 0.25);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
}

.live-stepper-box {
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stepper-box-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stepper-timeline {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    padding-left: 8px;
}

.stepper-timeline:before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 17px;
    width: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    z-index: 2;
}

.step-dot-wrap {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
    color: var(--text-muted);
    transition: var(--transition);
}

.step-completed .step-dot-wrap {
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
    font-weight: 800;
}

.step-active .step-dot-wrap {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.2);
}

.step-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.step-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.step-completed .step-name, .step-active .step-name {
    color: var(--text-primary);
    font-weight: 800;
}

.step-time {
    font-size: 11px;
    color: var(--text-muted);
}

.diver-assigned-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.diver-avatar-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-teal));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 18px;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.avatar-letter-big {
    font-size: 18px;
    font-weight: 800;
}

.diver-info-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.diver-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.diver-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
}

.diver-role-pill {
    font-size: 10.5px;
    color: var(--accent-primary);
    font-weight: 700;
}

.diver-call-btn {
    background: rgba(2, 132, 199, 0.1);
    border: 1px solid rgba(2, 132, 199, 0.25);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.diver-call-btn:hover {
    background: var(--accent-primary);
    color: #ffffff;
}

/* ─── MODAL INFORME POSTERIOR AL SERVICIO (PANTALLA 3) ─── */
.report-modal-card {
    max-width: 520px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.scrollable-modal-body {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
}

.report-section-box {
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.report-box-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 6px;
}

.report-desc-text {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.report-meta-chips-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.report-chip {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11.5px;
    color: var(--text-secondary);
}

.evidence-4grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.evidence-photo-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 120px;
    border: 1px solid var(--border-subtle);
}

.evidence-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-tag-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 6px;
}

.photo-tag-after {
    background: rgba(22, 163, 74, 0.85);
}

.report-findings-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.finding-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    padding: 10px 12px;
    border-radius: 10px;
}

.finding-icon {
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

.finding-ok .finding-icon { color: #16a34a; }
.finding-warn .finding-icon { color: var(--accent-gold); }

.report-footer-box {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ─── PANTALLA 5: FACTURACIÓN DETALLADA & PAGO ─── */
.invoice-itemized-box {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 16px;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.itemized-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 6px;
}

.itemized-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.itemized-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: var(--text-secondary);
}

.highlight-row {
    background: rgba(22, 163, 74, 0.08);
    padding: 6px 10px;
    border-radius: 8px;
    color: #16a34a;
    font-weight: 600;
}

.tax-included {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.itemized-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 4px 0;
}

.total-itemized-row {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}

.btn-pay-now {
    background: linear-gradient(135deg, var(--accent-primary), #0284c7);
    font-size: 15px;
    font-weight: 800;
}

/* ─── PANTALLA 4: APROBACIÓN DE TRABAJOS ADICIONALES ─── */
.extra-work-card {
    max-width: 520px;
}

.extra-alert-banner {
    background: rgba(217, 119, 6, 0.1);
    border: 1px solid rgba(217, 119, 6, 0.3);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 12px;
    color: var(--accent-gold);

}

.extra-item-box {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.extra-item-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}

.extra-item-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.extra-photos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.extra-photo-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 110px;
    border: 1px solid var(--border-subtle);
}

.extra-cost-breakdown {
    background: rgba(248, 250, 252, 0.9);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.cost-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 6px;
    margin-top: 2px;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-primary);
}

.cost-val {
    color: #16a34a;
}

.extra-actions-hstack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-success {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.3);
}

.extra-chat-link {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-primary);
    cursor: pointer;
    padding: 6px;
}

/* ─── CUSTOM LANGUAGE SELECTOR PILL & MODAL SHEET (PANTALLA 10) ─── */
.lang-pill-btn {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-primary);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.lang-pill-btn:hover {
    background: #ffffff;
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.lang-modal-card {
    max-width: 440px;
}

.lang-options-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.lang-option-card {
    background: #ffffff;
    border: 1.5px solid var(--border-subtle);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-option-card:hover {
    border-color: var(--accent-primary);
    background: rgba(2, 132, 199, 0.03);
}

.lang-option-card.active {
    border-color: var(--accent-primary);
    background: rgba(2, 132, 199, 0.08);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

.lang-flag-lg {
    font-size: 24px;
}

.lang-name-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lang-name-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
}

.lang-name-native {
    font-size: 11.5px;
    color: var(--text-muted);
}

.lang-check-icon {
    font-size: 16px;
    font-weight: 800;
    color: var(--accent-primary);
    opacity: 0;
    transition: var(--transition);
}

.lang-option-card.active .lang-check-icon {
    opacity: 1;
}





.ai-send-btn {
    background: var(--accent-primary);
    color: #ffffff;
    border: none;
    font-weight: 800;
    padding: 0 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.svg-send {
    width: 18px;
    height: 18px;
}

/* CHAT VIEW BODY */
.chat-view-body {
    background: var(--glass-card);
    backdrop-filter: blur(24px);
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 180px);
    overflow: hidden;
    box-shadow: var(--shadow-glass);
}

.chat-messages {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-input-bar {
    display: flex;
    padding: 12px;
    background: rgba(255, 255, 255, 0.85);
    border-top: 1px solid var(--border-subtle);
    gap: 8px;
}

.chat-input-bar input {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--text-primary);
}

.chat-send-btn {
    background: var(--accent-primary);
    border: none;
    color: #ffffff;
    font-weight: 800;
    padding: 0 16px;
    border-radius: 12px;
    cursor: pointer;
}
