/* ═══════════════════════════════════════════════════
   FESTIVAL DE PESCA — styles.css
   ═══════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:wght@300;400;500;600;700&family=Barlow+Condensed:wght@400;500;600;700&display=swap');

:root {
  --navy:       #000627;
  --deep-blue:  #000E3D;
  --blue-main:  #005EB5;
  --ocean:      #004685;
  --cyan:       #009DDC;
  --golden:     #FFC200;
  --ice:        #F5F7FA;
  --soft:       #C2C9D1;
  --red-brand:  #FF1E4D;
  --green-ok:   #16A34A;

  --ui-bg:      #F0F2F5;
  --ui-surface: #FFFFFF;
  --ui-border:  #E2E8F0;
  --ui-text:    #1A202C;
  --ui-muted:   #64748B;
  --ui-light:   #94A3B8;

  --f-display: 'Bebas Neue', sans-serif;
  --f-cond:    'Barlow Condensed', sans-serif;
  --f-body:    'Barlow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body  { font-family: var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a     { text-decoration: none; color: inherit; }
img   { background: transparent; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select { font-family: inherit; }

::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--blue-main); border-radius: 2px; }


/* ═══════════════════════════════════════════════════
   WAVE SYSTEM — Flex tile technique
   ─────────────────────────────────────────────────
   Two identical SVG tiles placed side-by-side inside
   a flex container that is exactly 200% wide.
   Animation slides the container -50% (= one tile).
   Since both tiles are pixel-identical, the loop is
   mathematically seamless — no break possible.

   Each SVG uses viewBox="0 0 1440 80".
   The path starts and ends at the same Y (midpoint).
   Cubic bezier: M0,40 C90,A 270,B 360,40 ... 1440,40
   where A = low point, B = high point (or vice versa).
   ═══════════════════════════════════════════════════ */

.waves {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  overflow: hidden;
  pointer-events: none;
  line-height: 0;
}

/* The sliding track — always 200% wide, contains 2 tiles */
.wave-track {
  display: flex;
  width: 200%;
  will-change: transform;
}
.wave-track.go-left  { animation: wSlideL var(--dur, 9s) linear infinite; }
.wave-track.go-right { animation: wSlideR var(--dur, 9s) linear infinite; }

/* Each tile = exactly half the track = full viewport width */
.wave-tile {
  flex-shrink: 0;
  width: 50%;
  display: block;
  margin-left: -0.5px;
}
.wave-tile svg {
  display: block;
  width: calc(100% + 1px);
  height: 100%;
}

@keyframes wSlideL {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes wSlideR {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}


/* ════════════════════════
   NAVBAR
════════════════════════ */
.pub-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 58px; background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,94,181,.1);
  display: flex; align-items: center; padding: 0 20px;
  transition: box-shadow .3s;
}
.pub-navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.1); }
.pub-navbar-inner {
  width: 100%; max-width: 1060px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.pub-logo { display: flex; align-items: center; gap: 10px; }
.pub-logo-icon { width: 34px; height: 34px; background: var(--blue-main); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--golden); font-size: .95rem; flex-shrink: 0; }
.pub-logo-name { font-family: var(--f-display); font-size: 1.05rem; letter-spacing: 2px; color: var(--blue-main); line-height: 1; }
.pub-logo-sub  { font-size: .55rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ui-muted); }

.pub-nav-links { display: none; list-style: none; align-items: center; gap: 26px; }
@media (min-width: 768px) { .pub-nav-links { display: flex; } }
.pub-nav-link { font-family: var(--f-cond); font-size: .82rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ui-muted); position: relative; padding-bottom: 2px; transition: color .2s; }
.pub-nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--blue-main); transition: width .25s; }
.pub-nav-link:hover { color: var(--blue-main); }
.pub-nav-link:hover::after { width: 100%; }
.pub-nav-link.admin-link { background: var(--blue-main); color: #fff; padding: 7px 16px; border-radius: 6px; }
.pub-nav-link.admin-link:hover { background: var(--ocean); }
.pub-nav-link.admin-link::after { display: none; }

.hamburger-btn { display: flex; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger-btn span { display: block; width: 22px; height: 2px; background: var(--ui-muted); border-radius: 2px; }
@media (min-width: 768px) { .hamburger-btn { display: none; } }

.pub-mobile-nav { position: fixed; top: 58px; left: 0; right: 0; z-index: 99; background: rgba(255,255,255,.98); backdrop-filter: blur(16px); padding: 8px 16px 16px; border-bottom: 1px solid rgba(0,94,181,.1); display: none; flex-direction: column; gap: 2px; }
.pub-mobile-nav.open { display: flex; }
.pub-mobile-nav .pub-nav-link { font-size: .9rem; padding: 12px 10px; border-radius: 8px; color: var(--ui-muted); display: block; }
.pub-mobile-nav .pub-nav-link:hover { background: #f1f5f9; color: var(--blue-main); }
.pub-mobile-nav .admin-link { margin-top: 6px; text-align: center; padding: 12px; }


/* ════════════════════════
   BUTTONS
════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-cond); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  border-radius: 8px; border: 2px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s;
  -webkit-tap-highlight-color: transparent; cursor: pointer; white-space: nowrap;
}
.btn:active { transform: scale(.96); }
.btn-lg   { font-size: 1rem;   padding: 14px 28px; }
.btn-md   { font-size: .9rem;  padding: 11px 22px; }
.btn-full { width: 100%; }

.btn-blue         { background: var(--blue-main); color: #fff; border-color: var(--blue-main); }
.btn-blue:hover   { background: #0070d8; box-shadow: 0 6px 20px rgba(0,94,181,.3); }
.btn-outline-blue { background: transparent; color: var(--blue-main); border-color: var(--blue-main); }
.btn-outline-blue:hover { background: var(--blue-main); color: #fff; }
.btn-outline-white{ background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.12); }


/* ════════════════════════
   BADGES
════════════════════════ */
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-cond); font-size: .68rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; border: 1px solid; }
.badge-live { background: rgba(255,30,77,.1); border-color: var(--red-brand); color: var(--red-brand); }
.badge-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red-brand); animation: pulseDot 1.4s ease-in-out infinite; }
@keyframes pulseDot { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.3;transform:scale(1.7);} }
.badge-blue { background: rgba(0,94,181,.08); border-color: rgba(0,94,181,.3); color: var(--blue-main); }


/* ════════════════════════
   COUNTDOWN
════════════════════════ */
.countdown { display: flex; gap: 8px; flex-wrap: wrap; }
.count-box { background: #fff; border: 1px solid var(--ui-border); border-radius: 8px; padding: 10px 14px; text-align: center; min-width: 58px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.count-num { font-family: var(--f-display); font-size: 1.9rem; line-height: 1; color: var(--blue-main); }
.count-lbl { font-size: .6rem; letter-spacing: 2px; text-transform: uppercase; color: var(--ui-muted); margin-top: 2px; }


/* ════════════════════════
   INFO CARD (hero chips)
   Gray bg + blue wave deco
════════════════════════ */
.info-chip {
  background: #F0F4F8;
  border: 1px solid #DDE3EC;
  border-radius: 14px;
  padding: 14px 16px 0;    /* bottom-0 so wave sits at edge */
  position: relative;
  overflow: hidden;
  min-height: 76px;
  display: flex; flex-direction: column; justify-content: flex-start;
}
.info-chip-body { padding-bottom: 28px; } /* space above the wave */
.info-chip-label { font-family: var(--f-cond); font-size: .62rem; letter-spacing: 2px; text-transform: uppercase; color: var(--blue-main); opacity: .85; margin-bottom: 4px; }
.info-chip-val { font-family: var(--f-cond); font-size: 1.1rem; font-weight: 700; color: var(--ui-text); }
.info-chip-val.gold { color: #CC9200; }
.info-chip-val.red  { color: var(--red-brand); }

/* Wave decoration inside the chip */
.chip-wave {
  position: absolute; bottom: 0; left: -1px; right: -1px;
  height: 22px; overflow: hidden; line-height: 0;
}
.chip-wave-track {
  display: flex; width: 200%; gap: 0;
  animation: wSlideL 4s linear infinite;
  will-change: transform;
}
.chip-wave-tile {
  flex-shrink: 0; width: 50%; margin-left: -0.5px;
}
.chip-wave-tile svg { display: block; width: calc(100% + 1px); height: 22px; }


/* ════════════════════════
   SECTION HEADERS
════════════════════════ */
.s-eye   { font-family: var(--f-cond); font-size: .7rem; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 8px; }
.s-title { font-family: var(--f-display); font-size: clamp(1.9rem, 7vw, 3rem); letter-spacing: 1px; line-height: 1; }
.s-line  { width: 40px; height: 3px; border-radius: 2px; margin: 12px 0 18px; }


/* ════════════════════════
   REQUIREMENTS (blue)
════════════════════════ */
.req-card { display: flex; align-items: flex-start; gap: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: 16px 18px; transition: background .2s; }
.req-card:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.3); }
.req-icon-wrap { width: 40px; height: 40px; flex-shrink: 0; background: rgba(255,255,255,.15); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--golden); font-size: 1rem; }
.req-title { font-family: var(--f-cond); font-weight: 700; font-size: .95rem; color: #fff; margin-bottom: 3px; }
.req-desc  { font-size: .82rem; color: rgba(255,255,255,.65); line-height: 1.55; }


/* ════════════════════════
   PODIUM / CHAMPIONS
════════════════════════ */
.year-select-wrap { position: relative; display: inline-block; }
.year-select { appearance: none; -webkit-appearance: none; background: #fff; border: 2px solid var(--ui-border); border-radius: 8px; padding: 11px 42px 11px 16px; font-family: var(--f-cond); font-size: .95rem; font-weight: 600; color: var(--ui-text); cursor: pointer; min-width: 220px; transition: border-color .2s; }
.year-select:focus { border-color: var(--blue-main); outline: none; }
.year-select-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ui-muted); pointer-events: none; }

.podium-outer { display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding-top: 24px; }
.p-item { display: flex; flex-direction: column; align-items: center; flex: 1; max-width: 180px; }
.p-avatar { border-radius: 50%; border: 3px solid; background: #f8fafc; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; position: relative; margin-bottom: 8px; }
.p-avatar.r1 { width:76px; height:76px; border-color:var(--golden); box-shadow:0 4px 18px rgba(255,194,0,.25); }
.p-avatar.r2 { width:64px; height:64px; border-color:#b0b8c4; }
.p-avatar.r3 { width:58px; height:58px; border-color:#c07a30; }
.p-crown { position:absolute; top:-18px; left:50%; transform:translateX(-50%); font-size:.95rem; }
.p-name  { font-family:var(--f-cond); font-weight:700; font-size:.88rem; text-align:center; color:var(--ui-text); margin-bottom:2px; line-height:1.2; }
.p-detail{ font-size:.72rem; color:var(--ui-muted); text-align:center; margin-bottom:10px; }
.p-block { width:100%; border-radius:6px 6px 0 0; display:flex; align-items:center; justify-content:center; font-family:var(--f-display); font-size:1.8rem; letter-spacing:1px; }
.p-block.r1 { height:110px; background:linear-gradient(180deg,rgba(255,194,0,.14),rgba(255,194,0,.03)); border:1px solid rgba(255,194,0,.28); color:var(--golden); }
.p-block.r2 { height:82px;  background:linear-gradient(180deg,rgba(176,184,196,.12),rgba(176,184,196,.02)); border:1px solid rgba(176,184,196,.25); color:#8a9ab0; }
.p-block.r3 { height:60px;  background:linear-gradient(180deg,rgba(192,122,48,.1),rgba(192,122,48,.02)); border:1px solid rgba(192,122,48,.2);  color:#c07a30; }


/* ════════════════════════
   MODAL (sheet, slides up on mobile)
════════════════════════ */
.modal-overlay { position:fixed; inset:0; z-index:300; display:none; align-items:flex-end; background:rgba(0,0,0,.55); backdrop-filter:blur(5px); }
.modal-overlay.open { display:flex; }
@media (min-width:600px) { .modal-overlay { align-items:center; justify-content:center; padding:20px; } }
.modal-sheet { background:#fff; border-radius:18px 18px 0 0; width:100%; max-width:600px; max-height:88vh; overflow-y:auto; padding:28px 20px 36px; position:relative; color:var(--ui-text); animation:sheetUp .26s ease; }
@media (min-width:600px) { .modal-sheet { border-radius:16px; padding:36px 30px; animation:none; } }
@keyframes sheetUp { from{transform:translateY(36px);opacity:0;} to{transform:translateY(0);opacity:1;} }
.modal-handle { width:40px; height:4px; background:#e2e8f0; border-radius:2px; margin:0 auto 22px; }
@media (min-width:600px) { .modal-handle { display:none; } }
.modal-close-btn { position:absolute; top:14px; right:14px; width:30px; height:30px; background:#f1f5f9; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#64748b; font-size:.85rem; transition:background .2s; }
.modal-close-btn:hover { background:#e2e8f0; }
.modal-title-pub { font-family:var(--f-display); font-size:1.7rem; letter-spacing:1px; color:var(--navy); }
.hall-entry { display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:8px; margin-bottom:8px; }
.he-1 { background:rgba(255,194,0,.07); border:1px solid rgba(255,194,0,.2); }
.he-2 { background:rgba(176,184,196,.05); border:1px solid rgba(176,184,196,.18); }
.he-3 { background:rgba(192,122,48,.05); border:1px solid rgba(192,122,48,.18); }
.he-name   { font-family:var(--f-cond); font-weight:700; font-size:.95rem; color:var(--ui-text); }
.he-detail { font-size:.78rem; color:var(--ui-muted); margin-top:1px; }


/* ════════════════════════
   TOAST
════════════════════════ */
#toast { position:fixed; bottom:20px; left:50%; z-index:999; transform:translateX(-50%) translateY(80px); background:var(--deep-blue); border:1px solid rgba(0,157,220,.4); border-radius:10px; color:#fff; padding:12px 20px; font-size:.88rem; max-width:calc(100vw - 40px); min-width:200px; text-align:center; box-shadow:0 8px 32px rgba(0,0,0,.3); transition:transform .3s ease,opacity .3s ease; opacity:0; pointer-events:none; }
#toast.show  { transform:translateX(-50%) translateY(0); opacity:1; }
#toast.warn  { border-color:var(--golden); }
#toast.error { border-color:var(--red-brand); }


/* ════════════════════════
   SCROLL FADE
════════════════════════ */
.fade-up { opacity:0; transform:translateY(22px); transition:opacity .6s ease,transform .6s ease; }
.fade-up.visible { opacity:1; transform:translateY(0); }


/* ════════════════════════
   DASHBOARD
════════════════════════ */
body.page-dash { background: var(--ui-bg); color: var(--ui-text); }

.d-layout { display: flex; min-height: 100vh; width: 100%; }
.d-sidebar { width: 230px; flex-shrink: 0; background: linear-gradient(180deg,#005EB5 0%,#003F7F 100%); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 50; box-shadow: 4px 0 20px rgba(0,0,0,.12); transition: transform .3s; }
.d-sidebar-head { padding: 20px 18px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.d-logo-row { display: flex; align-items: center; gap: 10px; }
.d-logo-icon { width: 36px; height: 36px; background: rgba(255,255,255,.15); border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--golden); font-size: .95rem; flex-shrink: 0; }
.d-logo-name { font-family: var(--f-display); font-size: .98rem; letter-spacing: 2px; color: #fff; line-height: 1; }
.d-logo-sub  { font-size: .55rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.45); }
.d-nav { flex: 1; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.d-nav-label { font-family: var(--f-cond); font-size: .58rem; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,.3); padding: 10px 10px 4px; margin-top: 6px; }
.d-nav-item { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 8px; font-family: var(--f-cond); font-size: .88rem; font-weight: 600; color: rgba(255,255,255,.62); transition: background .18s, color .18s; border: 1px solid transparent; -webkit-tap-highlight-color: transparent; text-align: left; width: 100%; }
.d-nav-item i { width: 18px; text-align: center; font-size: .85rem; }
.d-nav-item:hover { background: rgba(255,255,255,.1); color: #fff; }
.d-nav-item.active { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.12); }
.d-nav-item.active i { color: var(--golden); }
.d-nav-bottom { padding: 10px 10px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.d-nav-item.danger { color: rgba(255,120,120,.7); }
.d-nav-item.danger:hover { background: rgba(255,30,77,.15); color: #ff9090; }

.d-main { flex: 1; min-width: 0; margin-left: 230px; display: flex; flex-direction: column; background: var(--ui-bg); min-height: 100vh; }
.d-topbar { height: 56px; background: #fff; border-bottom: 1px solid var(--ui-border); padding: 0 24px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 4px rgba(0,0,0,.05); width: 100%; }
.d-topbar-title { font-family: var(--f-cond); font-size: 1.05rem; font-weight: 700; color: var(--ui-text); display: flex; align-items: center; gap: 9px; }
.d-topbar-title i { color: var(--blue-main); }
.d-topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.d-user-pill { display: flex; align-items: center; gap: 8px; background: var(--ui-bg); border: 1px solid var(--ui-border); border-radius: 999px; padding: 4px 12px 4px 4px; }
.d-user-avatar { width: 28px; height: 28px; background: var(--blue-main); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .72rem; }
.d-user-name { font-family: var(--f-cond); font-size: .8rem; font-weight: 600; color: var(--ui-muted); }
.mob-menu-btn { display: none; width: 36px; height: 36px; background: var(--ui-bg); border: 1px solid var(--ui-border); border-radius: 8px; align-items: center; justify-content: center; color: var(--ui-muted); font-size: .9rem; flex-shrink: 0; }

.d-content { padding: 22px 24px; flex: 1; width: 100%; }
.d-page { display: none; }
.d-page.active { display: block; }
.d-page-head { margin-bottom: 22px; }
.d-page-head h2 { font-family: var(--f-cond); font-size: 1.45rem; font-weight: 700; color: var(--ui-text); }
.d-page-head p  { font-size: .86rem; color: var(--ui-muted); margin-top: 3px; }

.d-stat { background: #fff; border: 1px solid var(--ui-border); border-radius: 12px; padding: 18px; transition: box-shadow .2s; }
.d-stat:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.d-stat-icon  { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 14px; }
.d-stat-num   { font-family: var(--f-display); font-size: 2rem; line-height: 1; color: var(--ui-text); }
.d-stat-label { font-size: .78rem; color: var(--ui-muted); margin-top: 3px; }
.d-stat-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; margin-top: 8px; font-family: var(--f-cond); }
.sb-green  { background: #dcfce7; color: #15803d; }
.sb-yellow { background: #fef9c3; color: #a16207; }
.sb-red    { background: #fee2e2; color: #dc2626; }
.sb-blue   { background: #dbeafe; color: #1d4ed8; }

.d-card { background: #fff; border: 1px solid var(--ui-border); border-radius: 12px; padding: 20px; }
.d-card-title { font-family: var(--f-cond); font-size: .7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--ui-light); margin-bottom: 16px; }

.d-prog-bar  { height: 6px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.d-prog-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue-main), var(--cyan)); }

.d-table-wrap { background: #fff; border: 1px solid var(--ui-border); border-radius: 12px; overflow: hidden; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.d-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.d-table th { font-family: var(--f-cond); font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ui-light); background: #f8fafc; padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--ui-border); }
.d-table td { padding: 12px 16px; font-size: .86rem; color: var(--ui-muted); border-bottom: 1px solid #f1f5f9; }
.d-table tr:last-child td { border-bottom: none; }
.d-table tr:hover td { background: #f8fafc; }
.td-bold { color: var(--ui-text) !important; font-weight: 600; }

.sp { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; font-family: var(--f-cond); letter-spacing: 1px; text-transform: uppercase; }
.sp-green  { background: #dcfce7; color: #15803d; }
.sp-yellow { background: #fef9c3; color: #a16207; }
.sp-red    { background: #fee2e2; color: #dc2626; }

.d-fest-row { background: #fff; border: 1px solid var(--ui-border); border-radius: 12px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; transition: box-shadow .2s; }
.d-fest-row:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.d-fest-row-title { font-family: var(--f-cond); font-size: .98rem; font-weight: 700; color: var(--ui-text); margin-bottom: 3px; }
.d-fest-row-meta  { font-size: .8rem; color: var(--ui-muted); line-height: 1.6; }
.d-fest-actions   { display: flex; gap: 8px; flex-wrap: wrap; }

.d-input { width: 100%; background: #fff; border: 1.5px solid var(--ui-border); border-radius: 8px; padding: 10px 14px; font-size: .9rem; color: var(--ui-text); transition: border-color .2s; }
.d-input:focus { border-color: var(--blue-main); outline: none; }
.d-input::placeholder { color: var(--ui-light); }
.d-label { display: block; font-family: var(--f-cond); font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ui-muted); margin-bottom: 6px; }

.d-btn { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-cond); font-weight: 700; font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; padding: 9px 18px; border-radius: 7px; border: 1.5px solid; transition: all .18s; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.d-btn:active { transform: scale(.97); }
.d-btn-primary { background: var(--blue-main); color: #fff; border-color: var(--blue-main); }
.d-btn-primary:hover { background: #004fa0; }
.d-btn-ghost  { background: transparent; color: var(--ui-muted); border-color: var(--ui-border); }
.d-btn-ghost:hover { background: var(--ui-bg); color: var(--ui-text); }

.d-act-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.d-act-item:last-child { border-bottom: none; }
.d-act-dot  { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.d-act-text { font-size: .84rem; color: var(--ui-muted); line-height: 1.5; }
.d-act-text strong { color: var(--ui-text); }
.d-act-time { font-size: .72rem; color: var(--ui-light); margin-top: 2px; }

.d-overlay { display: none; position: fixed; inset: 0; z-index: 49; background: rgba(0,0,0,.45); }
.d-overlay.show { display: block; }

.d-modal-bg { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.45); backdrop-filter: blur(4px); padding: 16px; }
.d-modal-bg.open { display: flex; }
.d-modal-box { background: #fff; border-radius: 14px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; padding: 26px 22px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.d-modal-title { font-family: var(--f-cond); font-size: 1.25rem; font-weight: 700; color: var(--ui-text); margin-bottom: 3px; }
.d-modal-sub   { font-size: .84rem; color: var(--ui-muted); margin-bottom: 20px; }
.d-modal-close { position: absolute; top: 13px; right: 13px; width: 28px; height: 28px; background: #f1f5f9; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ui-muted); font-size: .8rem; }
.d-modal-close:hover { background: #e2e8f0; }

.fb { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-cond); font-size: .68rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.fb-active { background: #dcfce7; color: #15803d; }
.fb-closed { background: #f1f5f9; color: #64748b; }

.welcome-banner { background: linear-gradient(135deg,var(--blue-main) 0%,#003F7F 100%); border-radius: 14px; padding: 20px 22px; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wb-title { font-family: var(--f-cond); font-size: 1.1rem; font-weight: 700; color: #fff; }
.wb-sub   { font-size: .83rem; color: rgba(255,255,255,.65); margin-top: 3px; }
.wb-badge { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 8px 16px; text-align: center; flex-shrink: 0; }
.wb-num   { font-family: var(--f-display); font-size: 1.8rem; color: var(--golden); line-height: 1; }
.wb-lbl   { font-size: .62rem; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 2px; }

@media (max-width: 768px) {
  .d-sidebar      { transform: translateX(-100%); width: 220px; }
  .d-sidebar.open { transform: translateX(0); }
  .d-main         { margin-left: 0; }
  .d-content      { padding: 14px 16px; }
  .d-topbar       { padding: 0 14px; }
  .mob-menu-btn   { display: flex; }
  .d-user-name    { display: none; }
}