/* ═══════════════════════════════════════════
   JNV DHANBAD YEARBOOK — style.css
   Nostalgic vintage yearbook aesthetic
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=IM+Fell+English:ital@0;1&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

/* ── Variables ── */
:root {
  --paper:  #f6edd8;
  --paper2: #ede0c0;
  --paper3: #e8d5a3;
  --paper4: #f9f3e6;
  --ink:    #1e140a;
  --ink2:   #3a2710;
  --ink3:   #5a3d1e;
  --sepia:  #7a5830;
  --sepia2: #9a7040;
  --red:    #7a1a1a;
  --red2:   #a02020;
  --gold:   #b8860b;
  --gold2:  #d4a017;
  --green:  #1a4a1a;
  --green2: #2d6e2d;
  --border: rgba(122,88,48,0.22);
  --border2:rgba(122,88,48,0.45);
  --r:      3px;
  --shadow: 0 4px 18px rgba(30,20,10,0.13);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

.hidden { display: none !important; }

/* ── LOGIN ── */
.login-screen {
  min-height: 100vh;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}
.login-box {
  background: var(--paper);
  border: 1px solid var(--border2);
  border-radius: 6px;
  border-top: 4px solid var(--gold);
  padding: 40px 36px;
  text-align: center;
  max-width: 380px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.login-emblem { font-size: 48px; margin-bottom: 10px; }
.login-school { font-family: 'IM Fell English', serif; font-size: 10px; letter-spacing: 2.5px; color: var(--sepia); text-transform: uppercase; margin-bottom: 4px; }
.login-jnv    { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 900; color: var(--ink); line-height: 1; }
.login-batch  { font-family: 'IM Fell English', serif; font-style: italic; font-size: 13px; color: var(--sepia2); margin-bottom: 18px; letter-spacing: 1px; }
.login-rule   { height: 1px; background: var(--border2); margin: 18px 0; }
.login-desc   { font-family: 'Lora', serif; font-style: italic; font-size: 13px; color: var(--sepia); line-height: 1.7; margin-bottom: 20px; }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px;
  background: white; border: 1px solid var(--border2);
  border-radius: var(--r); font-family: 'Lora', serif; font-size: 14px; color: var(--ink);
  cursor: pointer; transition: all 0.2s;
}
.btn-google:hover { background: var(--paper2); border-color: var(--sepia2); }
.login-note  { font-family: 'IM Fell English', serif; font-style: italic; font-size: 10px; color: var(--sepia); margin-top: 14px; line-height: 1.6; opacity: 0.8; }
.login-error { color: var(--red); font-size: 12px; margin-top: 12px; padding: 8px; background: rgba(122,26,26,0.08); border-radius: var(--r); }

/* ── NAV ── */
nav {
  background: var(--green);
  border-bottom: 3px solid var(--gold);
  padding: 0 18px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  gap: 10px; flex-wrap: wrap;
}
.logo-block { padding: 8px 0; line-height: 1.2; }
.logo-school-name { font-family: 'IM Fell English', serif; font-size: 9px; letter-spacing: 2px; color: rgba(249,243,230,0.6); text-transform: uppercase; }
.logo-jnv { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 900; color: var(--paper); }
.logo-year { font-family: 'IM Fell English', serif; font-size: 10px; color: var(--gold2); letter-spacing: 1.5px; }
.nav-links { display: flex; gap: 0; flex-wrap: wrap; }
.nav-btn {
  background: none; border: none;
  font-family: 'IM Fell English', serif; font-size: 11px; letter-spacing: 1px;
  color: rgba(249,243,230,0.6); padding: 6px 11px; cursor: pointer;
  text-transform: uppercase; transition: color 0.2s;
  border-bottom: 2px solid transparent;
}
.nav-btn:hover  { color: var(--paper); }
.nav-btn.active { color: var(--gold2); border-bottom-color: var(--gold2); }
.nav-user { display: flex; align-items: center; gap: 8px; }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold); object-fit: cover; }
.user-name-nav { font-family: 'IM Fell English', serif; font-size: 11px; color: rgba(249,243,230,0.7); }
.signout-btn { background: none; border: 1px solid rgba(249,243,230,0.25); color: rgba(249,243,230,0.6); font-family: 'IM Fell English', serif; font-style: italic; font-size: 10px; padding: 4px 10px; border-radius: var(--r); cursor: pointer; transition: all 0.2s; }
.signout-btn:hover { border-color: var(--paper); color: var(--paper); }

/* ── PAGES ── */
.page { display: none; }
.page.active { display: block; }

/* ── MASTHEAD ── */
.masthead {
  background: var(--green);
  border-bottom: 4px double var(--gold);
  padding: 30px 20px 24px;
  text-align: center;
}
.mast-emblem  { font-size: 34px; margin-bottom: 4px; }
.mast-orn     { color: var(--gold2); font-size: 10px; letter-spacing: 7px; opacity: 0.7; margin-bottom: 6px; font-family: 'IM Fell English', serif; }
.mast-rule    { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); max-width: 360px; margin: 8px auto; }
.mast-school-txt { font-family: 'IM Fell English', serif; font-size: 10px; letter-spacing: 2.5px; color: rgba(249,243,230,0.6); text-transform: uppercase; margin-bottom: 4px; }
.mast-title   { font-family: 'Playfair Display', serif; font-size: clamp(28px,6vw,56px); font-weight: 900; font-style: italic; color: var(--paper); line-height: 1; margin-bottom: 4px; letter-spacing: -1px; }
.mast-subtitle{ font-family: 'IM Fell English', serif; font-style: italic; font-size: 14px; color: var(--gold2); letter-spacing: 2px; margin-bottom: 4px; }
.mast-loc     { font-family: 'IM Fell English', serif; font-size: 10px; color: rgba(249,243,230,0.5); letter-spacing: 1.5px; margin-bottom: 16px; }
.mast-tagline { font-family: 'Lora', serif; font-style: italic; font-size: 13px; color: rgba(249,243,230,0.65); max-width: 360px; margin: 0 auto 20px; line-height: 1.65; }
.mast-btns    { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn-gold {
  background: var(--gold); border: 1px solid var(--gold2); color: var(--ink);
  font-family: 'IM Fell English', serif; font-style: italic; font-size: 13px;
  padding: 9px 22px; cursor: pointer; transition: all 0.2s; border-radius: var(--r);
}
.btn-gold:hover { background: var(--gold2); }
.btn-gold.small { font-size: 11px; padding: 6px 14px; }
.btn-ghost {
  background: none; border: 1px solid rgba(249,243,230,0.3); color: rgba(249,243,230,0.75);
  font-family: 'IM Fell English', serif; font-style: italic; font-size: 13px;
  padding: 9px 22px; cursor: pointer; transition: all 0.2s; border-radius: var(--r);
}
.btn-ghost:hover { border-color: var(--paper); color: var(--paper); }

/* ── STATS BAR ── */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--paper2); border-bottom: 2px solid var(--border2);
}
.stat-i { padding: 12px 8px; text-align: center; border-right: 1px solid var(--border); }
.stat-i:last-child { border-right: none; }
.stat-n { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--red); }
.stat-l { font-family: 'IM Fell English', serif; font-size: 9px; color: var(--sepia); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 1px; }

/* ── INFO STRIP ── */
.info-strip {
  background: var(--green2); color: rgba(249,243,230,0.85);
  padding: 10px 20px; font-family: 'IM Fell English', serif; font-style: italic;
  font-size: 11px; letter-spacing: 0.5px; text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.2);
}

/* ── SECTION ── */
.section { max-width: 900px; margin: 0 auto; padding: 24px 16px; }
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--border2); padding-bottom: 9px; }
.sec-head.no-border { border: none; padding: 0; margin: 0; flex: 1; }
.sec-icon  { font-size: 15px; opacity: 0.75; }
.sec-title { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; font-style: italic; color: var(--ink); }
.sec-rule  { flex: 1; height: 1px; background: var(--border); }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }

/* ── ANNOUNCEMENT ── */
.ann {
  background: var(--green); color: rgba(249,243,230,0.85);
  border-radius: var(--r); padding: 13px 16px; margin-bottom: 18px;
  border-left: 4px solid var(--gold);
  font-family: 'IM Fell English', serif; font-style: italic; font-size: 12px; line-height: 1.6;
}
.ann strong { font-family: 'Playfair Display', serif; color: var(--paper); display: block; margin-bottom: 3px; font-style: normal; font-size: 13px; }

/* ── FEATURES GRID ── */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px,1fr)); gap: 12px; }
.feat-card { background: var(--paper2); border: 1px solid var(--border2); border-radius: var(--r); padding: 16px; cursor: pointer; transition: all 0.2s; }
.feat-card:hover { box-shadow: var(--shadow); border-color: var(--sepia2); }
.feat-ico  { font-size: 18px; margin-bottom: 7px; opacity: 0.85; }
.feat-name { font-family: 'Playfair Display', serif; font-size: 13px; font-weight: 700; font-style: italic; margin-bottom: 4px; }
.feat-desc { font-family: 'IM Fell English', serif; font-style: italic; font-size: 11px; color: var(--sepia); line-height: 1.55; }

/* ── PROFILE GRID ── */
.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 12px; }
.profile-card {
  background: var(--paper2); border: 1px solid var(--border2); border-radius: var(--r);
  padding: 15px 12px; text-align: center; transition: all 0.2s; position: relative; overflow: hidden;
}
.profile-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--green); opacity: 0; transition: opacity 0.2s; }
.profile-card:hover  { border-color: var(--sepia2); box-shadow: var(--shadow); }
.profile-card:hover::after { opacity: 1; }
.avatar-ring {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 10px;
  border: 2px solid var(--border2); display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; font-family: 'Playfair Display', serif;
  background: var(--paper3); color: var(--ink2); position: relative;
}
.avatar-ring::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px dashed var(--border2); }
.p-name    { font-family: 'Playfair Display', serif; font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.p-role    { font-family: 'Lora', serif; font-style: italic; font-size: 10px; color: var(--sepia); line-height: 1.5; }
.p-role small { font-size: 9px; opacity: 0.8; }
.p-tag     { display: inline-block; margin-top: 6px; background: var(--green); color: rgba(249,243,230,0.9); font-family: 'IM Fell English', serif; font-size: 8px; letter-spacing: 1px; padding: 2px 7px; border-radius: 1px; text-transform: uppercase; }
.p-message { font-family: 'Lora', serif; font-style: italic; font-size: 10px; color: var(--sepia2); margin-top: 6px; line-height: 1.4; opacity: 0.85; }
.add-card  { background: var(--paper4); border: 1.5px dashed var(--border2); border-radius: var(--r); padding: 16px; text-align: center; cursor: pointer; transition: all 0.2s; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 155px; }
.add-card:hover { border-color: var(--sepia2); background: var(--paper2); }
.plus { font-size: 22px; color: var(--sepia); margin-bottom: 5px; opacity: 0.55; }
.lbl  { font-family: 'IM Fell English', serif; font-style: italic; font-size: 11px; color: var(--sepia); }

/* ── MEMORIES GRID ── */
.mem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px,1fr)); gap: 14px; }
.mem-card  { background: var(--paper2); border: 1px solid var(--border2); border-radius: var(--r); overflow: hidden; cursor: default; transition: all 0.2s; }
.mem-card:hover { box-shadow: 0 6px 22px rgba(30,20,10,0.17); transform: translateY(-2px); }
.mem-thumb {
  height: 118px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.mem-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 50%, rgba(30,20,10,0.28)); }
.t1 { background: linear-gradient(135deg,#c8a060,#a07030); }
.t2 { background: linear-gradient(135deg,#8a6840,#b08840); }
.t3 { background: linear-gradient(135deg,#a87840,#805828); }
.t4 { background: linear-gradient(135deg,#b89860,#907040); }
.mem-img   { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.mem-emoji { font-size: 36px; position: relative; z-index: 1; }
.mem-body  { padding: 10px 12px; }
.mem-title { font-family: 'Playfair Display', serif; font-size: 12px; font-weight: 700; margin-bottom: 3px; color: var(--ink); }
.mem-tags  { font-family: 'IM Fell English', serif; font-style: italic; font-size: 10px; color: var(--sepia2); margin-bottom: 4px; }
.mem-meta  { display: flex; justify-content: space-between; align-items: center; font-family: 'IM Fell English', serif; font-size: 10px; color: var(--sepia); }
.heart-btn { background: none; border: none; cursor: pointer; color: var(--red); font-size: 11px; font-family: 'IM Fell English', serif; transition: transform 0.15s; }
.heart-btn:hover { transform: scale(1.3); }
.mem-add-card { background: var(--paper4); border: 1.5px dashed var(--border2); border-radius: var(--r); cursor: pointer; transition: all 0.2s; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 155px; }
.mem-add-card:hover { border-color: var(--sepia2); background: var(--paper2); }
.mem-add-label { font-family: 'IM Fell English', serif; font-style: italic; font-size: 11px; color: var(--sepia); }

/* ── EVENTS ── */
.ev-list { display: flex; flex-direction: column; gap: 12px; }
.ev-card  { background: var(--paper2); border: 1px solid var(--border2); border-radius: var(--r); padding: 14px 16px; display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.ev-date  { background: var(--green); color: var(--paper); border-radius: var(--r); padding: 7px 10px; text-align: center; min-width: 42px; flex-shrink: 0; }
.ev-day   { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 900; line-height: 1; }
.ev-mon   { font-family: 'IM Fell English', serif; font-size: 8px; letter-spacing: 2px; text-transform: uppercase; opacity: 0.8; margin-top: 1px; }
.ev-info  { flex: 1; }
.ev-title { font-family: 'Playfair Display', serif; font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.ev-desc  { font-family: 'Lora', serif; font-style: italic; font-size: 11px; color: var(--sepia); line-height: 1.5; }
.rsvp-btn { background: none; border: 1px solid var(--border2); font-family: 'IM Fell English', serif; font-style: italic; font-size: 11px; color: var(--sepia); padding: 5px 12px; border-radius: var(--r); cursor: pointer; transition: all 0.2s; flex-shrink: 0; }
.rsvp-btn:hover { background: var(--green); color: var(--paper); border-color: var(--green); }
.rsvp-btn.going { background: var(--green); color: var(--paper); border-color: var(--green); }
.divider { display: flex; align-items: center; gap: 10px; margin: 20px 0 14px; }
.div-line { flex: 1; height: 1px; background: var(--border2); }
.div-txt  { font-family: 'IM Fell English', serif; font-style: italic; font-size: 10px; color: var(--sepia); white-space: nowrap; letter-spacing: 1px; }
.vote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px,1fr)); gap: 12px; }
.vote-card { background: var(--paper2); border: 1px solid var(--border2); border-radius: var(--r); padding: 15px; text-align: center; cursor: pointer; transition: all 0.2s; }
.vote-card:hover { border-color: var(--sepia2); }
.vote-card.picked { border-color: var(--green); background: var(--paper3); }
.vote-ico   { font-size: 20px; margin-bottom: 6px; }
.vote-name  { font-family: 'Playfair Display', serif; font-size: 12px; font-weight: 700; font-style: italic; margin-bottom: 4px; }
.vote-count { font-family: 'IM Fell English', serif; font-size: 10px; color: var(--sepia); }

/* ── CHAT ── */
.chat-intro { font-family: 'IM Fell English', serif; font-style: italic; font-size: 11px; color: var(--sepia); margin-bottom: 14px; letter-spacing: 0.5px; }
.chat-wrap  { background: var(--paper2); border: 1px solid var(--border2); border-radius: var(--r); overflow: hidden; }
.chat-hdr   { background: var(--green); border-bottom: 2px solid var(--gold); padding: 11px 16px; display: flex; align-items: center; gap: 10px; }
.anon-dot   { width: 7px; height: 7px; border-radius: 50%; background: #6fcf6f; box-shadow: 0 0 5px #6fcf6f; flex-shrink: 0; }
.chat-hdr-title { font-family: 'Playfair Display', serif; font-style: italic; font-size: 13px; color: var(--paper); font-weight: 700; }
.chat-hdr-sub   { font-family: 'IM Fell English', serif; font-size: 9px; color: rgba(249,243,230,0.5); margin-left: auto; letter-spacing: 1px; }
.chat-msgs  { padding: 16px; display: flex; flex-direction: column; gap: 12px; max-height: 320px; overflow-y: auto; }
.msg        { display: flex; gap: 9px; max-width: 88%; }
.msg.mine   { flex-direction: row-reverse; align-self: flex-end; }
.msg-av     { width: 28px; height: 28px; min-width: 28px; border-radius: 50%; border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center; font-size: 13px; background: var(--paper3); }
.msg-content {}
.msg-who    { font-family: 'IM Fell English', serif; font-size: 9px; color: var(--sepia); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 3px; }
.msg-who.r  { text-align: right; }
.msg-bubble { background: var(--paper4); border: 1px solid var(--border); border-radius: var(--r); padding: 8px 11px; font-size: 12px; line-height: 1.55; color: var(--ink); }
.msg.mine .msg-bubble { background: var(--green); border-color: var(--green); color: var(--paper); }
.chat-empty { font-family: 'IM Fell English', serif; font-style: italic; font-size: 12px; color: var(--sepia); text-align: center; padding: 20px 0; }
.chat-inp-row { padding: 11px 14px; border-top: 1px solid var(--border2); display: flex; gap: 9px; background: var(--paper); }
.chat-inp  { flex: 1; background: var(--paper2); border: 1px solid var(--border2); border-radius: var(--r); color: var(--ink); font-family: 'Lora', serif; font-style: italic; font-size: 12px; padding: 8px 11px; outline: none; }
.chat-inp:focus { border-color: var(--sepia2); }
.chat-inp::placeholder { color: var(--sepia); opacity: 0.7; }
.chat-send { background: var(--green); border: 1px solid var(--gold); color: var(--paper); font-family: 'IM Fell English', serif; font-style: italic; font-size: 12px; padding: 8px 16px; border-radius: var(--r); cursor: pointer; transition: all 0.2s; }
.chat-send:hover { background: var(--gold); color: var(--ink); }

/* ── MODALS ── */
.modal-ov   { position: fixed; inset: 0; z-index: 200; background: rgba(20,12,4,0.78); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 18px; }
.modal      { background: var(--paper); border: 1px solid var(--border2); border-radius: var(--r); width: 100%; max-width: 420px; max-height: 88vh; overflow-y: auto; padding: 24px; box-shadow: 0 20px 60px rgba(20,12,4,0.5); border-top: 3px solid var(--green); }
.m-title    { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; font-style: italic; margin-bottom: 4px; color: var(--ink); }
.m-sub      { font-family: 'IM Fell English', serif; font-style: italic; font-size: 11px; color: var(--sepia); margin-bottom: 14px; }
.m-rule     { height: 1px; background: var(--border2); margin-bottom: 14px; }
.cols2      { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fg         { margin-bottom: 12px; }
.flabel     { display: block; font-family: 'IM Fell English', serif; font-size: 9px; color: var(--sepia); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 4px; }
.finp       { width: 100%; background: var(--paper2); border: 1px solid var(--border2); border-radius: var(--r); color: var(--ink); font-family: 'Lora', serif; font-style: italic; font-size: 12px; padding: 8px 10px; outline: none; }
.finp:focus { border-color: var(--sepia2); }
.finp::placeholder { color: var(--sepia); opacity: 0.6; }
textarea.finp { resize: none; height: 68px; line-height: 1.5; }
.m-footer   { display: flex; gap: 10px; margin-top: 16px; }
.btn-cancel { background: none; border: 1px solid var(--border2); color: var(--sepia); font-family: 'IM Fell English', serif; font-style: italic; font-size: 12px; padding: 8px 14px; border-radius: var(--r); cursor: pointer; flex: 1; }
.btn-ok     { background: var(--green); border: 1px solid var(--gold); color: var(--paper); font-family: 'IM Fell English', serif; font-style: italic; font-size: 12px; padding: 8px 14px; border-radius: var(--r); cursor: pointer; flex: 2; transition: all 0.2s; }
.btn-ok:hover { background: var(--red); border-color: var(--red); }
.btn-ok:disabled { opacity: 0.6; cursor: not-allowed; }
.form-error { color: var(--red); font-size: 11px; margin-top: 8px; padding: 7px 10px; background: rgba(122,26,26,0.08); border-radius: var(--r); font-family: 'IM Fell English', serif; }

/* Upload zone */
.upzone { border: 1.5px dashed var(--border2); border-radius: var(--r); padding: 24px; text-align: center; cursor: pointer; transition: all 0.2s; margin-bottom: 14px; background: var(--paper2); }
.upzone:hover { border-color: var(--sepia2); background: var(--paper3); }
.up-ico { font-size: 26px; margin-bottom: 7px; opacity: 0.7; }
.up-txt { font-family: 'Playfair Display', serif; font-style: italic; font-size: 13px; margin-bottom: 3px; }
.up-sub { font-family: 'IM Fell English', serif; font-size: 9px; color: var(--sepia); letter-spacing: 1px; }
.img-preview { width: 100%; border-radius: var(--r); margin-bottom: 12px; max-height: 160px; object-fit: cover; }
.upload-progress { margin-top: 10px; }
.progress-bar  { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-bottom: 5px; }
.progress-fill { height: 100%; background: var(--green2); border-radius: 2px; transition: width 0.3s; width: 0; }
.progress-txt  { font-family: 'IM Fell English', serif; font-size: 10px; color: var(--sepia); text-align: center; }

/* ── MISC ── */
.loading-msg  { font-family: 'IM Fell English', serif; font-style: italic; font-size: 12px; color: var(--sepia); text-align: center; padding: 20px 0; }
.error-msg    { font-family: 'IM Fell English', serif; font-size: 12px; color: var(--red); text-align: center; padding: 16px; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  nav { padding: 0 12px; }
  .nav-links { display: none; } /* on mobile you can add a hamburger menu */
  .cols2 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-i:nth-child(2) { border-right: none; }
  .mast-title { font-size: 32px; }
}
