/* Content Variables */
/* Header Variables */
/* Login Variables */
/* Form Variables */
/* Button Variables */
* {
  box-sizing: border-box;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 16px;
}

body,
html {
  background-color: #f3f4f7;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  color: #474b50;
}

.form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form .form-label {
  display: block;
  padding: 20px 0 10px 0;
  font-weight: 500;
  font-size: 14px;
  color: #474b50;
}

.form .form-group {
  display: flex;
  position: relative;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.form .form-group .form-icon-left,
.form .form-group .form-icon-right {
  fill: #c1c6cb;
  width: 40px;
  position: absolute;
  transform: translateY(-50%);
  top: 50%;
  pointer-events: none;
}

.form .form-group .form-icon-left {
  left: 0;
}

.form .form-group .form-icon-left + .form-input {
  padding-left: 40px;
}

.form .form-group .form-icon-right {
  right: 0;
}

.form .form-group .form-icon-right + .form-input {
  padding-right: 40px;
}

.form .form-group:focus-within .form-icon-left {
  fill: #98a0a8;
}

.form .form-input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #dee2e6;
  padding: 0 18px;
  border-radius: 6px;
  outline: 0;
  color: #000;
}

.form .form-input::placeholder {
  color: #98a0a8;
}

.form .form-input:focus {
  box-shadow: 0 0 0 3px #c7def7;
  border: 1px solid #75b3f1;
}

.form .form-link {
  color: #2a77eb;
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
}

.form .form-link:hover {
  color: #135ac5;
}

.form #remember_me {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: #474b50;
  user-select: none;
  gap: 10px;
}

.form #remember_me input {
  margin: 0;
  transform: scale(1.05);
  opacity: 0.6;
}

.form #remember_me input:checked {
  opacity: 1;
}

.auth-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-actions label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #474b50;
}

.auth-actions input[type="checkbox"] {
  accent-color: #2873cf;
}

.form p.register-link {
  margin: 0;
  padding: 20px 0 0 0;
  font-size: 14px;
  color: #6b7179;
}

.form div.msg {
  font-size: 14px;
  font-weight: 500;
}

.form div.msg.success {
  padding: 0 0 20px 0;
  color: #0da74d;
}

.form div.msg.success .form-link {
  color: #0b6430;
}

.form div.msg.success .form-link:hover {
  color: #06361a;
}

.form div.msg.error {
  padding: 0 0 20px 0;
  color: #c21e13;
}

.form div.msg.error .form-link {
  color: #74160b;
}

.form div.msg.error .form-link:hover {
  color: #450d07;
}

.form .captcha {
  display: flex;
  padding-bottom: 20px;
}

.form .captcha img {
  min-width: 150px;
}

.form .captcha input {
  min-height: 52px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.form .fb-btn,
.form .gl-btn,
.form .dc-btn,
.form .ms-btn {
  display: flex;
  text-decoration: none;
  position: relative;
  border-radius: 6px;
  text-align: center;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  width: 100%;
  margin: 15px 0 0 0;
  padding: 15px;
  transition: background-color 0.2s;
}

.form .fb-btn svg,
.form .gl-btn svg,
.form .dc-btn svg,
.form .ms-btn svg {
  position: absolute;
  left: 15px;
  fill: #fff;
}

.form .fb-btn:hover,
.form .gl-btn:hover,
.form .dc-btn:hover,
.form .ms-btn:hover {
  color: #fff;
  transition: background-color 0.2s;
}

.form .fb-btn {
  background-color: #507cbf;
}

.form .fb-btn:hover {
  background-color: #426fb4;
}

.form .gl-btn {
  background-color: #d6523e;
}

.form .gl-btn:hover {
  background-color: #cf412c;
}

.form .dc-btn {
  background-color: #4a67cf;
}

.form .dc-btn:hover {
  background-color: #3656ca;
}

.form .ms-btn {
  background-color: #2f2f2f;
}

.form .ms-btn:hover {
  background-color: #222222;
}

.form.form-small {
  max-width: 300px;
}

/* Toggle switch (for public forms) */
.form .switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}
.form .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.form .switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d4dbde;
  transition: 0.2s;
  border-radius: 28px;
}
.form .switch .slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.form .switch input:checked + .slider {
  background-color: #2873cf;
}
.form .switch input:checked + .slider:before {
  transform: translateX(22px);
}
.form .switch .slider.round { border-radius: 28px; }
.form .switch .slider.round:before { border-radius: 50%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  appearance: none;
  cursor: pointer;
  border: 0;
  background: #26313d;
  color: #FFFFFF;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  height: 38px;
  box-shadow: 0px 0px 6px 1px rgba(45, 54, 68, 0.1);
}
.btn:hover {
  background: #202934;
}
.btn.blue {
  background: #2873cf;
}
.btn.blue:hover {
  background: #266cc2;
}
.btn.green {
  background: #4ab46d;
}
.btn.green:hover {
  background: #46a966;
}
.btn.red {
  background: #be4949;
}
.btn.red:hover {
  background: #b74141;
}
.btn.primary {
  background: #2873cf;
}
.btn.primary:hover {
  background: #2264b5;
}
.btn.danger {
  background: #be4949;
}
.btn.danger:hover {
  background: #a93f3f;
}
.btn.secondary {
  background: #ffffff;
  color: #2873cf;
  border: 1px solid #d4dbde;
  box-shadow: 0 4px 10px rgba(20, 33, 53, 0.08);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn.secondary:hover {
  background: #eef3fb;
  border-color: #c2cde0;
  box-shadow: 0 6px 14px rgba(20, 33, 53, 0.12);
}
.btn.alt {
  color: #75797e;
  border: 1px solid #d4dbde;
  box-shadow: 0px 0px 3px 1px rgba(0, 0, 0, 0.03);
  background: #f1f3f4;
}
.btn.alt:hover {
  background: #eef1f2;
}
.btn.disabled {
  background: #b1b3b4;
}
.btn.disabled:hover {
  background: #a9abad;
}
.btn.small {
  padding: 8px 12px;
  font-size: 12px;
}
.btn .loader,
.btn .loader::after {
  width: 15px;
  height: 15px;
}
.btn .loader {
  margin: 0;
  border-top: 2px solid rgba(255, 255, 255, 0.4);
  border-right: 2px solid rgba(255, 255, 255, 0.4);
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  border-left: 2px solid rgba(255, 255, 255, 0.9);
}

.login, .register {
  display: flex;
  flex-flow: column;
  width: 450px;
  max-width: 95%;
  background-color: #ffffff;
  box-shadow: 0px 0px 7px 1px rgba(45, 54, 68, 0.05);
  border-radius: 5px;
  margin: 100px auto;
  padding: 35px;
}
.login .icon, .register .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 5px auto 0 auto;
  border-radius: 50%;
  background-color: #e2e7ee;
}
.login .icon svg, .register .icon svg {
  fill: #fff;
}
.login h1, .register h1 {
  text-align: center;
  font-size: 24px;
  font-weight: 500;
  padding: 20px 0 10px 0;
  margin: 0;
}
.login .btn[type=submit], .register .btn[type=submit] {
  height: 42px;
}

.content {
  width: 1000px;
  margin: 0 auto;
}
.content .page-title {
  display: flex;
  align-items: center;
  padding: 25px 0 10px 0;
}
.content .page-title .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #FFFFFF;
  margin-right: 20px;
  border-radius: 50%;
  height: 55px;
  width: 55px;
  min-height: 55px;
  min-width: 55px;
}
.content .page-title .icon svg {
  fill: #fff;
}
.content .page-title h2 {
  margin: 0;
  padding: 0 0 7px 0;
  font-size: 20px;
  font-weight: 600;
  color: #53585e;
}
.content .page-title p {
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: #777e86;
}

.content .block p {
  padding: 7px;
  margin: 0;
}
.content .profile-detail {
  display: flex;
  flex-flow: column;
  font-size: 18px;
  padding: 5px 0;
}
.content .profile-detail strong {
  display: block;
  color: #92979e;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.pad-1 {
  padding: 5px;
}

.mar-1 {
  margin: 5px;
}

.pad-2 {
  padding: 10px;
}

.mar-2 {
  margin: 10px;
}

.pad-3 {
  padding: 15px;
}

.mar-3 {
  margin: 15px;
}

.pad-4 {
  padding: 20px;
}

.mar-4 {
  margin: 20px;
}

.pad-5 {
  padding: 25px;
}

.mar-5 {
  margin: 25px;
}

.pad-bot-1 {
  padding-bottom: 5px;
}

.pad-top-1 {
  padding-top: 5px;
}

.pad-left-1 {
  padding-left: 5px;
}

.pad-right-1 {
  padding-right: 5px;
}

.pad-x-1 {
  padding-left: 5px;
  padding-right: 5px;
}

.pad-y-1 {
  padding-top: 5px;
  padding-bottom: 5px;
}

.mar-bot-1 {
  margin-bottom: 5px;
}

.mar-top-1 {
  margin-top: 5px;
}

.mar-left-1 {
  margin-left: 5px;
}

.mar-right-1 {
  margin-right: 5px;
}

.mar-x-1 {
  margin-left: 5px;
  margin-right: 5px;
}

.mar-y-1 {
  margin-top: 5px;
  margin-bottom: 5px;
}

.pad-bot-2 {
  padding-bottom: 10px;
}

.pad-top-2 {
  padding-top: 10px;
}

.pad-left-2 {
  padding-left: 10px;
}

.pad-right-2 {
  padding-right: 10px;
}

.pad-x-2 {
  padding-left: 10px;
  padding-right: 10px;
}

.pad-y-2 {
  padding-top: 10px;
  padding-bottom: 10px;
}

.mar-bot-2 {
  margin-bottom: 10px;
}

.mar-top-2 {
  margin-top: 10px;
}

.mar-left-2 {
  margin-left: 10px;
}

.mar-right-2 {
  margin-right: 10px;
}

.mar-x-2 {
  margin-left: 10px;
  margin-right: 10px;
}

.mar-y-2 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.pad-bot-3 {
  padding-bottom: 15px;
}

.pad-top-3 {
  padding-top: 15px;
}

.pad-left-3 {
  padding-left: 15px;
}

.pad-right-3 {
  padding-right: 15px;
}

.pad-x-3 {
  padding-left: 15px;
  padding-right: 15px;
}

.pad-y-3 {
  padding-top: 15px;
  padding-bottom: 15px;
}

.mar-bot-3 {
  margin-bottom: 15px;
}

.mar-top-3 {
  margin-top: 15px;
}

.mar-left-3 {
  margin-left: 15px;
}

.mar-right-3 {
  margin-right: 15px;
}

.mar-x-3 {
  margin-left: 15px;
  margin-right: 15px;
}

.mar-y-3 {
  margin-top: 15px;
  margin-bottom: 15px;
}

.pad-bot-4 {
  padding-bottom: 20px;
}

.pad-top-4 {
  padding-top: 20px;
}

.pad-left-4 {
  padding-left: 20px;
}

.pad-right-4 {
  padding-right: 20px;
}

.pad-x-4 {
  padding-left: 20px;
  padding-right: 20px;
}

.pad-y-4 {
  padding-top: 20px;
  padding-bottom: 20px;
}

.mar-bot-4 {
  margin-bottom: 20px;
}

.mar-top-4 {
  margin-top: 20px;
}

.mar-left-4 {
  margin-left: 20px;
}

.mar-right-4 {
  margin-right: 20px;
}

.mar-x-4 {
  margin-left: 20px;
  margin-right: 20px;
}

.mar-y-4 {
  margin-top: 20px;
  margin-bottom: 20px;
}

.pad-bot-5 {
  padding-bottom: 25px;
}

.pad-top-5 {
  padding-top: 25px;
}

.pad-left-5 {
  padding-left: 25px;
}

.pad-right-5 {
  padding-right: 25px;
}

.pad-x-5 {
  padding-left: 25px;
  padding-right: 25px;
}

.pad-y-5 {
  padding-top: 25px;
  padding-bottom: 25px;
}

.mar-bot-5 {
  margin-bottom: 25px;
}

.mar-top-5 {
  margin-top: 25px;
}

.mar-left-5 {
  margin-left: 25px;
}

.mar-right-5 {
  margin-right: 25px;
}

.mar-x-5 {
  margin-left: 25px;
  margin-right: 25px;
}

.mar-y-5 {
  margin-top: 25px;
  margin-bottom: 25px;
}

@media screen and (max-width: 1000px) {
  .login, .register {
    margin: 20px auto;
    padding: 25px;
  }
}

/* modositott resz: */

.balance-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  flex-wrap: wrap; /* Ez lehetővé teszi, hogy több sorba törjenek a kártyák kisebb képernyőn */
}

/* Modern stats cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  padding: 10px 0;
}
.stat-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e9edf3;
  border-radius: 14px;
  padding: 18px 18px 16px 18px;
  box-shadow: 0 6px 18px rgba(28, 42, 58, 0.06);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(28, 42, 58, 0.10);
}
.stat-card .stat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.stat-card .stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.stat-card .stat-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  color: #6b7179;
  text-transform: uppercase;
}
.stat-card .stat-value {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  margin: 2px 0 0 0;
}
.stat-card .stat-subtext {
  margin-top: 8px;
  color: #8a92a1;
  font-size: 13px;
}

/* Variants */
.stat-card.is-balance .stat-icon { background: #e7f1ff; color: #2873cf; }
.stat-card.is-balance .stat-value { color: #1e4fa8; }

.stat-card.is-students .stat-icon { background: #e8f6ef; color: #2f9e61; }
.stat-card.is-students .stat-value { color: #20784a; }

.stat-card.is-debt .stat-icon { background: #fff1e8; color: #e8743a; }
.stat-card.is-debt .stat-value { color: #c1541b; }

@media (max-width: 768px) {
  .stat-card .stat-value { font-size: 30px; }
}

.balance-container {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  width: 100%;
  max-width: 300px; /* Maximum szélesség a nagyobb kijelzőkhöz */
  box-sizing: border-box; /* Biztosítja, hogy a padding ne növelje a szélességet */
  flex-grow: 1; /* A kártyák növekedhetnek, hogy kitöltsék a rendelkezésre álló helyet */
}

.balance-container h1 {
  color: #2c3e50;
  font-size: 24px;
  margin-bottom: 10px;
}

.balance-container p {
  color: #27ae60;
  font-size: 40px;
  margin: 0;
}

.balance-container small {
  display: block;
  color: #7f8c8d;
  font-size: 14px;
  margin-top: 8px;
}

/* Reszponzív beállítások kisebb képernyőkhöz */
@media (max-width: 768px) {
  .balance-row {
      flex-direction: column;
      align-items: stretch; /* A kártyák kitöltik a teljes szélességet */
  }

  .balance-container {
      width: 100%; /* A kártyák teljes szélességet kapnak kisebb képernyőn */
      max-width: none; /* Kiveszi a maximum szélességi korlátot mobil nézetben */
  }
}

.card {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px 24px;
  box-shadow: 0 10px 24px rgba(27, 39, 53, 0.08);
  margin-bottom: 24px;
}

.card header,
.card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card header h3,
.card .card-header h3,
.card h3 {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.profile-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.profile-card__identity {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.profile-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2873cf, #5ca5ff);
  color: #ffffff;
  font-weight: 600;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(40, 115, 207, 0.25);
}

.profile-card__summary h3 {
  font-size: 20px;
  margin: 0;
}

.profile-card__summary .profile-card__role {
  color: #6b7179;
  font-size: 14px;
  margin: 4px 0 0;
}

.profile-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  background: #f1f3f4;
  color: #5c6166;
  white-space: nowrap;
}

.profile-card__badge.is-active {
  background: #e4f4eb;
  color: #15723a;
}

.profile-card__badge.is-inactive {
  background: #fdecec;
  color: #ad2e24;
}

.profile-card__meta {
  margin: 0;
  display: grid;
  gap: 14px 20px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.profile-card__meta > div {
  background: #f6f8fb;
  border: 1px solid #e3e8ee;
  border-radius: 10px;
  padding: 14px 16px;
}

.profile-card__meta dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7d848d;
  margin: 0 0 6px 0;
}

.profile-card__meta dd {
  margin: 0;
  font-weight: 600;
  color: #2f3337;
}

.profile-card__footer {
  display: flex;
  justify-content: flex-end;
}

.profile-card--edit {
  gap: 32px;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-form__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-form__label {
  font-weight: 600;
  font-size: 14px;
  color: #3b4251;
}

.profile-form__input {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #d4dbde;
  border-radius: 8px;
  padding: 0 16px;
  background: #ffffff;
  min-height: 52px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-form__input svg {
  fill: #9aa0a6;
  flex-shrink: 0;
}

.profile-form__input input {
  border: 0;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 15px;
  color: #2f3337;
  padding: 8px 0;
}

.profile-form__input:focus-within {
  border-color: #2873cf;
  box-shadow: 0 0 0 3px rgba(40, 115, 207, 0.2);
}

.profile-form__input:focus-within svg {
  fill: #2873cf;
}

.profile-form__toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #474b50;
}

.profile-form__toggle-state {
  font-weight: 500;
  font-size: 14px;
}

.profile-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .profile-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-card__badge {
    width: 100%;
    justify-content: center;
  }

  .profile-card__avatar {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }

  .profile-card__meta {
    grid-template-columns: 1fr;
  }

  .profile-form__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-form__actions .btn {
    width: 100%;
  }
}

.notice {
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-weight: 500;
}

.notice.success {
  background: #e8f7ef;
  color: #1f7a44;
  border: 1px solid #c9ecd7;
}

.notice.error {
  background: #fbe9e9;
  color: #9c2f2f;
  border: 1px solid #f2c8c8;
}

.notice.warning {
  background: #fff5e1;
  color: #946321;
  border: 1px solid #f5d09c;
}

.student-form .fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.student-form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: #3b4251;
  font-size: 14px;
  gap: 8px;
}

.student-form label small {
  font-weight: 400;
  font-size: 12px;
  color: #7a7f85;
}

.student-form input,
.student-form select,
.student-form textarea {
  border: 1px solid #d4dbde;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.student-form input:focus,
.student-form select:focus,
.student-form textarea:focus {
  outline: none;
  border-color: #2873cf;
  box-shadow: 0 0 0 3px rgba(40, 115, 207, 0.2);
}

.student-form .actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.list-header {
  flex-wrap: wrap;
  gap: 16px;
}

.class-filter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.class-filter select {
  border-radius: 6px;
  padding: 8px 12px;
  border: 1px solid #d4dbde;
}

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

.card table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.card table thead th {
  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #6c7077;
  border-bottom: 1px solid #e2e6ea;
  padding: 12px;
}

.card table tbody td {
  padding: 12px;
  border-bottom: 1px solid #eef1f4;
  font-size: 15px;
}

.card table tbody tr:hover {
  background: #f8f9fb;
}

.inline-form {
  display: inline-flex;
}

.empty {
  margin: 0;
  padding: 12px 0;
  color: #7a7f85;
}

@media (max-width: 720px) {
  .student-form .fields-grid {
    grid-template-columns: 1fr;
  }

  .card table {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .parent-dashboard .transactions .table-wrap {
    overflow: visible;
  }

  .parent-dashboard .transactions table,
  .parent-dashboard .transactions thead,
  .parent-dashboard .transactions tbody,
  .parent-dashboard .transactions th,
  .parent-dashboard .transactions tr,
  .parent-dashboard .transactions td {
    display: block;
    width: 100%;
  }

  .parent-dashboard .transactions thead {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  .parent-dashboard .transactions tbody tr {
    background: #ffffff;
    border: 1px solid #e8ecf4;
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(17, 27, 44, 0.08);
  }

  .parent-dashboard .transactions tbody td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: none;
    font-size: 14px;
  }

  .parent-dashboard .transactions tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7179;
  }

  .parent-dashboard .transactions tbody td:last-child {
    padding-bottom: 0;
  }
}

.parent-dashboard {
  display: grid;
  gap: 24px;
}

.parent-dashboard .summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.parent-dashboard .label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a7f85;
  margin-bottom: 6px;
}

.parent-dashboard .summary-grid strong {
  font-size: 16px;
  color: #2c3038;
  word-break: break-word;
}

.parent-dashboard .balance {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #eef1f4;
}

.parent-dashboard .balance .value {
  font-size: 32px;
  font-weight: 700;
  color: #1f4fb5;
  margin-top: 6px;
}

.parent-dashboard .transactions .empty {
  padding: 20px 0;
}

.parent-profile {
  display: grid;
  gap: 24px;
  width: 100%;
}

.parent-profile .card {
  margin-bottom: 0;
}

.parent-profile .student-form .fields-grid {
  grid-template-columns: 1fr;
}

.parent-profile .hint {
  font-size: 13px;
  color: #7a7f85;
}

.parent-profile .profile-overview {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}

.parent-profile .profile-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f4fb5, #2873cf);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 30px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(31, 79, 181, 0.2);
}

.parent-profile .profile-avatar span {
  line-height: 1;
}

.parent-profile .profile-avatar svg {
  fill: #ffffff;
}

.parent-profile .profile-overview h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #2c3038;
}

.parent-profile .profile-overview .lead {
  margin: 0;
  font-size: 14px;
  color: #5a6066;
  line-height: 1.6;
}

.parent-profile .profile-overview .profile-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 20px 0 16px;
}

.parent-profile .profile-overview .meta-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a9098;
  margin-bottom: 6px;
}

.parent-profile .profile-overview .meta-value {
  font-size: 15px;
  font-weight: 600;
  color: #2c3038;
  word-break: break-word;
}

.parent-profile .profile-status {
  display: grid;
  gap: 10px;
}

.parent-profile .status-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  row-gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #edf2fb;
  color: #1f4fb5;
  font-size: 13px;
  font-weight: 600;
  max-width: 100%;
}

.parent-profile .status-chip svg {
  fill: currentColor;
}

.parent-profile .status-chip span {
  white-space: normal;
  line-height: 1.4;
  word-break: break-word;
}

.parent-profile .profile-status p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #5a6066;
}

.parent-profile .profile-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.parent-profile .profile-card {
  display: flex;
  flex-direction: column;
}

.parent-profile .profile-card .card-heading {
  margin-bottom: 18px;
}

.parent-profile .profile-card .card-heading h3 {
  margin: 0;
  font-size: 18px;
  text-transform: none;
  letter-spacing: 0.01em;
  color: #2c3038;
}

.parent-profile .profile-card .card-heading p {
  margin: 6px 0 0 0;
  font-size: 13px;
  color: #6b7179;
  line-height: 1.6;
}

.parent-profile .profile-card .actions {
  justify-content: flex-start;
}

@media (max-width: 720px) {
  .parent-profile .profile-overview {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .parent-profile .profile-avatar {
    margin: 0 auto;
  }

  .parent-profile .profile-overview .profile-meta {
    grid-template-columns: 1fr;
  }

  .parent-profile .profile-card .actions {
    justify-content: center;
  }
}

.manage-students .manage-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.manage-students .manage-toolbar .hint {
  margin: 0;
  color: #6b7179;
  font-size: 13px;
}

.manage-students .manage-toolbar .toolbar-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.manage-students .student-inspector {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}

.manage-students .student-inspector header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.manage-students .student-inspector header h3 {
  margin: 0;
  font-size: 20px;
  text-transform: none;
  letter-spacing: 0.01em;
}

.manage-students .student-inspector header .subtitle {
  margin: 6px 0 0 0;
  color: #6b7179;
  font-size: 13px;
}

.manage-students .student-inspector .summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.manage-students .student-inspector .summary-grid .label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a9098;
  margin-bottom: 6px;
}

.manage-students .student-inspector .summary-grid strong {
  font-size: 16px;
  color: #2c3038;
}

.manage-students .inspector-forms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.manage-students .inspector-forms section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.manage-students .inspector-forms h4 {
  margin: 0;
  font-size: 16px;
  color: #2c3038;
  text-transform: none;
}

.manage-students .transaction-form .fields-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.manage-students .transaction-form .wide {
  grid-column: 1 / -1;
}

.manage-students .transaction-history {
  margin-top: 10px;
}

.manage-students .transaction-history h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #2c3038;
  text-transform: none;
}

.manage-students .transaction-history table tbody td {
  font-size: 14px;
}

.manage-students .transaction-history table tbody td:first-child {
  white-space: nowrap;
}

.manage-students .transaction-history table tbody td:nth-child(2) {
  font-weight: 600;
  color: #1f4fb5;
}

@media (max-width: 720px) {
  .manage-students .manage-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .manage-students .toolbar-actions {
    width: 100%;
    justify-content: stretch;
    gap: 10px;
  }

  .manage-students .toolbar-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .manage-students .student-inspector header {
    flex-direction: column;
    align-items: stretch;
  }

  .manage-students .inspector-forms {
    grid-template-columns: 1fr;
  }

  .manage-students .transaction-form .wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .manage-students .student-inspector .summary-grid {
    grid-template-columns: 1fr;
  }

  .manage-students .student-inspector .summary-grid strong {
    word-break: break-word;
  }

  .manage-students .student-inspector .transaction-history .table-wrap,
  .manage-students .card .table-wrap {
    overflow: visible;
  }

  .manage-students .student-inspector .transaction-history table,
  .manage-students .student-inspector .transaction-history thead,
  .manage-students .student-inspector .transaction-history tbody,
  .manage-students .student-inspector .transaction-history th,
  .manage-students .student-inspector .transaction-history tr,
  .manage-students .student-inspector .transaction-history td,
  .manage-students .card table,
  .manage-students .card thead,
  .manage-students .card tbody,
  .manage-students .card th,
  .manage-students .card tr,
  .manage-students .card td {
    display: block;
    width: 100%;
  }

  .manage-students .student-inspector .transaction-history thead,
  .manage-students .card thead {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  .manage-students .student-inspector .transaction-history tbody tr,
  .manage-students .card tbody tr {
    background: #ffffff;
    border: 1px solid #e8ecf4;
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(17, 27, 44, 0.08);
  }

  .manage-students .student-inspector .transaction-history tbody td,
  .manage-students .card tbody td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: none;
    font-size: 14px;
  }

  .manage-students .student-inspector .transaction-history tbody td::before,
  .manage-students .card tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7179;
  }

  .manage-students .student-inspector .transaction-history tbody td:last-child,
  .manage-students .card tbody td:last-child {
    padding-bottom: 0;
  }

  .manage-students .card tbody td[data-label="Műveletek"] {
    justify-content: flex-start;
  }

  .manage-students .card tbody td[data-label="Műveletek"] .btn {
    width: 100%;
    justify-content: center;
  }
}

.create-student .page-actions,
.class-transactions .page-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
  gap: 12px;
}

.create-student .page-actions .btn,
.class-transactions .page-actions .btn {
  height: 36px;
}

.transactions-page .transaction-filters {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.transactions-page .transaction-filters span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8a9098;
  margin-bottom: 2px;
}

.transactions-page .transaction-filters select {
  min-width: 180px;
  border-radius: 6px;
  padding: 8px 12px;
  border: 1px solid #d4dbde;
}

.transactions-page .transaction-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.transactions-page .transaction-item {
  border: 1px solid #eef1f4;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(12, 26, 75, 0.05);
  overflow: hidden;
}

.transactions-page .transaction-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 52px 16px 20px;
  cursor: pointer;
  position: relative;
}

.transactions-page .transaction-item summary::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #87919c;
  border-bottom: 2px solid #87919c;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.2s ease;
}

.transactions-page .transaction-item[open] summary::after {
  transform: translateY(-50%) rotate(225deg);
}

.transactions-page .transaction-item summary::-webkit-details-marker {
  display: none;
}

.transactions-page .summary-message {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #253047;
  padding-right: 40px;
}

.transactions-page .summary-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transactions-page .summary-extra {
  font-size: 13px;
  color: #5a6370;
}

.transactions-page .summary-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.transactions-page .summary-per-head {
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  padding: 4px 10px;
  white-space: nowrap;
}

.transactions-page .summary-per-head.income {
  color: #1d7d56;
  background: rgba(29, 125, 86, 0.14);
}

.transactions-page .summary-per-head.expense {
  color: #c24a43;
  background: rgba(194, 74, 67, 0.14);
}

.transactions-page .summary-date {
  font-size: 13px;
  color: #6b7179;
}

.transactions-page .transaction-body {
  border-top: 1px solid #eef1f4;
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f9fafc;
}

.transactions-page .transaction-meta-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  row-gap: 10px;
  column-gap: 18px;
  align-items: start;
  margin: 0;
}

.transactions-page .transaction-meta-grid dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8a9098;
  margin: 0;
}

.transactions-page .transaction-meta-grid dd {
  margin: 0;
  font-size: 14px;
  color: #2c3038;
}

.transactions-page .transaction-actions {
  display: flex;
  justify-content: flex-end;
}

.transactions-page .transaction-actions .btn {
  min-width: 140px;
}

@media (max-width: 720px) {
  .transactions-page .transaction-item summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 48px 16px 20px;
  }

  .transactions-page .summary-message {
    white-space: normal;
    padding-right: 0;
  }

  .transactions-page .summary-title {
    white-space: normal;
  }

  .transactions-page .summary-meta {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }

  .transactions-page .transaction-meta-grid {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .transactions-page .transaction-meta-grid dt {
    font-size: 11px;
  }

  .transactions-page .transaction-meta-grid dd {
    font-size: 14px;
  }

  .transactions-page .transaction-actions {
    justify-content: stretch;
  }

  .transactions-page .transaction-actions .btn {
    width: 100%;
  }
}

.transactions-page .transactions-table td {
  vertical-align: middle;
}

.transactions-page .pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  padding: 12px 18px;
  border: 1px solid #e0e4ea;
  background: linear-gradient(180deg, #f9fafc 0%, #f3f5f8 100%);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(35, 46, 60, 0.08);
}

.transactions-page .pagination .btn.secondary {
  background: #ffffff;
  color: #2873cf;
  border: 1px solid #d4dbde;
  box-shadow: 0 4px 10px rgba(20, 33, 53, 0.08);
  padding: 0 18px;
  height: 38px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.transactions-page .pagination .btn.secondary:hover {
  background: #eef3fb;
  border-color: #c2cde0;
  box-shadow: 0 6px 14px rgba(20, 33, 53, 0.12);
}

.transactions-page .pagination .btn.secondary.disabled,
.transactions-page .pagination .btn.secondary[aria-disabled="true"] {
  background: #f5f7fb;
  color: #9aa0a6;
  border-color: #e0e4ea;
  box-shadow: none;
  pointer-events: none;
}

.transactions-page .pagination .page-indicator {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7179;
}

.lander-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: center;
  padding: 64px 0;
}

.lander-hero .badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(40, 115, 207, 0.1);
  color: #2873cf;
  margin-bottom: 18px;
}

.lander-hero h1 {
  font-size: 34px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.lander-hero p {
  color: #5a5f66;
  max-width: 520px;
  line-height: 1.6;
}

.lander-hero .hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.lander-hero .hero-visual {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.lander-hero .stat-card {
  background: linear-gradient(160deg, #2873cf 0%, #3e8ef7 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 12px 28px rgba(29, 56, 92, 0.18);
  text-align: left;
}

.lander-hero .stat-card h3 {
  margin: 0 0 6px 0;
  font-size: 24px;
}

.lander-hero .stat-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.lander-section {
  padding: 60px 0;
}

.lander-section header {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef3fb;
  color: #2873cf;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}

.lander-section h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.lander-section p {
  color: #5a5f66;
  line-height: 1.6;
}

.features .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.features .feature-card {
  background: #ffffff;
  border: 1px solid #e0e4ea;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 12px 24px rgba(35, 46, 60, 0.08);
}

.features .feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(40, 115, 207, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.features .feature-card h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
}

.features .feature-card p {
  margin: 0;
}

.process .process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  counter-reset: process-step;
}

.process .step-card {
  background: #ffffff;
  border: 1px solid #dde3f0;
  border-radius: 16px;
  padding: 26px 24px;
  box-shadow: 0 14px 32px rgba(35, 46, 60, 0.08);
  position: relative;
  overflow: hidden;
}

.process .step-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(40, 115, 207, 0.12), transparent 60%);
  pointer-events: none;
}

.process .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(40, 115, 207, 0.14);
  color: #2873cf;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 18px;
}

.process .step-card h3 {
  margin: 0 0 10px 0;
}

.process .step-card p {
  margin: 0;
  color: #535a63;
  line-height: 1.6;
}

.automation .automation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.automation .automation-card {
  background: linear-gradient(160deg, rgba(40, 115, 207, 0.08) 0%, rgba(40, 115, 207, 0.02) 100%);
  border: 1px solid rgba(40, 115, 207, 0.16);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(35, 46, 60, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.automation .automation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(35, 46, 60, 0.12);
}

.automation .automation-card h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: #1f2c3d;
}

.automation .automation-card p {
  margin: 0;
  color: #545b64;
  line-height: 1.6;
}

.automation .automation-card:nth-child(odd) {
  background: linear-gradient(160deg, rgba(24, 185, 139, 0.1) 0%, rgba(40, 115, 207, 0.06) 100%);
  border-color: rgba(24, 185, 139, 0.18);
}

.automation .automation-card:nth-child(odd):hover {
  box-shadow: 0 16px 36px rgba(24, 185, 139, 0.18);
}

.testimonials .testimonial-list {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.testimonials .testimonial {
  background: #ffffff;
  border-left: 4px solid #2873cf;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(35, 46, 60, 0.08);
  color: #4d5258;
  line-height: 1.6;
}

.testimonials .testimonial cite {
  display: block;
  margin-top: 16px;
  font-weight: 600;
  color: #2873cf;
}

.contact {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.contact .contact-list {
  list-style: none;
  margin: 28px 0 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.contact .contact-list .label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a9098;
  margin-bottom: 4px;
}

.contact .contact-list .value {
  font-size: 18px;
  font-weight: 600;
  color: #1e2530;
  text-decoration: none;
}

.contact .contact-list .value:hover {
  color: #2873cf;
}

.contact .contact-cta {
  display: grid;
  gap: 18px;
}

.contact .cta-card {
  background: #ffffff;
  border: 1px solid #e0e4ea;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 24px rgba(35, 46, 60, 0.08);
}

.contact .cta-card.secondary {
  background: #f8fafc;
}

.contact .cta-card h3 {
  margin: 0 0 10px 0;
}

.contact .cta-card p {
  margin: 0 0 18px 0;
}

.faq .faq-list {
  display: grid;
  gap: 12px;
}

.faq details {
  background: #ffffff;
  border: 1px solid #e0e4ea;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 10px 20px rgba(35, 46, 60, 0.06);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #1e2530;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] {
  border-color: #c2cde0;
}

.faq details p {
  margin: 12px 0 0 0;
  color: #5a5f66;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .lander-hero {
    padding: 40px 0;
  }

  .lander-hero h1 {
    font-size: 28px;
  }

  .lander-section {
    padding: 48px 0;
  }
}


.transaction-amount {
  font-weight: 600;
}

.transaction-amount.income {
  color: #1f7a44;
}

.transaction-amount.expense {
  color: #be4949;
}

.transaction-amount.reversed {
  color: #7a7f85;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-pill.success {
  background: #e8f7ef;
  color: #1f7a44;
}

.status-pill.neutral {
  background: #f1f3f5;
  color: #6b7179;
}

.status-pill.split {
  background: rgba(40, 115, 207, 0.14);
  color: #2873cf;
}

.transactions-page .inline-form .btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.invoices-page .view-mode-selector {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.invoices-page .view-mode-selector label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8a9098;
}

.invoices-page .view-mode-selector select {
  min-width: 220px;
  border-radius: 10px;
  padding: 10px 14px;
  border: 1px solid #d6dbe5;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(19, 33, 59, 0.08);
  color: #2b3037;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.invoices-page .view-mode-selector select:focus {
  outline: none;
  border-color: #2873cf;
  box-shadow: 0 0 0 3px rgba(40, 115, 207, 0.18);
}

.invoices-page .invoice-groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 16px;
}

.invoices-page .invoice-group {
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.95) 0%, #ffffff 60%);
  border: 1px solid #e4e9f3;
  border-radius: 18px;
  box-shadow: 0 14px 24px rgba(29, 43, 74, 0.08);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.invoices-page .card {
  border-radius: 18px;
  border: 1px solid #e6ebf2;
  box-shadow: 0 12px 26px rgba(23, 39, 64, 0.08);
}

.invoices-page .upload-card {
  background: linear-gradient(135deg, rgba(40, 115, 207, 0.09) 0%, rgba(255, 255, 255, 0.95) 55%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.invoices-page .upload-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(40, 115, 207, 0.15), transparent 60%);
}

.invoices-page .upload-card h3,
.invoices-page .upload-card .student-form {
  position: relative;
  z-index: 1;
}

.invoices-page .upload-card .fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px 24px;
}

.invoices-page .upload-card .fields-grid label span {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
  color: #4f5a6b;
}

.invoices-page .upload-card .fields-grid label small {
  font-size: 12px;
  color: #6f7684;
}

.invoices-page .file-upload-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.invoices-page .file-upload-drop {
  position: relative;
  border: 2px dashed rgba(40, 115, 207, 0.35);
  border-radius: 16px;
  background: #f4f7fd;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 150px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.invoices-page .file-upload-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.invoices-page .file-upload-drop::before,
.invoices-page .file-upload-drop::after {
  content: none;
}

.invoices-page .file-upload-field:hover .file-upload-drop,
.invoices-page .file-upload-drop:focus-within {
  border-color: rgba(40, 115, 207, 0.65);
  box-shadow: 0 14px 28px rgba(27, 54, 97, 0.12);
  background: #eef4ff;
}

.invoices-page .file-upload-content {
  pointer-events: none;
  max-width: 320px;
}

.invoices-page .file-upload-content strong {
  font-size: 17px;
  color: #1f2d46;
  display: block;
  margin-bottom: 8px;
}

.invoices-page .file-upload-content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #556179;
}

.invoices-page .upload-card .actions {
  margin-top: 24px;
}


.invoices-page .invoice-group h4 {
  font-size: 17px;
  color: #243047;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.invoices-page .invoice-group h4::before {
  content: "";
  width: 8px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2873cf 0%, #5a9ff0 100%);
  display: inline-block;
}

.invoices-page .invoice-group .table-wrap {
  margin: 0;
}

.invoices-page table thead {
  background: #f5f7fb;
}

.invoices-page table thead th {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7584;
}

.invoices-page table tbody tr {
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.invoices-page table tbody tr:hover {
  background: rgba(40, 115, 207, 0.05);
  transform: translateY(-1px);
}

.invoices-page table td,
.invoices-page table th {
  vertical-align: middle;
}

.invoices-page table td[data-label="Művelet"] {
  text-align: right;
}

.invoices-page .inline-form {
  display: inline-flex;
  align-items: center;
}

.invoices-page .inline-form .btn {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.invoices-page small {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: #6f7684;
}

.invoices-page .mobile-only-note {
  display: none;
  margin: 20px 0 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8f9fd;
  border: 1px dashed #c5ccda;
  color: #5a6171;
  text-align: center;
  font-size: 13px;
}

.invoices-page .notice {
  border-radius: 12px;
}

.invoices-page .notice.success {
  border: 1px solid rgba(37, 142, 95, 0.35);
  background: rgba(214, 243, 229, 0.9);
}

.invoices-page .notice.error {
  border: 1px solid rgba(210, 69, 69, 0.35);
  background: rgba(255, 230, 230, 0.92);
}

.invoices-page .card h3 {
  font-size: 18px;
  color: #192130;
  letter-spacing: 0.01em;
}

.invoices-page .card .fields-grid label span {
  font-weight: 600;
  color: #2d3748;
}

.invoices-page .card .fields-grid input[type="text"],
.invoices-page .card .fields-grid select,
.invoices-page .card .fields-grid input[type="file"] {
  border-radius: 10px;
  border: 1px solid #d6dbe5;
  padding: 10px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.invoices-page .card .fields-grid input[type="text"]:focus,
.invoices-page .card .fields-grid select:focus,
.invoices-page .card .fields-grid input[type="file"]:focus {
  outline: none;
  border-color: #2873cf;
  box-shadow: 0 0 0 3px rgba(40, 115, 207, 0.18);
}

.invoices-page .card .actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.invoices-page .card .btn.primary {
  padding: 0 20px;
  height: 40px;
  font-size: 14px;
  box-shadow: 0 12px 22px rgba(38, 115, 207, 0.28);
}

.invoices-page .empty {
  padding: 24px;
  text-align: center;
  color: #6f7684;
  background: #f7f9fd;
  border-radius: 14px;
  border: 1px dashed #c5ccda;
}

.invoices-page .page-title .icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 14px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 22px rgba(40, 115, 207, 0.22);
}

.invoices-page .page-title .icon svg {
  fill: #ffffff;
}

.invoices-page .page-title .wrap h2 {
  font-size: 28px;
  color: #1c2332;
}

.invoices-page .page-title .wrap p {
  color: #5f6675;
  margin-top: 6px;
}

.invoices-page td[data-label="Művelet"] small {
  margin: 0;
  font-weight: 600;
  color: #9ba2b0;
}

@media (max-width: 640px) {
  .invoices-page .mobile-hidden {
    display: none !important;
  }

  .invoices-page .mobile-only-note {
    display: block;
  }

  .invoices-page .view-mode-selector {
    flex-direction: column;
    align-items: stretch;
  }

  .invoices-page .view-mode-selector select {
    width: 100%;
  }

  .invoices-page .invoice-group {
    padding: 18px 20px;
  }

  .invoices-page .card {
    padding: 18px;
  }

  .invoices-page .card .fields-grid {
    gap: 16px;
  }

  .invoices-page .card .fields-grid input[type="text"],
  .invoices-page .card .fields-grid select,
  .invoices-page .card .fields-grid input[type="file"],
  .invoices-page .card .fields-grid textarea {
    width: 100%;
    max-width: 100%;
  }

  .invoices-page .card .actions {
    justify-content: center;
  }

  .invoices-page .card .actions .btn {
    width: 100%;
  }

  .invoices-page table,
  .invoices-page thead,
  .invoices-page tbody,
  .invoices-page th,
  .invoices-page tr,
  .invoices-page td {
    display: block;
    width: 100%;
  }

  .invoices-page thead {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  .invoices-page tbody tr {
    background: #ffffff;
    border: 1px solid #e5eaf2;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 10px 18px rgba(18, 28, 46, 0.08);
  }

  .invoices-page td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    border-bottom: none;
    font-size: 14px;
  }

  .invoices-page td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6f7684;
  }

  .invoices-page td[data-label="Művelet"] {
    justify-content: flex-start;
  }

  .invoices-page .inline-form {
    width: 100%;
  }

  .invoices-page .inline-form .btn {
    width: 100%;
    justify-content: center;
  }

  .invoices-page .upload-card .fields-grid {
    grid-template-columns: 1fr;
  }

  .invoices-page .file-upload-drop {
    padding: 20px;
    min-height: 130px;
  }

  .invoices-page .file-upload-drop::before {
    width: 56px;
    height: 56px;
    top: 20px;
    left: 20px;
  }

  .invoices-page .file-upload-drop::after {
    width: 26px;
    height: 26px;
    top: 33px;
    left: 33px;
  }

  .invoices-page .file-upload-content {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .transactions-page .transactions-table th,
  .transactions-page .transactions-table td {
    white-space: nowrap;
  }

  .transactions-page .transactions-table td:nth-child(7) {
    white-space: normal;
  }
}

.class-transactions .class-transaction-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.class-transactions .class-transaction-grid {
  display: grid;
  grid-template-columns: minmax(280px, 320px) 1fr;
  gap: 24px;
}

.class-student-selector {
  border: 1px solid #eef1f4;
  border-radius: 10px;
  background: #f8f9fb;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.class-student-selector .selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.class-student-selector .selector-header h4 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: #2c3038;
}

.class-student-selector .selector-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.class-student-selector .selector-actions .btn.small {
  height: 28px;
  font-size: 12px;
  padding: 6px 10px;
}

.class-student-selector .hint {
  margin: 0;
  font-size: 13px;
  color: #6b7179;
}

.student-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 2px;
}

.student-checkboxes label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 6px 10px;
  background: #f7f9fb;
  border: 1px solid #d8dee5;
  border-radius: 6px;
  box-shadow: none;
}

.student-checkboxes label input {
  margin-right: 4px;
}

.student-checkboxes label .name {
  flex: 1;
  font-weight: 500;
  color: #2c3038;
  font-size: 13px;
}

.class-transaction-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.class-transaction-details h4 {
  margin: 0;
  font-size: 16px;
  color: #2c3038;
  letter-spacing: 0.01em;
}

.class-transaction-details .fields-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.class-transaction-details .fields-grid label small {
  font-size: 12px;
  color: #6b7179;
}

.wheel-page .wheel-layout {
  display: grid;
  gap: 24px;
  align-items: flex-start;
}

.wheel-page .wheel-selector .student-checkboxes {
  max-height: 420px;
  overflow-y: auto;
}

.wheel-page .wheel-selector.is-hidden {
  display: none;
}

.wheel-page .wheel-hint {
  margin-top: 16px;
  font-size: 14px;
  color: #cf4a43;
}

.wheel-page .wheel-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wheel-page .wheel-controls {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}

.wheel-page .wheel-preview {
  background: #f8f9fb;
  border-radius: 8px;
  padding: 8px;
  box-shadow: inset 0 0 0 1px rgba(38, 49, 61, 0.06);
}

.wheel-page .wheel-preview iframe {
  width: 100%;
  border: 0;
  border-radius: 4px;
}

.wheel-page .wheel-result {
  font-size: 15px;
  color: #2c3038;
}

@media (max-width: 900px) {
  .class-transactions .class-transaction-grid {
    grid-template-columns: 1fr;
  }

  .class-student-selector .selector-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .class-student-selector .selector-actions {
    justify-content: flex-start;
  }

  .wheel-page .wheel-layout {
    grid-template-columns: 1fr;
  }
}

  /* === OsztályZseb Aurora Redesign (Navbar to Footer) === */
  :root {
    --font-sans: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --bg-body: #e6ebf9;
    --bg-body-alt: #f3f6ff;
    --surface: #ffffff;
    --surface-alt: rgba(255, 255, 255, 0.88);
    --surface-muted: rgba(248, 249, 255, 0.75);
    --surface-dark: #111a2a;
    --border-soft: rgba(23, 36, 59, 0.08);
    --border-strong: rgba(23, 36, 59, 0.18);
    --divider: rgba(23, 36, 59, 0.12);
    --text: #182536;
    --text-muted: #64708b;
    --heading: #0f1a2c;
    --primary: #3b6bff;
    --primary-dark: #2551df;
    --primary-soft: rgba(59, 107, 255, 0.12);
    --accent: #18b98b;
    --danger: #f16055;
    --warning: #f6b144;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --shadow-xs: 0 6px 20px rgba(21, 32, 54, 0.08);
    --shadow-sm: 0 18px 45px rgba(15, 23, 42, 0.12);
    --transition: 0.22s ease;
    --nav-gradient: linear-gradient(135deg, rgba(12, 18, 36, 0.9) 0%, rgba(23, 38, 72, 0.92) 100%);
    --nav-border: rgba(255, 255, 255, 0.08);
    --nav-pill: rgba(255, 255, 255, 0.08);
    --nav-pill-hover: rgba(255, 255, 255, 0.16);
    --nav-pill-active: rgba(59, 107, 255, 0.25);
    --nav-link: rgba(227, 235, 255, 0.88);
    --nav-link-muted: rgba(203, 214, 255, 0.72);
    --nav-link-strong: #ffffff;
    --nav-shadow: 0 24px 48px rgba(7, 12, 26, 0.38);
    --nav-blur: 20px;
  }

  html,
  body {
    background: linear-gradient(160deg, var(--bg-body) 0%, var(--bg-body-alt) 100%);
  }

  body {
    font-family: var(--font-sans);
    color: var(--text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: var(--heading);
    line-height: 1.2;
    font-weight: 700;
  }

  a {
    color: var(--primary);
    transition: color var(--transition), opacity var(--transition);
  }

  a:hover {
    color: var(--primary-dark);
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    height: 42px;
    border-radius: 28px;
    border: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), opacity var(--transition);
  }

  .btn.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  }

  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 81, 223, 0.25);
  }

  .btn.alt {
    background: rgba(24, 35, 54, 0.06);
    color: var(--heading);
    box-shadow: none;
    border: 1px solid var(--border-soft);
  }

  .btn.alt:hover {
    background: rgba(24, 35, 54, 0.12);
  }

  .btn.green {
    background: linear-gradient(135deg, #18b98b 0%, #0f8d68 100%);
  }

  .btn.red {
    background: linear-gradient(135deg, #f16055 0%, #d94848 100%);
  }

  .form {
    display: grid;
    gap: 18px;
  }

  .form .form-input,
  .student-form input,
  .student-form select,
  .student-form textarea {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-soft);
    background: var(--surface);
    padding: 0 16px;
    color: var(--text);
    transition: border var(--transition), box-shadow var(--transition), background var(--transition);
  }

  .form .form-input,
  .student-form input:not([type="checkbox"]):not([type="radio"]),
  .student-form select {
    min-height: 52px;
    padding: 0 18px;
  }

  .form .form-input:focus,
  .student-form input:focus,
  .student-form select:focus,
  .student-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
  }

  .form .fb-btn,
  .form .gl-btn,
  .form .dc-btn,
  .form .ms-btn {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xs);
  }

  .login,
  .register {
    width: min(420px, 95%);
    background: var(--surface-alt);
    backdrop-filter: blur(18px);
    border-radius: var(--radius-lg);
    margin: 80px auto;
    padding: 44px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-soft);
  }

  body.auth-body {
    margin: 0;
    display: flex;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(59, 107, 255, 0.25), transparent 45%),
                radial-gradient(circle at bottom right, rgba(24, 185, 139, 0.2), transparent 46%),
                linear-gradient(160deg, var(--bg-body) 0%, var(--bg-body-alt) 100%);
  }

  .auth-shell {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 460px));
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 64px clamp(16px, 5vw, 64px);
    width: min(1120px, 100%);
    margin: 0 auto;
  }

  .auth-info {
    background: rgba(16, 25, 44, 0.82);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 5vw, 48px);
    color: #f5f7ff;
    box-shadow: 0 24px 55px rgba(13, 23, 45, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 18px;
  }

  .auth-info .brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    font-size: 18px;
  }

  .auth-info h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 36px);
    color: #ffffff;
  }

  .auth-info p {
    margin: 0;
    color: rgba(232, 236, 255, 0.82);
    font-size: 15px;
    line-height: 1.6;
  }

  .auth-info ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    font-size: 14px;
    color: rgba(232, 236, 255, 0.78);
  }

  .auth-info ul li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .auth-info ul li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(59, 107, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(59, 107, 255, 0.2);
  }

  .auth-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 5vw, 44px);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-soft);
    display: grid;
    gap: 24px;
  }

  .auth-card .btn {
    width: 100%;
  }

  .auth-card .register-link {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
  }

  .auth-card header {
    display: grid;
    gap: 6px;
  }

  .auth-card header h1 {
    margin: 0;
    font-size: 26px;
  }

  .auth-card header p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
  }

  .mobile-wheel-warning {
    display: none;
  }

  .mobile-wheel-warning.is-hidden {
    display: none !important;
  }

  .auth-card .system-messages {
    display: grid;
    gap: 10px;
  }

  @media (max-width: 900px) {
    .wheel-page .wheel-layout {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 768px) {
    .mobile-wheel-warning {
      display: block;
      margin-bottom: 16px;
    }

    .wheel-page .wheel-layout {
      display: flex;
      flex-direction: column;
      gap: 18px;
    }

    .wheel-page .wheel-selector { order: 1; }
    .wheel-page .wheel-panel { order: 2; }
  }


  .auth-card .system-message {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(246, 177, 68, 0.36);
    background: rgba(246, 177, 68, 0.14);
    color: #8b5a17;
    padding: 12px 14px;
    font-size: 14px;
  }

  .auth-card .msg {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    background: rgba(24, 35, 54, 0.05);
    color: var(--heading);
    border: 1px solid rgba(24, 35, 54, 0.08);
  }

  .auth-card .msg:empty {
    display: none;
  }

  .auth-card .msg.error {
    background: rgba(241, 96, 85, 0.12);
    color: #cf4a43;
    border-color: rgba(241, 96, 85, 0.22);
  }

  .auth-card .msg.success {
    background: rgba(24, 185, 139, 0.12);
    color: #0f8d68;
    border-color: rgba(24, 185, 139, 0.22);
  }

  .auth-card .msg.hint {
    background: rgba(59, 107, 255, 0.08);
    color: var(--primary-dark);
    border-color: rgba(59, 107, 255, 0.18);
  }

  .auth-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    font-size: 14px;
    color: rgba(232, 236, 255, 0.78);
  }

  .auth-meta .meta-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    opacity: 0.8;
  }

  body.lander-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top left, rgba(59, 107, 255, 0.18), transparent 45%),
                radial-gradient(circle at bottom right, rgba(24, 185, 139, 0.18), transparent 46%),
                linear-gradient(160deg, var(--bg-body) 0%, var(--bg-body-alt) 100%);
    color: var(--text);
  }

  .lander-shell {
  width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
  }

  .lander-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(17, 27, 44, 0.08);
  }

  .lander-header .lander-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 78px;
  }

  .lander-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
  }

  .lander-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }

  .lander-main {
    flex: 1;
    padding: clamp(32px, 5vw, 56px) 0 72px;
  }

  .lander-footer {
    background: linear-gradient(180deg, rgba(10, 18, 36, 0.96), rgba(10, 16, 29, 1));
    color: rgba(232, 236, 255, 0.8);
    padding: 32px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .lander-footer .lander-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
  }

  .lander-hero {
    margin: 56px 0;
    padding: clamp(28px, 5vw, 56px);
    background: linear-gradient(135deg, rgba(59, 107, 255, 0.18), rgba(24, 185, 139, 0.16));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(59, 107, 255, 0.22);
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(28px, 6vw, 44px);
    align-items: stretch;
  }

  .lander-hero .hero-copy {
    display: grid;
    gap: 18px;
  }

  .lander-hero .hero-eyebrow {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--primary-dark);
    font-weight: 600;
  }

  .lander-hero h1 {
    font-size: clamp(32px, 4vw, 42px);
    margin: 0;
    line-height: 1.15;
  }

  .lander-hero p {
    margin: 0;
    color: var(--text-muted);
    font-size: 16px;
  }

  .lander-hero .hero-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
  }

  .lander-hero .hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }

  .lander-hero .hero-stats div {
    flex: 1 1 140px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    border: 1px solid rgba(59, 107, 255, 0.25);
    backdrop-filter: blur(8px);
    min-width: 120px;
  }

  .lander-hero .hero-stats strong {
    display: block;
    font-size: 16px;
    color: var(--heading);
    margin-bottom: 4px;
  }

  .lander-hero .hero-stats span {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .lander-hero .hero-preview {
    display: flex;
    align-items: stretch;
    justify-content: center;
  }

  .lander-hero .preview-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(24, 35, 54, 0.1);
    padding: clamp(20px, 4vw, 32px);
    box-shadow: var(--shadow-xs);
    width: min(360px, 100%);
    display: grid;
    gap: 14px;
  }

  .lander-hero .preview-card h2 {
    margin: 0;
    font-size: 22px;
  }

  .lander-hero .preview-card ul {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
    color: var(--text-muted);
  }

  .lander-highlights {
    margin: 74px 0;
    display: grid;
    gap: 32px;
  }

  .lander-highlights header {
    display: grid;
    gap: 12px;
    max-width: 720px;
  }

  .lander-highlights header .eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    color: var(--primary-dark);
  }

  .lander-highlights header h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 34px);
  }

  .lander-highlights header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 16px;
  }

  .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
  }

  .feature-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    padding: 24px;
    box-shadow: var(--shadow-xs);
    display: grid;
    gap: 14px;
  }

  .feature-card .feature-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    align-items: center;
    justify-content: center;
    background: rgba(59, 107, 255, 0.12);
    font-size: 22px;
  }

  .feature-card h3 {
    margin: 0;
    font-size: 18px;
  }

  .feature-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
  }

  .lander-flow {
    margin: 80px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(28px, 6vw, 40px);
    align-items: stretch;
  }

  .lander-flow .flow-copy {
    display: grid;
    gap: 18px;
  }

  .lander-flow .flow-copy .eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--primary-dark);
  }

  .lander-flow h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 32px);
  }

  .lander-flow ol {
    margin: 0;
    padding-left: 22px;
    display: grid;
    gap: 16px;
    color: var(--text-muted);
  }

  .lander-flow li strong {
    display: block;
    font-size: 16px;
    color: var(--heading);
    margin-bottom: 6px;
  }

  .lander-flow li p {
    margin: 0;
    line-height: 1.6;
  }

  .lander-flow .flow-visual {
    display: flex;
    align-items: stretch;
  }

  .lander-flow .flow-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    padding: clamp(22px, 4vw, 32px);
    box-shadow: var(--shadow-xs);
    display: grid;
    gap: 16px;
  }

  .lander-flow .flow-card h3 {
    margin: 0;
    font-size: 20px;
  }

  .lander-flow .flow-card p {
    margin: 0;
    color: var(--text-muted);
  }

  .lander-flow .flow-card ul {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 10px;
    color: var(--text-muted);
  }

  .lander-testimonial {
    margin: 84px 0;
    background: linear-gradient(135deg, rgba(16, 25, 44, 0.92), rgba(16, 25, 44, 0.86));
    border-radius: var(--radius-lg);
    padding: clamp(28px, 5vw, 48px);
    color: rgba(232, 236, 255, 0.92);
    box-shadow: 0 22px 50px rgba(10, 18, 36, 0.3);
  }

  .lander-testimonial blockquote {
    margin: 0;
    display: grid;
    gap: 18px;
  }

  .lander-testimonial blockquote p {
    margin: 0;
    font-size: clamp(20px, 3vw, 26px);
    line-height: 1.6;
  }

  .lander-testimonial cite {
    font-style: normal;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(232, 236, 255, 0.7);
  }

  .lander-cta {
    margin: 96px 0 40px;
    text-align: center;
    display: grid;
    gap: 18px;
    background: linear-gradient(135deg, rgba(59, 107, 255, 0.22), rgba(24, 185, 139, 0.2));
    border-radius: var(--radius-lg);
    padding: clamp(32px, 6vw, 56px);
    border: 1px solid rgba(59, 107, 255, 0.28);
    box-shadow: var(--shadow-sm);
  }

  .lander-cta h2 {
    margin: 0;
    font-size: clamp(28px, 3.6vw, 36px);
  }

  .lander-cta p {
    margin: 0;
    color: var(--text-muted);
    font-size: 16px;
  }

  .lander-cta .cta-actions {
    display: inline-flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .lander-contact {
    margin: 96px 0 56px;
    display: grid;
    gap: 22px;
  }

  .lander-contact header {
    display: grid;
    gap: 10px;
    max-width: 640px;
  }

  .lander-contact header .eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--primary-dark);
  }

  .lander-contact header h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 32px);
  }

  .lander-contact header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 16px;
  }

  .lander-contact .contact-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    padding: clamp(22px, 4vw, 32px);
    box-shadow: var(--shadow-xs);
  }

  .lander-contact .contact-person {
    display: grid;
    gap: 4px;
  }

  .lander-contact .contact-person strong {
    font-size: 18px;
    color: var(--heading);
  }

  .lander-contact .contact-person span {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .lander-contact .contact-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }

  .lander-contact .contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-decoration: none;
    color: var(--primary-dark);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition);
  }

  .lander-contact .contact-links a:hover {
    border-color: var(--primary-dark);
  }

  @media (max-width: 960px) {
    .lander-hero {
      grid-template-columns: 1fr;
    }

    .lander-hero .hero-stats {
      gap: 12px;
    }

    .lander-flow {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 640px) {
    .lander-highlights header {
      text-align: left;
    }

    .lander-hero {
      margin: 40px 0;
    }

    .lander-testimonial {
      margin: 64px 0;
    }

    .lander-cta {
      margin-top: 72px;
    }
  }

  .auth-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .header {
    position: sticky;
    top: 0;
    z-index: 120;
    background: var(--nav-gradient);
    color: var(--nav-link);
    backdrop-filter: blur(var(--nav-blur));
    border-bottom: 1px solid var(--nav-border);
    box-shadow: var(--nav-shadow);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }

  .header .wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(18px, 4vw, 36px);
    width: min(calc(100% - 48px));
    margin: 0 auto;
    min-height: 78px;
    padding: 0;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(59, 107, 255, 0.9) 0%, rgba(24, 185, 139, 0.85) 100%);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(20, 32, 58, 0.35);
    flex-shrink: 0;
  }

  .brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .brand-text strong {
    font-size: clamp(18px, 2vw, 22px);
    letter-spacing: 0.01em;
    line-height: 1.1;
  }

  .brand-text small {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    line-height: 1.2;
    white-space: normal;
  }

  .brand:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: 6px;
  }

  .header .brand,
  .header .brand:visited {
    color: var(--nav-link-muted);
  }

  .header .brand:hover {
    color: var(--nav-link-strong);
  }

  .header .brand-text strong {
    color: var(--nav-link-strong);
  }

  .header .brand-text small {
    color: var(--nav-link-muted);
  }

  .menu-toggle-input {
    display: none;
  }

  .menu-toggle {
    display: none;
    margin-left: auto;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: var(--nav-pill);
    border: 1px solid rgba(255, 255, 255, 0.16);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(6, 10, 24, 0.35);
    transition: background var(--transition), border var(--transition), box-shadow var(--transition), transform var(--transition);
  }

  .menu-toggle span,
  .menu-toggle span::before,
  .menu-toggle span::after {
    position: relative;
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    transition: transform 0.3s ease, background 0.3s ease;
  }

  .menu-toggle span::before,
  .menu-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .menu-toggle span::before {
    top: -6px;
  }

  .menu-toggle span::after {
    top: 6px;
  }

  .menu-toggle:hover {
    background: var(--nav-pill-hover);
    border-color: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
  }

  .menu-toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: 4px;
  }

  .menu-toggle-input:checked + .menu-toggle {
    background: rgba(76, 111, 255, 0.35);
    border-color: rgba(76, 111, 255, 0.8);
    box-shadow: 0 16px 38px rgba(10, 18, 40, 0.42);
  }

  .menu-toggle-input:checked + .menu-toggle span {
    background: transparent;
  }

  .menu-toggle-input:checked + .menu-toggle span::before {
    transform: translateY(6px) rotate(45deg);
    background: #ffffff;
  }

  .menu-toggle-input:checked + .menu-toggle span::after {
    transform: translateY(-6px) rotate(-45deg);
    background: #ffffff;
  }

  .menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(6px, 1.6vw, 16px);
    margin-left: auto;
    flex: 1 0 auto;
    min-width: 0;
    flex-wrap: nowrap;
    row-gap: 0;
  }

  .menu a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--nav-link);
    background: transparent;
    border: 1px solid transparent;
    text-decoration: none;
    transition: color var(--transition), background var(--transition), border var(--transition), box-shadow var(--transition), transform var(--transition);
    flex-shrink: 0;
    backdrop-filter: saturate(140%);
  }

  .menu a svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: 0.78;
    transition: opacity var(--transition);
  }

  .menu a:hover {
    color: var(--nav-link-strong);
    background: var(--nav-pill-hover);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 30px rgba(8, 14, 30, 0.38);
    transform: translateY(-1px);
  }

  .menu a:hover svg {
    opacity: 1;
  }

  .menu a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: 4px;
  }

  .menu a.active {
    color: var(--nav-link-strong);
    background: var(--nav-pill-active);
    border-color: rgba(76, 111, 255, 0.5);
    box-shadow: 0 18px 40px rgba(12, 20, 40, 0.46);
    transform: translateY(-1px);
  }

  .menu a.alt {
    color: #ffffff;
    background: linear-gradient(135deg, #ff7d57 0%, #ff4f8f 100%);
    border-color: transparent;
    box-shadow: 0 18px 40px rgba(220, 82, 120, 0.38);
  }

  .menu a.alt:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(220, 82, 120, 0.45);
  }

  .menu a.cta-link {
    background: rgba(255, 255, 255, 0.92);
    color: #2873cf;
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 20px 42px rgba(20, 33, 53, 0.28);
  }

  .menu a.cta-link:hover {
    background: #ffffff;
    color: #1c5fb0;
    border-color: rgba(40, 115, 207, 0.45);
    box-shadow: 0 24px 52px rgba(20, 33, 53, 0.36);
  }

  .menu a.utility-link {
    background: rgba(255, 255, 255, 0.08);
    color: var(--nav-link-strong);
    border-color: rgba(255, 255, 255, 0.18);
  }

  @media (max-width: 1320px) {
    .menu {
      gap: 10px;
    }

    .menu a {
      padding: 10px 14px;
      font-size: 15px;
    }
  }

  @media (max-width: 768px) {
    .menu a[href*="fortuneWheel"] {
      display: none;
    }
  }

  .content {
    flex: 1;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 48px 0 90px;
  }

  .content .page-title {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
  }

  .content .page-title .icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: var(--shadow-xs);
  }

  .content .page-title p {
    margin: 6px 0 0 0;
    color: var(--text-muted);
  }

  .content .block,
  .card {
    border-radius: var(--radius-lg);
    
  }

  .card header,
  .card .card-header {
    gap: 16px;
    margin-bottom: 20px;
  }

  .card table {
    border-collapse: collapse;
    border-radius: var(--radius-sm);
    overflow: hidden;
  }

  .card table thead th {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--divider);
    padding: 14px 12px;
  }

  .card table tbody tr:hover {
    background: rgba(59, 107, 255, 0.06);
  }

  .balance-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 20px 0;
    flex-wrap: wrap;
  }

  .balance-container {
    background: linear-gradient(140deg, rgba(59, 107, 255, 0.15), rgba(23, 35, 54, 0.05));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(59, 107, 255, 0.25);
    flex: 1;
    min-width: 240px;
    max-width: 340px;
    padding: 26px;
    text-align: center;
    box-shadow: var(--shadow-xs);
  }

  .balance-container p {
    color: var(--primary-dark);
    font-size: 44px;
    margin: 0;
    font-weight: 700;
  }

  .balance-container small {
    color: var(--text-muted);
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
  }

  .stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition), box-shadow var(--transition), border var(--transition);
    position: relative;
    overflow: hidden;
  }

  .stat-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(59, 107, 255, 0.18), transparent 55%);
    opacity: 0;
    transition: opacity var(--transition);
  }

  .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(59, 107, 255, 0.28);
  }

  .stat-card:hover::after {
    opacity: 1;
  }

  .stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-dark);
    background: var(--primary-soft);
  }

  .stat-card .stat-title {
    font-size: 13px;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    text-transform: uppercase;
  }

  .stat-card .stat-value {
    font-size: 38px;
    font-weight: 700;
    color: var(--heading);
  }

  .stat-card .stat-subtext {
    font-size: 13px;
    color: var(--text-muted);
  }

  .stat-card.is-balance .stat-icon { background: rgba(59, 107, 255, 0.18); color: var(--primary-dark); }
  .stat-card.is-balance .stat-value { color: var(--primary-dark); }
  .stat-card.is-students .stat-icon { background: rgba(24, 185, 139, 0.18); color: #0f8d68; }
  .stat-card.is-students .stat-value { color: #0f8d68; }
  .stat-card.is-debt .stat-icon { background: rgba(241, 96, 85, 0.16); color: #cf4a43; }
  .stat-card.is-debt .stat-value { color: #cf4a43; }

  .notice {
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    border: 1px solid transparent;
    background: rgba(24, 35, 54, 0.05);
    color: var(--heading);
    font-weight: 600;
  }

  .notice.success {
    background: rgba(24, 185, 139, 0.12);
    color: #0f8d68;
    border-color: rgba(24, 185, 139, 0.22);
  }

  .notice.error {
    background: rgba(241, 96, 85, 0.12);
    color: #cf4a43;
    border-color: rgba(241, 96, 85, 0.22);
  }

  .notice.warning {
    background: rgba(246, 177, 68, 0.12);
    color: #b87a1f;
    border-color: rgba(246, 177, 68, 0.22);
  }

  .student-form .fields-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
  }

  .student-form label {
    color: var(--heading);
  }

  .manage-students .manage-toolbar .hint,
  .class-student-selector .hint,
  .transactions-page .transaction-filters span,
  .parent-profile .profile-overview .lead {
    color: var(--text-muted);
  }

  .class-student-selector {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    background: var(--surface-muted);
    padding: 20px;
    box-shadow: var(--shadow-xs);
  }

  .student-checkboxes label {
    background: var(--surface);
    border: 1px solid var(--border-soft);
  }

  .transactions-page .transaction-filters select,
  .class-filter select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-soft);
    background: var(--surface);
  }

  .transaction-amount.income { color: #0f8d68; }
  .transaction-amount.expense { color: #cf4a43; }
  .transaction-amount.reversed { color: var(--text-muted); }

  .status-pill.success {
    background: rgba(24, 185, 139, 0.16);
    color: #0f8d68;
  }

  .status-pill.neutral {
    background: rgba(24, 35, 54, 0.08);
    color: var(--text-muted);
  }

  .class-transaction-details {
    gap: 18px;
  }

  .wheel-page .wheel-preview {
    background: var(--surface-muted);
    border-radius: var(--radius-sm);
    padding: 10px;
    box-shadow: inset 0 0 0 1px rgba(38, 49, 61, 0.08);
  }

  .parent-dashboard .label,
  .parent-profile .profile-overview .meta-label {
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .parent-profile .profile-avatar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(31, 79, 181, 0.2);
  }

  .footer {
    margin-top: auto;
    background: linear-gradient(180deg, rgba(10, 18, 36, 0.96), rgba(10, 16, 29, 1));
    color: rgba(232, 236, 255, 0.85);
    padding: 40px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .footer-inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
  }

  .footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .footer-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.1em;
    box-shadow: var(--shadow-xs);
  }

  .footer-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .footer-text strong {
    font-size: 18px;
    color: #ffffff;
  }

  .footer-text span {
    font-size: 13px;
    color: rgba(232, 236, 255, 0.75);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .footer-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 13px;
  }

  .footer-copy {
    color: rgba(232, 236, 255, 0.7);
  }

  @media (max-width: 1180px) {
    .header .wrapper,
    .content,
    .footer-inner {
      width: calc(100% - 32px);
    }

    .menu {
      gap: 8px;
    }

    .menu a {
      padding: 9px 12px;
      font-size: 14px;
    }
  }

  @media (max-width: 1571px) {
    .header .wrapper {
      min-height: 72px;
      width: 100%;
      padding: 0 clamp(16px, 5vw, 28px);
      justify-content: space-between;
      gap: 16px;
    }

    .menu-toggle {
      display: inline-flex;
      margin-right: 0;
    }

    .menu {
      display: flex;
      position: absolute;
      top: calc(100% + 12px);
      left: clamp(16px, 5vw, 28px);
      right: clamp(16px, 5vw, 28px);
      flex-direction: column;
      align-items: stretch;
      gap: 10px;
      padding: 18px;
      background: rgba(9, 16, 32, 0.96);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 22px;
      box-shadow: 0 32px 60px rgba(5, 10, 24, 0.55);
      opacity: 0;
      transform: translateY(-12px);
      pointer-events: none;
      z-index: 10;
      transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .header .brand {
      padding-left: 0;
    }

    .menu a {
      width: 100%;
      justify-content: space-between;
      color: var(--nav-link);
      background: rgba(255, 255, 255, 0.04);
      border-color: rgba(255, 255, 255, 0.08);
      border-radius: 16px;
      padding: 14px 16px;
      font-size: 16px;
      letter-spacing: 0.02em;
      box-shadow: none;
    }

    .menu a::after {
      content: "›";
      font-size: 16px;
      opacity: 0.5;
      transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .menu a.alt {
      background: linear-gradient(135deg, #ff7d57 0%, #ff4f8f 100%);
      color: #ffffff;
      border: none;
    }

    .menu a.active {
      background: rgba(76, 111, 255, 0.35);
      color: #ffffff;
      border-color: rgba(76, 111, 255, 0.45);
    }

    .menu a svg {
      display: none;
    }

    .menu a:hover::after {
      transform: translateX(4px);
      opacity: 0.7;
    }

    .menu-toggle-input:checked ~ .menu {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }
  }

  @media (max-width: 900px) {
    .content {
      padding: 36px 0 72px;
    }

    .card table {
      min-width: 0;
    }

    .auth-shell {
      grid-template-columns: 1fr;
      padding: 48px 24px;
      gap: 36px;
    }

    .auth-info {
      text-align: center;
      align-items: center;
    }

    .auth-info ul {
      justify-items: center;
    }
  }

  @media (max-width: 780px) {
    .balance-row {
      flex-direction: column;
      align-items: stretch;
    }

    .balance-container {
      max-width: none;
    }
  }

  @media (max-width: 720px) {
    .student-form .fields-grid,
    .manage-students .inspector-forms,
    .class-transaction-details .fields-grid,
    .parent-profile .profile-overview,
    .parent-profile .profile-overview .profile-meta,
    .parent-profile .profile-card .actions {
      grid-template-columns: 1fr;
    }

    .parent-profile .profile-overview {
      text-align: center;
    }

    .parent-profile .profile-avatar {
      margin: 0 auto;
    }

    .parent-profile .profile-card .actions {
      justify-content: center;
    }
  }

  @media (max-width: 600px) {
    .content {
      width: calc(100% - 24px);
      padding: 32px 0 64px;
    }

    .brand-text strong {
      font-size: 18px;
    }

    .brand-text small {
      letter-spacing: 0.14em;
    }

    .footer-inner {
      flex-direction: column;
      align-items: flex-start;
    }

    .auth-shell {
      padding: 36px 18px;
    }

    .auth-info {
      padding: 24px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .header,
    .menu,
    .menu a,
    .menu-toggle,
    .menu-toggle span,
    .menu-toggle span::before,
    .menu-toggle span::after {
      transition: none !important;
    }
  }

