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

:root {
  --bg-body: #EADFC8;
  --bg-nav: #2C1810;
  --bg-nav-hover: #3E2723;
  --bg-card: #FFF8E7;
  --bg-card-hover: #FDF3D0;
  --bg-input: #FFFDF5;
  --border: #C4A87C;
  --border-light: #DCC9A6;
  --text-primary: #2C1810;
  --text-secondary: #6B5B45;
  --text-muted: #9C8A72;
  --accent: #B8860B;
  --accent-hover: #A0760A;
  --gold: #C9A84C;
  --gold-light: #E8D5A3;
  --bronze: #CD7F32;
  --green: #5B7A2E;
  --green-bg: #EEF5E0;
  --red: #8B0000;
  --red-bg: #FCE8E8;
  --orange: #CC7722;
  --orange-bg: #FFF0E0;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
}

html, body {
  height: 100%;
}

body {
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  background: var(--bg-body);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ─── Navigation ─── */

nav {
  background: linear-gradient(180deg, #3E2723 0%, #1A0E0A 100%);
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}

.logo {
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 2px;
  color: var(--gold) !important;
  text-shadow: 1px 1px 0 #1A0E0A, 2px 2px 0 rgba(0,0,0,0.3);
  text-decoration: none !important;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo i {
  color: var(--gold-light);
  margin-right: 6px;
  font-size: 1.3rem;
}

.logo:hover {
  color: #E8C84A !important;
}

.nav-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 38px;
}

.nav-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 22px;
  color: #DCC9A6;
  font-size: 0.82rem;
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  font-weight: 400;
  text-decoration: none !important;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  transition: all 0.15s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-tabs a:hover {
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold-light);
  border-color: rgba(201, 168, 76, 0.2);
}

.nav-tabs a.active {
  background: var(--bg-body);
  color: var(--text-primary);
  border-color: var(--gold);
  position: relative;
}

.nav-tabs a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--bg-body);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #DCC9A6;
  font-size: 0.78rem;
  padding: 3px 10px 3px 3px;
  background: rgba(255, 248, 231, 0.08);
  border-radius: 3px;
  border: 1px solid rgba(201, 168, 76, 0.15);
}

.avatar {
  border-radius: 2px;
  flex-shrink: 0;
}

/* ─── Buttons ─── */

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #C9A84C 0%, #9A7D2E 100%);
  color: #2C1810 !important;
  padding: 6px 18px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.8rem;
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  text-decoration: none !important;
  border: 1px solid #7A6320;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-discord:hover {
  background: linear-gradient(180deg, #B89630 0%, #8A6E20 100%);
}

.btn-discord i,
.btn-primary i,
.btn-secondary i,
.btn-approve i,
.btn-deny i {
  font-size: 0.85rem;
}

.btn-large {
  padding: 10px 28px;
  font-size: 0.95rem;
}

.btn-logout {
  color: #CC9999 !important;
  text-decoration: none !important;
  font-weight: 400;
  font-size: 0.8rem;
  padding: 5px 10px;
}

.btn-logout:hover {
  background: rgba(204, 80, 80, 0.1) !important;
  border-radius: var(--radius-sm);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #C9A84C 0%, #9A7D2E 100%);
  color: #2C1810;
  padding: 9px 22px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.85rem;
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  text-decoration: none !important;
  border: 1px solid #7A6320;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #B89630 0%, #8A6E20 100%);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #FDF3D0 0%, #EADFC8 100%);
  color: var(--text-primary);
  padding: 9px 22px;
  border-radius: 3px;
  font-weight: 400;
  font-size: 0.85rem;
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  text-decoration: none !important;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-secondary:hover {
  background: linear-gradient(180deg, #FFF8E7 0%, #F5E6C8 100%);
}

.btn-submit-small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(180deg, #C9A84C 0%, #9A7D2E 100%);
  color: #2C1810;
  border: 1px solid #7A6320;
  padding: 5px 12px;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.72rem;
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-submit-small:hover {
  background: linear-gradient(180deg, #B89630 0%, #8A6E20 100%);
}

.btn-submit-small:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-dismiss {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(180deg, #FDF3D0 0%, #EADFC8 100%);
  color: #6B5B45;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 400;
  font-size: 0.72rem;
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-dismiss:hover {
  background: linear-gradient(180deg, #F5E6C8 0%, #EADFC8 100%);
}

.btn-dismiss:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-approve {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(180deg, #6B8E23 0%, #556B2F 100%);
  color: #FFF8E7;
  border: 1px solid #3E4F1A;
  padding: 6px 16px;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.78rem;
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  transition: all 0.15s;
}

.btn-approve:hover {
  background: linear-gradient(180deg, #5B7A2E 0%, #4A5F24 100%);
}

.btn-deny {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(180deg, #8B0000 0%, #660000 100%);
  color: #FFF8E7;
  border: 1px solid #4A0000;
  padding: 6px 16px;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.78rem;
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  transition: all 0.15s;
}

.btn-deny:hover {
  background: linear-gradient(180deg, #660000 0%, #4A0000 100%);
}

/* ─── Layout ─── */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
  flex: 1;
  width: 100%;
}

/* ─── Hero ─── */

.hero {
  text-align: center;
  padding: 48px 32px 36px;
  background: linear-gradient(135deg, #FFF8E7 0%, #F5E6C8 100%);
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  position: relative;
  box-shadow: 0 2px 8px rgba(44, 24, 16, 0.1);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0px, var(--gold) 8px, transparent 8px, transparent 14px);
}

.hero::before { top: 8px; width: 60%; }
.hero::after { bottom: 8px; width: 60%; }

.hero h1 {
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: 1px;
}

.hero p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.6;
  font-style: italic;
}

.hero-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Section Title ─── */

.section-title {
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.section-title .count {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  background: var(--bg-card);
  padding: 2px 9px;
  border-radius: 3px;
  border: 1px solid var(--border-light);
}

.section-divider {
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--border) 0px, var(--border) 6px, transparent 6px, transparent 12px);
  margin: 24px 0;
}

/* ─── Features ─── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 0;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all 0.15s;
  box-shadow: 0 1px 3px rgba(44, 24, 16, 0.06);
  position: relative;
}

.feature-card:hover {
  border-color: var(--gold);
  box-shadow: 0 3px 10px rgba(201, 168, 76, 0.15);
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FDF3D0 0%, #E8D5A3 100%);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-card h3 {
  margin-bottom: 6px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.85rem;
}

/* ─── Page Header ─── */

.page-header {
  margin-bottom: 20px;
  background: var(--bg-card);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: 0 1px 3px rgba(44, 24, 16, 0.06);
  position: relative;
}

.page-header h1 {
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 3px;
  letter-spacing: 0.5px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-style: italic;
}

/* ─── Forms ─── */

.submit-form,
.search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.submit-form input,
.search-form input {
  flex: 1;
  min-width: 220px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  outline: none;
  transition: all 0.15s;
}

.submit-form input:focus,
.search-form input:focus {
  border-color: var(--gold);
  background: #FFFFFF;
  box-shadow: 0 0 5px rgba(201, 168, 76, 0.2);
}

.submit-form input::placeholder,
.search-form input::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

/* ─── Search / Result Boxes ─── */

.result-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.result-box.success {
  border-color: var(--green);
  background: var(--green-bg);
}

.result-box.success h3 {
  color: var(--green);
}

.result-box.success p {
  color: var(--text-secondary);
}

.result-box.error {
  border-color: var(--red);
  background: var(--red-bg);
}

.result-box.error h3 {
  color: var(--red);
}

.result-box.alert {
  border-color: var(--orange);
  background: var(--orange-bg);
}

.result-box.alert h3 {
  color: var(--orange);
}

.result-box.alert p {
  color: var(--text-secondary);
}

.result-box h3 {
  margin-bottom: 5px;
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  font-size: 1rem;
}

.result-box p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ─── Profile Card ─── */

.profile-card {
  overflow: visible;
}

.profile-card .profile-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-card .profile-avatar {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border: 3px solid var(--gold);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-input);
  box-shadow: 3px 3px 0 rgba(201, 168, 76, 0.2);
}

.profile-card .profile-avatar img {
  width: 100%;
  height: 100%;
  display: block;
}

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

.profile-card .profile-name {
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.profile-card .profile-id {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: "Courier New", monospace;
}

.profile-card .profile-stats {
  flex-shrink: 0;
  text-align: center;
  padding: 12px 20px;
  background: linear-gradient(135deg, #FDF3D0 0%, #F5E6C8 100%);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
}

.profile-card .profile-stat {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  line-height: 1;
}

.profile-card .profile-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ─── Group List / Cards ─── */

.group-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.group-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px;
  transition: all 0.15s;
}

.group-card:hover {
  border-color: var(--gold);
  background: var(--bg-card-hover);
}

.group-card img {
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  object-fit: cover;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
}

.group-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.group-info strong {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-id {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-family: "Courier New", monospace;
}

.group-sub {
  color: var(--text-muted);
  font-size: 0.74rem;
}

.group-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.group-actions {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

/* ─── Status Badges ─── */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid var(--border);
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
}

.status-badge.pending {
  background: var(--orange-bg);
  color: var(--orange);
  border-color: var(--orange);
}

.status-badge.approved {
  background: var(--green-bg);
  color: var(--green);
  border-color: var(--green);
}

.status-badge.denied {
  background: var(--red-bg);
  color: var(--red);
  border-color: var(--red);
}

/* ─── Status Select ─── */

.status-select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  cursor: pointer;
  outline: none;
}

.status-select:focus {
  border-color: var(--gold);
}

/* ─── Details / Collapsible ─── */

details.result-details {
  margin-bottom: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

details.result-details summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  user-select: none;
}

details.result-details summary:hover {
  color: var(--text-secondary);
}

details.result-details .group-list {
  margin: 0 6px 6px;
}

/* ─── Modal ─── */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 24, 16, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-box {
  background: var(--bg-card);
  border: 2px solid var(--gold);
  border-radius: 6px;
  width: 480px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 6px 6px 0 rgba(44, 24, 16, 0.15);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(135deg, #FDF3D0 0%, #F5E6C8 100%);
}

.modal-header h3 {
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 0 4px;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-light);
  background: linear-gradient(135deg, #FDF3D0 0%, #F5E6C8 100%);
}

/* ─── Login ─── */

.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.login-card {
  background: var(--bg-card);
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 40px 36px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 2px 8px rgba(44, 24, 16, 0.08);
}

.login-card .login-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FDF3D0 0%, #E8D5A3 100%);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent);
  margin: 0 auto 16px;
}

.login-card h1 {
  margin-bottom: 5px;
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  font-size: 1.3rem;
}

.login-card p {
  color: var(--text-secondary);
  margin-bottom: 22px;
  font-size: 0.85rem;
  font-style: italic;
}

/* ─── Pagination ─── */

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 0;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  cursor: pointer;
  transition: all 0.1s;
}

.page-btn:hover:not(:disabled):not(.active) {
  background: var(--bg-card-hover);
  border-color: var(--gold);
}

.page-btn.active {
  background: linear-gradient(180deg, var(--gold) 0%, var(--accent) 100%);
  color: #2C1810;
  border-color: var(--accent);
  cursor: default;
  font-weight: 600;
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.page-ellipsis {
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0 2px;
}

/* ─── Loading / Spinner ─── */

.loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  padding: 14px 0;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-light);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Empty / Error ─── */

.empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  text-align: center;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.error-text {
  color: var(--red);
}

/* ─── Utility ─── */

.search-page .result-box .group-list {
  margin-top: 12px;
  margin-bottom: 0;
}

.dashboard .submit-section {
  background: var(--bg-card);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(44, 24, 16, 0.06);
}

/* ─── Scrollbar ─── */

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
  border: 1px solid var(--border-light);
}

::-webkit-scrollbar-thumb {
  background: var(--bronze);
  border: 1px solid #8A6E20;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ─── Footer ─── */

.rbx-footer {
  padding: 16px 24px;
  background: linear-gradient(180deg, #3E2723 0%, #1A0E0A 100%);
  border-top: 2px solid var(--gold);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: #9C8A72;
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
}

.footer-inner a {
  color: var(--gold);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.footer-logo {
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-divider {
  color: #5B4A3A;
}

/* ─── Responsive ─── */

@media (max-width: 768px) {
  nav {
    position: static;
  }

  .nav-inner {
    height: auto;
    flex-direction: column;
    padding: 10px 12px;
    gap: 8px;
  }

  .nav-left {
    width: 100%;
    justify-content: space-between;
  }

  .nav-tabs {
    width: 100%;
    height: auto;
    flex-wrap: wrap;
    gap: 2px;
  }

  .nav-tabs a {
    flex: 1;
    justify-content: center;
    padding: 8px 8px;
    font-size: 0.7rem;
    border-radius: 3px;
    border: 1px solid rgba(201, 168, 76, 0.15);
  }

  .nav-tabs a.active {
    border-bottom: 1px solid var(--bg-body);
  }

  .nav-tabs a.active::after {
    display: none;
  }

  .nav-right {
    width: 100%;
    justify-content: center;
  }

  .hero h1 {
    font-size: 1.3rem;
  }

  .hero::before,
  .hero::after {
    width: 80%;
  }

  .footer-inner {
    gap: 12px;
    font-size: 0.65rem;
  }

  .footer-divider {
    display: none;
  }

  .user-info {
    font-size: 0.7rem;
  }

  main {
    padding: 14px 10px;
  }

  .features {
    gap: 10px;
  }

  .group-actions {
    flex-direction: column;
  }

  .login-card {
    padding: 24px 18px;
  }

  .profile-card .profile-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .profile-card .profile-avatar {
    width: 80px;
    height: 80px;
  }

  .profile-card .profile-name {
    font-size: 1.2rem;
  }

  .profile-card .profile-stats {
    padding: 8px 16px;
  }

  .profile-card .profile-stat {
    font-size: 1.2rem;
  }
}
