/* ===== Premium Client Portal UI (White + Red Luxury) ===== */
:root{
  /* ===== BASE BACKGROUND ===== */
  --bg: #f7f7f8;                          /* soft white */
  --panel: #ffffff;
  --panel-2: #fafafa;
  --border: #e5e5e7;

  /* ===== TEXT ===== */
  --text: #1c1c1e;                        /* premium dark gray */
  --muted: #6b6b70;
  --muted2: #8e8e93;

  /* ===== BRAND (PRIMARY RED) ===== */
  --brand: #EA0001;                       /* primary red */
  --brand-soft: #ffe5e5;                  /* soft red bg */
  --brand-dark: #b80000;

  /* ===== STATUS ===== */
  --danger: #EA0001;
  --success: #16a34a;

  /* ===== EFFECTS ===== */
  --shadow: 0 18px 45px rgba(0,0,0,0.08);
  --glow: 0 0 0 3px rgba(234,0,1,0.18);

  --radius: 16px;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(234,0,1,0.06), transparent 60%),
    linear-gradient(180deg, #ffffff, #f7f7f8 100%);
}

a{ color: var(--brand); text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  width:min(1100px, 92vw);
  margin:0 auto;
  padding: 22px 0 40px;
}

/* ================= TOPBAR ================= */
.topbar{
  position: sticky;
  top:0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid var(--border);
}
.topbar-inner{
  width:min(1100px, 92vw);
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 14px 0;
}
.brand{
  display:flex;
  gap:10px;
  align-items:center;
}
.brand-badge{
  width:38px;
  height:38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 10px 24px rgba(234,0,1,0.22);
}
.brand-title{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brand-title strong{
  font-size: 14px;
  letter-spacing: .2px;
}
.brand-title span{
  font-size: 12px;
  color: var(--muted);
}

.topbar-actions{
  display:flex;
  gap:10px;
  align-items:center;
}

/* ================= BUTTONS ================= */
.btn{
  display:inline-flex;
  gap:8px;
  align-items:center;
  justify-content:center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  cursor:pointer;
  transition: all .15s ease;
  user-select:none;
}
.btn:hover{
  background: #f5f5f7;
  transform: translateY(-1px);
}
.btn-primary{
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(234,0,1,0.25);
}
.btn-primary:hover{
  opacity: .96;
}
.btn-ghost{
  background: transparent;
  border-color: transparent;
}
.btn-danger{
  background: var(--brand-soft);
  border-color: rgba(234,0,1,0.25);
  color: var(--brand);
}
.btn-danger:hover{
  background: rgba(234,0,1,0.15);
}

/* ================= CARDS ================= */
.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad{ padding: 18px; }

.grid{
  display:grid;
  gap:16px;
}
.grid-2{
  grid-template-columns: 1.2fr 0.8fr;
}
@media (max-width: 980px){
  .grid-2{ grid-template-columns: 1fr; }
}

/* ================= TYPOGRAPHY ================= */
.h1{
  font-size: clamp(22px, 3vw, 30px);
  margin:0 0 6px;
}
.sub{
  color: var(--muted);
  margin:0;
  font-size: 14px;
  line-height:1.5;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size: 12px;
  color: var(--brand);
  border: 1px solid rgba(234,0,1,0.25);
  background: var(--brand-soft);
  padding: 7px 10px;
  border-radius: 999px;
}

.hr{
  height:1px;
  background: var(--border);
  margin: 14px 0;
}

/* ================= FORMS ================= */
.form{ display:grid; gap: 12px; }

.label{
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.input{
  width:100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  outline:none;
}
.input:focus{
  border-color: var(--brand);
  box-shadow: var(--glow);
}

.field{ display:grid; gap: 6px; }

.row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 700px){
  .row{ grid-template-columns: 1fr; }
}

/* ================= ALERTS ================= */
.alert{
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #ffffff;
}
.alert-danger{
  border-color: rgba(234,0,1,0.35);
  background: var(--brand-soft);
  color: var(--brand);
}
.alert-success{
  border-color: rgba(22,163,74,0.35);
  background: rgba(22,163,74,0.08);
  color: #166534;
}

/* ================= HERO ================= */
.hero{
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid var(--border);
  background: #ffffff;
}
.hero img{
  width:100%;
  height: 320px;
  object-fit: cover;
}
@media (max-width: 700px){
  .hero img{ height: 240px; }
}

/* ================= META ================= */
.meta{
  display:flex;
  flex-wrap: wrap;
  gap:10px;
  margin-top: 10px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 13px;
}
.pill span{
  color: var(--muted);
  font-size: 12px;
}

/* ================= DOWNLOAD LIST ================= */
.list{ display:grid; gap: 10px; margin-top: 10px; }

.dl-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #ffffff;
}
.dl-title{ font-weight: 600; }
.dl-sub{ font-size: 12px; color: var(--muted); }

/* ================= FOOTER ================= */
.footer{
  margin-top: 14px;
  color: var(--muted2);
  font-size: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* ================= LOGIN ================= */
.login-wrap{
  min-height: calc(100vh - 64px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 28px 0;
}
.login-card{
  width:min(520px, 92vw);
  padding: 18px;
}

.small-note{
  font-size: 12px;
  color: var(--muted2);
}

/* ================= ICON BUTTONS ================= */
.iconbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  cursor:pointer;
}
.iconbtn:hover{
  background: #f5f5f7;
}
.badge{
  font-size: 11px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 5px 10px;
  border: 1px solid rgba(234,0,1,0.25);
}
.actions{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
}
