:root {
  --bg: #FFF8F0;
  --surface: #FFD3B6;
  --surface2: #FFEAD8;
  --border: rgba(43, 45, 66, 0.1);
  --primary: #fa4659;
  --accent: #F4A261;
  --text: #2B2D42;
  --muted: #6B6B6B;
  --success: #88B04B;
  --red: #fa4659;
  --gold: #F4A261;
  --logo-text: #feffe4;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 10% 0%, rgba(255, 107, 107, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(244, 162, 97, 0.1) 0%, transparent 50%);
}

/* Utils & Common Classes */
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-logo {
  height: 40px; display: flex; align-items: center; justify-content: center;
}
.brand-logo img {
  height: 100%; width: auto;
}
.brand h1 { font-family: 'Inter', sans-serif; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; display: none; }
.brand h1.brand-name-desktop { display: block; color: var(--logo-text); }
.brand h1 span { color: var(--primary); }

.btn {
  padding: 0.65rem 1.3rem;
  border: none; border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.btn-primary { background: var(--accent); color: var(--text); }
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(244, 162, 97, 0.4); }
.btn-ghost { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.4); }
.btn-danger { background: rgba(231, 111, 81, 0.12); color: var(--red); border: 1px solid rgba(231, 111, 81, 0.2); padding: 0.35rem 0.7rem; font-size: 0.8rem; border-radius: 8px; }
.btn-danger:hover { background: rgba(224,96,96,0.25); }
.btn-danger:disabled { opacity: 0.3; cursor: not-allowed; filter: grayscale(1); }

input[type="text"], input[type="email"], input[type="date"], input[type="number"], input[type="password"], select, textarea {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  flex: 1;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
select option { background: var(--surface2); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.4rem; margin-bottom: 1.25rem;
}
.card-title {
  font-size: 0.8rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 1rem; display: flex; align-items: center; gap: 0.4rem;
}
.card-title::before { content: ''; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; }

.empty {
  text-align: center; padding: 3.5rem 1rem;
  color: var(--muted); line-height: 1.7;
}
.empty .icon { font-size: 3rem; display: block; margin-bottom: 0.75rem; }

.errors {
  background: rgba(224,96,96,0.1); border: 1px solid rgba(224,96,96,0.25);
  border-radius: 9px; padding: 0.7rem 0.9rem;
  font-size: 0.84rem; color: var(--red);
  margin-bottom: 1rem; list-style: none;
}
.errors li::before { content: "⚠ "; }

/* ── HEADER ── */
header {
  padding: 1rem 1.5rem;
  background: var(--primary);
  color: var(--logo-text);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}

header a, header h1 {
  color: var(--logo-text);
}


header .logout-link {
  color: var(--logo-text);
  opacity: 0.9;
}

header .logout-link:hover {
  opacity: 1;
}

header .burger-btn {
  display: block;
  background: none; border: none; font-size: 1.5rem; color: var(--logo-text); cursor: pointer;
  padding: 0.5rem;
}

.header-menu-container {
  position: relative;
}

.desktop-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  display: none;
  flex-direction: column;
  min-width: 200px;
  z-index: 1000;
  margin-top: 0.5rem;
  animation: fadeIn 0.2s ease;
}

.desktop-dropdown.open {
  display: flex;
}

.dropdown-user-info {
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.25rem 0.5rem;
}

.dropdown-link {
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  border-radius: 8px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dropdown-link:hover {
  background: var(--surface2);
}

.dropdown-link.logout-btn {
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--red);
}

.dropdown-link.logout-btn:hover {
  background: rgba(250, 70, 89, 0.1);
}

.event-sub-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

.event-sub-header .header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
}

.event-description-sub {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.1rem;
}

.event-sub-header .event-emoji {
  font-size: 1.4rem;
  width: 38px;
  height: 38px;
  background: var(--surface2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu {
    position: fixed; top: 0; right: 0; width: 100%; height: 100%;
    background: rgba(43, 45, 66, 0); backdrop-filter: blur(0px);
    z-index: 1000; visibility: hidden;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, visibility 0.3s;
  }
  .mobile-menu.open {
    visibility: visible;
    background: rgba(43, 45, 66, 0.4); backdrop-filter: blur(4px);
  }
  .mobile-menu-content {
    position: absolute; top: 0; right: 0; width: 80%; max-width: 300px; height: 100%;
    background: var(--bg); padding: 2rem; box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    display: flex; flex-direction: column; gap: 2rem;
    transform: translateX(100%); transition: transform 0.3s ease;
  }
  .mobile-menu.open .mobile-menu-content {
    transform: translateX(0);
  }
  .mobile-menu-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
  .user-info { font-size: 0.9rem; font-weight: 500; color: #1a1b26; }
  .close-menu { background: none; border: none; font-size: 1.2rem; color: var(--muted); cursor: pointer; }
  .mobile-nav-link {
    display: block; width: 100%; padding: 1rem 0; border: none; background: none;
    text-align: left; font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 500;
    color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border);
    cursor: pointer;
  }
  .mobile-nav-link:last-child { border-bottom: none; }
  .mobile-nav-link.logout-btn { color: var(--red); }

/* ── MAIN ── */
main { max-width: 720px; margin: 0 auto; padding: 3rem 1.5rem; }

/* ── AUTH BOXES ── */
.login-box, .logout-box, .invite-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  width: 100%; max-width: 400px;
  margin: 1rem;
}

.login-logo {
  background: var(--primary);
  border-radius: 12px;
  padding: 10px;
  height: 60px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.subtitle { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.75rem; }
.field { margin-bottom: 1rem; }
.field label {
  display: block; font-size: 0.75rem; font-weight: 600;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 0.35rem;
}
.footer-note { text-align: center; font-size: 0.78rem; color: var(--muted); margin-top: 1.5rem; }
.footer-note a { color: var(--primary); text-decoration: none; font-weight: 600; }
.helptext { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }

/* ── EVENT SPECIFIC ── */
.events-list { display: flex; flex-direction: column; gap: 0.6rem; }
.event-row { display: flex; align-items: center; gap: 0.5rem; }
.event-card {
  flex: 1; display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px;
  text-decoration: none; color: var(--text); transition: all 0.2s;
}
.event-card:hover { background: var(--surface2); border-color: var(--primary); transform: translateX(3px); }
.event-emoji {
  font-size: 1.6rem; width: 44px; height: 44px;
  background: var(--surface2); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.event-info { flex: 1; min-width: 0; }
.event-name { font-weight: 600; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-description { font-size: 0.82rem; color: var(--muted); margin-top: 0.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-meta { font-size: 0.78rem; color: var(--muted); margin-top: 0.15rem; }

/* ── TABS ── */
.tabs { display: flex; gap: 0.2rem; padding: 1.25rem 2rem 0; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab-btn {
  background: none; border: none; padding: 0.65rem 1.2rem;
  font-family: 'Inter', sans-serif; font-size: 0.88rem; font-weight: 500;
  color: var(--muted); cursor: pointer; border-radius: 8px 8px 0 0;
  transition: all 0.2s; position: relative; display: flex; align-items: center; gap: 0.4rem; white-space: nowrap;
}
.tab-btn.active { color: var(--text); background: rgba(255, 107, 107, 0.1); }
.tab-btn.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--primary); border-radius: 2px 2px 0 0; }

/* ── CHIPS & BADGES ── */
.chip { 
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; 
  padding: 0.35rem 0.7rem 0.25rem; border-radius: 20px; font-size: 0.8rem; font-weight: 500; 
  max-width: 150px; flex-shrink: 0; line-height: 1;
}
.chip span:first-child {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.badge { background: var(--primary); color: white; font-size: 0.65rem; font-weight: 600; padding: 0.12rem 0.38rem; border-radius: 10px; min-width: 18px; text-align: center; }

/* ── MODALS ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(43, 45, 66, 0.4);
  display: none; align-items: center; justify-content: center;
  z-index: 100; backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 2rem; width: 100%; max-width: 460px; margin: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(43, 45, 66, 0.15), 0 8px 10px -6px rgba(43, 45, 66, 0.1);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text);
}
.modal input, .modal select { background: white; }
.modal h2 { font-family: 'Inter', sans-serif; font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--text); }
.modal .field label { color: var(--text); opacity: 0.8; }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.75rem; margin-top: 2rem; }
@keyframes modalIn { from { opacity:0; transform:scale(0.96) translateY(8px); } to { opacity:1; transform:none; } }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.7rem 1.1rem; font-size: 0.84rem;
  opacity: 0; transform: translateY(8px); transition: all 0.22s; z-index: 200;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }
.toast.err { border-color: var(--red); color: var(--red); }

  .page-header { margin-bottom: 2.5rem; }
  .page-header h2 { font-family: 'Inter', sans-serif; font-size: 2rem; font-weight: 800; margin-bottom: 0.35rem; }
  .page-header p { color: var(--muted); font-size: 0.92rem; }
  .create-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 1.5rem; margin-bottom: 2.5rem;
  }
  .create-card h3 { font-size: 0.85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
  .form-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
  .form-row:last-child { margin-bottom: 0; }
  .emoji-input { flex: 0 0 70px; min-width: 70px; text-align: center; font-size: 1.2rem; }
  .event-arrow { color: var(--muted); font-size: 1.1rem; flex-shrink: 0; }
  .section-label {
    font-size: 0.78rem; font-weight: 600; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem;
  }

  .header-left { display: flex; align-items: center; }
  .header-title {
    font-family: 'Inter', sans-serif; font-size: 1.1rem; font-weight: 800;
    display: flex; align-items: center; gap: 0.5rem;
  }
  .header-title .event-emoji { font-size: 1.3rem; }
  .header-right-desktop { margin-left: auto; font-size: 0.8rem; display: flex; align-items: center; gap: 0.5rem; }
  .header-right-desktop a { text-decoration: none; }
  
  .logout-link {
    background: none; border: none;
    text-decoration: none; cursor: pointer; font-family: inherit; 
    font-size: inherit; padding: 0;
  }
  .logout-link:hover { text-decoration: underline; }

  .tab-panel { display: none; max-width: 900px; margin: 0 auto; padding: 2rem; }
  .tab-panel.active { display: block; }
  .input-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
  .btn-sm { padding: 0.35rem 0.7rem; font-size: 0.78rem; }
  .chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.75rem; }
  .chip-remove { cursor: pointer; opacity: 0.55; font-size: 0.72rem; transition: opacity 0.15s; }
  .chip-remove:hover { opacity: 1; }
  .item-list { list-style: none; }
  .item-row {
    display: flex; flex-direction: column;
    padding: 0.8rem 1rem; border-radius: 12px; margin-bottom: 0.5rem;
    background: var(--surface2); border: 1px solid var(--border);
    animation: fadeIn 0.18s ease;
  }
  .item-main { display: flex; align-items: center; gap: 0.65rem; width: 100%; }
  .item-row.done { opacity: 0.55; }
  .item-row.done .item-name { text-decoration: line-through; }
  .item-actions { display: flex; gap: 0.4rem; }
  
  .item-more-container { position: relative; }
  .item-more-btn {
    background: none; border: none; font-size: 1.2rem; color: var(--muted);
    cursor: pointer; padding: 0 0.4rem; border-radius: 6px; transition: background 0.2s;
  }
  .item-more-btn:hover { background: rgba(0,0,0,0.05); color: var(--text); }
  
  .item-dropdown {
    position: absolute; top: 100%; right: 0; background: var(--bg);
    border: 1px solid var(--border); border-radius: 10px; padding: 0.3rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); z-index: 10;
    display: none; flex-direction: column; min-width: 140px;
    animation: fadeIn 0.15s ease;
  }
  .item-dropdown.open { display: flex; }
  .item-dropdown button {
    background: none; border: none; padding: 0.6rem 0.8rem; text-align: left;
    font-family: inherit; font-size: 0.85rem; color: var(--text); cursor: pointer;
    border-radius: 6px; transition: background 0.2s; display: flex; align-items: center; gap: 0.6rem;
    width: 100%;
  }
  .item-dropdown button:hover { background: var(--surface2); }
  .item-dropdown button.danger { color: var(--red); }
  .item-dropdown button.danger:hover { background: rgba(250, 70, 89, 0.1); }
  @keyframes fadeIn { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }
  .item-check {
    width: 19px; height: 19px; border-radius: 50%;
    border: 2px solid var(--border); cursor: pointer; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.18s; font-size: 0.65rem;
  }
  .item-check:hover { border-color: var(--success); }
  .item-check.checked { background: var(--success); border-color: var(--success); }
  .item-name { flex: 1; font-size: 0.88rem; min-width: 0; white-space: normal; }
  .item-qty-inline { font-size: 0.78rem; color: var(--muted); font-weight: 400; }
  .cat-badge {
    font-size: 0.72rem; padding: 0.2rem 0.5rem 0.1rem;
    border-radius: 10px; background: var(--surface);
    border: 1px solid var(--border); color: var(--muted);
    display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem;
    max-width: 120px; flex-shrink: 0; line-height: 1;
  }
  .cat-badge span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .filter-row { display: flex; gap: 0.4rem; margin-bottom: 0.85rem; flex-wrap: wrap; }
  .filter-pill {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.4rem 0.8rem 0.3rem; border-radius: 20px; font-size: 0.78rem; font-weight: 500;
    background: var(--surface2); border: 1px solid var(--border);
    color: var(--muted); cursor: pointer; transition: all 0.15s;
    line-height: 1;
  }
  .filter-pill.active { background: rgba(255, 107, 107, 0.15); border-color: var(--primary); color: var(--primary); }
  .expense-row {
    display: flex; flex-direction: column; gap: 0.5rem;
    padding: 0.9rem 1rem; border-radius: 12px;
    background: var(--surface2); border: 1px solid var(--border);
    margin-bottom: 0.5rem; animation: fadeIn 0.18s ease;
    cursor: pointer; transition: background 0.2s;
  }
  .expense-row:hover { background: rgba(255, 255, 255, 0.4); }
  .expense-main { display: flex; align-items: flex-start; gap: 0.9rem; width: 100%; }
  .expense-amount {
    font-family: 'Inter', sans-serif; font-size: 1.25rem; font-weight: 700;
    color: var(--gold); min-width: 65px; flex-shrink: 0;
  }
  .expense-amount sup { font-size: 0.7rem; font-family: 'Inter', sans-serif; color: var(--muted); }
  .expense-info { flex: 1; min-width: 0; }
  .expense-label { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .expense-meta { font-size: 0.76rem; color: var(--muted); display: flex; gap: 0.5rem; flex-wrap: wrap; }
  
  .expense-details {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out, margin-top 0.3s;
    border-top: 0px solid var(--border);
  }
  .expense-row.open .expense-details {
    max-height: 200px; margin-top: 0.5rem; padding-top: 0.5rem;
    border-top-width: 1px;
  }
  .split-row { display: flex; gap: 0.35rem; flex-wrap: wrap; }
  .expense-arrow-inline {
    font-size: 0.8rem; color: var(--muted); margin-left: auto;
    transition: transform 0.3s;
  }
  .expense-row.open .expense-arrow-inline { transform: rotate(90deg); }
  .balance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 0.65rem; margin-bottom: 1.25rem; }
  .balance-card {
    padding: 0.9rem; border-radius: 12px;
    border: 1px solid var(--border); background: var(--surface2); text-align: center;
    cursor: pointer; transition: all 0.2s;
  }
  .balance-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
  .balance-details {
    max-height: 0; overflow: hidden; transition: all 0.3s ease-in-out;
    font-size: 0.75rem; color: var(--muted);
  }
  .balance-card.open .balance-details {
    max-height: 100px; margin-top: 0.8rem; padding-top: 0.8rem;
    border-top: 1px solid var(--border);
  }
  .balance-name { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.25rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .balance-amount { font-family: 'Inter', sans-serif; font-size: 1.3rem; font-weight: 700; }
  .balance-amount.pos { color: var(--success); }
  .balance-amount.neg { color: var(--red); }
  .balance-amount.zero { color: var(--muted); }
  .balance-label { font-size: 0.7rem; color: var(--muted); margin-top: 0.15rem; }
  .settlement-row {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.7rem 0.9rem; border-radius: 9px;
    background: var(--surface2); border: 1px solid var(--border);
    font-size: 0.85rem; margin-bottom: 0.4rem;
    overflow: hidden;
  }
  .settlement-row span:not(.settle-amount):not(.settle-arrow) {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .settle-arrow { color: var(--primary); font-size: 1rem; }
  .settle-amount { font-weight: 700; color: var(--gold); margin-left: auto; }
  .modal h2 { font-family: 'Inter', sans-serif; font-size: 1.15rem; font-weight: 800; margin-bottom: 1.25rem; }
  .modal-actions { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1.1rem; }
  .split-selector { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.35rem; }
  .split-chip {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.35rem 0.7rem 0.25rem; border-radius: 20px;
    border: 1px solid var(--border); font-size: 0.78rem;
    cursor: pointer; background: transparent; color: var(--muted);
    font-family: 'Inter', sans-serif; transition: all 0.15s;
    line-height: 1;
  }
  .split-chip.selected { border-color: var(--primary); color: var(--primary); background: rgba(255, 107, 107, 0.1); }

  h2 {
    font-family: 'Inter', sans-serif; font-size: 1.3rem;
    font-weight: 800; margin-bottom: 0.35rem;
  }
  .btn-submit {
    width: 100%; padding: 0.75rem;
    background: var(--accent); color: var(--text); border: none;
    border-radius: 10px; font-family: 'Inter', sans-serif;
    font-size: 0.95rem; font-weight: 600; cursor: pointer;
    transition: all 0.15s; margin-top: 0.5rem;
  }
  .btn-submit:hover {
    filter: brightness(1.05); transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(244, 162, 97, 0.4);
  }
  .btn-login {
    display: inline-block; width: 100%; padding: 0.75rem;
    background: var(--accent); color: var(--text); text-decoration: none;
    border-radius: 10px; font-family: 'Inter', sans-serif;
    font-size: 0.95rem; font-weight: 600; cursor: pointer;
    transition: all 0.15s; margin-top: 0.5rem;
  }
  .btn-login:hover {
    filter: brightness(1.05); transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(244, 162, 97, 0.4);
  }
  .highlight { color: var(--primary); }
  .tab {
    padding: 0.5rem 1rem; cursor: pointer; font-size: 0.9rem;
    font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent;
  }
  .tab.active {
    color: var(--text); border-bottom-color: var(--primary);
  }
  .form-container { display: none; }
  .form-container.active { display: block; }

    @media (max-width: 600px) {
    .brand h1.brand-name-desktop { display: none; }
    header { padding: 0.75rem 1rem; }
    .header-left, .header-right-desktop { display: none; }
  .desktop-dropdown { display: none !important; }
    .header-left-mobile { display: flex !important; align-items: center; gap: 0.5rem; flex: 1; min-width: 0; }
    .cat-badge span { display: none; }
    .cat-badge { padding: 0.2rem; }
    .tabs { 
      padding: 0.5rem 0.5rem 0; 
      overflow-x: hidden;
      display: flex;
    }
    .tab-btn {
      flex: 1;
      padding: 0.6rem 0.2rem;
      font-size: 0.75rem;
      gap: 0.2rem;
      justify-content: center;
    }
    .tab-btn .badge {
      padding: 0.1rem 0.3rem;
      font-size: 0.6rem;
      min-width: 14px;
    }
    .tab-panel { padding: 1.25rem 1rem; }
  }

.split-chip {
  background: var(--surface2); border: 1px solid var(--border);
  padding: 0.4rem 0.8rem; border-radius: 12px; font-size: 0.85rem;
  color: var(--muted); cursor: pointer; transition: all 0.2s;
}
.split-chip.selected {
  background: rgba(255, 107, 107, 0.15); border-color: var(--primary);
  color: var(--primary); font-weight: 600;
}
.split-selector { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
