﻿/* ══════════════════════════════════════════
  TradeLogic — Login page styles
  Brand: deep green #0d4f44 | deep red #8f1d25
  Theme: light card, mobile-first
  ══════════════════════════════════════════ */

:root {
  /* Brand colours — unchanged */
  --green:          #0d4f44;
  --green-mid:      #155f52;
  --green-bright:   #1e8a72;
  --green-glow:     rgba(13, 79, 68, 0.12);
  --red:            #8f1d25;
  --red-mid:        #b52530;
  --red-bright:     #c93038;
  --red-glow:       rgba(143, 29, 37, 0.1);

  /* Light UI tokens */
  --bg:             #f8f2e8;
  --card-bg:        rgba(255, 252, 247, 0.92);
  --card-border:    rgba(13, 79, 68, 0.28);
  --input-bg:       rgba(255, 255, 255, 0.92);
  --input-border:   rgba(13, 79, 68, 0.12);
  --input-focus:    var(--green-bright);
  --text:           #18312c;
  --text-muted:     #647972;
  --placeholder:    #73847e;

  /* Shape */
  --r-card:   18px;
  --r-input:  11px;
  --r-btn:    11px;
}

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

html, body { height: 100%; }

body {
  font-family: "Sora", system-ui, sans-serif;
  background:
    radial-gradient(circle at 18% 16%, rgba(13, 79, 68, 0.05), transparent 28%),
    radial-gradient(circle at 84% 82%, rgba(143, 29, 37, 0.05), transparent 30%),
    linear-gradient(180deg, #fffdf9 0%, var(--bg) 52%, #efe7db 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Decorative background ──────────────── */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 79, 68, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 79, 68, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow--green {
  width: 480px;
  height: 480px;
  background: var(--green-glow);
  top: -130px;
  left: -130px;
}

.bg-glow--red {
  width: 400px;
  height: 400px;
  background: var(--red-glow);
  bottom: -100px;
  right: -100px;
}

/* ── Page shell ─────────────────────────── */
.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 14px 80px;
}

/* ── Card ───────────────────────────────── */
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--card-bg);
  border: 2px solid rgba(13, 79, 68, 0.38);
  border-radius: 22px;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.72),
    0 0 0 5px rgba(13, 79, 68, 0.12),
    0 16px 36px rgba(42, 44, 34, 0.1),
    0 28px 60px rgba(42, 44, 34, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 30px 20px 24px;
}

/* ── Brand block ────────────────────────── */
.brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 22px;
}

.logo-ring {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(13, 79, 68, 0.16);
  box-shadow: 0 16px 34px rgba(13, 79, 68, 0.11);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  margin-bottom: 14px;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-family: "Orbitron", "Sora", sans-serif;
  font-size: clamp(1.4rem, 5.8vw, 1.95rem);
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1;
}

.brand-trade { color: var(--green); }
.brand-logic { color: var(--red); }
.brand-dot   { font-size: 0.68em; color: var(--red-mid); }

/* ── Form ───────────────────────────────── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-msg {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid transparent;
}

.auth-error {
  color: var(--red-mid);
  background: rgba(143, 29, 37, 0.08);
  border-color: rgba(143, 29, 37, 0.2);
}

.auth-success {
  color: var(--green-mid);
  background: rgba(13, 79, 68, 0.08);
  border-color: rgba(13, 79, 68, 0.2);
}

.field-wrap { position: relative; }

.field-wrap input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.22s, box-shadow 0.22s;
}

.field-wrap input::placeholder {
  color: var(--placeholder);
  letter-spacing: 0.1em;
}

.field-wrap input:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(30, 138, 114, 0.12);
}

.field-wrap select {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 14px 16px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.22s, box-shadow 0.22s;
}

.field-wrap select:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(30, 138, 114, 0.12);
}

.field-wrap select option {
  background: var(--bg);
  color: var(--text);
  padding: 8px;
}

.captcha-display-input {
  background:
    linear-gradient(135deg, rgba(13, 79, 68, 0.09) 0%, rgba(13, 79, 68, 0.04) 100%),
    var(--input-bg);
  border: 1px solid rgba(13, 79, 68, 0.28);
  color: var(--green-mid);
  font-family: "Orbitron", "Sora", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
}

.captcha-display-input[readonly] {
  cursor: default;
}

.captcha-entry-input {
  border-style: dashed;
  border-width: 1.5px;
  border-color: rgba(13, 79, 68, 0.3);
}

/* Form Grid Layout - 2 columns on desktop, 1 on mobile */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .login-card {
    max-width: 650px;
    padding: 40px 32px 32px;
  }
}

@media (min-width: 1024px) {
  .login-card {
    max-width: 750px;
    padding: 44px 36px 36px;
  }
}

@media (min-width: 1200px) {
  .login-card {
    max-width: 850px;
    padding: 48px 40px 40px;
  }
}

.field-wrap--icon input { padding-right: 48px; }

.eye-toggle {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  border-radius: 4px;
  transition: color 0.2s;
}

.eye-toggle:hover,
.eye-toggle.active { color: var(--green-bright); }

.eye-icon { width: 19px; height: 19px; }

/* ── Options row ────────────────────────── */
.options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.remember-check {
  width: 14px;
  height: 14px;
  accent-color: var(--green-bright);
  cursor: pointer;
  flex-shrink: 0;
}

.remember-text {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.recover-link {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green-bright);
  text-decoration: none;
  transition: color 0.2s;
}

.recover-link:hover,
.recover-link:focus-visible {
  color: var(--green);
  text-decoration: underline;
}

.forgot-card {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(13, 79, 68, 0.08);
}

.forgot-text {
  text-align: center;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(255, 252, 247, 0.94);
  border: 1px solid rgba(13, 79, 68, 0.18);
  border-radius: 14px;
  padding: 12px 10px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.72),
    0 0 0 4px rgba(13, 79, 68, 0.06),
    0 10px 20px rgba(42, 44, 34, 0.04);
}

.forgot-label {
  color: var(--text-muted);
}

/* ── Submit button ──────────────────────── */
.submit-btn {
  width: 100%;
  padding: 14px 16px;
  margin-top: 2px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 58%, var(--green-bright) 100%);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-family: "Orbitron", "Sora", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s, transform 0.14s;
  box-shadow: 0 10px 24px rgba(13, 79, 68, 0.18);
}

.submit-btn:hover {
  opacity: 0.94;
  box-shadow: 0 14px 28px rgba(13, 79, 68, 0.22);
  transform: translateY(-1px);
}

.submit-btn:active { transform: translateY(0); opacity: 1; }

.submit-btn:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
}

/* ── Register section ───────────────────── */
.register-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(13, 79, 68, 0.08);
}

.register-text {
  text-align: center;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(255, 252, 247, 0.94);
  border: 1px solid rgba(13, 79, 68, 0.18);
  border-radius: 14px;
  padding: 12px 10px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.72),
    0 0 0 4px rgba(13, 79, 68, 0.06),
    0 10px 20px rgba(42, 44, 34, 0.04);
}

.join-link {
  color: var(--green-bright);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.join-link:hover,
.join-link:focus-visible {
  color: var(--green);
  text-decoration: underline;
}

/* ── Fixed footer ───────────────────────── */
.page-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 252, 247, 0.96);
  border-top: 2px solid rgba(13, 79, 68, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  padding: 13px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  z-index: 10;
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.82),
    0 -6px 20px rgba(42, 44, 34, 0.05);
}

.contact-link {
  color: var(--red-bright);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-link:hover,
.contact-link:focus-visible { text-decoration: underline; }

/* ── Dashboard page ────────────────────── */
.dashboard-shell {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 18px auto;
  min-height: calc(100vh - 36px);
  background: rgba(245, 238, 227, 0.82);
  border-radius: 16px;
  border: 1px solid rgba(13, 79, 68, 0.22);
  box-shadow: 0 28px 64px rgba(42, 44, 34, 0.12);
  overflow: hidden;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
}

.dashboard-shell--single {
  grid-template-columns: 1fr;
}

.dashboard-sidebar {
  background: linear-gradient(180deg, #11473d 0%, #0b372f 62%, #2f1217 100%);
  color: #eef4f1;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
}

.dashboard-profile {
  text-align: center;
  border-bottom: 1px solid rgba(238, 244, 241, 0.18);
  padding-bottom: 16px;
  margin-bottom: 14px;
}

.dashboard-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #f6fffb;
  background: radial-gradient(circle at 28% 24%, #2f8a77 0%, #155f52 52%, #8f1d25 100%);
  border: 2px solid rgba(255, 255, 255, 0.28);
}

.dashboard-profile h2 {
  font-size: 0.94rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dashboard-profile p {
  margin-top: 5px;
  font-size: 0.72rem;
  color: rgba(238, 244, 241, 0.82);
  overflow-wrap: anywhere;
}

.dashboard-nav {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.dashboard-nav-item {
  text-decoration: none;
  color: #d6e7e2;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: 10px;
  padding: 11px 12px;
  border: 1px solid transparent;
  transition: background 0.2s, transform 0.15s, color 0.2s;
}

.dashboard-nav-item:hover,
.dashboard-nav-item:focus-visible,
.dashboard-nav-item.is-active {
  background: linear-gradient(90deg, var(--green-bright) 0%, var(--red-mid) 100%);
  color: #fffdfd;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateX(2px);
}

.dashboard-logout {
  margin-top: auto;
  text-decoration: none;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fffdfa;
  background: linear-gradient(135deg, rgba(13, 79, 68, 0.44) 0%, rgba(143, 29, 37, 0.42) 100%);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 10px 12px;
}

.dashboard-main {
  padding: 20px;
}

#personal,
#password,
#membership,
#statistics {
  scroll-margin-top: 16px;
}

.dashboard-topbar {
  margin-bottom: 14px;
}

.dashboard-kicker {
  font-size: 0.72rem;
  color: #5f726d;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.dashboard-topbar h1 {
  margin-top: 7px;
  color: var(--green);
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  font-family: "Orbitron", "Sora", sans-serif;
  letter-spacing: 0.03em;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-card {
  background: rgba(255, 252, 247, 0.9);
  border: 1px solid rgba(13, 79, 68, 0.18);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(42, 44, 34, 0.08);
}

.dashboard-card--wide {
  grid-column: span 2;
}

.dashboard-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.dashboard-card-head h2 {
  color: #2d413b;
  font-size: 1rem;
}

.dashboard-tag {
  background: rgba(13, 79, 68, 0.11);
  color: var(--red);
  border: 1px solid rgba(143, 29, 37, 0.34);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-data-item {
  background: #fff;
  border: 1px solid rgba(13, 79, 68, 0.16);
  border-radius: 10px;
  padding: 10px;
}

.dashboard-data-item h3 {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #6c7f79;
}

.dashboard-data-item p {
  margin-top: 6px;
  font-size: 0.88rem;
  color: #2a3f39;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.dashboard-note {
  color: #60746d;
  font-size: 0.85rem;
  line-height: 1.5;
}

.dashboard-text-link {
  margin-top: 12px;
  display: inline-block;
  color: var(--green-mid);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dashboard-text-link:hover,
.dashboard-text-link:focus-visible {
  color: var(--red-mid);
}

.dashboard-btn {
  margin-top: 14px;
  display: inline-flex;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-bright) 60%, var(--red-mid) 100%);
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-plan {
  font-size: 1.2rem;
  font-family: "Orbitron", "Sora", sans-serif;
  color: var(--red-mid);
  margin-bottom: 10px;
}

.dashboard-msg {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
  border: 1px solid transparent;
}

.dashboard-msg--success {
  color: var(--green-mid);
  background: rgba(13, 79, 68, 0.08);
  border-color: rgba(13, 79, 68, 0.24);
}

.dashboard-msg--error {
  color: var(--red-mid);
  background: rgba(143, 29, 37, 0.08);
  border-color: rgba(143, 29, 37, 0.22);
}

.dashboard-membership-list {
  display: grid;
  gap: 8px;
}

.dashboard-membership-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(13, 79, 68, 0.16);
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
}

.dashboard-membership-row dt {
  color: #60746d;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-membership-row dd {
  color: #2a3f39;
  font-size: 0.84rem;
  font-weight: 600;
}

.dashboard-status--active {
  color: var(--green-mid);
}

.dashboard-status--expired {
  color: var(--red-mid);
}

.dashboard-inline-form {
  margin-top: 12px;
}

.dashboard-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.dashboard-list li {
  position: relative;
  padding-left: 16px;
  color: #4d655e;
  font-size: 0.83rem;
}

.dashboard-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-bright);
  position: absolute;
  left: 0;
  top: 0.42rem;
}

.dashboard-stats-wrap {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.dashboard-progress {
  --progress-color: var(--green-bright);
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--progress-color) calc(var(--progress) * 1%), rgba(13, 79, 68, 0.12) 0);
  position: relative;
}

.dashboard-progress::after {
  content: "";
  position: absolute;
  inset: 11px;
  background: #fffdf9;
  border-radius: 50%;
}

.dashboard-progress span {
  position: relative;
  z-index: 1;
  font-family: "Orbitron", "Sora", sans-serif;
  color: var(--green);
  font-size: 1rem;
  font-weight: 700;
}

.dashboard-bars {
  display: grid;
  gap: 9px;
}

.dashboard-bar-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.dashboard-bar-row span {
  font-size: 0.74rem;
  color: #5c716b;
}

.dashboard-bar-row i {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-bright) 0%, var(--red-mid) 100%);
  width: var(--w);
  display: block;
  min-width: 16%;
  box-shadow: 0 1px 5px rgba(13, 79, 68, 0.22);
}

/* ── Admin page ────────────────────────── */
.admin-shell {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 18px auto;
  padding: 16px;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-header h1 {
  color: var(--green);
  margin-top: 6px;
  font-family: "Orbitron", "Sora", sans-serif;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
}

.admin-subtitle {
  margin-top: 6px;
  color: #5f726d;
  font-size: 0.82rem;
}

.admin-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-btn--live {
  background: linear-gradient(135deg, #0d4f44 0%, #1e8a72 100%);
}

.admin-btn-logout {
  margin-left: auto;
}

.admin-btn-danger {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-mid) 100%);
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-tab-btn {
  border: 1px solid rgba(13, 79, 68, 0.22);
  background: rgba(255, 252, 247, 0.9);
  color: #45625a;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-tab-btn.is-active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, var(--green) 0%, var(--green-bright) 58%, var(--red-mid) 100%);
}

.admin-card {
  background: rgba(255, 252, 247, 0.9);
  border: 1px solid rgba(13, 79, 68, 0.2);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(42, 44, 34, 0.08);
  padding: 12px;
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.is-active {
  display: block;
}

.admin-card-title {
  color: #2d413b;
  font-size: 1rem;
  margin-bottom: 10px;
}

.admin-user-search-wrap {
  margin-bottom: 10px;
}

.admin-user-search {
  width: min(420px, 100%);
  border: 1px solid rgba(13, 79, 68, 0.24);
  border-radius: 10px;
  background: #fff;
  color: #2a3f39;
  padding: 10px 12px;
  font-size: 0.82rem;
}

.admin-user-search:focus {
  outline: 2px solid rgba(30, 138, 114, 0.2);
  border-color: var(--green-bright);
}

.admin-user-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.admin-user-filter-btn {
  border: 1px solid rgba(13, 79, 68, 0.24);
  background: #fff;
  color: #47645c;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-user-filter-btn.is-active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, var(--green) 0%, var(--green-bright) 58%, var(--red-mid) 100%);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 940px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(13, 79, 68, 0.12);
  padding: 10px;
  vertical-align: top;
  text-align: left;
}

.admin-table th {
  color: #5f726d;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-table td {
  font-size: 0.83rem;
  color: #2a3f39;
}

.admin-user-name {
  font-weight: 700;
}

.admin-user-email {
  margin-top: 4px;
  color: #60746d;
  font-size: 0.76rem;
}

.admin-membership-form {
  margin: 0;
}

.admin-table select,
.admin-table input[type="date"] {
  width: 100%;
  border: 1px solid rgba(13, 79, 68, 0.24);
  border-radius: 8px;
  background: #fff;
  color: #2a3f39;
  padding: 8px;
  font-size: 0.8rem;
}

.admin-table small {
  display: block;
  margin-top: 4px;
  color: #6b7f78;
}

.admin-save-btn {
  width: 100%;
  justify-content: center;
}

.admin-membership-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
}

.admin-membership-pill--active {
  background: rgba(13, 79, 68, 0.1);
  color: var(--green-mid);
  border: 1px solid rgba(13, 79, 68, 0.24);
}

.admin-membership-pill--expired {
  background: rgba(143, 29, 37, 0.1);
  color: var(--red-mid);
  border: 1px solid rgba(143, 29, 37, 0.24);
}

.admin-empty {
  text-align: center;
  color: #60746d;
}

.admin-empty-row--filtered td {
  border-bottom: none;
}

/* ── User page ─────────────────────────── */
.user-page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 16px;
}

.user-header {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 2px;
}

.user-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.user-brand-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(13, 79, 68, 0.22);
  box-shadow: 0 8px 18px rgba(13, 79, 68, 0.1);
}

.user-brand-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.user-brand-text {
  font-family: "Orbitron", "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.user-header-action {
  text-decoration: none;
  font-family: "Orbitron", "Sora", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 70%, var(--green-bright) 100%);
  border: 1px solid rgba(13, 79, 68, 0.28);
  border-radius: 999px;
  padding: 10px 16px;
  transition: opacity 0.2s, transform 0.15s;
}

.user-header-action:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

.user-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.user-panel {
  width: 100%;
  max-width: 1200px;
  background: var(--card-bg);
  border: 2px solid rgba(13, 79, 68, 0.32);
  border-radius: 26px;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.7),
    0 0 0 5px rgba(13, 79, 68, 0.1),
    0 18px 42px rgba(42, 44, 34, 0.08);
  padding: 28px 18px;
}

.user-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.user-title {
  margin-top: 8px;
  font-family: "Orbitron", "Sora", sans-serif;
  font-size: clamp(1.25rem, 4vw, 2.1rem);
  letter-spacing: 0.05em;
  color: var(--green);
}

.user-subtitle {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.user-data-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.user-data-item {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(13, 79, 68, 0.14);
  border-radius: 16px;
  padding: 14px;
}

.user-data-item h2 {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.user-data-item p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}

.user-cta-row {
  margin-top: 18px;
}

.user-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: "Orbitron", "Sora", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: #fff;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 70%, var(--green-bright) 100%);
  border-radius: 999px;
  padding: 11px 20px;
}

.user-footer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 6px 2px;
}

.user-footer-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.user-footer-link:hover,
.user-footer-link:focus-visible {
  color: var(--green-mid);
  text-decoration: underline;
}

/* ── Responsive ─────────────────────────── */
@media (min-width: 480px) {
  .page-shell { padding: 30px 18px 88px; }
  .login-card { padding: 36px 32px 28px; }
  .logo-ring  { width: 106px; height: 106px; }
}

@media (min-width: 768px) {
  .login-card { max-width: 650px; padding: 40px 32px 32px; }
  .logo-ring { width: 110px; height: 110px; }
}

@media (min-width: 1024px) {
  .login-card { max-width: 750px; padding: 44px 36px 36px; }
}

@media (max-width: 980px) {
  .dashboard-shell {
    margin: 12px;
    min-height: calc(100vh - 24px);
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    padding: 16px;
  }

  .dashboard-nav {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-main {
    padding: 16px;
  }
}

@media (max-width: 680px) {
  .dashboard-grid,
  .dashboard-data-grid,
  .dashboard-nav {
    grid-template-columns: 1fr;
  }

  .dashboard-card--wide {
    grid-column: auto;
  }

  .dashboard-stats-wrap {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .admin-shell {
    margin: 10px;
    padding: 8px;
  }

  .admin-tabs {
    flex-wrap: wrap;
  }

  .admin-header {
    flex-direction: column;
  }
}

@media (min-width: 768px) {
  .user-page-shell {
    padding: 18px 22px;
  }

  .user-panel {
    padding: 34px 30px;
  }

  .user-data-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

@media (min-width: 1024px) {
  .user-panel {
    padding: 40px 36px;
  }

  .user-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
  }
}

@media (min-width: 1200px) {
  .login-card { max-width: 850px; padding: 48px 40px 40px; }
}
