/* ===== ROOT ===== */
:root {
  --bg: #0f0e0c;
  --bg2: #1a1915;
  --bg3: #242320;
  --bg4: #2e2c28;
  --amber: #d4922a;
  --amber2: #f0b84a;
  --amber3: #ffd580;
  --cream: #e8dcc8;
  --cream2: #c4b49a;
  --text: #ede8e0;
  --text2: #b5aa98;
  --text3: #7a7060;
  --red: #c0392b;
  --red2: #e74c3c;
  --green: #27ae60;
  --green2: #2ecc71;
  --blue: #2980b9;
  --purple: #8e44ad;
  --r: 12px;
  --r2: 8px;
  --r3: 6px;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== APP SHELL ===== */
#app { display: flex; flex-direction: column; min-height: 100vh; }

/* ===== HEADER ===== */
header {
  background: var(--bg2);
  border-bottom: 1px solid var(--bg4);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--amber2);
  white-space: nowrap;
}
.logo span {
  color: var(--cream2);
  font-size: .65rem;
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  letter-spacing: .04em;
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.back-btn {
  display: none;
  align-items: center;
  gap: .4rem;
  background: none;
  border: 1px solid var(--bg4);
  border-radius: var(--r3);
  color: var(--text2);
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  padding: .35rem .8rem;
  cursor: pointer;
  transition: all .2s;
}
.back-btn:hover { border-color: var(--amber); color: var(--amber2); }
.back-btn.visible { display: flex; }

.date-display {
  font-size: .72rem;
  color: var(--text3);
  white-space: nowrap;
}

/* ===== MAIN ===== */
main {
  flex: 1;
  padding: 1.5rem;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

/* ===== SCREENS ===== */
.screen { display: none; animation: fadeIn .25s ease; }
.screen.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== HOME SCREEN - TILE GROUPS ===== */
.home-screen {}

/* Favourites row */
.fav-row { margin-bottom: 1rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fav-title { font-family: 'Playfair Display', serif; font-size: .95rem; font-weight: 500; color: var(--cream); margin-bottom: .5rem; }
.fav-scroll { display: flex; gap: .5rem; padding-bottom: .3rem; }
.fav-tile { flex: 0 0 auto; text-align: center; padding: .5rem .65rem; background: var(--bg3); border-radius: var(--r2); cursor: pointer; position: relative; min-width: 56px; transition: background .15s; }
.fav-tile:active { background: var(--bg4); }
.fav-tile .tile-badge { position: absolute; top: -4px; right: -4px; background: var(--red); color: #fff; font-size: .6rem; font-weight: 700; padding: 1px 5px; border-radius: 8px; line-height: 1.3; }
.fav-emoji { font-size: 1.4rem; }
.fav-label { font-size: .65rem; color: var(--text2); margin-top: 2px; white-space: nowrap; }
.fav-add { border: 1px dashed var(--bg4); background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.fav-add .fav-emoji { font-size: 1.2rem; color: var(--text3); }

.tile-group {
  margin-bottom: 2rem;
}

.group-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .85rem;
}

.group-emoji { font-size: 1.1rem; }

.group-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--cream);
}

.group-line {
  flex: 1;
  height: 1px;
  background: var(--bg4);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .7rem;
}

/* ===== TILES ===== */
.tile {
  background: var(--bg2);
  border: 1px solid var(--bg4);
  border-radius: var(--r);
  padding: 1rem .9rem;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
  position: relative;
  min-height: 90px;
  user-select: none;
}

.tile:hover {
  border-color: var(--amber);
  background: #1f1c12;
  transform: translateY(-1px);
}

.tile:active { transform: translateY(0); }

.tile-emoji { font-size: 1.6rem; line-height: 1; }

.tile-label {
  font-size: .8rem;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.3;
}

.tile-sub {
  font-size: .68rem;
  color: var(--text3);
  line-height: 1.3;
}

.tile-badge {
  position: absolute;
  top: .6rem;
  right: .6rem;
  background: var(--amber);
  color: #0f0e0c;
  font-size: .6rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.tile-badge.red { background: var(--red2); color: white; }
.tile-badge.green { background: var(--green); color: white; }

.tile-ext {
  position: absolute;
  top: .5rem;
  right: .5rem;
  font-size: .6rem;
  color: var(--amber2);
  opacity: .6;
}

/* ===== MODULE SCREEN ===== */
.module-screen {
  max-width: 900px;
}

h2.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 1.1rem;
}

h3.card-title {
  font-size: .76rem;
  font-weight: 500;
  color: var(--amber2);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .75rem;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg2);
  border: 1px solid var(--bg4);
  border-radius: var(--r);
  padding: 1.1rem;
}

.card-sm {
  background: var(--bg3);
  border: 1px solid var(--bg4);
  border-radius: var(--r2);
  padding: .9rem;
}

/* ===== GRIDS ===== */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .9rem; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .85rem; }
.grid-auto-sm { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .7rem; }

/* ===== TYPOGRAPHY ===== */
.muted { color: var(--text3); font-size: .78rem; }
.text-amber { color: var(--amber2); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-cream { color: var(--cream); }

/* ===== FORM ELEMENTS ===== */
input[type=text],
input[type=date],
input[type=time],
input[type=number],
input[type=password],
input[type=url],
textarea,
select {
  background: var(--bg3);
  border: 1px solid var(--bg4);
  border-radius: var(--r3);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: .87rem;
  padding: .5rem .75rem;
  width: 100%;
  transition: border-color .2s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--amber);
}

textarea { resize: vertical; min-height: 72px; line-height: 1.5; }
select option { background: var(--bg3); }

/* ===== BUTTONS ===== */
.btn {
  background: none;
  border: 1px solid var(--bg4);
  border-radius: var(--r3);
  color: var(--text2);
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  padding: .44rem .88rem;
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  white-space: nowrap;
}
.btn:hover { border-color: var(--amber); color: var(--amber2); }

.btn-primary {
  background: var(--amber);
  border-color: var(--amber);
  color: #0f0e0c;
  font-weight: 500;
}
.btn-primary:hover { background: var(--amber2); border-color: var(--amber2); color: #0f0e0c; }

.btn-sm { padding: .26rem .62rem; font-size: .74rem; }
.btn-lg { padding: .6rem 1.2rem; font-size: .9rem; }

.btn-icon {
  padding: .32rem;
  border: none;
  background: none;
  color: var(--text3);
  cursor: pointer;
  font-size: .9rem;
  line-height: 1;
  transition: color .2s;
}
.btn-icon:hover { color: var(--amber2); }

.btn-danger {
  background: none;
  border: 1px solid #5a2020;
  color: #e07a7a;
  font-family: 'DM Sans', sans-serif;
  font-size: .74rem;
  padding: .26rem .62rem;
  border-radius: var(--r3);
  cursor: pointer;
  transition: all .2s;
}
.btn-danger:hover { background: #2c0a0a; }

/* ===== CHECKBOX ===== */
.cb {
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1.5px solid var(--bg4);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  margin-top: 2px;
  flex-shrink: 0;
}
.cb.checked { background: var(--amber); border-color: var(--amber); }
.cb.checked::after { content: '✓'; font-size: 10px; color: #0f0e0c; font-weight: 700; }

/* ===== TASK ITEM ===== */
.task-item {
  display: flex;
  align-items: flex-start;
  gap: .62rem;
  padding: .52rem;
  border-radius: var(--r3);
  transition: background .15s;
}
.task-item:hover { background: var(--bg3); }
.task-item.done .task-label { text-decoration: line-through; color: var(--text3); }
.task-label { font-size: .86rem; flex: 1; line-height: 1.4; }

/* ===== PROGRESS BAR ===== */
.progress-bar {
  height: 5px;
  background: var(--bg4);
  border-radius: 3px;
  overflow: hidden;
  margin: .35rem 0;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--amber2));
  border-radius: 3px;
  transition: width .4s ease;
}
.progress-fill.green { background: linear-gradient(90deg, #1a6b3a, #27ae60); }
.progress-fill.red { background: linear-gradient(90deg, #6b1a1a, #c0392b); }
.progress-fill.blue { background: linear-gradient(90deg, #1a3a6b, #2980b9); }
.progress-fill.purple { background: linear-gradient(90deg, #3a1a6b, #8e44ad); }

/* ===== PILLS ===== */
.pill-row { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .7rem; }
.pill {
  background: var(--bg4);
  color: var(--text2);
  border: none;
  border-radius: 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: .7rem;
  padding: .25rem .7rem;
  cursor: pointer;
  transition: all .2s;
}
.pill.active { background: var(--amber); color: #0f0e0c; font-weight: 500; }
.pill:hover:not(.active) { color: var(--cream); }

/* ===== STAT ROW ===== */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin-bottom: 1rem; }
.stat-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-bottom: 1rem; }
.stat-row-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-bottom: 1rem; }

.stat {
  background: var(--bg2);
  border: 1px solid var(--bg4);
  border-radius: var(--r2);
  padding: .8rem;
  text-align: center;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--amber2);
  line-height: 1;
}
.stat-label {
  font-size: .63rem;
  color: var(--text3);
  margin-top: .22rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ===== SEPARATOR ===== */
.sep { border: none; border-top: 1px solid var(--bg4); margin: .85rem 0; }

/* ===== TAGS ===== */
.tag {
  display: inline-block;
  font-size: .65rem;
  padding: .1rem .38rem;
  border-radius: 3px;
  font-weight: 500;
}
.tag-amber { background: #2c1800; color: var(--amber3); }
.tag-blue { background: #0a1c2c; color: #7ab8e0; }
.tag-green { background: #0a2c0a; color: #7ae07a; }
.tag-red { background: #2c0a0a; color: #e07a7a; }
.tag-purple { background: #1e0a2c; color: #c07ae0; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .82);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn .15s ease;
}
.modal {
  background: var(--bg2);
  border: 1px solid var(--bg4);
  border-radius: var(--r);
  padding: 1.4rem;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 1rem;
}
.modal-footer {
  display: flex;
  gap: .55rem;
  justify-content: flex-end;
  margin-top: 1rem;
}
.form-row { margin-bottom: .78rem; }
.form-label { font-size: .74rem; color: var(--text3); margin-bottom: .28rem; display: block; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-bottom: .78rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .65rem; margin-bottom: .78rem; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text3);
  font-size: .84rem;
}
.empty-icon { font-size: 1.8rem; margin-bottom: .5rem; opacity: .4; display: block; }

/* ===== LIST ITEMS ===== */
.list-row {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .52rem;
  border-radius: var(--r3);
  transition: background .15s;
}
.list-row:hover { background: var(--bg3); }

.border-row {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .48rem 0;
  border-bottom: 1px solid var(--bg3);
}
.border-row:last-child { border-bottom: none; }

/* ===== MOOD BUTTONS ===== */
.mood-btn {
  background: var(--bg3);
  border: 1px solid var(--bg4);
  border-radius: var(--r3);
  padding: .5rem .7rem;
  cursor: pointer;
  font-size: 1.15rem;
  transition: all .2s;
}
.mood-btn:hover, .mood-btn.sel { border-color: var(--amber); background: #1f1c12; }

/* ===== HABIT DOTS ===== */
.hdot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg4);
  cursor: pointer;
  transition: background .15s;
  display: inline-block;
}
.hdot.done { background: var(--amber); }

/* ===== CALENDAR ===== */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-header-cell {
  font-size: .63rem;
  color: var(--text3);
  text-align: center;
  padding: .25rem 0;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cal-day {
  min-height: 55px;
  background: var(--bg3);
  border: 1px solid var(--bg4);
  border-radius: 4px;
  padding: .25rem .3rem;
  cursor: pointer;
  transition: border-color .2s;
}
.cal-day:hover { border-color: var(--amber); }
.cal-day.today { border-color: var(--amber); background: #1f1c12; }
.cal-day.selected { background: #1f1c12; border-color: var(--amber2); }
.cal-day.other-month { opacity: .3; }
.cal-num { font-size: .68rem; color: var(--text2); }
.cal-day.today .cal-num { color: var(--amber2); font-weight: 600; }
.cal-event {
  font-size: .56rem;
  border-radius: 2px;
  padding: .02rem .2rem;
  margin-top: .06rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 500;
}
.cal-event.amber { background: var(--amber); color: #0f0e0c; }
.cal-event.blue { background: #1a3a5c; color: #7ab8e0; }
.cal-event.green { background: #0a2c1a; color: #7ae0a8; }
.cal-event.purple { background: #1e1030; color: #c07ae0; }

/* ===== SUBJECT COLOURS ===== */
.subj-maths { color: #f0b84a; }
.subj-english { color: #7ab8e0; }
.subj-science { color: #7ae0a8; }
.subj-history { color: #c07ae0; }
.subj-art { color: #e07ab8; }
.subj-pe { color: #e0a87a; }
.subj-other { color: var(--cream2); }

/* ===== PRIORITY TAGS ===== */
.pri-high { background: #2c0a0a; color: #e07a7a; font-size: .64rem; padding: .1rem .38rem; border-radius: 3px; font-weight: 500; }
.pri-med { background: #2a1f00; color: #e0b87a; font-size: .64rem; padding: .1rem .38rem; border-radius: 3px; font-weight: 500; }
.pri-low { background: #0a2c0a; color: #7ae07a; font-size: .64rem; padding: .1rem .38rem; border-radius: 3px; font-weight: 500; }

/* ===== WARRANTY / DUE STATUS ===== */
.due-ok { color: var(--green); }
.due-soon { color: var(--amber2); }
.due-overdue { color: var(--red); }

/* ===== STOPWATCH ===== */
.sw-display {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--amber2);
  text-align: center;
  letter-spacing: .05em;
  margin: 1rem 0;
}
.sw-ctrl-btn {
  background: var(--bg3);
  border: 1px solid var(--bg4);
  border-radius: 50%;
  width: 54px;
  height: 54px;
  font-size: .82rem;
  cursor: pointer;
  color: var(--text2);
  transition: all .2s;
}
.sw-ctrl-btn:hover { border-color: var(--amber); color: var(--amber2); }
.sw-ctrl-btn.active { background: var(--amber); color: #0f0e0c; border-color: var(--amber); }

/* ===== MEMORY CARD ===== */
.memory-card {
  background: var(--bg3);
  border: 1px solid var(--bg4);
  border-radius: var(--r2);
  padding: .9rem;
  cursor: pointer;
  transition: border-color .2s;
}
.memory-card:hover { border-color: var(--amber); }

/* ===== EPLAN SECTION ===== */
.eplan-section {
  background: var(--bg3);
  border: 1px solid var(--bg4);
  border-radius: var(--r2);
  padding: .95rem;
  margin-bottom: .65rem;
}
.eplan-title {
  font-size: .74rem;
  font-weight: 600;
  color: var(--amber2);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem;
}

/* ===== NOTICEBOARD ===== */
.board-post {
  background: var(--bg3);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--r2) var(--r2) 0;
  padding: .78rem 1rem;
  margin-bottom: .48rem;
}

/* ===== JOURNAL ===== */
.journal-card {
  background: var(--bg3);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--r2) var(--r2) 0;
  padding: .8rem 1rem;
  margin-bottom: .5rem;
  cursor: pointer;
}
.journal-card:hover { border-left-color: var(--amber2); }

/* ===== MORTGAGE RESULT ===== */
.mort-result {
  background: var(--bg3);
  border-radius: var(--r2);
  padding: .9rem;
  margin-top: .75rem;
}

/* ===== SPINNER ===== */
.spin-result {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--amber2);
  text-align: center;
  min-height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ===== UTILS ===== */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-4 { gap: .25rem; }
.gap-6 { gap: .375rem; }
.gap-8 { gap: .5rem; }
.gap-12 { gap: .75rem; }
.gap-16 { gap: 1rem; }
.mb-4 { margin-bottom: .25rem; }
.mb-8 { margin-bottom: .5rem; }
.mb-12 { margin-bottom: .75rem; }
.mb-16 { margin-bottom: 1rem; }
.mb-24 { margin-bottom: 1.5rem; }
.mt-8 { margin-top: .5rem; }
.mt-12 { margin-top: .75rem; }
.mt-16 { margin-top: 1rem; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-serif { font-family: 'Playfair Display', serif; }
.italic { font-style: italic; }
.bold { font-weight: 600; }
.mono { font-family: monospace; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  main { padding: 1rem; }
  .tile-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .55rem; }
  .tile { min-height: 80px; padding: .8rem .75rem; }
  .tile-emoji { font-size: 1.4rem; }
  .tile-label { font-size: .74rem; }
  .grid2 { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .tile-grid { grid-template-columns: repeat(3, 1fr); gap: .45rem; }
  .tile { min-height: 72px; padding: .65rem; }
  .tile-emoji { font-size: 1.2rem; }
  .tile-label { font-size: .68rem; }
  .grid3 { grid-template-columns: 1fr; }
}

/* ===== USER PICKER ===== */
.user-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 2rem 1rem;
}
.user-picker-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--cream);
  margin-bottom: 2rem;
  text-align: center;
}
.user-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 400px;
  width: 100%;
}
.user-tile {
  background: var(--bg3);
  border: 2px solid var(--bg4);
  border-radius: var(--r2);
  padding: 1.5rem .8rem;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.user-tile:hover {
  border-color: var(--user-color, var(--amber));
  background: var(--bg4);
  transform: translateY(-2px);
}
.user-tile-avatar {
  font-size: 3rem;
  margin-bottom: .5rem;
}
.user-tile-name {
  font-size: 1rem;
  color: var(--cream);
  font-weight: 600;
}
.user-tile-status {
  font-size: .7rem;
  color: var(--text3);
  margin-top: .3rem;
}
.user-picker-footer {
  margin-top: 2rem;
  font-size: .78rem;
  color: var(--text3);
  text-align: center;
  max-width: 300px;
}

/* ===== PIN PAD ===== */
.pin-dots {
  display: flex;
  justify-content: center;
  gap: .6rem;
  margin: .5rem 0;
}
.pin-dot {
  font-size: 1.6rem;
  color: var(--text3);
  transition: color .15s;
}
.pin-dot.filled { color: var(--amber2); }
.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  max-width: 260px;
  margin: 0 auto;
}
.pin-btn {
  background: var(--bg3);
  border: 1px solid var(--bg4);
  border-radius: var(--r3);
  padding: .9rem;
  font-size: 1.3rem;
  color: var(--cream);
  cursor: pointer;
  transition: all .15s;
  font-family: 'DM Sans', sans-serif;
}
.pin-btn:hover { background: var(--bg4); border-color: var(--amber); }
.pin-btn:active { transform: scale(.95); }
