/* Gölbaşı Pro Rehber - Ana şablon stilleri */
:root {
  --app-primary: #4f46e5;
  --app-secondary: #06b6d4;
  --app-accent: #f97316;
  --app-bg: #f4f7ff;
  --text-strong: #0f172a;
  --text-soft: #64748b;
  --stroke: rgba(15, 23, 42, 0.1);
  --shadow-soft: 0 10px 25px rgba(2, 6, 23, 0.1);
  --shadow-pop: 0 12px 32px rgba(79, 70, 229, 0.18);
  --bg-grad-1: rgba(6, 182, 212, 0.18);
  --bg-grad-2: rgba(249, 115, 22, 0.16);
  --bg-grad-3: rgba(79, 70, 229, 0.14);
  --surface: rgba(255, 255, 255, 0.92);
  --glass: rgba(255, 255, 255, 0.78);
  --glass-2: rgba(255, 255, 255, 0.86);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --header-bg: rgba(15, 23, 42, 0.05);
  --header-text: #0f172a;
  --header-desc: rgba(15, 23, 42, 0.7);
  --app-head-height: 110px;
  --app-content-gap-desktop: 5px;
  --app-content-gap-mobile: 5px;
}

@supports (padding: constant(safe-area-inset-bottom)) {
  :root {
    --safe-bottom: constant(safe-area-inset-bottom);
    --safe-top: constant(safe-area-inset-top);
  }
}

html[data-theme="dark"] {
  --app-bg: #0b1220;
  --bg-grad-1: rgba(6, 182, 212, 0.14);
  --bg-grad-2: rgba(249, 115, 22, 0.12);
  --bg-grad-3: rgba(79, 70, 229, 0.16);
  --text-strong: #e5e7eb;
  --text-soft: #94a3b8;
  --stroke: rgba(148, 163, 184, 0.16);
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.4);
  --shadow-pop: 0 18px 60px rgba(79, 70, 229, 0.22);
  --surface: rgba(17, 24, 39, 0.72);
  --glass: rgba(17, 24, 39, 0.62);
  --glass-2: rgba(17, 24, 39, 0.66);
  --header-bg: rgba(30, 41, 59, 0.8);
  --header-text: #e5e7eb;
  --header-desc: rgba(148, 163, 184, 0.8);
  --text: #e5e7eb;
}

/* Dark mode: override Bootstrap defaults */
html[data-theme="dark"] body {
  color: var(--text-strong);
}
html[data-theme="dark"] .card {
  background: var(--surface) !important;
  color: var(--text-strong);
  border-color: var(--stroke) !important;
}
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
  background: rgba(15,23,42,.6);
  border-color: var(--stroke);
  color: var(--text-strong);
}
html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus {
  background: rgba(15,23,42,.8);
  color: var(--text-strong);
  border-color: var(--app-primary);
}
html[data-theme="dark"] .form-check-label {
  color: var(--text-strong);
}
html[data-theme="dark"] .alert-danger {
  background: rgba(220,53,69,.15);
  color: #fca5a5;
  border-color: rgba(220,53,69,.3);
}
html[data-theme="dark"] .alert-success {
  background: rgba(25,135,84,.15);
  color: #86efac;
  border-color: rgba(25,135,84,.3);
}
html[data-theme="dark"] a.text-dark,
html[data-theme="dark"] .text-dark {
  color: var(--text-strong) !important;
}
html[data-theme="dark"] .text-muted {
  color: var(--text-soft) !important;
}
html[data-theme="dark"] .table {
  color: var(--text-strong);
}
html[data-theme="dark"] .table-hover tbody tr:hover {
  background: rgba(255,255,255,.05);
}
html[data-theme="dark"] .bg-light {
  background: #0f172a !important;
}
html[data-theme="dark"] .card-header.bg-white {
  background: var(--surface) !important;
  color: var(--text-strong);
}
html[data-theme="dark"] .sidebar {
  background: #0f172a !important;
}

/* Light mode text var */
:root {
  --text: #0f172a;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  color: var(--text-strong);
  background:
    radial-gradient(1200px 500px at 20% 0%, var(--bg-grad-1), transparent 50%),
    radial-gradient(900px 500px at 95% 10%, var(--bg-grad-2), transparent 55%),
    radial-gradient(900px 600px at 50% 100%, var(--bg-grad-3), transparent 55%),
    var(--app-bg);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
  min-height: 100dvh;
}

html,
body {
  margin: 0 !important;
  padding: 0 !important;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
.app-frame,
.app-container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.h-100 {
  margin: 0 !important;
  padding: 0 !important;
}

/* Mobile safety: prevent horizontal overflow */
img, video, canvas, svg {
  max-width: 100%;
  height: auto;
}

.content-section,
.section-frame,
.mid-block {
  max-width: 100%;
}

/* Page wrapper helper (keeps header/content same width) */
.page-shell{
  width: 100%;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 14px;
}

.page-shell-header{
  background: var(--header-bg);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 12px 12px;
  margin-bottom: 12px;
}

html[data-theme="dark"] .page-shell-header{
  background: rgba(15, 23, 42, 0.45);
}

.app-container,
.app-content,
.fullpage {
  overflow-x: hidden;
}

.biz-title,
.section-title,
.section-desc {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Prevent iOS input zoom & keep layout stable */
@media (max-width: 576px){
  input, select, textarea { font-size: 16px; }
}

h1, h2, h3, .brand-font {
  font-family: 'Poppins', sans-serif;
}

.fs-9 {
  font-size: 0.78rem;
}

.uppercase {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-frame {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin: 0 !important;
  padding: 0 !important;
}

.app-container {
  width: 100%;
  /* Mobile-first: keep compact; widen on desktop */
  max-width: 560px;
  min-height: 100vh;
  position: relative;
  margin: 0 auto;
  padding-top: 0 !important;
}

@media (min-width: 768px) {
  .app-container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .app-container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .app-container {
    max-width: 1100px;
  }
}

@media (max-width: 767px) {
  .app-container {
    max-width: 100%;
  }
}

.app-content {
  padding-bottom: calc(86px + var(--safe-bottom));
  min-height: 100vh;
  margin-top: 0 !important;
  padding-top: calc(var(--app-head-height) + var(--app-content-gap-desktop)) !important;
}

/* Fullscreen centered pages (login, etc.) - no bottom padding */
.app-content.fullscreen-centered {
  padding-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Business detail page - extra bottom padding */
body.detail-page .app-content {
  padding-bottom: calc(120px + var(--safe-bottom));
}

.glass-header {
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
  z-index: 1;
}

.top-social-bar {
  background: #0b0b0d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 0 !important;
  margin: 0 !important;
  margin-top: 0 !important;
  border-radius: 0;
}

.app-fixed-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1080;
  margin: 0 !important;
  padding: 0 !important;
}

.app-fixed-head-inner {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .app-fixed-head-inner { max-width: 720px; }
}

@media (min-width: 992px) {
  .app-fixed-head-inner { max-width: 960px; }
}

@media (min-width: 1200px) {
  .app-fixed-head-inner { max-width: 1100px; }
}

@media (max-width: 767px) {
  .app-content {
    padding-top: calc(var(--app-head-height) + var(--app-content-gap-mobile)) !important;
  }
}

.top-social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-social-links a {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.66rem;
  background: rgba(255, 255, 255, 0.08);
  transition: background .2s ease, color .2s ease;
}

.top-social-links a:hover {
  color: #fff;
  background: rgba(67, 97, 238, 0.65);
}

.site-logo-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
  color: #fff;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 10px 22px rgba(67, 97, 238, 0.35);
}

.site-logo-main {
  font-size: 1.15rem;
  line-height: 1;
}

.site-logo-spark {
  position: absolute;
  right: -4px;
  top: -4px;
  font-size: 0.68rem;
  color: #ffd166;
  text-shadow: 0 0 8px rgba(255, 209, 102, 0.65);
}

.site-brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.1;
}

.site-brand-title {
  font-size: 1.18rem;
}

.site-brand-tagline {
  font-size: 0.62rem;
  letter-spacing: 0.07em;
}

@media (max-width: 576px) {
  .site-brand-title {
    font-size: 1.06rem;
  }
  .site-brand-tagline {
    font-size: 0.58rem;
  }
}

@media (max-width: 576px) {
  .glass-header .container-fluid {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

/* Main Content Container */
.main-content {
  width: 100%;
  padding: 0 12px;
}

@media (min-width: 768px) {
  .main-content {
    padding: 0 16px;
  }
}

@media (min-width: 992px) {
  .main-content {
    padding: 0 20px;
  }
}

/* Bootstrap Container Override */
.container {
  width: 100%;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.hero-section {
  background:
    radial-gradient(900px 280px at 20% 10%, rgba(255, 255, 255, 0.22), transparent 55%),
    linear-gradient(135deg, #4f46e5 0%, #06b6d4 52%, #f97316 110%);
  color: #fff;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.16);
  padding: 22px 16px 44px;
  margin-bottom: 0;
}

html[data-theme="dark"] .hero-section {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.search-wrapper {
  margin-top: -24px;
  padding: 0 12px;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .search-wrapper {
    padding: 0 16px;
  }
}

.search-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  box-shadow: var(--shadow-pop);
  backdrop-filter: blur(10px);
  padding: 12px;
}

.section-search,
.section-stats,
.section-premium,
.section-vip-masters,
.section-vip-teachers,
.section-sponsors,
.section-categories {
  margin: 12px 0 !important;
  border-radius: 16px !important;
}

#mainSearch {
  font-size: 12px;
  color: var(--text-strong);
  font-weight: 600;
}

#mainSearch::placeholder {
  color: rgba(196, 205, 218, 0.95);
  font-weight: 550;
}

.content-section {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.swipe-section .section-header {
  cursor: default;
}

.swipe-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 12px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.swipe-track::-webkit-scrollbar {
  display: none;
}

.swipe-track.dragging {
  cursor: grabbing;
  user-select: none;
}

.swipe-profile-card {
  flex: 0 0 172px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: 10px 9px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.swipe-profile-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.swipe-avatar {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(79, 70, 229, 0.14);
}

.swipe-wa-btn { display: none; }

.swipe-profile-name {
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.2;
  margin-bottom: 4px;
  text-align: center;
  font-size: .92rem;
}

.swipe-profile-subject {
  color: #2563eb;
  font-size: .72rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  padding: 2px 8px;
  text-align: center;
  align-self: center;
  margin-bottom: 6px;
}

.swipe-exams-title {
  color: var(--text-soft);
  font-size: .64rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
  text-align: center;
}

.swipe-exams {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-bottom: 8px;
}

.swipe-exam-tag {
  background: rgba(37, 99, 235, 0.12);
  color: #1e40af;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: .64rem;
  font-weight: 700;
}

.swipe-rating {
  margin-top: auto;
  text-align: center;
}

.swipe-score {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1;
  margin-bottom: 2px;
}

.swipe-score-label {
  color: var(--text-soft);
  font-size: .65rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.swipe-stars {
  color: #f59e0b;
  font-size: .72rem;
}

.swipe-controls {
  position: relative;
  height: 0;
}

.swipe-arrow-btn {
  position: absolute;
  top: 62px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.96);
  color: #2563eb;
  display: grid;
  place-items: center;
  z-index: 3;
}

.swipe-arrow-btn.prev { left: 4px; }
.swipe-arrow-btn.next { right: 4px; }

.swipe-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 0 2px;
}

.swipe-dot {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.55);
}

.swipe-dot.active {
  background: #2563eb;
}

html[data-theme="dark"] .swipe-arrow-btn {
  background: rgba(15, 23, 42, 0.94);
  color: #93c5fd;
}

@media (max-width: 768px) {
  .swipe-profile-card {
    flex-basis: 160px;
    min-height: 208px;
  }
}

@media (max-width: 520px) {
  .swipe-profile-card {
    flex-basis: 146px;
    min-height: 198px;
    padding: 9px 8px;
  }
  .swipe-avatar {
    width: 52px;
    height: 52px;
  }
  .swipe-arrow-btn {
    width: 22px;
    height: 22px;
  }
}

.clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.floating-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--stroke);
  z-index: 9999;
  padding-top: 8px;
  padding-bottom: calc(8px + var(--safe-bottom));
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  max-width: 100%;
}

.site-footer-pro {
  margin: 10px 10px calc(94px + var(--safe-bottom));
  padding: 14px 14px 10px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(248,250,255,.94));
  box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .site-footer-pro {
  background: linear-gradient(145deg, rgba(15,23,42,.86), rgba(30,41,59,.78));
}

.site-footer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
  box-shadow: 0 10px 22px rgba(67, 97, 238, 0.32);
}

.site-footer-title {
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1.1;
}

.site-footer-sub {
  font-size: .75rem;
  color: var(--text-soft);
  font-weight: 700;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.site-footer-col {
  display: grid;
  gap: 6px;
}

.site-footer-col-title {
  font-size: .78rem;
  font-weight: 800;
  color: var(--text-strong);
  margin-bottom: 2px;
}

.site-footer-col a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 700;
}

.site-footer-col a:hover {
  color: var(--app-primary);
}

.site-footer-text {
  color: var(--text-soft);
  font-size: .78rem;
  font-weight: 700;
}

.site-footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.site-footer-social a {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
}

.site-footer-bottom {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--stroke);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: .74rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .site-footer-pro {
    margin: 8px 8px calc(90px + var(--safe-bottom));
    padding: 12px 10px 9px;
  }
  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

html[data-theme="dark"] .floating-nav {
  background: rgba(30, 41, 59, 0.9);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.bottom-nav-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 8px;
}

/* Misafir kullanıcıda Hesabım yok: 5 kolon */
.bottom-nav-grid.is-guest {
  grid-template-columns: repeat(5, 1fr);
}

.app-content {
  padding-bottom: calc(86px + var(--safe-bottom));
  min-height: 100vh;
  margin-top: 0 !important;
  padding-top: calc(var(--app-head-height) + var(--app-content-gap-desktop)) !important;
}

/* =========================================================
   Compact UI (onboarding/auth pages)
   İstek: padding/margin/radius/gap <= 5px (sağ/sol dahil)
   Bu mod sadece <body class="compact-ui"> olan sayfalarda geçerlidir.
   ========================================================= */
.compact-ui .content-section,
.compact-ui .search-card,
.compact-ui .section-frame,
.compact-ui .pick-card,
.compact-ui .biz-card,
.compact-ui .ad-frame,
.compact-ui .mid-block,
.compact-ui .side-user,
.compact-ui .side-item,
.compact-ui .theme-toggle,
.compact-ui .btn,
.compact-ui .form-control,
.compact-ui .form-select,
.compact-ui .alert,
.compact-ui .badge,
.compact-ui .rounded,
.compact-ui .rounded-1,
.compact-ui .rounded-2,
.compact-ui .rounded-3 {
  border-radius: 5px !important;
}

.compact-ui .hero-section {
  border-radius: 0 0 5px 5px !important;
  padding: 5px !important;
}

.compact-ui .content-section { padding: 5px !important; }
.compact-ui .search-wrapper { padding-left: 5px !important; padding-right: 5px !important; margin-top: -5px !important; }
.compact-ui .app-content { padding-bottom: calc(86px + var(--safe-bottom)); }

/* Controls: clamp paddings to 5px */
.compact-ui .btn,
.compact-ui .btn-lg,
.compact-ui .btn-sm {
  padding: 5px !important;
}

.compact-ui .form-control,
.compact-ui .form-control-lg,
.compact-ui .form-control-sm,
.compact-ui .form-select,
.compact-ui .form-select-lg,
.compact-ui .form-select-sm,
.compact-ui .input-group-text {
  padding: 5px !important;
}

/* Prevent mobile input zoom (iOS): keep >= 16px font-size */
.compact-ui input,
.compact-ui select,
.compact-ui textarea,
.compact-ui .form-control,
.compact-ui .form-select {
  font-size: 16px !important;
  line-height: 1.2 !important;
}

.compact-ui .form-label {
  margin-bottom: 2px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: var(--text-soft) !important;
}

.compact-ui .text-muted,
.compact-ui .small {
  font-size: 12px !important;
}

.compact-ui hr {
  margin: 5px 0 !important;
}

/* Bootstrap spacing overrides (only within compact-ui) */
.compact-ui .p-4,
.compact-ui .p-3,
.compact-ui .p-2,
.compact-ui .px-4,
.compact-ui .px-3,
.compact-ui .px-2,
.compact-ui .py-4,
.compact-ui .py-3,
.compact-ui .py-2,
.compact-ui .pt-3,
.compact-ui .pt-2,
.compact-ui .pb-3,
.compact-ui .pb-2 {
  padding: 5px !important;
}

.compact-ui .mt-4,
.compact-ui .mt-3,
.compact-ui .mt-2,
.compact-ui .mb-4,
.compact-ui .mb-3,
.compact-ui .mb-2,
.compact-ui .my-4,
.compact-ui .my-3,
.compact-ui .my-2 {
  margin-top: 5px !important;
  margin-bottom: 5px !important;
}

.compact-ui .gap-3,
.compact-ui .gap-2 {
  gap: 5px !important;
}

.compact-ui .row {
  --bs-gutter-x: 5px;
  --bs-gutter-y: 5px;
}

.compact-ui .pick-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 5px !important;
}

.compact-ui .pick-card {
  padding: 5px !important;
}

/* Visual grouping without extra spacing */
.compact-ui .compact-block {
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.55);
  padding: 5px;
  border-radius: 5px;
}
html[data-theme="dark"] .compact-ui .compact-block {
  background: rgba(17,24,39,.55);
}

.compact-ui .step-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 5px;
  border-radius: 5px;
  border: 1px solid var(--stroke);
  background: rgba(79,70,229,.10);
  color: var(--text-strong);
  font-weight: 900;
  font-size: 12px;
}

.compact-ui .pick-card .pick-check {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1px solid var(--stroke);
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.7);
  color: var(--text-soft);
}
html[data-theme="dark"] .compact-ui .pick-card .pick-check {
  background: rgba(2,6,23,.25);
}
.compact-ui .pick-card.active .pick-check {
  background: rgba(79,70,229,.14);
  color: var(--app-primary);
  border-color: rgba(79,70,229,.22);
}

.nav-link-mini {
  color: var(--text-soft);
  font-size: 0.66rem;
  font-weight: 900;
  text-decoration: none;
  padding: 6px 2px;
  border-radius: 12px;
  user-select: none;
  line-height: 1.05;
  transition: 0.12s;
}

.nav-link-mini i {
  font-size: 1.25rem;
}

.nav-link-mini.active {
  color: var(--app-primary);
  background: rgba(79, 70, 229, 0.1);
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.16);
}

.glass-offcanvas {
  background: var(--glass-2) !important;
  backdrop-filter: blur(14px) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.55) !important;
  z-index: 4000 !important;
}

html[data-theme="dark"] .glass-offcanvas {
  background: rgba(17, 24, 39, 0.86) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Offcanvas (Sidebar) readability in dark mode */
html[data-theme="dark"] .glass-offcanvas,
html[data-theme="dark"] .glass-offcanvas .offcanvas-header,
html[data-theme="dark"] .glass-offcanvas .offcanvas-body {
  color: var(--text-strong);
}
html[data-theme="dark"] .glass-offcanvas .btn-close {
  /* Bootstrap close icon is dark by default */
  filter: invert(1) grayscale(100%);
  opacity: 0.9;
}
html[data-theme="dark"] .glass-offcanvas .side-item .fw-bold {
  color: var(--text-strong);
}
html[data-theme="dark"] .glass-offcanvas .side-item .text-muted {
  color: rgba(203, 213, 225, 0.88) !important;
}

.offcanvas-backdrop {
  z-index: 3990;
}

.side-user {
  background:
    radial-gradient(650px 220px at 10% 0%, rgba(6, 182, 212, 0.18), transparent 60%),
    radial-gradient(650px 220px at 90% 0%, rgba(249, 115, 22, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 16px;
  box-shadow: 0 16px 35px rgba(2, 6, 23, 0.1);
  padding: 14px;
  margin-bottom: 16px;
}

html[data-theme="dark"] .side-user {
  background:
    radial-gradient(650px 220px at 10% 0%, rgba(6, 182, 212, 0.14), transparent 60%),
    radial-gradient(650px 220px at 90% 0%, rgba(249, 115, 22, 0.12), transparent 60%),
    rgba(17, 24, 39, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.side-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 18px rgba(2, 6, 23, 0.06);
  text-decoration: none;
  color: var(--text-strong);
  transition: 0.15s;
  margin-bottom: 6px;
}

html[data-theme="dark"] .side-item {
  background: rgba(17, 24, 39, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.side-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(2, 6, 23, 0.1);
  border-color: rgba(79, 70, 229, 0.18);
  color: var(--text-strong);
}

html[data-theme="dark"] .side-item:hover {
  border-color: rgba(79, 70, 229, 0.3);
  background: rgba(17, 24, 39, 0.75);
}

.side-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--app-primary);
  flex-shrink: 0;
}

.fullpage {
  position: fixed;
  top: calc(var(--app-head-height) + var(--app-content-gap-desktop));
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--app-bg);
  z-index: 2000;
  display: none;
  overflow-y: auto;
  padding-bottom: calc(140px + var(--safe-bottom));
}

@media (max-width: 767px) {
  .fullpage {
    top: calc(var(--app-head-height) + var(--app-content-gap-mobile));
  }
}

.fullpage.active {
  display: block;
  animation: slideUp 0.28s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.detail-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(62px + var(--safe-bottom));
  z-index: 2500;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--stroke);
  padding: 10px 12px;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-header,
  .floating-nav,
  .detail-cta {
    background: rgba(255, 255, 255, 0.97);
  }

  html[data-theme="dark"] .glass-header,
  html[data-theme="dark"] .floating-nav,
  html[data-theme="dark"] .detail-cta {
    background: rgba(15, 23, 42, 0.96);
  }
}

/* Detail pages (business / master / teacher) */
.detail-shell {
  max-width: 100%;
}

.detail-profile-card,
.detail-tabs-card {
  border-radius: 12px !important;
  background: var(--surface) !important;
  border: 1px solid var(--stroke) !important;
}

.detail-profile-image {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border: 2px solid var(--stroke);
  flex-shrink: 0;
}

.detail-profile-title {
  color: var(--text-strong);
  font-size: 1.02rem;
  letter-spacing: .01em;
}

.detail-profile-card .card-body > .d-flex {
  align-items: flex-start !important;
}

.detail-profile-card .min-width-0 {
  padding-top: 1px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.detail-meta-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: var(--header-bg);
  color: var(--text-soft);
  font-size: .76rem;
  font-weight: 700;
  min-width: 0;
}

.detail-meta-chip i {
  flex-shrink: 0;
}

.detail-social-row {
  align-items: center;
  min-height: 34px;
}

.detail-cat-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  max-width: 44%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .62rem;
  line-height: 1.1;
  padding: 2px 8px;
  border-radius: 999px;
  pointer-events: none;
}

.detail-profile-main {
  padding-right: 98px;
}

.detail-tabs {
  border-bottom: 1px solid var(--stroke);
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
}

.detail-tabs::-webkit-scrollbar {
  display: none;
}

.detail-tabs .nav-link {
  color: var(--text-soft);
  font-weight: 700;
  font-size: .8rem;
  padding: 15px 12px;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  white-space: nowrap;
}

.detail-tabs .nav-link.active {
  color: var(--app-primary);
  border-bottom-color: var(--app-primary);
  background: transparent;
}

.detail-tabs .nav-link:hover {
  color: var(--app-primary);
}

.detail-tabs-card .tab-content {
  padding-top: 14px !important;
}

.detail-tabs-card .info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--stroke);
}

.detail-tabs-card .info-row:last-child {
  border-bottom: none;
}

.detail-tabs-card .info-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .9rem;
}

.badge-tag {
  font-size: .72rem;
  padding: 3px 10px;
  border-radius: 20px;
}

@media (max-width: 575px) {
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }
  .detail-profile-image {
    width: 78px;
    height: 78px;
  }
  .detail-cat-badge {
    max-width: 46%;
    font-size: .58rem;
    padding: 2px 7px;
  }
  .detail-profile-main {
    padding-right: 84px;
  }
}

.theme-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.1);
  color: var(--text-strong);
}

.theme-toggle i {
  font-size: 1rem;
  line-height: 1;
}

.theme-toggle:active {
  transform: translateY(1px);
}

.header-actions {
  gap: 8px !important;
}

.header-icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
  color: var(--text-strong);
  transition: transform .15s ease, box-shadow .2s ease, color .2s ease;
}

.header-icon-btn i {
  font-size: 1rem;
  line-height: 1;
}

.header-icon-btn:hover {
  color: var(--app-primary);
  box-shadow: 0 12px 24px rgba(67, 97, 238, 0.2);
}

.header-icon-btn:active {
  transform: translateY(1px);
}

.header-icon-btn-bell {
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.12), rgba(58, 12, 163, 0.1));
}

.header-icon-btn-menu {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.04), rgba(67, 97, 238, 0.08));
}

html[data-theme="dark"] .header-icon-btn {
  background: rgba(17, 24, 39, 0.8);
  border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .header-icon-btn-bell {
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.32), rgba(58, 12, 163, 0.22));
}

@media (max-width: 420px) {
  .hero-section {
    padding: 20px 14px 40px;
  }
  .header-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }
  .theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }
  .nav-link-mini {
    font-size: 0.6rem;
  }
  .nav-link-mini i {
    font-size: 1.18rem;
  }
}

.section-frame {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 8px;
}

.section-header {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 12px 16px;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border: 0;
  text-align: left;
  cursor: pointer;
  gap: 12px;
  border-bottom: 1px solid var(--stroke);
}

.section-header:focus,
.section-header:active {
  outline: none;
  box-shadow: none;
}

.section-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.section-title-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.section-title {
  margin: 0;
  color: var(--header-text);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.section-desc {
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--header-desc);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chevron {
  color: var(--header-desc);
  transition: transform 0.2s ease;
  padding-top: 2px;
}

.section-header[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.collapsing {
  transition: none !important;
  height: auto !important;
}

.biz-card {
  position: relative;
  border: 2px solid #eee;
  border-radius: 10px;
  padding: 6px;
  background: #fff;
  display: flex;
  margin-bottom: 6px;
  transition: background 0.15s ease, border-color 0.15s ease;
  will-change: background;
  cursor: pointer;
}

.biz-card:hover {
  border-color: #dbe7e4;
  background: #f6fbfa;
}

html[data-theme="dark"] .biz-card {
  background: rgba(17, 24, 39, 0.85);
  border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .biz-card:hover {
  border-color: rgba(165, 180, 252, 0.22);
  background: rgba(79, 70, 229, 0.08);
}

.vip-tag {
  position: absolute;
  top: 0;
  right: 0;
  background: #ffc107;
  color: #000;
  font-size: 9px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 0 10px 0 15px;
  z-index: 5;
  letter-spacing: 0.2px;
}

.action-column {
  position: absolute;
  top: 26px;
  right: 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 4;
}

.small-icon-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  color: #444;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid #eee;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .small-icon-btn {
  background: rgba(2, 6, 23, 0.35);
  color: rgba(226, 232, 240, 0.92);
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.small-icon-btn:hover {
  background: #2f9e44;
  color: #fff;
  border-color: #2f9e44;
}

.small-icon-btn.disabled {
  opacity: 0.35;
  pointer-events: none;
  filter: grayscale(1);
}

.biz-thumb {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  border: 1px solid var(--stroke);
}

.biz-info {
  padding-right: 46px;
  width: 100%;
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 2px;
}

.biz-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-strong);
  margin: 0;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.biz-title .name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 230px;
  display: inline-block;
  vertical-align: bottom;
}

@media (max-width: 420px){
  .biz-title .name-text { max-width: min(230px, 55vw); }
}

.biz-sub {
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.rating-trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff9e6;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid #ffe8a1;
  user-select: none;
  flex: 0 0 auto;
}

html[data-theme="dark"] .rating-trigger {
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.2);
}

.rating-trigger:hover {
  background: #fff4cc;
  border-color: #ffdf7a;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.tags-inline {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.tag-pill {
  font-size: 9px;
  background: #36aaad;
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  border: 1px solid #23898a;
  white-space: nowrap;
}

html[data-theme="dark"] .tag-pill {
  background: rgba(6, 182, 212, 0.18);
  color: rgba(226, 232, 240, 0.95);
  border-color: rgba(6, 182, 212, 0.22);
}

.ad-frame {
  border: 1px dashed var(--stroke);
  background: var(--surface);
  border-radius: 16px;
  padding: 10px;
  margin: 8px 0;
  position: relative;
  overflow: hidden;
}

.ad-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-soft);
  z-index: 5;
}

.ad-close:hover {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-strong);
}

.ad-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--text-strong);
  background: rgba(238, 242, 255, 0.8);
  border: 1px solid rgba(224, 231, 255, 0.8);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

html[data-theme="dark"] .ad-badge {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(51, 65, 85, 0.6);
  color: rgba(226, 232, 240, 0.9);
}

.ad-text {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 700;
  margin-bottom: 8px;
}

.ad-slot {
  height: 90px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--surface), rgba(248, 250, 252, 0.8));
  border: 1px solid var(--stroke);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-weight: 800;
  font-size: 12px;
  overflow: hidden;
}

.ad-site-link {
  display: block;
  width: 100%;
  height: 100%;
}

.ad-site-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mid-block {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  margin-top: 10px;
}

.mid-head {
  padding: 12px 14px;
  background: var(--header-bg);
  color: var(--header-text);
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid var(--stroke);
}

.mid-title {
  font-weight: 900;
  font-size: 0.95rem;
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.mid-desc {
  font-size: 0.78rem;
  color: var(--header-desc);
  font-weight: 600;
  margin: 0;
}

.mid-body {
  padding: 10px;
}

.vip-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 700;
}

.tab-pad {
  padding: 0.5em !important;
}

.category-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text-strong);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s;
  margin-bottom: 6px;
}

.category-btn:hover {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.2);
  color: var(--app-primary);
  transform: translateY(-1px);
}

.category-btn i {
  font-size: 16px;
  color: var(--app-primary);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}

html[data-theme="dark"] .text-muted {
  color: var(--text-soft) !important;
  opacity: 1 !important;
}

html[data-theme="dark"] .btn-close {
  filter: invert(1) grayscale(1);
  opacity: 0.75;
}

html[data-theme="dark"] .btn-close:hover {
  opacity: 1;
}

/* ===== Premium Panel Styles (VIP-like) ===== */
.premium-panel {
  background: var(--surface);
  border: 2px solid var(--stroke);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.premium-panel:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.premium-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12) 0%, rgba(6, 182, 212, 0.12) 100%);
  border-bottom: 1px solid var(--stroke);
}

.premium-panel-header i {
  font-size: 1.5rem;
  color: var(--app-primary);
}

.premium-panel-header h3 {
  font-size: 1.1rem;
  color: var(--text-strong);
}

.premium-panel-body {
  padding: 20px;
}

.premium-item {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--stroke);
  transition: all 0.3s ease;
}

.premium-item:hover {
  border-color: var(--app-primary);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15);
  transform: translateY(-4px);
}

.premium-item-image {
  width: 100%;
  height: 140px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 12px;
}

.premium-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.premium-item:hover .premium-item-image img {
  transform: scale(1.08);
}

.premium-item-info {
  padding: 0 8px 8px;
}

.premium-item-info > div:first-child {
  font-size: 0.95rem;
  color: var(--text-strong);
  margin-bottom: 4px;
}

/* Premium panel colors for different types */
.premium-panel-firms .premium-panel-header {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(79, 70, 229, 0.08) 100%);
}

.premium-panel-firms .premium-panel-header i {
  color: #4f46e5;
}

.premium-panel-masters .premium-panel-header {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(249, 115, 22, 0.08) 100%);
}

.premium-panel-masters .premium-panel-header i {
  color: #f97316;
}

.premium-panel-teachers .premium-panel-header {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(6, 182, 212, 0.08) 100%);
}

.premium-panel-teachers .premium-panel-header i {
  color: #06b6d4;
}

/* Dark mode premium panels */
html[data-theme="dark"] .premium-panel {
  background: rgba(17, 24, 39, 0.6);
  border-color: rgba(148, 163, 184, 0.2);
}

html[data-theme="dark"] .premium-panel-header {
  background: rgba(15, 23, 42, 0.4);
  border-bottom-color: rgba(148, 163, 184, 0.15);
}

html[data-theme="dark"] .premium-item {
  background: rgba(30, 41, 59, 0.4);
  border-color: rgba(148, 163, 184, 0.15);
}

/* ===== Section Container Backgrounds (Modern Design) ===== */
.section-search {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(33, 150, 243, 0.05)) !important;
  border-left: 5px solid #2196f3 !important;
}

.section-stats {
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.1), rgba(156, 39, 176, 0.05)) !important;
  border-left: 5px solid #9c27b0 !important;
}

.section-premium {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(255, 152, 0, 0.05)) !important;
  border-left: 5px solid #ff9800 !important;
}

.section-vip-masters {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05)) !important;
  border-left: 5px solid #4caf50 !important;
}

.section-vip-teachers {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05)) !important;
  border-left: 5px solid #ffc107 !important;
}

.section-sponsors {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(233, 30, 99, 0.05)) !important;
  border-left: 5px solid #e91e63 !important;
}

.section-categories {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.08), rgba(76, 175, 80, 0.04)) !important;
  border-left: 5px solid #4caf50 !important;
}

/* Responsive Section Container Padding */
.section-search,
.section-stats,
.section-premium,
.section-vip-masters,
.section-vip-teachers,
.section-sponsors,
.section-categories {
  padding: 20px 16px !important;
  margin-left: -12px !important;
  margin-right: -12px !important;
}

@media (min-width: 768px) {
  .section-search,
  .section-stats,
  .section-premium,
  .section-vip-masters,
  .section-vip-teachers,
  .section-sponsors,
  .section-categories {
    padding: 24px 20px !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
  }
}

@media (min-width: 992px) {
  .section-search,
  .section-stats,
  .section-premium,
  .section-vip-masters,
  .section-vip-teachers,
  .section-sponsors,
  .section-categories {
    padding: 28px 24px !important;
    margin-left: -20px !important;
    margin-right: -20px !important;
  }
}

html[data-theme="dark"] .section-search { background: linear-gradient(135deg, rgba(26, 35, 126, 0.3), rgba(26, 35, 126, 0.15)) !important; }
html[data-theme="dark"] .section-stats { background: linear-gradient(135deg, rgba(74, 20, 140, 0.3), rgba(74, 20, 140, 0.15)) !important; }
html[data-theme="dark"] .section-premium { background: linear-gradient(135deg, rgba(230, 81, 0, 0.3), rgba(230, 81, 0, 0.15)) !important; }
html[data-theme="dark"] .section-vip-masters { background: linear-gradient(135deg, rgba(27, 94, 32, 0.3), rgba(27, 94, 32, 0.15)) !important; }
html[data-theme="dark"] .section-vip-teachers { background: linear-gradient(135deg, rgba(255, 111, 0, 0.3), rgba(255, 111, 0, 0.15)) !important; }
html[data-theme="dark"] .section-sponsors { background: linear-gradient(135deg, rgba(136, 14, 79, 0.3), rgba(136, 14, 79, 0.15)) !important; }
html[data-theme="dark"] .section-categories { background: linear-gradient(135deg, rgba(27, 94, 32, 0.25), rgba(27, 94, 32, 0.12)) !important; }

/* ===== Animated Banner ===== */
.animated-banner {
  background: linear-gradient(90deg, #4f46e5 0%, #06b6d4 50%, #f97316 100%);
  color: white;
  padding: 18px 16px;
  border-radius: 18px;
  margin: 20px 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.2);
}

html[data-theme="dark"] .animated-banner {
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}

.banner-text {
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  animation: slideText 20s linear infinite;
}

@keyframes slideText {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ===== Emergency Tabs (7/24 Services) ===== */
.emergency-tabs-container .nav-tabs {
  border-bottom: none;
  gap: 6px;
  display: flex;
  flex-wrap: wrap;
}

.emergency-tabs-container .nav-link {
  border: none;
  background: #e8eef5;
  color: #444;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 12px;
  padding: 10px 14px;
  transition: all 0.3s ease;
}

html[data-theme="dark"] .emergency-tabs-container .nav-link {
  background: #2a2a2a;
  color: #ccc;
}

.emergency-tabs-container .nav-link.active {
  background: var(--app-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.emergency-tab-content {
  border-radius: 12px;
  overflow: hidden;
  margin-top: 12px;
}

.tab-card-body {
  padding: 18px;
  min-height: 120px;
  color: white;
  position: relative;
  border-radius: 12px;
}

.bg-gradient-emergency-red { background: linear-gradient(135deg, #ff6b6b, #ee5a52); }
.bg-gradient-emergency-blue { background: linear-gradient(135deg, #3498db, #2980b9); }
.bg-gradient-emergency-green { background: linear-gradient(135deg, #2ecc71, #27ae60); }

.emergency-tab-icon {
  position: absolute;
  right: 18px;
  top: 18px;
  font-size: 2.2rem;
  opacity: 0.15;
}

.call-btn-emergency {
  background: white;
  color: var(--app-primary) !important;
  border-radius: 20px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.call-btn-emergency:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== Statistics Cards (Modern) ===== */
.stat-card-modern {
  background: var(--surface);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-top: 4px solid var(--app-primary);
  height: 100%;
}

.stat-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon-modern {
  font-size: 1.8rem;
  color: var(--app-primary);
  margin-bottom: 8px;
}

.stat-number-modern {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--app-primary);
}

.stat-label-modern {
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 500;
}

/* ===== Accordion Icon-Only Style ===== */
.accordion-icon-only .accordion-button {
  padding: 8px 12px;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--app-primary);
}

.accordion-icon-only .accordion-button::after {
  display: none;
}

.accordion-icon-only .accordion-button:not(.collapsed) {
  color: var(--app-primary);
  box-shadow: none;
}

.accordion-icon-only .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

/* ===== Sponsor Slider ===== */
.sponsor-slider {
  overflow: hidden;
  position: relative;
  background: var(--surface);
  border-radius: 14px;
  padding: 14px;
  margin-top: 12px;
}

.sponsor-track {
  display: flex;
  animation: scrollTrack 25s linear infinite;
  gap: 15px;
}

.sponsor-slider:hover .sponsor-track {
  animation-play-state: paused;
}

@keyframes scrollTrack {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-150px * 6 - 15px * 6)); }
}

.sponsor-card {
  flex: 0 0 auto;
  width: 150px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--stroke);
}

html[data-theme="dark"] .sponsor-card {
  background: rgba(30, 41, 59, 0.3);
}

.sponsor-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* ===== Home Page (anasayfa.php) ===== */
:root {
  --home-primary: #4361ee;
  --home-secondary: #3a0ca3;
  --home-radius: 6px;
}

.home-shell {
  padding: 0 12px 0;
  margin-top: -8px;
}

.home-shell .animated-banner {
  background: linear-gradient(90deg, var(--home-primary), var(--home-secondary));
  color: #fff;
  padding: 15px;
  padding-left: 46px;
  border-radius: 8px;
  margin: 0 0 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 22px rgba(67, 97, 238, 0.24);
}

.home-shell .banner-close {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}

.home-shell .banner-close:hover {
  background: rgba(15, 23, 42, 0.45);
}

.home-shell .animated-banner:after {
  content: "";
  position: absolute;
  right: -80px;
  top: -70px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 62%);
}

.home-shell .banner-text {
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  animation: slideText 20s linear infinite;
}

.home-shell .main-content-wrapper {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--home-radius);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.12);
  padding: 12px;
}

.home-shell .section-container {
  border-radius: var(--home-radius);
  padding: 16px 14px;
  margin-bottom: 14px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.home-shell .search-section {
  background: #e3f2fd;
  border-left: 5px solid #2196f3;
}

.home-shell .stats-section {
  background: #f3e5f5;
  border-left: 5px solid #9c27b0;
}

html[data-theme="dark"] .home-shell .search-section {
  background: #1a237e5c;
  border-left-color: #3d5afe;
}

html[data-theme="dark"] .home-shell .stats-section {
  background: #4a148c66;
  border-left-color: #7c4dff;
}

.home-shell .section-title {
  font-size: 1.06rem;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--home-primary);
  color: var(--home-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.home-shell .search-input-group {
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 25px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .home-shell .search-input-group {
  background: #1f2937;
  border-color: #334155;
}

.home-shell .search-input-group input {
  border: none;
  background: transparent;
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-strong);
}

.home-shell .search-input-group input:focus {
  outline: none;
}

.home-shell .quick-filter {
  max-width: 145px;
  min-width: 0;
  flex: 0 0 145px;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-weight: 700;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.home-shell .quick-filter:focus {
  outline: none;
}

@media (max-width: 576px) {
  .home-shell .search-input-group {
    padding: 6px 10px;
    gap: 6px;
  }

  .home-shell .search-input-group input {
    min-width: 0;
    font-size: 0.82rem;
  }

  .home-shell .quick-filter {
    flex: 0 0 98px;
    max-width: 98px;
    font-size: 11px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-btn {
    min-width: 0;
    overflow: hidden;
  }

  .category-btn .fw-bold {
    white-space: normal;
    word-break: break-word;
  }
}

.home-shell .stat-card {
  background: var(--surface);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  height: 100%;
  border-top: 3px solid var(--home-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.home-shell .stat-icon {
  font-size: 1rem;
  color: var(--home-primary);
  margin-bottom: 4px;
  line-height: 1;
}

.home-shell .stat-number {
  font-size: 1rem;
  font-weight: 800;
  color: var(--home-primary);
  line-height: 1.1;
}

.home-shell .stat-label {
  font-size: 0.66rem;
  color: var(--text-soft);
  font-weight: 700;
  margin-top: 2px;
  white-space: nowrap;
}

.home-shell #mainList .section-frame {
  border-radius: 12px;
  border: 1px solid var(--stroke);
  overflow: hidden;
}

.home-shell #mainList .section-header {
  background: #eef2ff;
}

html[data-theme="dark"] .home-shell #mainList .section-header {
  background: #1f2937;
}

.home-shell #mainList .biz-card {
  border-radius: 10px;
  border: 1px solid var(--stroke);
}

.home-shell #mainList .vip-tag {
  background: #ffc107;
  color: #212529;
  font-size: 10px;
}

.home-shell #mainList .ad-frame {
  border-radius: 12px;
  border: 2px dashed #a5b4c8;
  background: linear-gradient(135deg, #f5f7fa, #cfd8e5);
}

html[data-theme="dark"] .home-shell #mainList .ad-frame {
  background: linear-gradient(135deg, #1f2937, #0f172a);
  border-color: #475569;
}

.home-shell #mainList .mid-block {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.home-shell #mainList .mid-head {
  background: #eaf3ff;
  border-bottom: 1px solid var(--stroke);
  padding: 10px 12px;
}

.home-shell #mainList .mid-title {
  font-weight: 800;
  color: var(--home-primary);
}

.home-shell #mainList .mid-desc {
  font-size: 0.75rem;
  color: var(--text-soft);
  font-weight: 700;
}

.home-shell #mainList .mid-body {
  padding: 0;
}

.home-shell #mainList .tab-pad {
  padding: 10px;
}

.home-shell #mainList #vipTabs {
  padding: 8px 8px 0;
  border-bottom: 0;
  gap: 4px;
  background: #eaf3ff;
}

.home-shell #mainList #vipTabs .nav-link {
  border: 0;
  background: #dfe7f4;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 8px 8px 0 0;
  padding: 8px 8px;
}

.home-shell #mainList #vipTabs .nav-link.active {
  background: #fff;
  color: var(--home-primary);
}

html[data-theme="dark"] .home-shell #mainList #vipTabs {
  background: #111827;
}

html[data-theme="dark"] .home-shell #mainList #vipTabs .nav-link {
  background: #1f2937;
  color: #cbd5e1;
}

.home-shell .sponsors-block {
  margin-top: 2px;
}

.home-shell .sponsors-head {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--home-primary);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--home-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.home-shell .sponsors-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-shell .sponsor-item {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.home-shell .sponsor-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.home-shell .sponsor-thumb-wrap {
  position: relative;
  margin-bottom: 8px;
}

.home-shell .sponsor-thumb {
  width: 100%;
  height: 74px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: var(--header-bg);
  display: block;
}

.home-shell .sponsor-thumb-title {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.42));
  padding: 5px 8px;
  border-radius: 8px;
  backdrop-filter: blur(1px);
}

.home-shell .sponsor-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.2;
}

.home-shell .poll-block {
  margin-top: 10px;
  background: rgba(67, 97, 238, 0.06);
  border-left: 5px solid #4361ee;
}

.home-shell .poll-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #2744bf;
  margin-bottom: 8px;
}

.home-shell .poll-question {
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 10px;
}

.home-shell .poll-options {
  display: grid;
  gap: 8px;
}

.home-shell .poll-option {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--stroke);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}

.home-shell .poll-option.is-selected {
  border-color: rgba(67, 97, 238, 0.55);
  background: rgba(67, 97, 238, 0.08);
}

.home-shell .poll-option input[type="radio"] {
  margin: 0;
}

.home-shell .poll-option-text {
  font-weight: 700;
  color: var(--text-strong);
}

.home-shell .poll-option-count,
.home-shell .poll-percent {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-soft);
}

.home-shell .poll-progress {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.home-shell .poll-progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4361ee, #3a0ca3);
  transition: width .25s ease;
}

.home-shell .poll-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.home-shell .poll-total {
  font-size: 0.78rem;
  color: var(--text-soft);
  font-weight: 700;
}

.home-shell .poll-msg {
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 8px;
}

.home-shell .poll-msg.ok { color: #15803d; }
.home-shell .poll-msg.err { color: #b91c1c; }

html[data-theme="dark"] .home-shell .poll-block {
  background: rgba(67, 97, 238, 0.14);
}

@media (min-width: 768px) {
  .home-shell .sponsors-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .home-shell .sponsor-thumb {
    height: 86px;
  }
}

@media (max-width: 768px) {
  .home-shell {
    padding: 0 8px 0;
    margin-top: -8px;
  }
  .home-shell .section-container {
    padding: 10px 8px;
  }
  .home-shell .stat-number {
    font-size: 0.86rem;
  }
  .home-shell .stat-label {
    font-size: 0.58rem;
  }
  .home-shell .stat-icon {
    font-size: 0.88rem;
  }
  .home-shell .poll-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===== Auth Pages (login / uye-ol) ===== */
.auth-shell {
  width: 100%;
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.08), rgba(6, 182, 212, 0.06));
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 10px 0;
  margin-top: 0;
}

html[data-theme="dark"] .auth-shell {
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.16), rgba(6, 182, 212, 0.12));
}

body.auth-page .app-content.fullscreen-centered {
  display: block;
  min-height: auto;
  padding-top: calc(var(--app-head-height) + var(--app-content-gap-desktop) + var(--ui-gap)) !important;
  padding-bottom: 0 !important;
}

body.auth-page .floating-nav {
  display: none !important;
}

body.auth-no-scroll {
  overflow-y: hidden;
}

@media (max-width: 768px) {
  body.auth-page .app-content.fullscreen-centered {
    padding-top: calc(var(--app-head-height) + var(--app-content-gap-mobile) + var(--ui-gap)) !important;
  }
}

.auth-shell-login {
  width: 100%;
  padding-top: 0;
  padding-bottom: 0;
}

/* Auth page fine-tuning: consistent rhythm and no clipping under header */
body.auth-page .auth-shell {
  margin-top: 0 !important;
  padding: var(--ui-gap) !important;
}

body.auth-page .auth-shell .container-fluid {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.auth-page .auth-shell .row.g-3 {
  --bs-gutter-x: var(--ui-gap);
  --bs-gutter-y: var(--ui-gap);
}

body.auth-page .auth-card {
  padding: max(14px, var(--ui-pad-x)) !important;
}

.auth-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
  padding: 20px;
}

.auth-shell-login .auth-card {
  min-height: 100%;
}

html[data-theme="dark"] .auth-card {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(15, 23, 42, 0.92));
}

.auth-card-register {
  padding: 22px;
}

.auth-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-logo-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #4361ee, #3a0ca3);
  box-shadow: 0 8px 18px rgba(67, 97, 238, 0.36);
  font-size: 1.2rem;
}

.auth-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--text-strong);
}

.auth-subtitle {
  font-size: 0.88rem;
  color: var(--text-soft);
  font-weight: 600;
}

.auth-form .form-label {
  font-size: 0.84rem;
  margin-bottom: 0.38rem;
}

.auth-input-group .input-group-text {
  border-radius: 12px 0 0 12px;
  border-color: var(--stroke);
  background: rgba(67, 97, 238, 0.08);
  color: var(--app-primary);
}

.auth-input-group .form-control {
  border-radius: 0 12px 12px 0;
  border-color: var(--stroke);
  min-height: 44px;
  font-weight: 600;
}

.auth-input-group .auth-pass-toggle {
  border-color: var(--stroke);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  color: var(--text-soft);
  min-width: 44px;
}

.auth-input-group .auth-pass-toggle:hover {
  color: var(--app-primary);
  background: rgba(67, 97, 238, 0.08);
}

.auth-control {
  border-radius: 12px;
  border-color: var(--stroke);
  min-height: 44px;
  font-weight: 600;
}

.auth-btn-primary,
.auth-btn-secondary {
  border-radius: 12px;
  font-weight: 700;
  min-height: 42px;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 14px 0;
}

.auth-divider:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--stroke);
}

.auth-divider span {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  color: var(--text-soft);
  background: var(--surface);
  padding: 0 10px;
}

.wizard-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wizard-step {
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.wizard-step span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid var(--stroke);
  display: grid;
  place-items: center;
  font-size: 0.83rem;
  font-weight: 800;
  color: var(--text-soft);
  background: var(--surface);
}

.wizard-step small {
  font-size: 0.66rem;
  color: var(--text-soft);
  font-weight: 700;
}

.wizard-step.active span {
  background: var(--app-primary);
  border-color: var(--app-primary);
  color: #fff;
}

.wizard-step.active small {
  color: var(--app-primary);
}

.wizard-step.done span {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.wizard-line {
  flex: 1;
  height: 2px;
  background: var(--stroke);
}

.wizard-line.done {
  background: #16a34a;
}

.wizard-panel {
  display: none;
}

.wizard-panel.active {
  display: block;
}

.auth-section-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-strong);
}

.kind-card-btn {
  width: 100%;
  min-height: 120px;
  border: 2px solid var(--stroke);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text-strong);
  padding: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.kind-card-btn:hover {
  border-color: var(--app-primary);
  transform: translateY(-1px);
}

.kind-card-btn.selected {
  border-color: var(--app-primary);
  box-shadow: 0 8px 20px rgba(67, 97, 238, 0.18);
  background: rgba(67, 97, 238, 0.08);
}

.kind-card-btn .kind-icon {
  font-size: 1.35rem;
  color: var(--app-primary);
  line-height: 1;
}

.kind-card-btn strong {
  font-size: 1rem;
  line-height: 1.15;
}

.kind-card-btn small {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

@media (max-width: 768px) {
  .kind-card-btn {
    min-height: 100px;
    padding: 10px;
  }
}

.summary-box {
  border: 1px dashed var(--stroke);
  border-radius: 12px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.02);
}

html[data-theme="dark"] .summary-box {
  background: rgba(148, 163, 184, 0.06);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--stroke);
  font-size: 0.82rem;
}

.summary-item:last-child {
  border-bottom: 0;
}

.summary-item span {
  color: var(--text-soft);
  font-weight: 700;
}

.summary-item strong {
  color: var(--text-strong);
  font-weight: 800;
  text-align: right;
  word-break: break-word;
}

.auth-legal-text {
  line-height: 1.7;
  white-space: pre-wrap;
}

.auth-info-card {
  background: linear-gradient(160deg, rgba(67, 97, 238, 0.12), rgba(6, 182, 212, 0.09));
  border: 1px solid rgba(67, 97, 238, 0.22);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
  padding: 20px;
}

.auth-info-card-register {
  position: sticky;
  top: 12px;
}

html[data-theme="dark"] .auth-info-card {
  background: linear-gradient(160deg, rgba(67, 97, 238, 0.22), rgba(6, 182, 212, 0.18));
  border-color: rgba(148, 163, 184, 0.24);
}

@media (max-width: 991.98px) {
  .auth-info-card-register {
    position: static;
  }
}

.auth-info-title {
  font-size: 1.16rem;
  font-weight: 800;
  color: var(--text-strong);
  margin-bottom: 4px;
}

.auth-info-subtitle {
  font-size: 0.84rem;
  color: var(--text-soft);
  font-weight: 600;
  margin-bottom: 14px;
}

.auth-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(67, 97, 238, 0.12);
  margin-bottom: 9px;
}

html[data-theme="dark"] .auth-feature-item {
  background: rgba(15, 23, 42, 0.42);
  border-color: rgba(148, 163, 184, 0.2);
}

.auth-feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #4361ee, #3a0ca3);
  flex-shrink: 0;
}

.auth-feature-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-strong);
}

.auth-feature-text {
  font-size: 0.78rem;
  color: var(--text-soft);
  font-weight: 600;
  line-height: 1.45;
}

.auth-note {
  font-size: 0.78rem;
  color: var(--text-soft);
  font-weight: 700;
  border-top: 1px dashed rgba(67, 97, 238, 0.24);
  padding-top: 10px;
}

@media (max-width: 991.98px) {
  body.auth-no-scroll {
    overflow-y: auto;
  }
}
.alpha-letter-btn {
  min-width: 36px;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  line-height: 1.1;
}

@media (max-width: 576px) {
  .alpha-letter-btn {
    min-width: 28px;
    padding: 0.15rem 0.35rem;
    font-size: 0.68rem;
  }
}

/* ===== Global Spacing System (mobile 5px / desktop 10px) =====
   Keeps existing max-width layout, only normalizes spacing rhythm. */
:root {
  --ui-gap: 5px;
  --ui-pad-x: 5px;
}

@media (min-width: 992px) {
  :root {
    --ui-gap: 10px;
    --ui-pad-x: 10px;
  }
}

/* Horizontal page paddings */
.main-content,
.home-shell,
.search-wrapper,
body.auth-page .container-fluid {
  padding-left: var(--ui-pad-x) !important;
  padding-right: var(--ui-pad-x) !important;
}

/* Vertical rhythm between major blocks */
.content-section,
.section-frame,
.mid-block,
.page-shell,
.auth-shell,
.site-footer-pro,
.section-search,
.section-stats,
.section-premium,
.section-vip-masters,
.section-vip-teachers,
.section-sponsors,
.section-categories {
  margin-top: var(--ui-gap) !important;
  margin-bottom: var(--ui-gap) !important;
}

/* Internal paddings for major cards/containers */
.content-section,
.section-frame,
.mid-block,
.page-shell,
.search-card,
.auth-card,
.site-footer-pro {
  padding-left: var(--ui-pad-x);
  padding-right: var(--ui-pad-x);
}








