:root{
  --bg:#07070a;
  --bg2:#0b0b10;
  --text:#f7f5f2;
  --muted:rgba(247,245,242,.72);
  --muted2:rgba(247,245,242,.56);
  --gold:#d4af37;
  --gold2:#f2d27a;
  --line:rgba(255,255,255,.14);
  --shadow:0 22px 60px rgba(0,0,0,.55);
  --shadow2:0 14px 40px rgba(0,0,0,.45);
  --ease:cubic-bezier(.2,.8,.2,1);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Poppins, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1000px 600px at 20% -10%, rgba(212,175,55,.18), transparent 60%),
    radial-gradient(900px 520px at 90% 10%, rgba(242,210,122,.12), transparent 60%),
    radial-gradient(800px 620px at 50% 100%, rgba(255,255,255,.05), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  overflow-x:hidden;
}

.bg{
  position:fixed; inset:0;
  background:
    radial-gradient(900px 520px at 15% 20%, rgba(242,210,122,.10), transparent 60%),
    radial-gradient(1000px 620px at 80% 30%, rgba(212,175,55,.10), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.30));
  pointer-events:none;
}

.wrap{
  width:min(1120px, calc(100% - 32px));
  margin:0 auto;
  padding: 56px 0;
  display:grid;
  place-items:center;
}

.glass{
  background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow2);
}

.card{
  width:min(760px, 100%);
  border-radius:26px;
  padding:18px;
}

.head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:10px;
}

.brand{display:flex; align-items:baseline; gap:10px}
.logo{
  width:64px;height:64px;border-radius:22px;
  display:grid;place-items:center;
  font-family:"Playfair Display", serif;
  font-weight:700;
  letter-spacing:.22em;
  transform: translateX(5px);
  color:rgba(242,210,122,.96);
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(212,175,55,.22), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(212,175,55,.32);
  box-shadow: 0 16px 42px rgba(0,0,0,.45);
}
.logo--sm{width:52px;height:52px;border-radius:18px}
.sub{color:var(--muted2); font-size:12px}
.kicker{
  font-size:12px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:rgba(242,210,122,.88);
}

.title{
  margin:8px 0 0;
  font-family:"Playfair Display", serif;
  font-size:40px;
  letter-spacing:-.02em;
}
.muted{color:var(--muted)}

.form{margin-top:14px; display:grid; gap:12px}
.field{display:flex; flex-direction:column; gap:8px}
.field__label{
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(242,210,122,.88);
}
.field__input{
  background:rgba(0,0,0,.20);
  border:1px solid rgba(255,255,255,.14);
  border-radius:16px;
  padding:12px 12px;
  color:rgba(247,245,242,.92);
  outline:none;
}
.field__input:focus{
  border-color:rgba(242,210,122,.44);
  box-shadow:0 0 0 4px rgba(212,175,55,.12);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  color:rgba(247,245,242,.92);
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 12px 26px rgba(0,0,0,.30);
  cursor:pointer;
  user-select:none;
}
.btn:hover{transform:translateY(-2px); border-color:rgba(242,210,122,.42); box-shadow:0 16px 34px rgba(0,0,0,.36)}
.btn:active{transform:translateY(0)}
.btn--primary{
  border-color:rgba(212,175,55,.55);
  background: linear-gradient(135deg, rgba(212,175,55,.22), rgba(242,210,122,.08));
}
.btn--ghost{background:rgba(0,0,0,.18)}
.btn[disabled]{opacity:.6; cursor:not-allowed}

.note{font-size:12px; line-height:1.7; padding-top:6px}

/* Dashboard */
.dash{width:min(1120px, 100%)}
.dash__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.dash__brand{display:flex; align-items:center; gap:12px}
.dash__title{font-family:"Playfair Display", serif; font-size:26px; letter-spacing:-.02em}
.dash__sub{font-size:12px}
.dash__actions{display:flex; gap:10px; flex-wrap:wrap}
.fileBtn{position:relative; overflow:hidden}

.tabs{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.tab{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.18);
  color:rgba(247,245,242,.86);
  cursor:pointer;
}
.tab.is-active{
  border-color:rgba(242,210,122,.55);
  color:rgba(242,210,122,.96);
  box-shadow: 0 0 0 4px rgba(212,175,55,.10);
}

.panels{margin-top:14px}
.panel__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.panel__title{margin:0; font-family:"Playfair Display", serif; font-size:22px}
.panel__sub{margin:6px 0 0; font-size:13px; line-height:1.7}

.list{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
}
@media (max-width: 860px){
  .list{grid-template-columns:1fr}
}

.item{
  border-radius:22px;
  padding:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
}
.item__top{display:flex; justify-content:space-between; gap:12px}
.item__title{font-weight:600}
.item__meta{margin-top:6px; color:var(--muted2); font-size:12px; line-height:1.7}
.item__actions{margin-top:12px; display:flex; gap:10px; flex-wrap:wrap}

/* Modal */
.modal{
  width:min(780px, calc(100% - 28px));
  border:0;
  padding:0;
  background:transparent;
  color:inherit;
}
.modal::backdrop{background: rgba(0,0,0,.72)}
.modal__card{
  border-radius:26px;
  overflow:hidden;
  position:relative;
  padding:16px;
  box-shadow: var(--shadow);
}
.modal__close{
  position:absolute; right:12px; top:12px;
  width:44px;height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.22);
  color:rgba(247,245,242,.92);
  cursor:pointer;
}
.modal__title{margin:0 0 10px; font-family:"Playfair Display", serif; font-size:24px}
.modal__form{display:grid; gap:12px}
.modal__fields{display:grid; gap:12px}
.modal__actions{display:flex; gap:10px; flex-wrap:wrap}

/* Toasts */
.toastHost{margin-top:10px; display:grid; gap:10px}
.toast{
  padding:12px 12px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.toast__dot{
  width:10px;height:10px;border-radius:99px;
  margin-top:6px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(212,175,55,.55);
}
.toast--ok .toast__dot{background:#40d28c; box-shadow:0 0 18px rgba(64,210,140,.45)}
.toast--err .toast__dot{background:#ff5c7a; box-shadow:0 0 18px rgba(255,92,122,.38)}
.toast__title{font-weight:600; line-height:1.2}
.toast__msg{margin-top:3px; font-size:12px; color:var(--muted2); line-height:1.6}
.toast__close{
  margin-left:auto;
  width:34px;height:34px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  cursor:pointer;
}

@media (max-width: 560px){
  .wrap{padding: 40px 0}
  .title{font-size:34px}
  .card{padding:16px}
}

@media (prefers-reduced-motion: reduce){
  *{transition-duration:.001ms !important}
}

