/* ===== CONT PAGE – STYLES ===== */

.cont-section {
  min-height: 100vh;
  padding: 7rem 0 4rem;
  background: radial-gradient(ellipse at 30% 0%, rgba(180,30,40,.1) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 100%, rgba(212,175,55,.05) 0%, transparent 50%),
              var(--bg);
}
.hidden { display: none !important; }

/* ===== AUTH WRAPPER ===== */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 10rem);
}
.auth-card {
  width: 100%;
  max-width: 680px;
  background: rgba(18,18,30,0.95);
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 32px;
  padding: 3.5rem;
  box-shadow: 0 40px 120px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.02) inset;
  animation: card-enter .6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes card-enter {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Auth Header */
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-logo-wrap { margin-bottom: 1.25rem; }
.auth-logo {
  width: 80px; height: auto;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.4));
  animation: logo-float 6s ease-in-out infinite;
}
.auth-title {
  font-family: var(--font-serif);
  font-size: 2rem; font-weight: 700;
  color: var(--white); margin-bottom: .35rem;
}
.auth-subtitle {
  color: var(--text-dim); font-size: .95rem;
}

/* ===== TABS ===== */
.auth-tabs {
  display: flex; position: relative;
  background: var(--surface);
  border-radius: 12px; padding: 4px;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}
.auth-tab {
  flex: 1; padding: .7rem 1rem;
  background: none; border: none;
  font-family: var(--font-sans);
  font-size: .9rem; font-weight: 500;
  color: var(--text-dim); cursor: pointer;
  border-radius: 10px; position: relative; z-index: 2;
  transition: color .3s;
}
.auth-tab.active { color: var(--white); }
.tab-indicator {
  position: absolute; top: 4px; left: 4px;
  width: calc(50% - 4px); height: calc(100% - 8px);
  background: linear-gradient(135deg, var(--red), #8b1520);
  border-radius: 10px;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  z-index: 1;
  box-shadow: 0 4px 12px rgba(180,30,40,.3);
}
.tab-indicator.right { transform: translateX(100%); }

/* ===== FORMS ===== */
.auth-form { animation: form-fade .4s ease both; }
@keyframes form-fade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; font-size: .85rem; font-weight: 500;
  color: #c4c4d4; margin-bottom: .5rem;
  letter-spacing: .03em;
}
.input-wrap {
  display: flex; align-items: center; gap: .75rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px; padding: 0 1rem;
  transition: border-color .3s, box-shadow .3s;
}
.input-wrap:focus-within {
  border-color: rgba(180,30,40,.5);
  box-shadow: 0 0 0 3px rgba(180,30,40,.1);
}
.input-icon { font-size: 1.1rem; flex: 0 0 auto; opacity: 0.9; }
.input-wrap input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--font-sans); font-size: .95rem;
  color: var(--white); padding: .85rem 0;
}
.input-wrap input::placeholder { color: rgba(255,255,255,0.7); }
.form-error {
  color: #ff5c5c; font-size: .85rem; margin-bottom: .75rem;
  min-height: 1.2em;
}
.btn-full { width: 100%; justify-content: center; font-size: 1rem; padding: 1rem; }

/* ===== FORM HINT ===== */
.form-hint {
  font-size: .8rem; color: var(--text-dim); margin-bottom: .75rem;
  line-height: 1.5;
}

/* ===== SUBSCRIPTION SELECT (Register) ===== */
.abon-select-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.abon-grid-full { grid-column: 1 / -1; }
.abon-option input { display: none; }
.abon-option-card {
  text-align: left; padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: row; align-items: center; gap: 0.75rem;
  height: 100%;
}
.abon-option-card:hover {
  border-color: rgba(180,30,40,.3);
  transform: translateY(-2px);
}
.abon-option input:checked + .abon-option-card {
  border-color: var(--red);
  background: rgba(180,30,40,.12);
  box-shadow: 0 4px 20px rgba(180,30,40,.15);
}
.abon-option-icon { font-size: 1.3rem; flex: 0 0 auto; }
.abon-option-card strong {
  color: var(--white); font-size: 0.85rem; line-height: 1.2; display: block;
}
.abon-option-sub {
  display: block; font-size: 0.75rem; color: var(--text-dim); margin-top: 0.2rem;
}
.abon-option-card small {
  color: var(--text-dim); font-size: 0.7rem; opacity: 0.8;
}
.abon-option input:checked + .abon-option-card {
  background: rgba(180,30,40,0.1);
  border-color: var(--red);
  box-shadow: 0 10px 25px rgba(180,30,40,0.2);
  transform: translateY(-4px);
}
.abon-option-master {
  background: linear-gradient(180deg, rgba(212,175,55,0.05), transparent);
  border-color: rgba(212,175,55,0.2);
}
.abon-option input:checked + .abon-option-master {
  background: rgba(212,175,55,0.1);
  border-color: var(--gold);
  box-shadow: 0 10px 25px rgba(212,175,55,0.2);
}
.tag-gold {
  background: rgba(212,175,55,.15) !important;
  color: var(--gold) !important;
  border-color: rgba(212,175,55,.3) !important;
}
.abon-option-master .abon-option-card {
  border-color: rgba(212,175,55,.35) !important;
  background: rgba(212,175,55,.05) !important;
}
.abon-option input:checked + .abon-option-master {
  border-color: var(--gold) !important;
}

/* ===== DASHBOARD ===== */
.dash-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1rem;
}

/* Stats Row */
.dash-stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.dash-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  transition: all .3s;
}
.dash-stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(180,30,40,.25);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.dash-stat-icon { font-size: 1.75rem; flex: 0 0 auto; }
.dash-stat-value {
  display: block; font-family: var(--font-serif);
  font-size: 1.75rem; font-weight: 700; color: var(--white);
  line-height: 1.1;
}
.dash-stat-label {
  display: block; font-size: .78rem; color: var(--text-dim);
  letter-spacing: .04em; margin-top: .15rem;
}

/* Dashboard Grid */
.dash-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem;
  margin-bottom: 1.5rem;
  max-width: 100%; overflow: hidden;
}

/* Dashboard Cards */
.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  transition: all .3s;
  max-width: 100%;
  min-width: 0;
}
.dash-card:hover {
  box-shadow: 0 15px 50px rgba(0,0,0,.3);
}
.dash-card-header {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .5rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.dash-card-header h3 {
  font-family: var(--font-serif); font-size: 1.15rem;
  color: var(--white); font-weight: 600;
}
.dash-card-body { padding: 2rem; overflow: hidden; }

/* Subscription Card — Schedule Row */
.abon-schedule-row {
  font-size: .82rem;
  color: var(--gold);
  padding: .6rem 1rem;
  margin-bottom: 1.25rem;
  background: rgba(212,175,55,0.06);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 10px;
  text-align: center;
  letter-spacing: .02em;
}
.abon-status {
  font-size: .75rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; padding: .35rem 1rem;
  border-radius: 50px;
  background: rgba(40,180,60,.15); color: #5cff7c;
  border: 1px solid rgba(40,180,60,.3);
}
.abon-status.expired {
  background: rgba(255,90,90,.12); color: #ff5c5c;
  border-color: rgba(255,90,90,.3);
}
.abon-details { margin-bottom: 1.5rem; }
.abon-detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.abon-detail-row:last-child { border-bottom: none; }
.abon-detail-label { color: var(--text-dim); font-size: .9rem; }
.abon-detail-value { color: var(--white); font-weight: 500; font-size: .95rem; }
.abon-progress-wrap { margin-top: .5rem; }
.abon-progress-bar {
  width: 100%; height: 8px;
  background: var(--surface2); border-radius: 4px; overflow: hidden;
}
.abon-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 4px;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}
.abon-progress-label {
  display: block; text-align: right; margin-top: .5rem;
  font-size: .78rem; color: var(--text-dim);
}

/* Check-in Card */
.dash-card-checkin { border-color: rgba(212,175,55,.15); }
.checkin-desc { color: var(--text-dim); font-size: .95rem; margin-bottom: 1.25rem; }
.checkin-date-display {
  text-align: center; padding: 1.25rem;
  background: rgba(212,175,55,.06);
  border: 1px solid rgba(212,175,55,.12);
  border-radius: 14px; margin-bottom: 1.25rem;
}
.checkin-day {
  display: block; font-family: var(--font-serif);
  font-size: 1.4rem; font-weight: 700; color: var(--gold);
}
.checkin-full-date {
  display: block; font-size: .85rem; color: var(--text-dim); margin-top: .25rem;
}

/* Group Select (check-in) */
.checkin-group-select {
  display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.25rem;
}
.checkin-style-option {
  flex: 1; cursor: pointer; min-width: 90px;
}
.checkin-style-option input { display: none; }
.checkin-style-option span {
  display: block; text-align: center; padding: .6rem .5rem;
  background: var(--surface2);
  border: 2px solid var(--border);
  border-radius: 10px; font-size: .85rem; font-weight: 500;
  color: var(--text-dim);
  transition: all .3s;
}
.checkin-style-option input:checked + span {
  border-color: var(--red);
  background: rgba(180,30,40,.12);
  color: var(--white);
}
.checkin-style-option span:hover {
  border-color: rgba(180,30,40,.3);
}

/* Check-in Button */
.btn-checkin {
  font-size: 1.05rem;
  gap: .6rem;
  padding: 1.1rem;
}
.btn-checkin .checkin-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  background: rgba(255,255,255,.2); border-radius: 50%;
  font-size: .85rem;
}
.btn-checkin.checked {
  background: linear-gradient(135deg, #1a8a3a, #146b2d);
  pointer-events: none;
}

/* Check-in Message */
.checkin-message {
  text-align: center; margin-top: .75rem;
  font-size: .9rem; min-height: 1.4em;
  animation: msg-fade .4s ease;
}
.checkin-message.success { color: #5cff7c; }
.checkin-message.info { color: var(--gold); }
@keyframes msg-fade {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Date Picker for Check-in */
.checkin-date-picker {
  margin: 1rem 0;
}
.checkin-date-picker label {
  color: var(--text-dim);
  font-size: 0.82rem;
  display: block;
  margin-bottom: 0.4rem;
}
.checkin-date-field {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color 0.3s;
  color-scheme: dark;
}
.checkin-date-field:focus {
  outline: none;
  border-color: rgba(212,175,55,0.4);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.08);
}

/* ===== HISTORY TABLE ===== */
.dash-card-history { margin-bottom: 3rem; }
.history-summary {
  display: flex; align-items: center; gap: .75rem;
  font-size: .88rem; color: var(--text-dim);
}
.history-summary strong { color: var(--gold); }
.history-sep { opacity: .3; }

.history-table-wrap { overflow-x: auto; }
.history-table {
  width: 100%; border-collapse: collapse;
  font-size: .92rem;
}
.history-table thead {
  background: rgba(255,255,255,.03);
}
.history-table th {
  padding: .85rem 1rem; text-align: left;
  font-weight: 600; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); border-bottom: 1px solid var(--border);
}
.history-table td {
  padding: .85rem 1rem;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255,255,255,.03);
}
.history-table tr:hover td {
  background: rgba(180,30,40,.04);
  color: var(--text);
}
.history-table td:nth-child(4) {
  color: var(--red-light); font-weight: 500;
}
.history-table td:nth-child(5) {
  color: var(--gold);
}

.history-empty {
  text-align: center; padding: 3rem 1rem;
  color: var(--text-dim);
}
.history-empty-icon { font-size: 2.5rem; display: block; margin-bottom: .75rem; }
.history-empty p { font-size: 1rem; margin-bottom: .35rem; }
.history-empty small { color: rgba(136,136,170,.5); }

/* ===== UPGRADE SECTION ===== */
.dash-card-full {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}
.upgrade-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
}
.upgrade-card:hover {
  border-color: rgba(212,175,55,0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.upgrade-card h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.upgrade-card > p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}
.upgrade-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.upgrade-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
  color: var(--white);
  font-family: var(--font-sans);
}
.upgrade-option:hover {
  border-color: rgba(212,175,55,0.35);
  background: rgba(212,175,55,0.06);
  transform: translateX(4px);
}
.upgrade-option:active {
  transform: scale(0.98);
}
.upgrade-option-master {
  border-color: rgba(212,175,55,0.2);
  background: linear-gradient(135deg, rgba(212,175,55,0.06), rgba(212,175,55,0.02));
}
.upgrade-option-master:hover {
  border-color: rgba(212,175,55,0.5);
  background: rgba(212,175,55,0.1);
}
.upgrade-option-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.upgrade-option-icon {
  font-size: 1.1rem;
  flex: 0 0 auto;
}
.upgrade-option-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.upgrade-option-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upgrade-option-schedule {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 1px;
}
.upgrade-option-price {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  flex: 0 0 auto;
}
.upgrade-price-diff {
  color: var(--gold);
  font-weight: 700;
}

/* ===== PAYMENT PENDING CARD ===== */
.payment-pending-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem;
  animation: card-enter .6s ease both;
}
.payment-pending-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.pending-icon-wrap {
  width: 60px;
  height: 60px;
  background: rgba(212,175,55,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.pending-icon { font-size: 2rem; }
.payment-pending-header h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.payment-pending-header p {
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
}

.payment-details-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.payment-info-box, .payment-bank-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}
.payment-info-box h4, .payment-bank-box h4 {
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.payment-code-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border: 1px solid var(--red);
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}
#payment-code {
  font-family: monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}
.btn-copy {
  background: var(--red);
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
}

.payment-hint { font-size: 0.8rem; color: #ff5c5c; }

.bank-details { display: flex; flex-direction: column; gap: 0.75rem; }
.bank-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}
.bank-row span { color: var(--text-dim); }
.bank-row strong { color: var(--white); }
.iban-text { color: var(--gold) !important; font-family: monospace; }

.payment-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.payment-footer p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 1rem; }
.payment-address { color: rgba(255,255,255,0.3); font-size: 0.75rem; }

@media (max-width: 768px) {
  .payment-details-grid { grid-template-columns: 1fr; }
  .payment-pending-card { padding: 2rem 1.5rem; }
}

/* ===== TRIAL CHECKBOX ===== */
.trial-checkbox-wrap {
  display: block; cursor: pointer; margin-bottom: 1.25rem;
}
.trial-checkbox-wrap input[type="checkbox"] { display: none; }
.trial-checkbox-inner {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  transition: all .3s;
}
.trial-checkbox-wrap input:checked + .trial-checkbox-inner {
  background: rgba(40,180,80,.08);
  border-color: rgba(40,180,80,.4);
  box-shadow: 0 0 0 3px rgba(40,180,80,.08);
}
.trial-checkbox-inner:hover {
  border-color: rgba(40,180,80,.3);
}
.trial-checkbox-icon { font-size: 1.6rem; flex: 0 0 auto; }
.trial-checkbox-inner strong { display: block; color: var(--white); font-size: .92rem; margin-bottom: .2rem; }
.trial-checkbox-inner small { color: var(--text-dim); font-size: .78rem; }

/* Trial mode — grid hidden state */
#abon-grid.trial-hidden {
  opacity: .35; pointer-events: none;
  filter: grayscale(.5);
  transition: all .3s;
}

/* ===== NAV CTA ACTIVE ===== */
.nav-cta-active {
  background: var(--red) !important;
  color: #fff !important;
  border-color: var(--red) !important;
}

/* ===== RESPONSIV — MOBILE ===== */
@media (max-width: 1100px) {
  .abon-grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .dash-stats-row { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .dash-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 2rem 1.5rem; border-radius: 24px; }
  .abon-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .form-row-2 { grid-template-columns: 1fr; gap: 0; }
  .abon-select-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .dash-card-header { padding: 1.25rem 1.5rem; }
  .dash-card-body { padding: 1.5rem; }
  .payment-details-grid { grid-template-columns: 1fr; gap: 1rem; }
  .payment-pending-card { padding: 2rem 1.25rem; }
}

@media (max-width: 640px) {
  /* — Section padding — */
  .cont-section { padding: 5rem 0 2rem; }

  /* — Auth card — */
  .auth-card {
    padding: 1.75rem 1.15rem;
    border-radius: 20px;
    margin: 0 .5rem;
  }
  .auth-title { font-size: 1.6rem; }
  .auth-subtitle { font-size: .85rem; }
  .auth-logo { width: 60px; }
  .auth-logo-wrap { margin-bottom: 1rem; }
  .auth-header { margin-bottom: 1.5rem; }

  /* — Forms — */
  .form-row-2 { grid-template-columns: 1fr; gap: 0; }
  .form-group { margin-bottom: 1.15rem; }
  .form-group label { font-size: .78rem; }
  .input-wrap input { padding: .75rem 0; font-size: .9rem; }
  .btn-full { padding: .9rem; font-size: .92rem; }

  /* — Subscription select grid — */
  .abon-select-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .abon-option-card { padding: 1rem .5rem; border-radius: 14px; }
  .abon-option-icon { font-size: 1.4rem; }
  .abon-option-card strong { font-size: .78rem; }
  .abon-option-card small { font-size: .65rem; }
  /* Master option — full row, horizontal */
  .abon-grid-full .abon-option-card {
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: .75rem !important;
    padding: .85rem 1rem !important;
    text-align: left;
  }

  /* — Dashboard — */
  .dash-stats-row { grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1.5rem; }
  .dash-stat-card { padding: 1.15rem 1rem; border-radius: 14px; gap: .75rem; }
  .dash-stat-icon { font-size: 1.4rem; }
  .dash-stat-value { font-size: 1.35rem; }
  .dash-stat-label { font-size: .7rem; }

  .dash-header { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.75rem; }
  .dash-header .section-title { font-size: clamp(1.3rem, 5vw, 1.75rem); margin-bottom: 0; }
  .dash-header .btn { padding: .55rem 1rem; font-size: .82rem; }

  .dash-card { border-radius: 16px; }
  .dash-card-header { padding: 1rem 1.15rem; }
  .dash-card-header h3 { font-size: 1rem; }
  .dash-card-body { padding: 1.15rem; }

  /* — Subscription detail rows — */
  .abon-detail-label { font-size: .82rem; }
  .abon-detail-value { font-size: .88rem; }
  .abon-detail-row { padding: .6rem 0; }

  /* — Check-in — */
  .checkin-desc { font-size: .86rem; }
  .checkin-day { font-size: 1.2rem; }
  .checkin-date-display { padding: 1rem; border-radius: 12px; margin-bottom: 1rem; }
  .btn-checkin { font-size: .95rem; padding: .95rem; }

  /* — Billing PJ fields — */
  #billing-pj-fields > div { grid-template-columns: 1fr !important; gap: .75rem !important; }

  /* — History table — */
  .history-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .history-table { min-width: 480px; font-size: .8rem; }
  .history-table th,
  .history-table td { padding: .65rem .75rem; }
  .history-summary { flex-wrap: wrap; gap: .5rem; font-size: .8rem; }

  /* — Nav — */
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 62px; left: 0; right: 0;
    background: rgba(14,14,26,.97); backdrop-filter: blur(24px);
    padding: 1.25rem 1.15rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    gap: .65rem;
    box-shadow: 0 16px 40px rgba(0,0,0,.4);
    z-index: 999;
  }
  .nav-links a { font-size: .88rem; padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .nav-links li:last-child a { border-bottom: none; }

  /* — Upgrade section — */
  .upgrade-card { padding: 1.25rem; border-radius: 16px; }
  .upgrade-card h4 { font-size: 1rem; }
  .upgrade-option { padding: 0.75rem 0.9rem; border-radius: 12px; gap: 0.75rem; }
  .upgrade-option-name { font-size: 0.82rem; }
  .upgrade-option-schedule { font-size: 0.68rem; }
  .upgrade-option-price { font-size: 0.78rem; }
  .upgrade-option-icon { font-size: 1rem; }

  /* — Payment pending — */
  .payment-pending-card { padding: 1.5rem 1rem; border-radius: 16px; }
  .payment-pending-header h3 { font-size: 1.35rem; }
  .payment-code-display { padding: .75rem; }
  #payment-code { font-size: 1.2rem; }
  .bank-row { font-size: .82rem; flex-wrap: wrap; gap: .2rem; }
  .iban-text { font-size: .78rem !important; }
  .payment-details-grid { gap: .85rem; }

  /* — Dashboard grid spacing — */
  .abon-grid-5 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .abon-select-grid { grid-template-columns: 1fr; }
}

/* ===== EXPIRED DASHBOARD ===== */
.expired-content-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.expired-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.expired-stat-item {
  border-radius: 12px;
  padding: 1rem;
}
.expired-stat-gold { background: rgba(212,175,55,0.06); }
.expired-stat-gold .expired-stat-value { color: var(--gold); }
.expired-stat-green { background: rgba(92,255,124,0.06); }
.expired-stat-green .expired-stat-value { color: #5cff7c; }
.expired-stat-purple { background: rgba(186,104,255,0.06); }
.expired-stat-purple .expired-stat-value { color: #ba68ff; }
.expired-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
}
.expired-stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

/* Renewal Section Title */
.renewal-section-title {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-family: var(--font-serif);
}

/* Renewal Options List */
.renewal-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.renewal-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.25s ease;
}
.renewal-option:hover {
  border-color: rgba(212,175,55,0.35);
  background: rgba(212,175,55,0.06);
}
.renewal-option input[type="radio"] {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.renewal-option-selected {
  background: rgba(212,175,55,0.1);
  border-color: rgba(212,175,55,0.4);
}
.renewal-option-icon {
  font-size: 1rem;
  flex: 0 0 auto;
}
.renewal-option-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.renewal-option-name {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}
.renewal-option-schedule {
  color: var(--text-dim);
  font-size: 0.72rem;
  margin-top: 2px;
}
.renewal-option-price {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* Renewal CTA */
.renewal-cta {
  text-align: center;
  margin-top: 1.5rem;
}
.btn-renewal {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  background: linear-gradient(135deg, var(--gold), #c9a027);
  color: black;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212,175,55,0.3);
  transition: all 0.3s ease;
}
.btn-renewal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212,175,55,0.4);
}
.btn-renewal:active {
  transform: scale(0.97);
}
.renewal-hint {
  color: var(--text-dim);
  font-size: 0.78rem;
  margin-top: 1rem;
  opacity: 0.6;
}

/* Expired Dashboard — Mobile */
@media (max-width: 640px) {
  .expired-stats-grid { grid-template-columns: 1fr 1fr 1fr; gap: 0.6rem; }
  .expired-stat-item { padding: 0.75rem 0.5rem; }
  .expired-stat-value { font-size: 1.2rem; }
  .expired-stat-label { font-size: 0.65rem; }
  .expired-content-box { padding: 1rem; border-radius: 14px; }
  .renewal-option { padding: 0.75rem 0.85rem; gap: 0.6rem; }
  .renewal-option-name { font-size: 0.82rem; }
  .renewal-option-schedule { font-size: 0.65rem; }
  .renewal-option-price { font-size: 0.82rem; }
  .btn-renewal { padding: 0.85rem 1.5rem; font-size: 0.9rem; width: 100%; }
  .renewal-section-title { font-size: 0.88rem; }
}

@media (max-width: 380px) {
  .expired-stats-grid { grid-template-columns: 1fr; gap: 0.5rem; }
  .expired-stat-item { display: flex; align-items: center; gap: 0.75rem; text-align: left; padding: 0.7rem 1rem; }
  .expired-stat-value { font-size: 1.3rem; }
  .expired-stat-label { margin-top: 0; }
}

/* ===== USER DASHBOARD LAYOUT ===== */
.user-wrapper {
  display: flex;
  min-height: 100vh;
  padding-top: 0;
  background: var(--bg);
  width: 100%;
}

/* Sidebar */
.user-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: linear-gradient(180deg, #0e0e1a 0%, #12121f 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.user-sidebar-brand {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.user-sidebar-brand img { height: 36px; width: auto; filter: drop-shadow(0 0 8px rgba(180,30,40,0.5)); }
.user-sidebar-brand .brand-text { font-weight: 700; font-size: 1rem; color: var(--white); }
.user-sidebar-brand .brand-sub { font-size: 0.7rem; color: var(--red-light); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

.user-sidebar-nav { padding: 1rem 0; flex: 1; }

.user-sidebar-section-label {
  padding: 0.75rem 1.5rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.6;
}

.user-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.5rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  position: relative;
}
.user-sidebar-item:hover {
  color: var(--white);
  background: rgba(255,255,255,0.03);
}
.user-sidebar-item.active {
  color: var(--white);
  background: rgba(180,30,40,0.12);
}
.user-sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--red);
  border-radius: 0 3px 3px 0;
}
.user-sidebar-item .si-icon {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.user-sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}
.user-sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color 0.2s;
  text-decoration: none;
}
.user-sidebar-footer a:hover { color: var(--white); }

/* Main Content */
.user-main {
  margin-left: 260px;
  flex: 1;
  min-height: 100vh;
  padding: 2rem 3rem 4rem;
  width: calc(100% - 260px);
}

.user-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  background: rgba(255,255,255,0.02);
  padding: 1rem 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
}

.user-mobile-header {
  display: none;
}

@media (max-width: 900px) {
  .user-sidebar {
    transform: translateX(-100%);
  }
  .user-sidebar.open {
    transform: translateX(0);
  }
  .user-main {
    margin-left: 0;
    padding: 1rem 1rem 3rem;
    width: 100%;
  }
  .user-topbar { display: none; }
  .user-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(10,10,15,0.9);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 90;
    margin-bottom: 1.5rem;
    border-radius: 12px;
  }
  .user-burger {
    background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer;
  }
}

/* Event List Styling */
.user-event-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, border-color 0.3s;
}
.user-event-card:hover {
  transform: translateY(-4px);
  border-color: rgba(180,30,40,0.3);
}
.uec-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #111;
}
.uec-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.uec-type {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red-light);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.uec-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 1rem;
}
.uec-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
.uec-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  line-height: 1.6;
}

.user-view { animation: fadein 0.3s; }
@keyframes fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== CUSTOM MODERN DROPDOWN (2026) ===== */
.custom-select-wrapper {
  position: relative;
  width: 100%;
  user-select: none;
}
.custom-select-trigger {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 0 1rem;
  height: 50px;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}
.custom-select-icon {
  margin-right: 0.75rem;
  font-size: 1.1rem;
  opacity: 0.9;
}
.custom-select-text {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.custom-select-text.placeholder {
  color: rgba(255,255,255,0.7);
}
.custom-select-arrow {
  font-size: 0.7rem;
  color: var(--text-dim);
  transition: transform 0.3s;
}
.custom-select-wrapper.open .custom-select-arrow {
  transform: rotate(180deg);
}
.custom-select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: rgba(18, 18, 30, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  overflow: hidden;
}
.custom-select-wrapper.open .custom-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.custom-select-option {
  padding: 1rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.custom-select-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}
.custom-select-option.selected {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
  font-weight: 600;
}

/* ===== ROLLDATE DARK MODE OVERRIDES ===== */
.rolldate-container {
  font-family: var(--font-sans) !important;
}
.rolldate-panel {
  background: rgba(18, 18, 30, 0.98) !important;
  border-top: 1px solid var(--gold) !important;
  color: var(--white) !important;
}
.rolldate-btn {
  color: var(--white) !important;
  font-weight: 600 !important;
}
.rolldate-confirm {
  color: var(--gold) !important;
}
.rolldate-content li {
  color: var(--text-dim) !important;
}
.rolldate-dim {
  background: linear-gradient(to bottom, rgba(18,18,30,0.95), rgba(18,18,30,0) 50%, rgba(18,18,30,0.95)) !important;
}
