/* ============================================
   Sub Tracker — style.css
   Light + Dark mode, landscape two-panel
   ============================================ */

/* ── Design tokens ── */
:root {
  --font-fallback: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-primary: "Plus Jakarta Sans", var(--font-fallback);
  --bg:           #f0f0f2;
  --card-bg:      #ffffff;
  --panel-border: #f0f0f0;
  --text-primary: #111111;
  --text-secondary:#666666;
  --text-muted:   #bbbbbb;
  --input-bg:     #fafafa;
  --input-border: #ebebeb;
  --input-focus:  #aaaaaa;
  --chip-bg:      #ffffff;
  --chip-border:  #e8e8e8;
  --chip-hover:   #fafafa;
  --chip-sel-bg:  #111111;
  --chip-sel-fg:  #ffffff;
  --btn-bg:       #111111;
  --btn-fg:       #ffffff;
  --row-border:   #f5f5f5;
  --toggle-bg:    #f3f3f5;
  --toggle-active:#ffffff;
  --shadow:       rgba(0,0,0,0.10);
  --shadow-lg:    rgba(0,0,0,0.14);
  --budget-track: #f0f0f2;
  --budget-ok:    #22c55e;
  --budget-warn:  #f59e0b;
  --budget-over:  #ef4444;
  --empty-color:  #dddddd;
  --annual-color: #888888;
}

[data-theme="dark"] {
  --bg:            #0a0a0a;
  --card-bg:       #141414;
  --panel-border:  #242424;
  --text-primary:  #f2f2f2;
  --text-secondary:#9a9a9a;
  --text-muted:    #525252;
  --input-bg:      #1e1e1e;
  --input-border:  #303030;
  --input-focus:   #606060;
  --chip-bg:       #1e1e1e;
  --chip-border:   #303030;
  --chip-hover:    #282828;
  --chip-sel-bg:   #f2f2f2;
  --chip-sel-fg:   #111111;
  --btn-bg:        #f2f2f2;
  --btn-fg:        #111111;
  --row-border:    #1e1e1e;
  --toggle-bg:     #1e1e1e;
  --toggle-active: #303030;
  --shadow:        rgba(0,0,0,0.45);
  --shadow-lg:     rgba(0,0,0,0.65);
  --budget-track:  #1e1e1e;
  --empty-color:   #303030;
  --annual-color:  #686868;
}

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

html, body {
  height: 100%;
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.25s;
}

/* ── Card — landscape two-panel ── */
.card {
  background: var(--card-bg);
  border-radius: 24px;
  width: 900px;
  max-width: calc(100vw - 2rem);
  height: 660px;
  max-height: calc(100vh - 2rem);
  display: flex;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.06),
    0 20px 60px var(--shadow-lg),
    0 4px 16px var(--shadow);
  transition: background 0.25s, box-shadow 0.25s;
}

/* ── Panels ── */
.panel {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.75rem 1.5rem;
  overflow: hidden;
}

.panel-left {
  width: 400px;
  flex-shrink: 0;
  border-right: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-left-scrollable {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.panel-left-scrollable::-webkit-scrollbar { display: none; }

.panel-right {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Panel header ── */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.app-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0;
}

.theme-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--chip-border);
  background: var(--chip-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--input-focus); transform: scale(1.08); }

/* SVG icon inside the toggle */
.theme-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  line-height: 0;
}
.theme-icon svg { display: block; }

/* ── Section labels ── */
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  letter-spacing: 0;
  text-transform: none;
}

/* ── Total ── */
.total-section {
  margin-bottom: 1rem;
}

.total-amount {
  display: flex;
  align-items: baseline;
  line-height: 1;
}

.currency-sym {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  align-self: flex-start;
  margin-top: 0.25rem;
  margin-right: 1px;
  transition: font-size 0.15s, color 0.25s;
}
.currency-sym.long {
  font-size: 0.95rem;
  margin-top: 0.6rem;
  margin-right: 4px;
}

#totalAmount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1.5px;
  line-height: 1;
  transition: opacity 0.12s, color 0.25s;
}

.per-month {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 5px;
  align-self: flex-end;
  padding-bottom: 0.3rem;
  transition: color 0.25s;
}

.annual-total {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--annual-color);
  margin-top: 0.2rem;
  transition: color 0.25s;
}

.total-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  transition: color 0.25s;
}

.rate-note {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* ── Currency toggle ── */
.currency-toggle {
  display: inline-flex;
  background: var(--toggle-bg);
  border-radius: 8px;
  padding: 3px;
  margin-top: 0.7rem;
  transition: background 0.25s;
}

.cur-btn {
  padding: 0.28rem 0.7rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.cur-btn.active {
  background: var(--toggle-active);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 1px 4px var(--shadow);
}

/* ── Budget section ── */
.budget-section {
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.75rem;
  transition: background 0.25s, border-color 0.25s;
}

.budget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.budget-edit-btn {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: none;
  border: 1px solid var(--chip-border);
  border-radius: 5px;
  padding: 0.15rem 0.5rem;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}
.budget-edit-btn:hover { color: var(--text-primary); border-color: var(--text-secondary); }

.budget-bar-wrap { margin-top: 0.55rem; }

.budget-bar-track {
  height: 6px;
  background: var(--budget-track);
  border-radius: 99px;
  overflow: hidden;
  transition: background 0.25s;
}

.budget-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--budget-ok);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s;
  width: 0%;
}

.budget-bar-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.budget-input-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.budget-input-row .price-sym {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.budget-input-row .input-price {
  flex: 1;
  height: 32px;
  border: 1.5px solid var(--input-border);
  border-radius: 7px;
  background: var(--card-bg);
  padding: 0 0.6rem;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-primary);
  outline: none;
}
.budget-input-row .input-price:focus { border-color: var(--input-focus); }

.btn-save {
  height: 32px;
  padding: 0 0.75rem;
  border-radius: 7px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: none;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-save:hover { opacity: 0.85; }

.btn-cancel {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s;
}
.btn-cancel:hover { color: var(--text-primary); }

/* ── Quick chips ── */
.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.7rem 0.32rem 0.45rem;
  border-radius: 999px;
  border: 1.5px solid var(--chip-border);
  background: var(--chip-bg);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.12s, color 0.25s;
  font-family: inherit;
  user-select: none;
  white-space: nowrap;
}
.chip:hover {
  border-color: var(--input-focus);
  background: var(--chip-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px var(--shadow);
}
.chip.selected {
  background: var(--chip-sel-bg);
  border-color: var(--chip-sel-bg);
  color: var(--chip-sel-fg);
  box-shadow: 0 3px 10px var(--shadow-lg);
}
.chip.selected:hover { opacity: 0.9; }

.chip-logo {
  width: 15px; height: 15px;
  border-radius: 3px;
  object-fit: contain;
  flex-shrink: 0;
}
.chip-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  display: none;
}
.chip-dot.visible { display: block; }

/* ── Custom add row ── */
.custom-add-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
  flex-shrink: 0;
}

.input-name {
  flex: 1;
  height: 40px;
  border: 1.5px solid var(--input-border);
  border-radius: 10px;
  background: var(--input-bg);
  padding: 0 0.875rem;
  font-family: inherit;
  font-size: 0.84rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s, background 0.15s, color 0.25s;
  min-width: 0;
}
.input-name::placeholder { color: var(--text-muted); }
.input-name:focus { border-color: var(--input-focus); background: var(--card-bg); }

.price-wrap {
  display: flex;
  align-items: center;
  height: 40px;
  border: 1.5px solid var(--input-border);
  border-radius: 10px;
  background: var(--input-bg);
  padding: 0 0.4rem 0 0.55rem;
  gap: 2px;
  transition: border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.price-wrap:focus-within { border-color: var(--input-focus); background: var(--card-bg); }

.price-sym {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  pointer-events: none;
  flex-shrink: 0;
  transition: color 0.25s;
}

.input-price {
  width: 54px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.84rem;
  color: var(--text-primary);
  outline: none;
  transition: color 0.25s;
}
.input-price::placeholder { color: var(--text-muted); }
.input-price::-webkit-outer-spin-button,
.input-price::-webkit-inner-spin-button { -webkit-appearance: none; }
.input-price[type=number] { -moz-appearance: textfield; }

.select-cycle {
  height: 40px;
  border: 1.5px solid var(--input-border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0 0.5rem;
  outline: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.25s, color 0.25s;
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
  min-width: 56px;
}
.select-cycle:focus { border-color: var(--input-focus); }

.btn-add {
  height: 40px;
  padding: 0 1.1rem;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: none;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s, background 0.25s, color 0.25s;
  flex-shrink: 0;
}
.btn-add:hover { opacity: 0.85; }
.btn-add:active { transform: scale(0.97); }

/* ── Subscriptions list ── */
.subs-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--chip-border) transparent;
}
.subs-list::-webkit-scrollbar { width: 4px; }
.subs-list::-webkit-scrollbar-thumb { background: var(--chip-border); border-radius: 2px; }

/* ── Empty state ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 2.5rem 1rem;
  color: var(--empty-color);
  transition: color 0.25s;
}

.empty-icon {
  width: 44px;
  height: 44px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 0.8rem;
  text-align: center;
  color: var(--text-muted);
  transition: color 0.25s;
}

/* ── Subscription rows ── */
.sub-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--row-border);
  animation: rowIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  transition: border-color 0.25s;
}

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

.sub-logo-wrap {
  width: 28px; height: 28px;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--sub-color, #eee);
  transition: none;
}

.sub-logo-img {
  width: 28px; height: 28px;
  object-fit: contain;
  display: block;
  border-radius: 5px;
}
.sub-logo-img.hidden { display: none; }
.sub-logo-img.hidden + .sub-logo-fallback { display: block; }

.sub-logo-fallback {
  font-size: 0.58rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  display: none;
}

.sub-name {
  flex: 1;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  transition: color 0.25s;
}

/* Billing cycle badge */
.sub-cycle-badge {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--budget-track);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s;
}

.sub-price {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.25s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  border-radius: 6px;
  padding: 2px 4px;
  margin-right: -4px;
  transition: background 0.15s, color 0.25s;
}
.sub-price:hover {
  background: var(--budget-track);
}
.sub-billing {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: color 0.25s;
}

/* Pencil edit icon — hidden by default, shown on hover */
.sub-edit-icon {
  opacity: 0;
  transition: opacity 0.15s;
  color: var(--text-muted);
  line-height: 0;
  flex-shrink: 0;
}
.sub-row:hover .sub-edit-icon {
  opacity: 1;
}

/* Inline price input inside the row */
.sub-price-input {
  width: 72px;
  border: 1.5px solid var(--input-focus);
  border-radius: 6px;
  background: var(--card-bg);
  padding: 0 0.4rem;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-primary);
  outline: none;
  height: 26px;
  transition: border-color 0.15s;
}
.sub-price-input::-webkit-outer-spin-button,
.sub-price-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sub-price-input[type=number] { -moz-appearance: textfield; }


.sub-remove {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: none; cursor: pointer;
  color: var(--text-muted);
  border-radius: 50%;
  transition: color 0.14s, background 0.14s;
  font-size: 1rem; line-height: 1; padding: 0;
  flex-shrink: 0;
}
.sub-remove:hover { color: var(--text-primary); background: var(--budget-track); }

.sub-row.removing { animation: rowOut 0.2s ease forwards; }
@keyframes rowOut { to { opacity: 0; transform: translateX(10px); } }

/* ── Responsive ── */
@media (max-width: 680px) {
  html, body {
    overflow-y: auto;
    height: auto;
    padding: 0;
    align-items: flex-start;
  }
  .card {
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: 100svh;
    max-height: none;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
  }
  .panel {
    padding: 1.25rem 1.1rem;
  }
  .panel-left {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--panel-border);
    overflow: visible;
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--card-bg);
  }
  .panel-left-scrollable {
    overflow: visible;
  }
  .panel-right {
    overflow: visible;
    padding-bottom: 2rem;
  }
  .subs-list {
    overflow: visible;
    min-height: 60px;
  }
  /* So the right panel header isn't hidden under sticky left panel */
  .panel-right > .section-label:first-child {
    padding-top: 0.25rem;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.user-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}
.user-icon svg {
  width: 18px;
  height: 18px;
  color: var(--text-primary);
}

/* ── Auth Modal ── */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
  overflow-y: auto;
  padding: 1rem;
}

[data-theme="dark"] .modal-overlay {
  background: rgba(0, 0, 0, 0.65);
}

.modal-card {
  background: var(--card-bg);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  width: 380px;
  max-width: calc(100vw - 2rem);
  padding: 2.2rem 2rem 2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  position: relative;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-primary);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.modal-close {
  position: absolute;
  top: 15px; right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s;
}
.modal-close:hover {
  color: var(--text-primary);
  background: var(--toggle-bg);
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}

.modal-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input {
  height: 40px;
  border: 1.5px solid var(--input-border);
  border-radius: 9px;
  background: var(--input-bg);
  padding: 0 0.8rem;
  font-family: inherit;
  font-size: 0.86rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus {
  border-color: var(--input-focus);
}

.btn-primary {
  width: 100%;
  height: 40px;
  border-radius: 9px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.6rem;
  transition: opacity 0.15s, transform 0.1s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:active { transform: scale(0.98); }

.modal-footer {
  margin-top: 1.4rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.btn-link {
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.btn-link:hover {
  opacity: 0.8;
}

.alert-box {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  font-size: 0.78rem;
  margin-bottom: 1.2rem;
  font-weight: 500;
}
[data-theme="dark"] .alert-box {
  background: #2a0a0a;
  border: 1px solid #5a1f1f;
  color: #fca5a5;
}

/* Profile specific styles */
.profile-card {
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.profile-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  text-transform: uppercase;
}

.profile-email {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

.profile-status {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--budget-ok);
}

.btn-danger {
  width: 100%;
  height: 40px;
  border-radius: 9px;
  background: transparent;
  color: #ef4444;
  border: 1.5px solid #fca5a5;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-danger:hover {
  background: #fee2e2;
}
[data-theme="dark"] .btn-danger {
  border-color: #7f1d1d;
  color: #f87171;
}
[data-theme="dark"] .btn-danger:hover {
  background: #450a0a;
}
