/* ============================================================
   METEOFACe — DENİZCİLİK MODÜLÜ STİLLERİ
   Renk paleti: Koyu deniz mavisi, cyan aksan, altın uyarı
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

:root {
    /* Ana renkler */
    --sea:      #0a1628;
    --sea2:     #0d1f3c;
    --sea3:     #112447;
    --wave:     #1a3a6e;
    --crest:    #00d4ff;
    --accent:   #f1c40f;
    --safe:     #2ecc71;
    --warn:     #e67e22;
    --warn-red: #e67e22;
    --danger:   #e74c3c;
    --info:     #3498db;

    /* Metin & yüzey */
    --text:     #e8f4fd;
    --muted:    rgba(232, 244, 253, 0.45);
    --border:   rgba(0, 212, 255, 0.15);
    --glass:    rgba(10, 22, 40, 0.88);

    /* Boyutlar */
    --sidebar-w: 300px;
    --header-h:  56px;
    --tabs-h:    42px;
}

/* ── Sıfırlama ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    background: var(--sea);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

/* ── TOPBAR — Aviation ile birebir aynı ─────────────────────── */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 500;
    background: rgba(11, 14, 23, 0.92);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border-bottom: 1px solid var(--border);
}

.topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    height: var(--header-h);
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 30px; height: 30px;
    border-radius: 8px;
    object-fit: cover;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 13px; font-weight: 800;
    letter-spacing: -0.3px; color: #fff;
}

.brand-module {
    font-size: 10px; font-weight: 600;
    color: var(--crest);
    letter-spacing: 0.5px;
}

.icon-btn {
    width: 36px; height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.05);
    color: var(--text);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: .2s; font-size: 14px;
}
.icon-btn:hover { border-color: var(--crest); color: var(--crest); }

/* ── SEKMELER (topbar altına yapışık) ────────────────────────── */
.tabs {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: var(--tabs-h);
    z-index: 400;
    display: flex;
    background: rgba(10, 22, 40, 0.95);
    border-bottom: 1px solid var(--border);
    padding: 0 16px;
    backdrop-filter: blur(12px);
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
    padding: 0 16px;
    font-size: 9px; font-weight: 800;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--muted); cursor: pointer;
    border: none; border-bottom: 2px solid transparent;
    background: none; font-family: 'Inter';
    transition: all .2s; white-space: nowrap;
}
.tab:hover:not(.active) { color: var(--text); }
.tab.active { color: var(--crest); border-bottom-color: var(--crest); }

/* ── ANA LAYOUT ──────────────────────────────────────────── */
.layout {
    position: fixed;
    top: calc(var(--header-h) + var(--tabs-h));
    left: 0; right: 0;
    bottom: 0;
    display: flex;
}

/* ── SOL PANEL — SİDEBAR ─────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--glass);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    overflow: hidden;
    z-index: 300;
}

.search-wrap {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    position: relative;
    flex-shrink: 0;
}

.search-wrap i {
    position: absolute; left: 22px; top: 50%;
    transform: translateY(-50%);
    color: var(--crest); font-size: 12px;
    pointer-events: none;
}

#port-search {
    width: 100%;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 9px 12px 9px 36px;
    color: var(--text); font-family: 'Space Mono'; font-size: 11px;
    outline: none; transition: border-color .2s;
}
#port-search:focus { border-color: var(--crest); }
#port-search::placeholder { color: var(--muted); }

#station-list {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,212,255,.2) transparent;
}
#station-list::-webkit-scrollbar { width: 3px; }
#station-list::-webkit-scrollbar-thumb { background: rgba(0,212,255,.2); border-radius: 2px; }

.section-label {
    padding: 10px 14px 5px;
    font-size: 7px; font-weight: 800;
    letter-spacing: 3px; color: var(--muted);
    text-transform: uppercase; font-family: 'Space Mono';
    border-top: 1px solid rgba(0,212,255,.06);
    margin-top: 4px;
}

.station-card {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0,212,255,.05);
    cursor: pointer; transition: background .15s;
    display: flex; align-items: center; gap: 10px;
    border-left: 2px solid transparent;
}
.station-card:hover { background: rgba(0,212,255,.06); }
.station-card.active {
    background: rgba(0,212,255,.1);
    border-left-color: var(--crest);
}

.stn-icon {
    width: 30px; height: 30px; border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
}
.stn-port   { background: rgba(0,212,255,.12); }
.stn-buoy   { background: rgba(241,196,15,.1); }
.stn-strait { background: rgba(46,204,113,.1); }
.stn-coast  { background: rgba(155,89,182,.1); }

.stn-info { flex: 1; min-width: 0; }
.stn-name {
    font-size: 11px; font-weight: 700; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stn-loc {
    font-size: 9px; color: var(--muted);
    font-family: 'Space Mono'; margin-top: 1px;
}

.stn-badge {
    font-size: 8px; font-weight: 800; letter-spacing: 1px;
    padding: 2px 6px; border-radius: 5px;
    border: 1px solid transparent;
    white-space: nowrap; flex-shrink: 0;
    font-family: 'Space Mono';
}
.badge-loading { background: rgba(255,255,255,.05); color: var(--muted); }

/* ── İÇERİK ALANI ────────────────────────────────────────── */
.content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* ── HARİTA ─────────────────────────────────────────────── */
#map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.panel {
    position: absolute;
    inset: 0;
    display: none;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,212,255,.2) transparent;
    background: var(--sea2);
}
.panel::-webkit-scrollbar { width: 4px; }
.panel::-webkit-scrollbar-thumb { background: rgba(0,212,255,.2); border-radius: 2px; }
.panel.active { display: block; }

/* Panel: Dashboard haritanın üstüne float */
#panel-dashboard {
    background: transparent;
    pointer-events: none;
}
#panel-dashboard > * { pointer-events: all; }

/* ── HAVA PANELİ (float) ─────────────────────────────────── */
.weather-panel {
    position: absolute;
    top: 14px; 
    right: 62px; /* Sağdaki style-dock ile çakışmaması için sağ boşluk bırakıldı[cite: 7] */
    width: 290px;
    background: rgba(10, 22, 40, .96);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 40px rgba(0,0,0,.5);
    z-index: 50;
    max-height: calc(100% - 28px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,212,255,.2) transparent;
}

/* Kapatma butonu — sadece mobilde görünür[cite: 7] */
.wp-close-btn {
    display: none;
    position: absolute;
    top: 10px; right: 10px;
    width: 28px; height: 28px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.06);
    color: var(--muted);
    cursor: pointer;
    align-items: center; justify-content: center;
    font-size: 13px; transition: .2s;
    z-index: 5;
}
.wp-close-btn:hover { border-color: #e74c3c; color: #e74c3c; }

.wp-header { margin-bottom: 12px; }
.wp-station-name {
    font-family: 'Space Mono'; font-size: 13px; font-weight: 700;
    color: var(--crest); line-height: 1.2; margin-bottom: 3px;
}
.wp-station-loc { font-size: 9px; color: var(--muted); margin-bottom: 8px; }

.wp-beaufort-badge {
    display: inline-block;
    font-size: 9px; font-weight: 800; letter-spacing: 1.5px;
    padding: 3px 10px; border-radius: 6px;
    border: 1px solid; text-transform: uppercase;
}

/* 3-kolon grid */
.wp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin-bottom: 10px;
}

.wp-tile {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 8px; padding: 7px 8px;
}
.wp-tile-label {
    font-size: 7px; font-weight: 800; letter-spacing: .1em;
    color: var(--crest); text-transform: uppercase;
    font-family: 'Space Mono'; margin-bottom: 3px;
}
.wp-tile-val {
    font-family: 'Space Mono'; font-size: 12px; font-weight: 700; color: var(--text);
}

/* Pusulalı rüzgar bloğu */
.wp-wind-block {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 0; margin-bottom: 9px;
    border-top: 1px solid rgba(0,212,255,.1);
    border-bottom: 1px solid rgba(0,212,255,.1);
}
#compass-canvas { flex-shrink: 0; }
.wp-wind-text { flex: 1; }
.wp-wind-label { font-size: 7px; color: var(--crest); font-family: 'Space Mono'; letter-spacing: 2px; margin-bottom: 3px; }
#wp-wdir-txt { font-family: 'Space Mono'; font-size: 13px; color: var(--text); }
#wp-bf-label { font-size: 9px; color: var(--muted); margin-top: 2px; }
#wp-sea-state { font-size: 9px; font-weight: 700; margin-top: 2px; }

/* Güncelleme zamanı */
#wp-updated { font-size: 8px; color: #444; text-align: right; margin-top: 6px; font-family: 'Space Mono'; }
.wp-source   { font-size: 8px; color: #333; text-align: right; font-family: 'Space Mono'; }

/* ── HAZARD ŞERİDİ ───────────────────────────────────────── */
.hazard-strip {
    position: absolute;
    bottom: 14px; left: 14px;
    right: 318px;
    z-index: 50;
    display: flex; gap: 7px; flex-wrap: wrap;
}

.hz-card {
    background: rgba(10,22,40,.92);
    border: 1px solid var(--border);
    border-radius: 9px; padding: 7px 11px;
    display: flex; align-items: center; gap: 7px;
    backdrop-filter: blur(8px);
    min-width: 110px; max-width: 170px;
    transition: transform .15s;
}
.hz-card:hover { transform: translateY(-1px); }
.hz-card.caution {
    border-color: rgba(241,196,15,.35);
    background: rgba(42,37,0,.8);
}
.hz-card.warn {
    border-color: rgba(230,126,34,.35);
    background: rgba(42,22,0,.8);
}
.hz-card.critical {
    border-color: rgba(231,76,60,.4);
    background: rgba(42,0,0,.8);
}
.hz-icon { font-size: 15px; }
.hz-name { font-size: 7px; font-weight: 800; letter-spacing:.1em; color: var(--muted); text-transform: uppercase; font-family: 'Space Mono'; }
.hz-val  { font-size: 10px; font-weight: 700; color: var(--text); margin-top: 1px; }

/* ── LEGEND (sol üst) ────────────────────────────────────── */
.map-legend {
    position: absolute; top: 14px; left: 14px;
    background: rgba(10,22,40,.92);
    border: 1px solid var(--border);
    border-radius: 10px; padding: 10px 13px;
    backdrop-filter: blur(8px); z-index: 50;
}
.legend-title { font-size: 7px; font-weight: 800; letter-spacing: 2px; color: var(--crest); font-family: 'Space Mono'; margin-bottom: 7px; }
.legend-item  { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.legend-dot   { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.legend-label { font-size: 9px; color: var(--muted); font-family: 'Space Mono'; }

/* ── PANEL: TAHMİN ───────────────────────────────────────── */
.panel-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(10,22,40,.6);
    position: sticky; top: 0; z-index: 10;
    backdrop-filter: blur(10px);
}
.panel-title { font-family: 'Space Mono'; font-size: 16px; font-weight: 700; color: var(--crest); letter-spacing: 1px; }
.panel-sub   { font-size: 9px; color: var(--muted); font-family: 'Space Mono'; margin-top: 3px; }

/* Günlük kart şeridi */
.daily-strip {
    display: flex; gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
    scrollbar-width: thin;
    scrollbar-color: rgba(0,212,255,.2) transparent;
}

.daily-card {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border);
    border-radius: 10px; padding: 10px 12px;
    min-width: 100px; text-align: center;
    flex-shrink: 0; transition: background .15s;
}
.daily-card:hover { background: rgba(0,212,255,.06); }
.daily-day  { font-size: 8px; font-weight: 800; color: var(--muted); font-family: 'Space Mono'; margin-bottom: 5px; }
.daily-icon { font-size: 22px; margin-bottom: 5px; }
.daily-temp { font-size: 10px; font-family: 'Space Mono'; margin-bottom: 4px; }
.daily-wave, .daily-wind { font-size: 9px; font-family: 'Space Mono'; margin-bottom: 2px; }
.daily-sun  { font-size: 8px; color: var(--muted); margin-top: 3px; }

/* Saatlik liste başlık */
.forecast-header {
    display: grid;
    grid-template-columns: 90px 32px 90px 70px 60px 60px 1fr 30px;
    padding: 7px 14px;
    font-size: 7px; font-weight: 800; letter-spacing: 2px;
    color: var(--muted); font-family: 'Space Mono';
    border-bottom: 1px solid var(--border);
    background: rgba(10,22,40,.5);
    position: sticky; top: 0; z-index: 5;
}

.forecast-row {
    display: grid;
    grid-template-columns: 90px 32px 90px 70px 60px 60px 1fr 30px;
    align-items: center;
    padding: 7px 14px;
    border-bottom: 1px solid rgba(0,212,255,.05);
    transition: background .12s;
}
.forecast-row:hover { background: rgba(0,212,255,.04); }
.forecast-now { background: rgba(0,212,255,.07) !important; }

.fc-time { font-family: 'Space Mono'; font-size: 9px; color: var(--muted); }
.fc-day  { display: block; font-size: 7px; color: rgba(232,244,253,.3); }
.fc-icon { font-size: 15px; text-align: center; }
.fc-wind, .fc-wave, .fc-swell, .fc-vis { font-family: 'Space Mono'; font-size: 10px; }
.fc-wind small, .fc-wave small { font-size: 8px; color: var(--muted); margin-left: 2px; }
.fc-bar  { height: 3px; background: rgba(255,255,255,.07); border-radius: 2px; overflow: hidden; }
.fc-bar-fill { height: 100%; border-radius: 2px; transition: width .3s; }
.fc-bf   { font-family: 'Space Mono'; text-align: right; }

/* ── PANEL: GELGİT ───────────────────────────────────────── */
.tide-note {
    margin: 12px 16px;
    padding: 9px 12px;
    background: rgba(0,212,255,.05);
    border: 1px solid rgba(0,212,255,.15);
    border-radius: 8px;
    font-size: 10px; color: var(--muted); line-height: 1.6;
    font-family: 'Space Mono';
}

.tide-row {
    display: grid;
    grid-template-columns: 100px 90px 1fr 80px;
    align-items: center; gap: 0;
    padding: 9px 16px;
    border-bottom: 1px solid rgba(0,212,255,.06);
    font-family: 'Space Mono'; font-size: 11px;
}
.tide-row:hover { background: rgba(0,212,255,.04); }
.tide-time  { color: var(--crest); }
.tide-type  { font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.tide-type.high { color: var(--safe); }
.tide-type.low  { color: var(--warn); }
.tide-chart { height: 3px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.tide-chart-fill { height: 100%; border-radius: 2px; }
.tide-chart-fill.high { background: var(--safe); }
.tide-chart-fill.low  { background: rgba(231,76,60,.5); }
.tide-height { color: var(--text); text-align: right; }
.tide-chart-visual { padding: 0 16px; }

/* ── PANEL: UYARILAR ─────────────────────────────────────── */
.alert-card {
    margin: 10px 14px;
    border-radius: 10px; padding: 11px 13px;
    border: 1px solid;
}
.alert-critical {
    background: rgba(231,76,60,.08);
    border-color: rgba(231,76,60,.25);
}
.alert-warn {
    background: rgba(241,196,15,.06);
    border-color: rgba(241,196,15,.2);
}
.alert-ok {
    background: rgba(46,204,113,.05);
    border-color: rgba(46,204,113,.15);
}
.alert-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 6px;
    font-size: 8px; font-weight: 800; letter-spacing: 2px;
    font-family: 'Space Mono';
}
.alert-critical .alert-header { color: var(--danger); }
.alert-warn     .alert-header { color: var(--accent); }
.alert-ok       .alert-header { color: var(--safe); }
.alert-time { color: var(--muted); font-size: 8px; font-weight: 400; }
.alert-body {
    font-size: 11px; color: rgba(232,244,253,.75);
    line-height: 1.6;
}
.alert-station {
    font-size: 9px; color: var(--muted);
    margin-top: 5px; font-family: 'Space Mono';
}
.alert-source {
    margin: 10px 14px;
    font-size: 8px; color: #444;
    font-family: 'Space Mono'; line-height: 2;
}

/* ── HARİTA MARKERLERİ ──────────────────────────────────── */
.sea-marker { cursor: pointer; z-index: 10 !important; }
.sea-marker-inner {
    background: rgba(10,22,40,.95);
    border: 1.5px solid var(--crest);
    border-radius: 8px; padding: 4px 7px;
    display: flex; flex-direction: column; align-items: center;
    transition: all .2s; min-width: 36px;
}
.sea-marker-inner:hover {
    background: rgba(0,212,255,.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,212,255,.2);
}
.sea-marker-icon  { font-size: 13px; line-height: 1.2; }
.sea-marker-label { font-size: 7px; font-weight: 900; color: #fff; letter-spacing: .5px; }

/* ── HAMBURGER BUTONU — masaüstünde gizli ───────────────────── */
.hamburger-btn { display: none; }

/* ── SİDEBAR BAŞLIĞI — masaüstünde gizli ────────────────────── */
.sidebar-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.sidebar-title {
    font-size: 11px; font-weight: 800;
    letter-spacing: 2px; color: var(--crest);
    font-family: 'Space Mono';
}
.sidebar-close-btn {
    width: 28px; height: 28px; border-radius: 7px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.05);
    color: var(--muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; transition: .2s;
}
.sidebar-close-btn:hover { border-color: #e74c3c; color: #e74c3c; }

/* ── OVERLAY ─────────────────────────────────────────────────── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    z-index: 390;
    opacity: 0;
    transition: opacity .28s ease;
    touch-action: none;
}

/* ── MOBİL ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    :root { --sidebar-w: 0px; }

    /* Hamburger görünür */
    .hamburger-btn { display: flex; }

    /* Sidebar header görünür */
    .sidebar-header { display: flex; }

    /* Sidebar: fixed, soldan gizli */
    .sidebar {
        position: fixed;
        top: calc(var(--header-h) + var(--tabs-h));
        left: 0; bottom: 0;
        width: min(300px, 85vw);
        transform: translateX(-110%);
        transition: transform .3s cubic-bezier(.4,0,.2,1);
        z-index: 400;
        background: var(--sea2);
        border-right: 1px solid var(--border);
    }
    .sidebar.sidebar-open { transform: translateX(0); }

    /* Weather panel: mobilde sağdan style-dock'a (52px) çarpmasın diye ayarlandı[cite: 7] */
    .weather-panel {
        display: none !important; 
        position: fixed !important;
        top: calc(var(--header-h) + var(--tabs-h) + 8px) !important;
        left: 8px !important; 
        right: 52px !important; /* Sağ menü alanına yer açıldı[cite: 7] */
        width: auto !important;
        max-height: calc(100vh - var(--header-h) - var(--tabs-h) - 60px);
        z-index: 200;
        padding-top: 20px;
    }

    .weather-panel.wp-open {
        display: block !important;
    }

    /* Kapatma butonu görünür */
    .wp-close-btn { 
        display: flex;
        top: 8px;
        right: 8px;
    }

    /* Hazard şeridi: alttan style-dock ile çakışmayacak şekilde sağdan daraltıldı[cite: 7] */
    .hazard-strip {
        left: 8px; 
        right: 52px; 
        bottom: 8px;
        flex-wrap: nowrap; 
        overflow-x: auto;
    }

    /* Legend gizle */
    .map-legend { display: none; }

    /* Grid */
    .wp-grid { grid-template-columns: 1fr 1fr; }

    /* Forecast tablo */
    .forecast-header, .forecast-row {
        grid-template-columns: 75px 28px 80px 60px 1fr 28px;
    }
    .fc-swell, .fc-vis { display: none; }
}

/* =============================================
   SAĞ DİKEY MENÜ (STYLE DOCK)
============================================= */
.style-dock {
    position: absolute;
    right: 14px;
    top: calc(var(--header-h) + var(--tabs-h) + 8px);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(11, 14, 23, 0.88);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.style-dock .style-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.style-dock .style-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.style-dock .style-btn.active {
    background: rgba(241, 196, 15, 0.15);
    border-color: #f1c40f;
    color: #f1c40f;
}

.style-dock .flag-img {
    width: 20px;
    height: auto;
    border-radius: 2px;
    display: block;
}

@media (max-width: 768px) {
    .style-dock {
        right: 8px;
        top: calc(var(--header-h) + var(--tabs-h) + 8px);
        gap: 4px;
        padding: 4px;
    }
    .style-dock .style-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .style-dock .flag-img {
        width: 17px;
    }
}