:root{
  --bg:#0b0c10; --panel:#111318; --muted:#9aa3af; --text:#fff; --line:rgba(255,255,255,.12);
  --accent:#22c55e; --accent2:#7c3aed;
}
:root[data-theme='light']{ --bg:#f9fafb; --panel:#fff; --muted:#6b7280; --text:#0f172a; --line:rgba(0,0,0,.08); --accent:#22c55e; }
:root[data-theme='green']{ --bg:#061e14; --panel:#0c2a1c; --muted:#9bc7a6; --text:#eafff4; --line:rgba(255,255,255,.14); --accent:#10b981; }
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; color:var(--text); background:var(--bg);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background: radial-gradient(1200px 1200px at 110% -10%, rgba(34,197,94,.08), transparent),
             radial-gradient(1000px 1000px at -10% 110%, rgba(124,58,237,.08), transparent), var(--bg);
}
.container{max-width:1100px;margin:0 auto;padding:24px}
.header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
h1{margin:0;font-size:26px}
.muted{color:var(--muted)}
.userbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 16px}
.tab{padding:8px 12px;border-radius:10px;border:1px solid var(--line);background:#0f1220;color:#eef;cursor:pointer}
.tab.active{border-color:var(--accent)}
.panel{background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--line);border-radius:16px;padding:16px;backdrop-filter: blur(6px);margin-bottom:16px}
.field{margin:10px 0}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:900px){.grid{grid-template-columns:1fr}}
input,textarea,select{
  width:100%;background:#0d0f17;color:#e5e7eb;border:1px solid var(--line);
  border-radius:10px;padding:10px;outline:none
}
:root[data-theme='light'] input,:root[data-theme='light'] textarea,:root[data-theme='light'] select{background:#fff;color:#111827;border-color:var(--line)}
input:focus,textarea:focus,select:focus{border-color:rgba(34,197,94,.6)}
.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.btn{appearance:none;border:1px solid var(--line);background:#0f1220;color:#eef;padding:9px 12px;border-radius:10px;cursor:pointer;font-weight:600}
.btn:hover{border-color:rgba(34,197,94,.5)}
.btn-accent{background:linear-gradient(135deg, rgba(34,197,94,.25), rgba(124,58,237,.15));border-color:rgba(34,197,94,.5)}
.btn-link{background:transparent;border-color:transparent;text-decoration:underline;color:#c7d2fe}
.hidden{display:none !important}
.password-wrap{position:relative;display:flex;align-items:center}
.password-wrap input{padding-right:42px}
.eye-btn{position:absolute;right:6px;height:30px;width:36px;border-radius:8px;border:1px solid var(--line);background:#121429;color:#c7d2fe;cursor:pointer}
.list{display:grid;gap:10px;margin-top:12px}
.card{background:#0c0f18;border:1px solid var(--line);border-radius:12px;padding:12px;display:flex;gap:12px;justify-content:space-between;align-items:flex-start}
.tag{display:inline-block;font-size:12px;color:#dbeafe;background:linear-gradient(135deg, rgba(124,58,237,.25), rgba(34,211,238,.2));border:1px solid rgba(124,58,237,.35);padding:2px 8px;border-radius:999px;margin-right:6px;cursor:pointer}
.tag[data-color]{ border-color: currentColor; color:#fff; }
#editor{height:220px;background:#0d0f17;border:1px solid var(--line);border-radius:10px}
:root[data-theme='light'] #editor{background:#fff}
#calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.cal-cell{border:1px solid var(--line);min-height:70px;border-radius:8px;padding:6px; position:relative; overflow:hidden}
.cal-thumb{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.9; filter:saturate(1.1);}
.cal-cell span.day{ position:relative; z-index:2; font-weight:700; text-shadow:0 1px 2px rgba(0,0,0,.6); }
.cal-has{outline:2px solid var(--accent);}
.cal-dot{ position:absolute; right:6px; bottom:6px; width:8px; height:8px; border-radius:50%; background:var(--accent); }
/* Stars rating */
.stars { display:flex; gap:6px; align-items:center; }
.star { font-size:22px; line-height:1; padding:4px 6px; border-radius:8px; border:1px solid var(--line); background:#0f1220; color:#6b7280; cursor:pointer; }
.star.active { color:#f59e0b; border-color:#f59e0b; }
.star:focus { outline:2px solid var(--accent); }
/* Timeline preview image */
.card .thumb { width:96px; height:72px; border-radius:10px; object-fit:cover; border:1px solid var(--line); }
.card .meta { display:flex; gap:6px; align-items:center; flex-wrap:wrap; margin-top:6px; }
.card .tag{ margin-top:6px }
.tag-swatch{ width:14px; height:14px; border-radius:4px; border:1px solid var(--line); display:inline-block; vertical-align:middle; margin-right:6px; cursor:pointer; }
.tags-admin{ margin-bottom:8px }
.dropzone{ margin-top:6px; padding:10px; border:1px dashed var(--line); border-radius:10px; }
.dropzone.active{ background:rgba(34,197,94,.08); border-color:rgba(34,197,94,.6); }
/* Gallery */
.gallery{ display:grid; grid-template-columns:repeat(auto-fill, minmax(120px,1fr)); gap:8px; margin:10px 0; }
.gallery img, .gallery video{ width:100%; height:100px; object-fit:cover; border-radius:10px; border:1px solid var(--line); }
.gallery .file{ padding:8px; border:1px solid var(--line); border-radius:10px; font-size:12px; }
@media (max-width: 640px){
  .tabs{ position: sticky; top:0; background:var(--bg); padding-top:8px; z-index:5 }
  .row{ gap:6px }
  #calendar{ grid-template-columns: repeat(7,minmax(32px,1fr)); gap:4px }
  .card{ flex-direction:column }
  .card .thumb{ width:100%; height:160px }
}
#map{background:#0a0a0a; width:100%; height:420px; min-height:360px; border-radius:12px}


/* Home logo button */
.home-logo{ display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; margin-right:10px;
  border-radius:8px; border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.04); }
.home-logo img{ width:22px; height:22px; border-radius:4px; }
.home-logo:hover{ background:rgba(255,255,255,.08); }
