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

:root {
  --bg: #111111;
  --card: #1A1A1A;
  --border: #2A2A2A;
  --accent: #FF6B35;
  --text: #FFFFFF;
  --muted: #888888;
  --danger: #E53E3E;
  --highlight: rgba(255, 107, 53, 0.12);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  min-height: 100vh;
  padding-bottom: 100px;
}

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px 12px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.logo { font-size: 24px; }

h1 {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.12em;
  flex: 1;
}

.default-badge {
  font-size: 12px;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 20px;
}

.default-badge strong { color: var(--accent); }

.search-wrap input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.search-wrap input:focus { border-color: var(--accent); }
.search-wrap input::placeholder { color: var(--muted); }

/* ── MAIN LIST ── */
main {
  padding: 16px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.loading {
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
  font-size: 15px;
}

/* ── SHOE CARD ── */
.shoe-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.shoe-card:active { transform: scale(0.98); }
.shoe-card:hover { border-color: #3A3A3A; }

.shoe-card.off-default {
  border-left: 3px solid var(--accent);
  background: var(--highlight);
}

.size-pill {
  min-width: 62px;
  height: 62px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  flex-shrink: 0;
}

.shoe-card.off-default .size-pill {
  border-color: var(--accent);
  color: var(--accent);
}

.shoe-info { flex: 1; min-width: 0; }

.shoe-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.shoe-model {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shoe-notes {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 18px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.copy-btn.copied {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}

.empty-icon { font-size: 60px; margin-bottom: 16px; }
.empty-state p { font-size: 18px; font-weight: 700; }
.empty-sub { font-size: 14px; font-weight: 400; margin-top: 6px; }

/* ── FAB ── */
.fab {
  position: fixed;
  bottom: 28px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 32px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  -webkit-tap-highlight-color: transparent;
}

.fab:active { transform: scale(0.92); }

/* ── MODALS ── */
/* Hidden by default — JS adds .is-open to show */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  align-items: flex-end;
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  background: #1E1E1E;
  border-radius: 20px 20px 0 0;
  padding: 28px 20px 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal h2 {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.modal label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 6px;
}

.optional { font-weight: 400; text-transform: none; letter-spacing: 0; }

.modal input,
.modal select {
  background: #111111;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.modal input:focus,
.modal select:focus { border-color: var(--accent); }

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.btn-cancel {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.btn-save {
  flex: 2;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: white;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.btn-save:active { opacity: 0.85; }

.btn-delete {
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 4px;
}

/* ── CONFIRM MODAL ── */
.confirm-modal { text-align: center; }
.confirm-modal p { font-size: 18px; font-weight: 700; }
.confirm-sub { color: var(--muted); font-size: 14px; font-weight: 400; }

.btn-delete-confirm {
  flex: 2;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: var(--danger);
  color: white;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

/* ── UTILITIES ── */
.hidden { display: none !important; }
