/* ============================================
   PARADISUM TUR — Dashboard CSS
   Nautical Luxury / Ocean Premium
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Ocean palette */
    --ocean-950: #060e1a;
    --ocean-900: #0a1628;
    --ocean-800: #0f2440;
    --ocean-700: #163356;
    --ocean-600: #1e4976;
    --ocean-500: #2563a0;
    --ocean-400: #3b82c4;
    --ocean-300: #6aabe8;
    --ocean-200: #a3cef5;
    --ocean-100: #dbeafe;
    --ocean-50:  #eff6ff;

    /* Gold accent */
    --gold-600: #b8892a;
    --gold-500: #d4a853;
    --gold-400: #e4c06a;
    --gold-300: #f0d68a;
    --gold-100: #fef3c7;

    /* Status */
    --success:      #10b981;
    --success-bg:   #d1fae5;
    --success-dark: #065f46;
    --warning:      #f59e0b;
    --warning-bg:   #fef3c7;
    --warning-dark: #92400e;
    --danger:       #ef4444;
    --danger-bg:    #fee2e2;
    --danger-dark:  #991b1b;
    --info:         #3b82f6;

    /* Surfaces */
    --bg-body:    #f0f4f8;
    --bg-card:    #ffffff;
    --bg-sidebar: var(--ocean-900);
    --text-1:     #1a2332;
    --text-2:     #4a5a6e;
    --text-3:     #94a3b8;
    --border:     #e2e8f0;
    --border-2:   #f1f5f9;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(10,22,40,.04);
    --shadow-sm: 0 2px 6px rgba(10,22,40,.07);
    --shadow-md: 0 6px 20px rgba(10,22,40,.10);
    --shadow-lg: 0 12px 40px rgba(10,22,40,.14);
    --shadow-xl: 0 24px 64px rgba(10,22,40,.18);

    /* Geometry */
    --r-sm:  6px;
    --r-md:  10px;
    --r-lg:  16px;
    --r-xl:  24px;
    --r-2xl: 32px;

    /* Sidebar */
    --sidebar-w: 180px;

    /* Motion */
    --ease: cubic-bezier(.4,0,.2,1);
    --dur: .2s;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-body);
    color: var(--text-1);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--ocean-500); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--ocean-600); }

h1, h2, h3 { font-family: 'Inter', system-ui, sans-serif; font-weight: 700; letter-spacing: -.3px; }
h4, h5, h6 { font-family: 'Inter', sans-serif; font-weight: 700; }

img { max-width: 100%; display: block; }

/* ============================================
   LAYOUT
   ============================================ */
.app-layout {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-sidebar);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    height: 100vh;
    z-index: 200;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    overflow: hidden;
}

/* Subtle wave texture on sidebar */
.sidebar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: radial-gradient(ellipse at 50% 120%, rgba(37,99,160,.35) 0%, transparent 70%);
    pointer-events: none;
}

.sidebar-brand {
    padding: 22px 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--ocean-400), var(--gold-500));
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37,99,160,.4);
}

.sidebar-brand h2 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.sidebar-brand small {
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    color: var(--ocean-300);
    font-weight: 400;
    display: block;
    margin-top: 2px;
    letter-spacing: .3px;
}

.sidebar-nav {
    padding: 14px 10px;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.1) transparent;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }

.nav-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--ocean-400);
    padding: 10px 12px 5px;
    font-weight: 600;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: var(--r-md);
    color: rgba(255,255,255,.65);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--dur) var(--ease);
    margin-bottom: 2px;
    position: relative;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,.07);
    color: #fff;
}

.sidebar-nav a.active {
    background: linear-gradient(135deg, rgba(37,99,160,.5), rgba(30,73,118,.4));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(106,171,232,.15);
}

.sidebar-nav a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    bottom: 25%;
    width: 3px;
    background: var(--gold-400);
    border-radius: 0 3px 3px 0;
}

.nav-icon {
    width: 22px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 14px 20px;
    border-top: 1px solid rgba(255,255,255,.07);
    font-size: 12px;
    color: var(--ocean-300);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
}

.sidebar-footer span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sidebar-footer a {
    color: rgba(255,255,255,.5);
    font-size: 12px;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: var(--r-sm);
    transition: all var(--dur) var(--ease);
}

.sidebar-footer a:hover {
    background: rgba(239,68,68,.15);
    color: #fca5a5;
}

/* Mobile overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,22,40,.55);
    backdrop-filter: blur(3px);
    z-index: 199;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    min-height: 100vh;
    min-width: 0;
    overflow-x: hidden;
}

/* TOPBAR */
.topbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0 28px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 12px;
}

.topbar h1 {
    font-size: 20px;
    color: var(--text-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.page-content {
    padding: 28px 32px;
    max-width: 1400px;
    width: 100%;
    overflow-x: hidden;
}

/* ============================================
   STAT CARDS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    padding: 20px 22px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all var(--dur) var(--ease);
    box-shadow: var(--shadow-xs);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--ocean-200);
}

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

.stat-icon.blue  { background: var(--ocean-50);    color: var(--ocean-500); }
.stat-icon.green { background: var(--success-bg);  color: var(--success); }
.stat-icon.gold  { background: var(--gold-100);    color: var(--gold-600); }
.stat-icon.red   { background: var(--danger-bg);   color: var(--danger); }

.stat-info h4 {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 30px;
    font-weight: 800;
    color: var(--text-1);
    line-height: 1;
    font-family: 'Inter', sans-serif;
}

.stat-sub {
    font-size: 11.5px;
    color: var(--text-3);
    margin-top: 5px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition: box-shadow var(--dur) var(--ease);
}

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

.card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-header h3 {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
}

.card-body { padding: 22px; }

.card-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border-2);
    background: var(--bg-body);
}

/* ============================================
   TABLES
   ============================================ */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }

table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
    table-layout: auto;
}
table td, table th { white-space: normal; }
table td:last-child, table th:last-child { white-space: nowrap; }

table th {
    text-align: left;
    padding: 11px 16px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--text-3);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    background: #fafbfc;
}

table td {
    padding: 13px 16px;
    font-size: 13.5px;
    border-bottom: 1px solid var(--border-2);
    vertical-align: middle;
    white-space: normal;
}

table tbody tr { transition: background var(--dur) var(--ease); }
table tbody tr:hover { background: var(--ocean-50); }
table tbody tr:last-child td { border-bottom: none; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border: 1.5px solid transparent;
    border-radius: var(--r-md);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.btn:focus-visible { outline: 3px solid var(--ocean-300); outline-offset: 2px; }

.btn-primary {
    background: linear-gradient(135deg, var(--ocean-500) 0%, var(--ocean-600) 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37,99,160,.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--ocean-600) 0%, var(--ocean-700) 100%);
    color: #fff;
    box-shadow: 0 5px 16px rgba(37,99,160,.4);
    transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; color: #fff; transform: translateY(-1px); }

.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #d97706; color: #fff; transform: translateY(-1px); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text-2);
}
.btn-outline:hover {
    border-color: var(--ocean-300);
    color: var(--ocean-500);
    background: var(--ocean-50);
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--text-2);
}
.btn-ghost:hover { background: var(--border-2); color: var(--text-1); }

.btn-sm  { padding: 6px 12px; font-size: 12px; border-radius: var(--r-sm); }
.btn-lg  { padding: 13px 28px; font-size: 14.5px; }
.btn-icon {
    width: 36px; height: 36px;
    padding: 0;
    border-radius: var(--r-md);
}

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 6px;
}

.required { color: var(--danger); }

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: var(--text-1);
    background: var(--bg-card);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.form-control:focus {
    outline: none;
    border-color: var(--ocean-400);
    box-shadow: 0 0 0 3px rgba(59,130,196,.14);
}

.form-control::placeholder { color: var(--text-3); }

.form-control:disabled {
    background: var(--bg-body);
    color: var(--text-3);
    cursor: not-allowed;
}

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

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

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.form-hint {
    font-size: 11.5px;
    color: var(--text-3);
    margin-top: 5px;
    line-height: 1.4;
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.toggle-switch input { display: none; }
.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--border);
    border-radius: 24px;
    transition: background var(--dur) var(--ease);
}
.toggle-switch .slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform var(--dur) var(--ease);
    box-shadow: var(--shadow-sm);
}
.toggle-switch input:checked + .slider { background: var(--ocean-500); }
.toggle-switch input:checked + .slider::before { transform: translateX(20px); }

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2px;
    white-space: nowrap;
}

.badge-success { background: var(--success-bg);  color: var(--success-dark); }
.badge-warning { background: var(--warning-bg);  color: var(--warning-dark); }
.badge-danger  { background: var(--danger-bg);   color: var(--danger-dark);  }
.badge-info    { background: var(--ocean-100);   color: var(--ocean-700);    }
.badge-muted   { background: #f1f5f9;            color: var(--text-3);       }

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,22,40,.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--bg-card);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn .22s var(--ease);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(18px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.modal-header h3 {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-body);
    border-radius: var(--r-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-3);
    transition: all var(--dur) var(--ease);
    flex-shrink: 0;
}
.modal-close:hover { background: var(--danger-bg); color: var(--danger); }

.modal-body   { padding: 24px; }
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-2);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 13px 16px;
    border-radius: var(--r-md);
    font-size: 13.5px;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid;
    line-height: 1.5;
}

.alert-success { background: var(--success-bg); color: var(--success-dark); border-color: #a7f3d0; }
.alert-danger  { background: var(--danger-bg);  color: var(--danger-dark);  border-color: #fecaca; }
.alert-warning { background: var(--warning-bg); color: var(--warning-dark); border-color: #fde68a; }
.alert-info    { background: var(--ocean-100);  color: var(--ocean-700);    border-color: var(--ocean-200); }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 64px 20px;
    color: var(--text-3);
}
.empty-icon {
    font-size: 52px;
    margin-bottom: 16px;
    opacity: .45;
    line-height: 1;
}
.empty-state h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 6px;
}
.empty-state p {
    font-size: 13.5px;
    max-width: 340px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
body.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(37,99,160,.18) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(212,168,83,.12) 0%, transparent 50%),
        linear-gradient(160deg, var(--ocean-950) 0%, var(--ocean-800) 55%, var(--ocean-600) 100%);
    position: relative;
    overflow: hidden;
}

body.login-body::before {
    content: '';
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 30% 60%, rgba(106,171,232,.06) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(212,168,83,.05) 0%, transparent 40%);
    animation: bgDrift 25s infinite linear;
}

@keyframes bgDrift {
    0%   { transform: rotate(0deg)   scale(1);   }
    50%  { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1);   }
}

.login-card {
    background: rgba(255,255,255,.97);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,.1);
    padding: 44px 40px;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    animation: cardIn .4s var(--ease);
}

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

.login-brand {
    text-align: center;
    margin-bottom: 32px;
}

.login-brand .icon {
    width: 66px;
    height: 66px;
    background: linear-gradient(135deg, var(--ocean-400), var(--gold-500));
    border-radius: var(--r-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 16px;
    box-shadow: 0 8px 28px rgba(37,99,160,.35);
}

.login-brand h1 {
    font-size: 24px;
    color: var(--ocean-900);
}

.login-brand p {
    color: var(--text-3);
    font-size: 13.5px;
    margin-top: 6px;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--text-3); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-sm      { font-size: 12px; }
.text-lg      { font-size: 17px; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.d-flex           { display: flex; }
.align-center     { align-items: center; }
.justify-between  { justify-content: space-between; }
.justify-end      { justify-content: flex-end; }
.flex-wrap        { flex-wrap: wrap; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 14px; }
.gap-3 { gap: 20px; }
.w-100 { width: 100%; }

/* ============================================
   EMBARCAÇÕES — card components
   ============================================ */
.emb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.emb-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}
.emb-grid.has-foto {
    grid-template-columns: 180px 1fr;
}

/* Category price rows */
.cat-row {
    display: grid;
    grid-template-columns: 1fr 120px 56px;
    align-items: end;
    gap: 8px;
    margin-bottom: 8px;
}

/* ============================================
   BOTTOM NAVIGATION — estrutura base
   ============================================ */
.bottom-nav { display: none; }
.bn-icon { font-size: 22px; line-height: 1; display: block; }
.bn-btn {
    flex: 1;
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 3px;
    font-size: 10px; font-weight: 600; letter-spacing: .2px;
    color: var(--text-3); border: none; background: none;
    cursor: pointer; padding: 10px 4px;
    transition: color .15s; text-decoration: none;
}

/* ============================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .page-content { padding: 20px 20px; }
    .stats-grid { gap: 14px; }
}

/* ============================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================ */
@media (max-width: 768px) {
    /* Sidebar off-canvas */
    .sidebar { transform: translateX(-100%); box-shadow: none; }
    .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-xl); }
    .sidebar-overlay.active { display: block; }

    /* Main expands full width */
    .main-content { margin-left: 0; }

    .topbar { padding: 0 16px; height: 56px; }
    .topbar h1 { font-size: 17px; }
    #menuToggle { display: inline-flex !important; }

    .page-content {
        padding: 14px 14px calc(76px + env(safe-area-inset-bottom, 0px));
    }

    /* Stats — always 2 colunas */
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
    .stat-card { padding: 14px 14px; gap: 10px; }
    .stat-icon { width: 40px; height: 40px; font-size: 18px; }
    .stat-value { font-size: 22px; }
    .stat-info h4 { font-size: 11px; }
    .stat-sub { font-size: 10px; margin-top: 3px; }

    /* Buttons — touch target 44px */
    .btn { min-height: 44px; }
    .btn-sm { min-height: 36px; padding: 8px 12px; font-size: 12px; }
    .btn-icon { width: 44px; height: 44px; }

    /* Forms */
    .form-row { grid-template-columns: 1fr; gap: 12px; }
    .form-group { margin-bottom: 14px; }
    /* Prevent iOS zoom on focus */
    .form-control { font-size: 16px !important; }

    /* Cards */
    .card-header { padding: 14px 16px; flex-wrap: wrap; gap: 8px; }
    .card-body { padding: 16px; }
    .card-footer { padding: 12px 16px; }

    /* Modal como bottom sheet */
    .modal-overlay { align-items: flex-end; padding: 0; }
    .modal {
        max-width: 100%;
        border-radius: var(--r-xl) var(--r-xl) 0 0;
        max-height: 92vh;
        animation: modalSlideUp .28s var(--ease);
    }
    @keyframes modalSlideUp {
        from { transform: translateY(30px); opacity: .85; }
        to   { transform: translateY(0);    opacity: 1;   }
    }
    /* Drag handle visual */
    .modal::before {
        content: '';
        display: block;
        width: 36px; height: 4px;
        background: var(--border);
        border-radius: 4px;
        margin: 14px auto -4px;
        flex-shrink: 0;
    }
    .modal-header { padding: 18px 18px 14px; }
    .modal-body   { padding: 16px 18px; }
    .modal-footer {
        padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0px));
        flex-direction: column-reverse;
        gap: 8px;
    }
    .modal-footer .btn { width: 100%; justify-content: center; }

    /* Table */
    .table-wrapper {
        border-radius: var(--r-md);
        border: 1px solid var(--border);
        /* Scroll hint shadow on right */
        background:
            linear-gradient(to right, var(--bg-card) 20px, transparent 20px),
            linear-gradient(to left,  var(--bg-card) 20px, transparent 20px) right,
            radial-gradient(farthest-side at left,  rgba(0,0,0,.12), transparent) left,
            radial-gradient(farthest-side at right, rgba(0,0,0,.12), transparent) right;
        background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
        background-repeat: no-repeat;
        background-attachment: local, local, scroll, scroll;
    }
    table { white-space: nowrap; }
    table th, table td { padding: 10px 12px; font-size: 13px; }

    /* Login */
    .login-card { padding: 28px 18px; }

    /* Alerts */
    .alert { font-size: 13px; padding: 12px 14px; }

    /* Filter forms — stack vertically */
    form.d-flex.flex-wrap {
        flex-direction: column;
        align-items: stretch !important;
        gap: 8px !important;
    }
    form.d-flex.flex-wrap .form-control,
    form.d-flex.flex-wrap input[type="text"],
    form.d-flex.flex-wrap input[type="date"],
    form.d-flex.flex-wrap select {
        width: 100% !important;
        min-width: 0 !important;
    }
    /* Spacer not needed in stacked layout */
    form.d-flex.flex-wrap > div[style*="flex:1"] { display: none; }
    form.d-flex.flex-wrap .btn { width: 100%; justify-content: center; }
    /* Keep inline groups together */
    form.d-flex.flex-wrap .d-flex.gap-1 { flex-direction: row; }

    /* Embarcações — photo grid stacks */
    .emb-grid.has-foto { grid-template-columns: 1fr; }
    .emb-grid.has-foto img { height: 200px; width: 100%; }

    /* Embarcações — actions wrap to new line */
    .emb-actions { width: 100%; }

    /* Category price rows — stack nome em cima, valor+toggle na mesma linha */
    .cat-row {
        grid-template-columns: 1fr 100px 48px;
        gap: 6px;
    }
}

/* ============================================
   BOTTOM NAVIGATION — ativo (≤ 640px)
   ============================================ */
@media (max-width: 640px) {
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: var(--bg-card);
        border-top: 1px solid var(--border);
        z-index: 300;
        box-shadow: 0 -2px 20px rgba(10,22,40,.10);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .bottom-nav a {
        flex: 1;
        display: flex; flex-direction: column;
        align-items: center; justify-content: center;
        gap: 3px; padding: 10px 4px;
        font-size: 10px; font-weight: 600; letter-spacing: .2px;
        color: var(--text-3); text-decoration: none;
        transition: color .15s; min-height: 56px;
        -webkit-tap-highlight-color: transparent;
    }
    .bottom-nav a.active { color: var(--ocean-500); }
    .bottom-nav a:active, .bottom-nav .bn-btn:active { opacity: .65; }
    .bottom-nav .bn-btn { min-height: 56px; }

    /* Keep hamburger usable but hide topbar toggle since bottom nav handles navigation */
    #menuToggle { display: none !important; }

    /* Page content respects bottom nav */
    .page-content {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================ */
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .stat-card { padding: 12px 12px; }
    .stat-value { font-size: 20px; }

    .btn-lg { padding: 12px 20px; font-size: 14px; }
    .topbar-actions { display: none; }
    .topbar h1 { font-size: 16px; }
    .page-content { padding: 10px 10px calc(72px + env(safe-area-inset-bottom, 0px)); }

    /* Embarcações — hide button text labels, show icons only on very small */
    .btn-label { display: none; }

    /* Category rows: slightly tighter but still 3-col */
    .cat-row {
        grid-template-columns: 1fr 88px 44px;
        gap: 4px;
    }
}
