/* ==========================================================================
   SDUI Components Styles
   ========================================================================== */

/* --- Hero Section --- */
.sdui-hero {
  background: linear-gradient(135deg, rgba(255,153,51,0.08), rgba(26,115,232,0.05));
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255,153,51,0.15);
}

.hero-emoji {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.hero-title {
  font-size: var(--font-h1);
  font-weight: 800;
  color: var(--dark-slate);
  letter-spacing: -0.5px;
  margin-bottom: 0.35rem;
  line-height: 1.2;
  word-break: break-word;
}

.hero-subtitle {
  color: var(--slate-600);
  font-size: var(--font-small);
}

/* --- Stat Card --- */
.sdui-stat-card {
  background: white;
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,0.04);
  border-top: 3px solid var(--card-accent, var(--primary));
  margin-bottom: 1rem;
  cursor: default;
}

.sdui-stat-card[navigable="true"] {
  cursor: pointer;
}

.stat-label {
  font-size: var(--font-small);
  color: var(--slate-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: var(--font-h1);
  font-weight: 800;
  color: var(--dark-slate);
  overflow-wrap: anywhere;
}

/* --- Wallet Card --- */
.sdui-wallet-card {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  color: white;
  margin-bottom: 1rem;
}

.wallet-label {
  font-size: var(--font-small);
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.wallet-amount {
  font-size: var(--font-h1);
  font-weight: 800;
}

/* --- Progress Bar --- */
.sdui-progress-bar {
  background: white;
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-label {
  font-size: var(--font-small);
  color: var(--slate-600);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.progress-track {
  height: 10px;
  background: rgba(0,0,0,0.06);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #FFB366);
  border-radius: var(--radius-pill);
  transition: width 0.8s var(--spring-gentle);
}

.progress-pct {
  font-size: var(--font-body);
  font-weight: 800;
  color: var(--dark-slate);
  margin-top: 0.5rem;
  text-align: right;
}

/* --- Referral Box --- */
.sdui-referral-box {
  background: white;
  border: 2px dashed rgba(255,153,51,0.3);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.referral-label {
  font-size: var(--font-small);
  color: var(--slate-600);
  margin-bottom: 0.25rem;
}

.referral-code {
  font-size: var(--font-body);
  font-weight: 700;
  color: var(--dark-slate);
  letter-spacing: 1px;
}

.referral-copy-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: var(--font-small);
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: background 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.referral-copy-btn:hover {
  background: rgba(255,153,51,0.08);
}

/* --- Pay Button --- */
.sdui-pay-button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  font-size: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: transform 0.2s var(--spring), box-shadow 0.2s;
}

.sdui-pay-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(4,120,87,0.3);
}

.sdui-pay-button:active {
  transform: translateY(0) scale(0.98);
}

/* --- Banner --- */
.sdui-banner {
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.sdui-banner.info {
  background: rgba(26,115,232,0.08);
  border-left: 4px solid var(--secondary);
}

.sdui-banner.promo {
  background: linear-gradient(135deg, rgba(255,153,51,0.1), rgba(255,179,102,0.08));
  border: 1px solid rgba(255,153,51,0.2);
}

.sdui-banner.warn {
  background: rgba(239,68,68,0.08);
  border-left: 4px solid var(--error);
}

.banner-text {
  font-size: var(--font-small);
  font-weight: 600;
  color: var(--dark-slate);
  flex: 1;
}

.banner-cta {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --- Notice List --- */
.sdui-notice-list {
  background: white;
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1rem;
}

.notice-list-title {
  font-size: var(--font-body);
  font-weight: 700;
  color: var(--dark-slate);
  margin-bottom: 1rem;
}

.notice-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.notice-item:last-child {
  border-bottom: none;
}

.notice-item-title {
  font-weight: 600;
  color: var(--dark-slate);
  font-size: var(--font-small);
}

.notice-item-date {
  font-size: 0.8rem;
  color: var(--slate-400);
  margin-top: 0.2rem;
}

.notice-priority-high {
  border-left: 3px solid var(--error);
  padding-left: 0.75rem;
}

/* --- Fee Table --- */
.sdui-fee-table-wrapper {
  background: white;
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1rem;
  overflow-x: auto;
}

.sdui-fee-table {
  width: 100%;
  border-collapse: collapse;
}

.sdui-fee-table th {
  text-align: left;
  padding: 0.5rem;
  font-size: var(--font-small);
  color: var(--slate-600);
  font-weight: 600;
  border-bottom: 2px solid rgba(0,0,0,0.06);
}

.sdui-fee-table td {
  padding: 0.75rem 0.5rem;
  font-size: var(--font-small);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.fee-total-row td {
  font-weight: 700;
  color: var(--primary);
}

/* --- Attendance Chart --- */
.sdui-attendance-chart {
  background: white;
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1rem;
  text-align: center;
}

.attendance-pct {
  font-size: var(--font-h1);
  font-weight: 800;
  color: var(--dark-slate);
}

.attendance-detail {
  color: var(--slate-600);
  font-size: var(--font-small);
  margin-top: 0.5rem;
}

.attendance-bar {
  height: 8px;
  background: rgba(0,0,0,0.06);
  border-radius: var(--radius-pill);
  margin-top: 1rem;
  overflow: hidden;
}

.attendance-fill {
  height: 100%;
  background: linear-gradient(90deg, #22C55E, #16A34A);
  border-radius: var(--radius-pill);
}

/* --- Banner Carousel --- */
.sdui-banner-carousel {
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}
.sdui-banner-carousel.glowing-border {
  box-shadow: 0 0 15px rgba(29, 114, 243, 0.4);
  border: 1px solid rgba(29, 114, 243, 0.6);
  padding: 4px;
}
.carousel-slide-card.vivid-blue-gradient {
  background: linear-gradient(135deg, #1D72F3 0%, #0B4BB8 100%);
  border-radius: 20px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  color: white;
}
.slide-content.text-overlay {
  text-align: center;
}
.banner-title {
  font-weight: bold;
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}
.banner-subtitle {
  color: rgba(255,255,255,0.9);
}
.pagination-dots {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 1rem;
}
.pagination-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  display: inline-block;
}
.pagination-dots .dot.active {
  background: white;
}

/* The track slides horizontally via JS transform — no display:none needed */
.carousel-track {
  display: flex;
  transition: transform 0.4s var(--spring-gentle);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  display: block;
  object-fit: cover;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0.75rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  border: none;
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
  padding: 0;
}

.carousel-dot.active {
  background: var(--primary);
  width: 20px;
  border-radius: 4px;
}

/* --- Bottom Nav --- */
.sdui-bottom-nav {
  display: none !important;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(0,0,0,0.06);
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}

.sdui-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.25rem;
  gap: 0.2rem;
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: none;
  color: var(--slate-400);
  font-size: 0.7rem;
  font-weight: 600;
  transition: color 0.2s;
  font-family: inherit;
  position: relative;
  min-height: 44px;
}

.sdui-nav-item.active {
  color: var(--primary);
}

.sdui-nav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sdui-nav-item .nav-badge {
  background: var(--error);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: var(--radius-pill);
  position: absolute;
  top: -4px;
  right: -4px;
}

/* --- Side Menu --- */
.sdui-side-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(15,23,42,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sdui-side-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.sdui-side-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.4s var(--spring);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 30px rgba(0,0,0,0.1);
}

.sdui-side-panel.active {
  transform: translateX(0);
}

.sdui-side-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.side-greeting {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FF9933;
  padding: 0.25rem 0.6rem;
  background: rgba(255, 153, 51, 0.1);
  border-radius: 9999px;
  border: 1px solid rgba(255, 153, 51, 0.2);
}


.sdui-side-item {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--dark-slate);
  font-weight: 600;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background 0.2s;
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  font-size: var(--font-body);
  font-family: inherit;
  width: 100%;
}

.sdui-side-item:hover {
  background: rgba(0,0,0,0.02);
}

.sdui-side-item.logout {
  color: var(--error);
}

/* --- Modals --- */
.sdui-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.sdui-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.sdui-modal-card {
  background: white;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  padding: 2rem 1.5rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  transform: translateY(30px);
  transition: transform 0.4s var(--spring);
}

.sdui-modal-overlay.active .sdui-modal-card {
  transform: translateY(0);
}

/* --- Forms --- */
.sdui-form-group {
  margin-bottom: 1.25rem;
}

.sdui-form-label {
  display: block;
  font-size: var(--font-small);
  font-weight: 600;
  color: var(--dark-slate);
  margin-bottom: 0.5rem;
}

.sdui-form-input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  font-size: max(16px, var(--font-body));
  font-family: inherit;
  color: var(--dark-slate);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sdui-form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,153,51,0.12);
}

/* --- OTP Input --- */
.sdui-otp-inputs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.sdui-otp-box {
  width: 46px;
  height: 56px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-slate);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}

.sdui-otp-box:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,153,51,0.12);
}

.sdui-otp-box.filled {
  border-color: var(--primary);
  background: rgba(255,153,51,0.05);
}

/* --- Primary Button --- */
.sdui-btn-primary {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  font-size: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s var(--spring), box-shadow 0.2s, opacity 0.2s;
  letter-spacing: 0.2px;
}

.sdui-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,153,51,0.35);
}

.sdui-btn-primary:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.sdui-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* --- Login Page --- */
.sdui-login-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.25rem 2rem;
  min-height: 100vh;
}

.sdui-login-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,0.6);
}

.sdui-login-header {
  margin-bottom: 2rem;
}

.sdui-login-header h1 {
  font-size: var(--font-h1);
  font-weight: 800;
  color: var(--dark-slate);
  margin-bottom: 0.5rem;
}

.sdui-login-header p {
  color: var(--slate-600);
  font-size: var(--font-body);
}

/* --- Login Typography --- */
.login-title {
  font-size: var(--font-h2);
  font-weight: 800;
  color: var(--dark-slate);
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}

.login-subtitle {
  color: var(--slate-600);
  font-size: var(--font-small);
  margin-bottom: 1.5rem;
  min-height: 1.2em;
}

/* --- Top Nav Back Link --- */
.topnav-back {
  color: var(--slate-600);
  font-size: var(--font-small);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.topnav-back:hover {
  color: var(--primary);
}

.sdui-country-code {
  display: inline-flex;
  align-items: center;
  background: rgba(0,0,0,0.04);
  border: 1.5px solid rgba(0,0,0,0.08);
  border-right: none;
  border-radius: 14px 0 0 14px;
  padding: 0.9rem 0.85rem;
  font-weight: 700;
  color: var(--dark-slate);
  font-size: var(--font-body);
}

.sdui-phone-input {
  flex: 1;
  border-radius: 0 14px 14px 0 !important;
  border-left: none !important;
}

.sdui-input-group {
  display: flex;
}

.sdui-error-text {
  color: var(--error);
  font-size: var(--font-small);
  margin-top: 0.5rem;
  display: none;
}

.sdui-error-text.show {
  display: block;
}

.sdui-resend-area {
  text-align: center;
  margin-top: 1.25rem;
  font-size: var(--font-small);
  color: var(--slate-600);
}

.sdui-resend-btn {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
}

.sdui-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--slate-600);
  text-decoration: none;
  font-size: var(--font-small);
  font-weight: 600;
  transition: color 0.2s;
}

/* --- Toast --- */
.sdui-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, #1e293b, #334155);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 99998;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s var(--spring);
  pointer-events: none;
  white-space: nowrap;
}

.sdui-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* --- Schedule List --- */
.sdui-schedule-list {
  background: white;
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1rem;
}

.schedule-day {
  margin-bottom: 1.25rem;
}

.schedule-day-label {
  font-size: var(--font-small);
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.schedule-slot {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  align-items: center;
}

.schedule-time {
  font-size: 0.8rem;
  color: var(--slate-600);
  font-weight: 600;
  min-width: 70px;
}

.schedule-subject {
  font-weight: 600;
  color: var(--dark-slate);
  font-size: var(--font-small);
}

.schedule-teacher {
  font-size: 0.8rem;
  color: var(--slate-400);
}

/* --- Section Title --- */
.sdui-section-title {
  font-size: var(--font-body);
  font-weight: 700;
  color: var(--dark-slate);
  margin: 1.5rem 0 0.75rem;
}

/* --- Profile Card --- */
.sdui-profile-card {
  background: white;
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1rem;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #FFB366);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.profile-name {
  font-size: var(--font-h2);
  font-weight: 800;
  color: var(--dark-slate);
}

.profile-detail {
  font-size: var(--font-small);
  color: var(--slate-600);
  margin-top: 0.25rem;
}

.profile-field {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: var(--font-small);
}

.profile-field-label {
  color: var(--slate-600);
  font-weight: 600;
}

.profile-field-value {
  color: var(--dark-slate);
  font-weight: 600;
  text-align: right;
}

/* --- Input Error Shake Animation --- */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.input-error {
  border-color: var(--error) !important;
}

.shake {
  animation: shake 0.4s ease;
}
/* --- Welcome Title --- */
.sdui-welcome-title {
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: #0F172A;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

/* --- Banner Carousel Custom --- */
.sdui-banner-carousel {
  border-radius: 24px;
  background: linear-gradient(135deg, #FF9933, #1A73E8);
  padding: 8px;
  margin-bottom: 1rem;
}
.carousel-slide-card {
  background: linear-gradient(180deg, #1D72F3, #0B4BB8);
  border-radius: 18px;
  padding: 2rem;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  position: relative;
}
.carousel-slide-card .slide-content h3 {
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: white;
}
.carousel-slide-card .slide-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}
.slide-indicators {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 6px;
  align-items: center;
}
.slide-indicators .indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
}
.slide-indicators .indicator.active {
  width: 22px;
  height: 6px;
  border-radius: 4px;
  background: white;
}

/* --- Icon Grid --- */
.sdui-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem 0.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.icon-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.icon-grid-circle {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #1D72F3, #1558B0);
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(29,114,243,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 0.5rem;
}
.icon-grid-emoji {
  font-size: 1.5rem;
  color: white;
}
.icon-grid-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 800;
  color: white;
}
.blue-pill { background: #3B82F6; }
.green-pill { background: #10B981; }
.red-pill { background: #EF4444; }

.icon-grid-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0F172A;
  margin-top: 0.6rem;
}

/* --- Trusted Banner --- */
.sdui-trusted-banner {
  background: rgba(26,115,232,0.06);
  border: 1px solid rgba(26,115,232,0.12);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.trusted-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.trusted-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #FF9933, #F2912B);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trusted-icon svg {
  width: 24px;
  height: 24px;
}
.trusted-text h4 {
  font-weight: bold;
  color: #0f172a;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}
.trusted-text p {
  color: #475569;
  font-size: 0.85rem;
}
.trusted-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}
.avatar-group {
  display: flex;
}
.avatar-group .avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -8px;
}
.avatar-group .avatar:first-child { margin-left: 0; }
.trusted-right span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}

/* --- Topnav Updates --- */
.sdui-topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topnav-bell-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 0.5rem;
}
.bell-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #EF4444;
  color: white;
  font-size: 0.6rem;
  font-weight: bold;
  padding: 1px 4px;
  border-radius: 10px;
}

/* --- Desktop UI/UX Refinements --- */
@media (min-width: 768px) {
  /* 1. Floating Bottom Nav on Desktop */
  .sdui-bottom-nav {
    max-width: 600px;
    margin: 0 auto;
    border-radius: var(--radius-pill);
    bottom: 20px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  }

  /* 2. Grid for Stat Cards & Icon Grid */
  .sdui-icon-grid {
    grid-template-columns: repeat(8, 1fr);
  }
  
  .route-view {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    align-items: start;
    align-content: start;
  }

  /* Exclude elements that should span full width in the grid */
  .sdui-hero,
  .sdui-banner-carousel,
  .sdui-icon-grid,
  .sdui-trusted-banner,
  .sdui-notice-list,
  .sdui-fee-table-wrapper,
  .sdui-welcome-title {
    grid-column: 1 / -1;
  }

  /* 3. Spacious Desktop Padding */
  .sdui-hero,
  .sdui-stat-card,
  .sdui-wallet-card,
  .sdui-trusted-banner,
  .sdui-banner-carousel .carousel-slide-card,
  .sdui-fee-table-wrapper,
  .sdui-attendance-chart,
  .sdui-notice-list {
    padding: 2rem 2.5rem;
  }

  .sdui-banner-carousel .carousel-slide-card {
    min-height: 240px;
  }
}

@media (min-width: 1024px) {
  .sdui-hero,
  .sdui-stat-card,
  .sdui-wallet-card,
  .sdui-trusted-banner,
  .sdui-banner-carousel .carousel-slide-card,
  .sdui-fee-table-wrapper,
  .sdui-attendance-chart,
  .sdui-notice-list {
    padding: 2.5rem 3rem;
  }
}

/* --- SVG Icons --- */
.svg-icon-bell {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--dark-slate);
}

.svg-icon-hero {
  width: 2.5rem;
  height: 2.5rem;
  stroke: var(--primary);
}

/* --- Welcome Greeting --- */
.sdui-welcome-title {
  font-size: var(--font-h1);
  color: var(--dark-slate);
  margin-bottom: 1rem;
}

/* --- Trust Banner Added Styles --- */
.orange-badge-circle {
  background: #F97316;
  border-radius: 50%;
  padding: 8px;
  display: inline-flex;
}
.overlapping-avatars {
  display: flex;
}
.overlapping-avatars .circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -10px;
}
.overlapping-avatars .circle:nth-child(1) { background: #94A3B8; margin-left: 0; }
.overlapping-avatars .circle:nth-child(2) { background: #1E293B; }
.overlapping-avatars .circle:nth-child(3) { background: #FF9933; }
.trusted-count {
  font-weight: bold;
}

/* ==========================================================================
   Minimalist Math-Themed Login UI Components
   ========================================================================== */

/* --- Absolute Floating Math Sketches --- */
.math-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.math-sketch {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.05));
  transition: transform 0.3s ease;
}

.math-sketch.cube {
  top: 60px;
  left: 6%;
}

.math-sketch.triangle {
  top: 80px;
  right: 6%;
}

.math-sketch.arithmetic-card {
  bottom: 80px;
  left: 8%;
}

@media (max-width: 768px) {
  .math-sketch.cube {
    transform: scale(0.65);
    transform-origin: top left;
    top: 20px;
    left: -10px;
  }
  .math-sketch.triangle {
    transform: scale(0.65);
    transform-origin: top right;
    top: 20px;
    right: -10px;
  }
  .math-sketch.arithmetic-card {
    transform: scale(0.65);
    transform-origin: bottom left;
    left: 10px;
    bottom: 20px;
  }
}

/* --- Mascot Floating Animation --- */
.mascot-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.mascot-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  animation: mascotFloat 3s ease-in-out infinite alternate;
}

@keyframes mascotFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* --- Rounded Grade Badge --- */
.badge-grade {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--badge-blue-bg);
  color: var(--badge-blue-text);
  border-radius: var(--radius-pill);
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(2, 132, 199, 0.12);
  margin-bottom: 1.25rem;
}

.badge-grade svg {
  width: 15px;
  height: 15px;
  stroke: var(--badge-blue-text);
  fill: none;
}

/* --- Titles --- */
.login-main-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--btn-dark);
  line-height: 1.25;
  text-align: center;
  margin-bottom: 2.25rem;
}

.login-main-title span {
  color: var(--mascot-saffron);
}

/* --- Minimalist Form Container --- */
.tp-login-card {
  width: 100%;
  max-width: 380px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 10;
}

/* --- Phone Input Styles --- */
.tp-input-group {
  display: flex;
  background-color: white;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  width: 100%;
  max-width: 360px;
  height: 52px;
  overflow: hidden;
  transition: all 0.3s var(--spring-gentle);
  margin-bottom: 1rem;
}

.tp-input-group:focus-within {
  border-color: var(--mascot-saffron);
  box-shadow: 0 0 0 4px rgba(255, 153, 51, 0.15);
}

.tp-country-code {
  display: flex;
  align-items: center;
  padding-left: 1.25rem;
  padding-right: 0.75rem;
  font-weight: 600;
  color: #64748B;
  border-right: 1px solid #E2E8F0;
}

.tp-phone-input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0 1rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--btn-dark);
  outline: none;
  font-family: inherit;
}

.tp-phone-input::placeholder {
  color: #94A3B8;
}

/* --- Rounded Black Pill Button --- */
.tp-btn-pill {
  width: 100%;
  max-width: 360px;
  height: 50px;
  background-color: var(--btn-dark);
  color: white;
  border: none;
  border-radius: 9999px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--spring-gentle);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.12);
  font-family: inherit;
  margin-top: 0.5rem;
}

.tp-btn-pill:hover:not(:disabled) {
  background-color: var(--btn-dark-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 41, 59, 0.22);
}

.tp-btn-pill:active:not(:disabled) {
  transform: translateY(0);
}

.tp-btn-pill:disabled {
  background-color: #CBD5E1;
  color: #94A3B8;
  cursor: not-allowed;
  box-shadow: none;
}

/* --- Fine Print Links --- */
.tp-fine-print {
  font-size: 0.75rem;
  color: #64748B;
  margin-top: 1.5rem;
  line-height: 1.5;
  max-width: 300px;
}

.tp-fine-print a {
  color: var(--btn-dark);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}

.tp-fine-print a:hover {
  color: var(--mascot-saffron);
}

/* --- OTP Input Layout --- */
.tp-otp-inputs,
.sdui-otp-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 1.5rem 0;
  width: 100%;
  max-width: 360px;
}

.tp-otp-box,
.sdui-otp-box {
  width: 44px;
  height: 52px;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background-color: white;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  color: var(--btn-dark);
  transition: all 0.3s var(--spring-gentle);
  font-family: inherit;
  outline: none;
}

.tp-otp-box:focus,
.tp-otp-box:focus-visible,
.sdui-otp-box:focus,
.sdui-otp-box:focus-visible {
  border-color: var(--mascot-saffron);
  box-shadow: 0 0 0 4px rgba(255, 153, 51, 0.15);
  transform: translateY(-2px);
}

.tp-otp-box.input-error,
.sdui-otp-box.input-error {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12) !important;
}

.tp-resend-area {
  font-size: 0.85rem;
  color: #64748B;
  margin-top: 1rem;
}

.tp-resend-btn {
  background: none;
  border: none;
  color: var(--mascot-saffron);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
  font-size: 0.85rem;
  display: none;
}

.tp-change-number-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: #64748B;
  text-decoration: underline;
  font-size: 0.85rem;
  cursor: pointer;
}

.tp-change-number-link:hover {
  color: var(--btn-dark);
}

/* ============================================================
   ONBOARDING / SIGNUP FORM — SAFFRON + BLUE THEME
   ============================================================ */

/* 1. Modal card — beige background matching login screen */
.ob-modal-card {
  background: var(--bg-beige);
  border-radius: 24px 24px 0 0;
  padding: 1.75rem 1.5rem 2rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  font-family: 'Outfit', sans-serif;
  transform: translateY(40px);
  transition: transform 0.45s var(--spring);
}

.sdui-modal-overlay.active .ob-modal-card {
  transform: translateY(0);
}

/* 2. Progress bar container */
.ob-progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.75rem;
}

/* 3. Step dots */
.ob-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  transition: all 0.3s var(--spring-gentle);
  flex-shrink: 0;
}

.ob-step-dot.active {
  background: var(--mascot-saffron);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 153, 51, 0.35);
}

.ob-step-dot.done {
  background: var(--ob-blue-text);
  color: white;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.ob-step-dot.pending {
  background: #E2E8F0;
  color: #94A3B8;
}

/* 4. Step connector line */
.ob-step-connector {
  height: 2px;
  width: 72px;
  background: #E2E8F0;
  transition: background 0.4s ease;
  flex-shrink: 0;
}

.ob-step-connector.done {
  background: var(--ob-blue-text);
}

/* Step label text below dots */
.ob-step-labels {
  display: flex;
  justify-content: space-between;
  width: 176px;
  margin-top: 0.4rem;
  margin-bottom: 1.5rem;
}

.ob-step-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #94A3B8;
  text-align: center;
  width: 32px;
  font-family: 'Outfit', sans-serif;
  transition: color 0.3s;
}

.ob-step-label.active { color: var(--mascot-saffron); }
.ob-step-label.done   { color: var(--ob-blue-text); }

/* 5. Section badge — saffron (Step 1) or blue (Step 2) */
.ob-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 0.85rem;
}

.ob-section-badge.saffron {
  background: rgba(255, 153, 51, 0.12);
  color: #CC6600;
  border: 1px solid rgba(255, 153, 51, 0.25);
}

.ob-section-badge.blue {
  background: var(--ob-blue-bg);
  color: var(--ob-blue-text);
  border: 1px solid var(--ob-blue-border);
}

/* 6. Step heading and subtext */
.ob-step-heading {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--btn-dark);
  margin-bottom: 0.35rem;
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
}

.ob-step-subtext {
  font-size: 0.88rem;
  color: #64748B;
  margin-bottom: 1.5rem;
  font-family: 'Outfit', sans-serif;
  line-height: 1.4;
}

/* 7. Form label */
.ob-form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.45rem;
  font-family: 'Outfit', sans-serif;
}

/* 8. Pill-shaped input */
.ob-form-input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border: 1.5px solid #E2E8F0;
  border-radius: 9999px;
  font-size: 1rem;
  font-family: 'Outfit', sans-serif;
  color: var(--btn-dark);
  background: white;
  outline: none;
  transition: border-color 0.25s var(--spring-gentle), box-shadow 0.25s var(--spring-gentle);
  box-sizing: border-box;
}

.ob-form-input::placeholder {
  color: #94A3B8;
}

.ob-form-input:focus {
  border-color: var(--mascot-saffron);
  box-shadow: 0 0 0 4px rgba(255, 153, 51, 0.12);
}

.ob-form-input.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* 9. Pill-shaped select dropdown */
.ob-form-select {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border: 1.5px solid #E2E8F0;
  border-radius: 9999px;
  font-size: 1rem;
  font-family: 'Outfit', sans-serif;
  color: var(--btn-dark);
  background: white;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 16px;
  padding-right: 2.8rem;
  transition: border-color 0.25s var(--spring-gentle), box-shadow 0.25s var(--spring-gentle);
  cursor: pointer;
  box-sizing: border-box;
}

.ob-form-select:focus {
  border-color: var(--mascot-saffron);
  box-shadow: 0 0 0 4px rgba(255, 153, 51, 0.12);
}

/* 10. Saffron CTA pill button */
.ob-btn-saffron {
  width: 100%;
  height: 52px;
  background: var(--ob-saffron-gradient);
  color: white;
  border: none;
  border-radius: 9999px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s var(--spring-gentle);
  box-shadow: 0 4px 14px rgba(255, 153, 51, 0.35);
  letter-spacing: 0.2px;
}

.ob-btn-saffron:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 153, 51, 0.45);
}

.ob-btn-saffron:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(255, 153, 51, 0.35);
}

.ob-btn-saffron:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 11. Ghost back button (blue text, outlined) */
.ob-btn-ghost {
  height: 52px;
  flex: 1;
  background: white;
  color: var(--ob-blue-text);
  border: 1.5px solid var(--ob-blue-border);
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--spring-gentle);
}

.ob-btn-ghost:hover {
  background: var(--ob-blue-bg);
  border-color: var(--ob-blue-text);
}

/* 12. Reward badge callout */
.ob-reward-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ob-blue-bg);
  border: 1px solid var(--ob-blue-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ob-blue-text);
  font-family: 'Outfit', sans-serif;
  line-height: 1.4;
}

.ob-reward-badge span {
  font-size: 1.2rem;
}

/* Form group wrapper */
.ob-form-group {
  margin-bottom: 1rem;
}

/* Error text below inputs */
.ob-error-text,
.ob-error-msg {
  font-size: 0.78rem;
  color: #EF4444;
  margin-top: 0.4rem;
  padding-left: 0.25rem;
  display: none;
  font-family: 'Outfit', sans-serif;
}

.ob-error-text.show,
.ob-error-msg.show {
  display: block;
}

/* Step slide animations */
@keyframes ob-slide-in-right {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes ob-slide-in-left {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes ob-slide-out-left {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-40px); }
}

@keyframes ob-slide-out-right {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

.ob-slide-in-right  { animation: ob-slide-in-right  0.35s var(--spring-gentle) forwards; }
.ob-slide-in-left   { animation: ob-slide-in-left   0.35s var(--spring-gentle) forwards; }
.ob-slide-out-left  { animation: ob-slide-out-left  0.25s ease forwards; }
.ob-slide-out-right { animation: ob-slide-out-right 0.25s ease forwards; }

/* Drag handle at top of modal */
.ob-drag-handle {
  width: 40px;
  height: 4px;
  background: #CBD5E1;
  border-radius: 9999px;
  margin: 0 auto 1.5rem;
}

/* Divider line */
.ob-divider {
  border: none;
  border-top: 1px solid #E2E8F0;
  margin: 1.25rem 0;
}

/* ============================================================
   DASHBOARD WIREFRAME REDESIGN — CAROUSEL & CIRCULAR OPTION GRIDS
   ============================================================ */

/* ── Top Navigation Bar ─────────────────────────────────────────────
   Layout: [hamburger]   [TutoringPoint logo — centered]   [bell 🔔·]
   ──────────────────────────────────────────────────────────────────── */
.sdui-top-nav-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.1rem;
  height: 54px;
  background: #ffffff;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

/* Hamburger ≡ */
.sdui-nav-hamburger {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.15s;
  flex-shrink: 0;
  position: relative;
  z-index: 2; /* always above the centred logo */
}
.sdui-nav-hamburger:hover { background: rgba(0,0,0,0.05); }
.sdui-nav-hamburger:active { transform: scale(0.92); }
.sdui-hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #334155;
  border-radius: 2px;
}

/* Logo — absolutely centred in the bar */
.sdui-nav-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1;
  user-select: none;
  z-index: 1;           /* sits above bg, below interactive buttons */
  pointer-events: none; /* clicks fall through to nav buttons if overlapping */
}
.sdui-nav-logo-saffron { color: #FF9933; }
.sdui-nav-logo-blue    { color: #38BDF8; }

/* Bell icon */
.sdui-nav-bell {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #334155;
  border-radius: 8px;
  transition: background 0.15s;
  flex-shrink: 0;
  z-index: 2; /* always above the centred logo */
}
.sdui-nav-bell:hover { background: rgba(0,0,0,0.05); }
.sdui-nav-bell:active { transform: scale(0.92); }
.sdui-nav-bell svg { display: block; }

/* Small red dot on bell (no number) */
.sdui-nav-bell-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  background: #EF4444;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  display: block;
}

/* Old classes kept for compat (hidden) */
.sdui-hamburger-btn,
.sdui-nav-title,
.sdui-nav-actions,
.sdui-nav-icon-btn,
.sdui-badge-dot { display: none; }



/* --- Ad Carousel Section --- */
.sdui-carousel-container {
  width: 100%;
  max-width: 600px;
  margin: 1.25rem auto 1rem;
  padding: 0 1rem;
  box-sizing: border-box;
}

.sdui-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin: 0 1.5rem 1.5rem;
  height: 220px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: grab;
}
.sdui-carousel:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}
@media (max-width: 480px) {
  .sdui-carousel {
    height: 160px;
    border-radius: 16px;
    margin: 0 1rem 1.25rem;
  }
}

.sdui-carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.sdui-carousel-slide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 100%;
  gap: 1rem;
  flex-shrink: 0;
  width: 100%;
}
@media (max-width: 480px) {
  .sdui-carousel-slide {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 1.25rem;
    gap: 0.5rem;
  }
}

.sdui-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
  margin-bottom: 0.5rem;
}

.sdui-slide-badge.saffron {
  background: rgba(255, 153, 51, 0.22);
  color: #FF9933;
  border: 1px solid rgba(255, 153, 51, 0.4);
}

.sdui-slide-badge.blue {
  background: rgba(2, 132, 199, 0.22);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.sdui-slide-badge.purple {
  background: rgba(168, 85, 247, 0.22);
  color: #C084FC;
  border: 1px solid rgba(192, 132, 252, 0.4);
}

.sdui-slide-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.35rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sdui-slide-subtitle {
  font-size: 0.85rem;
  opacity: 0.88;
  line-height: 1.35;
  font-family: 'Outfit', sans-serif;
}

.sdui-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 10;
}

.sdui-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}

.sdui-dot.active {
  width: 20px;
  border-radius: 9999px;
  background: var(--mascot-saffron);
}

/* --- Circular Options Grid (4-Columns Layout) --- */
.sdui-options-container {
  width: 100%;
  max-width: 600px;
  margin: 1.25rem auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.sdui-options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 0 1.5rem 1.5rem;
  width: 100%;
  justify-items: center;
}

.sdui-option-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  width: 100%;
  max-width: 80px;
  user-select: none;
  -webkit-user-select: none;
}

.sdui-option-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 14px rgba(30, 41, 59, 0.07);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform 0.25s var(--spring-gentle), box-shadow 0.25s var(--spring-gentle), border-color 0.25s;
  margin-bottom: 0.45rem;
  position: relative;
}

.sdui-option-circle svg {
  width: 26px;
  height: 26px;
  transition: transform 0.25s var(--spring-gentle);
}

.sdui-option-item:hover .sdui-option-circle {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 153, 51, 0.18);
  border-color: rgba(255, 153, 51, 0.4);
}

.sdui-option-item:active .sdui-option-circle {
  transform: translateY(0) scale(0.92);
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.08);
}

/* Color themed circular options */
.sdui-option-circle.saffron-theme {
  background: linear-gradient(135deg, #FFF7ED, #FFEDD5);
  border-color: rgba(255, 153, 51, 0.3);
  color: #EA580C;
}

.sdui-option-circle.blue-theme {
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  border-color: rgba(2, 132, 199, 0.3);
  color: #0284C7;
}

.sdui-option-circle.green-theme {
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  border-color: rgba(16, 185, 129, 0.3);
  color: #059669;
}

.sdui-option-circle.purple-theme {
  background: linear-gradient(135deg, #FAF5FF, #F3E8FF);
  border-color: rgba(168, 85, 247, 0.3);
  color: #9333EA;
}

.sdui-option-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--btn-dark);
  line-height: 1.25;
  word-break: break-word;
}

/* --- Middle Feature Banner Card --- */
.sdui-feature-banner {
  width: 100%;
  max-width: 600px;
  margin: 1.25rem auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.sdui-feature-card {
  background: linear-gradient(135deg, #EFF6FF, #FFFFFF);
  border: 1.5px solid var(--ob-blue-border);
  border-radius: 20px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.08);
  cursor: pointer;
  transition: transform 0.25s var(--spring-gentle), box-shadow 0.25s;
}

.sdui-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.15);
}

.sdui-feature-card:active {
  transform: translateY(0);
}

.sdui-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--ob-blue-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.sdui-feature-info {
  flex: 1;
}

.sdui-feature-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--btn-dark);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.sdui-feature-subtitle {
  font-size: 0.8rem;
  color: #64748B;
  font-family: 'Outfit', sans-serif;
}

.sdui-feature-cta {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ob-blue-text);
  font-weight: 800;
  font-size: 1.2rem;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  transition: transform 0.2s, background 0.2s;
  flex-shrink: 0;
}
.sdui-feature-cta:hover {
  transform: translateX(3px);
  background: rgba(2, 132, 199, 0.08);
}


/* ===================== CAROUSEL PREMIUM REDESIGN ===================== */
.sdui-carousel-slide-icon {
  font-size: 2.5rem;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sdui-carousel-slide-text { flex: 1; }
.sdui-carousel-slide-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}
.sdui-carousel-slide-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
}
.sdui-carousel-slide-cta {
  height: 40px;
  padding: 0 1.25rem;
  border-radius: 9999px;
  background: white;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  font-family: 'Outfit', sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.sdui-carousel-slide-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.sdui-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #FF9933;
  opacity: 0.7;
  transition: opacity 0.2s, box-shadow 0.2s;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  line-height: 1;
  padding: 0;
}
.sdui-carousel-arrow:hover { opacity: 1; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.sdui-carousel-arrow.prev { left: 12px; }
.sdui-carousel-arrow.next { right: 12px; }
@media (max-width: 480px) {
  .sdui-carousel-arrow { display: none !important; }
  .sdui-carousel-slide-icon { width: 36px; height: 36px; font-size: 1.25rem; background: transparent; }
  .sdui-carousel-slide-title { font-size: 1rem; margin-bottom: 0.2rem; }
  .sdui-carousel-slide-sub { display: none; }
  .sdui-carousel-slide-cta { height: 32px; font-size: 0.8rem; padding: 0 0.875rem; }
}

/* ===================== CIRCULAR OPTION GRID PREMIUM REDESIGN ===================== */
.sdui-options-grid-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94A3B8;
  margin: 0.5rem 1.5rem 1rem;
}
.sdui-option-circle-btn {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  max-width: 64px;
  max-height: 64px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  margin-bottom: 0.4rem;
}
.sdui-option-circle-btn svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sdui-option-item:hover .sdui-option-circle-btn {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.sdui-option-item:hover .sdui-option-circle-btn svg {
  transform: scale(1.1);
}
.sdui-option-item:active .sdui-option-circle-btn {
  transform: translateY(0) scale(0.94);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.sdui-option-circle-btn.saffron-theme {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border: 1.5px solid rgba(255, 153, 51, 0.4);
  color: #EA580C;
}
.sdui-option-circle-btn.blue-theme {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1.5px solid rgba(2, 132, 199, 0.4);
  color: #0284C7;
}
.sdui-option-circle-btn.green-theme {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  color: #059669;
}
.sdui-option-circle-btn.purple-theme {
  background: linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 100%);
  border: 1.5px solid rgba(168, 85, 247, 0.4);
  color: #9333EA;
}
.sdui-option-circle-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  text-align: center;
  line-height: 1.2;
}
/* ===================== MOBILE VIEW (<= 480px) ===================== */
@media (max-width: 480px) {
  .sdui-top-nav-bar {
    padding: 0.6rem 1rem;
  }
  .sdui-hamburger-btn,
  .sdui-nav-icon-btn {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .sdui-carousel,
  #heroContainer {
    height: 170px;
    border-radius: 18px;
    margin: 0.75rem 1rem;
  }
  .sdui-carousel-arrow {
    display: none !important; /* Hide arrows on mobile for clean tap space */
  }
  .sdui-options-grid,
  .circular-grid {
    gap: 0.875rem 0.5rem;
    padding: 0 1rem 1rem;
  }
  .sdui-options-grid-title {
    margin: 0 1rem 0.75rem;
  }
  .sdui-option-circle-btn {
    width: 58px;
    height: 58px;
    min-width: 58px;
    min-height: 58px;
    max-width: 58px;
    max-height: 58px;
  }
  .sdui-option-circle-btn svg {
    width: 24px;
    height: 24px;
  }
  .sdui-option-item {
    gap: 0.375rem;
  }
  .sdui-option-circle-label {
    font-size: 0.68rem;
    max-width: 64px;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
  }
  .tutor-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .tutor-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .tutor-book-btn {
    width: 100%;
    margin-top: 0.5rem;
  }
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .ob-modal-card {
    max-height: 85vh;
    border-radius: 24px 24px 0 0;
  }
}

/* ===================== TABLET VIEW (481px - 1023px) ===================== */
@media (min-width: 481px) and (max-width: 1023px) {
  .sdui-content-container,
  .sdui-top-nav-bar {
    max-width: 768px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
  }
  .sdui-search-wrapper {
    width: 260px;
    background: #F1F5F9;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
  }
  .sdui-carousel,
  #heroContainer {
    height: 210px;
    border-radius: 20px;
    margin: 1rem 1.5rem;
  }
  .sdui-carousel-arrow {
    display: flex !important;
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    opacity: 0.75;
  }
  .circular-grid,
  .sdui-options-grid {
    max-width: 680px;
    margin: 0 auto;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem 1rem;
  }
  .sdui-option-circle-btn {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    max-width: 64px;
    max-height: 64px;
  }
  .sdui-option-circle-label {
    font-size: 0.75rem;
  }
  .tutor-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .bento-card.referral-card {
    grid-column: span 2;
  }
  .sdui-side-panel {
    width: 320px;
  }
  .ob-modal-card {
    max-width: 480px;
    margin: 0 auto;
    border-radius: 24px;
  }
}


/* ===================== DESKTOP UI/UX ENHANCEMENTS (1024px+) ===================== */
@media (min-width: 1024px) {
  /* 1. Centered Container Constraints */
  .sdui-content-container,
  .sdui-top-nav-bar {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 0 0 20px 20px;
  }

  /* 2. Top Header Navbar */
  .sdui-top-nav-bar {
    padding: 0.85rem 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  }
  .sdui-search-wrapper {
    width: 380px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
  }
  .sdui-search-wrapper:focus-within {
    background: white;
    border-color: #FF9933;
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.15);
  }

  /* 3. Hero Promo Carousel */
  .sdui-carousel,
  #heroContainer {
    height: 260px;
    border-radius: 24px;
    margin: 1.5rem auto;
    max-width: 1100px;
  }
  .sdui-carousel-arrow {
    display: flex !important;
    opacity: 0;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transition: opacity 0.25s ease, transform 0.2s ease;
  }
  .sdui-carousel:hover .sdui-carousel-arrow,
  #heroContainer:hover .sdui-carousel-arrow {
    opacity: 1;
  }
  .sdui-carousel-arrow.prev { left: 1.25rem; }
  .sdui-carousel-arrow.next { right: 1.25rem; }

  /* 4. Circular Options Grid Desktop Spacing */
  .circular-grid,
  .sdui-options-grid {
    max-width: 960px;
    margin: 0 auto;
    gap: 2rem 1.5rem;
    padding: 0.5rem 1rem 1.5rem;
  }
  .sdui-option-item {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .sdui-option-item:hover {
    transform: translateY(-4px);
  }
  .sdui-option-circle-btn {
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
    max-width: 72px;
    max-height: 72px;
  }
  .sdui-option-circle-btn svg {
    width: 28px;
    height: 28px;
  }
  .sdui-option-circle-label {
    font-size: 0.82rem;
    margin-top: 0.5rem;
  }

  /* 5. Tutor Feed Responsive Grid */
  .tutor-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
  }
  .tutor-card {
    background: white;
    border-radius: 20px;
    padding: 1.25rem;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .tutor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  }
  .tutor-avatar { font-size: 2.2rem; }
  .tutor-details { flex: 1; }
  .tutor-name { font-size: 1.05rem; font-weight: 800; color: #0F172A; margin: 0 0 0.2rem; }
  .tutor-subj { font-size: 0.82rem; color: #64748B; margin: 0 0 0.35rem; }
  .tutor-badge { font-size: 0.72rem; font-weight: 700; color: #0284C7; background: #E0F2FE; padding: 0.2rem 0.5rem; border-radius: 9999px; }
  .tutor-book-btn { padding: 0.5rem 1rem; border-radius: 9999px; background: #FF9933; color: white; border: none; font-weight: 700; font-size: 0.82rem; cursor: pointer; transition: transform 0.2s; }
  .tutor-book-btn:hover { transform: scale(1.05); }

  /* 6. Bento Analytics Grid 3-Column Layout */
  .bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  .bento-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .bento-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }
}

