/* ==========================================================================
   seoclevers — Global Light-Blue Theme Layer (v1.0)
   Loaded AFTER legacy stylesheets. Unifies guest pages + admin with the
   homepage identity while preserving every script feature (PHP untouched).
   Strategy: remap legacy CSS variables, then targeted surface overrides.
   ========================================================================== */

:root {
  /* ---- style.min.css (Obsidian) system ---- */
  --bg-base: #f6f9fc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-input: #fbfdfe;
  --border-color: #e7eff6;
  --border-highlight: #cde7f8;
  --primary: #8b24f3;
  --primary-hover: #751bd1;
  --primary-glow: rgba(139, 36, 243, 0.35);
  --primary-text: #ffffff;
  --text-primary: #102a43;
  --text-secondary: #3d546d;
  --text-muted: #7b90a7;
  --text-dim: #9db1c5;
  --shadow-card: 0 14px 44px rgba(139, 36, 243, 0.12);

  /* ---- smmscripts.css system ---- */
  --primary-rgb: 139, 36, 243;
  --bg-dark: #102a43;
  --bg-card-dark: #ffffff;
  --bg-input-dark: #fbfdfe;
  --border-dark: #e7eff6;
  --text-dark: #102a43;
  --text-light: #102a43;
  --text-gray: #7b90a7;
  --bg-light: #f6f9fc;
  --bg-card-light: #ffffff;
  --bg-input-light: #fbfdfe;
  --border-light: #e7eff6;

  /* ---- admin.css system (keep white base, swap yellow -> violet) ---- */
  --admin-yellow: #8b24f3;
  --admin-yellow-hover: #751bd1;
  --admin-yellow-dark: #6519cf;
  --admin-yellow-light: #f5f0ff;
  --admin-yellow-glow: rgba(139, 36, 243, 0.35);
  --admin-primary: #8b24f3;
  --admin-primary-hover: #751bd1;
  --admin-primary-text: #ffffff;
}

/* ============ shared light surfaces (both guest systems) ============ */
body {
  background-color: #f6f9fc !important;
  color: #102a43 !important;
}
body h1, body h2, body h3, body h4, body h5, body h6 { color: #102a43 !important; }
body a { color: inherit; }

/* headers -> white */
.site-header,
.guest .header-wrapper {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid #e7eff6 !important;
  box-shadow: 0 4px 22px rgba(16, 42, 67, 0.06) !important;
  backdrop-filter: none !important;
  border-radius: 0 !important;
}
.brand-logo, .guest .navbar-brand { color: #102a43 !important; }
.brand-logo > span:first-child {
  background: linear-gradient(120deg, #8b24f3, #6519cf) !important;
  color: #ffffff !important;
}
.brand-logo span span, .brand-logo div span { color: #8b24f3 !important; }
.nav-link { color: #3d546d !important; }
.nav-link:hover, .nav-link.active { color: #8b24f3 !important; background: rgba(139, 36, 243, 0.12) !important; }

/* buttons -> violet */
.btn-primary,
.btn-gold,
.btn-signin-pill,
.guest .nav-signup a {
  background: linear-gradient(120deg, #8b24f3, #6519cf) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(139, 36, 243, 0.35) !important;
  border: none !important;
}
.btn-primary:hover, .btn-gold:hover, .btn-signin-pill:hover { transform: translateY(-2px); }
.btn-secondary { background: #102a43 !important; color: #ffffff !important; border-color: #102a43 !important; }
.btn-outline { background: #ffffff !important; border: 1px solid #e7eff6 !important; color: #102a43 !important; }
.btn-outline:hover { border-color: #8b24f3 !important; color: #8b24f3 !important; background: #ffffff !important; }

/* cards / forms -> white */
.card, .card-border {
  background: #ffffff !important;
  border: 1px solid #eef4fa !important;
  box-shadow: 0 14px 44px rgba(31, 179, 240, 0.12) !important;
}
input, select, textarea { background-color: #fbfdfe !important; border-color: #e7eff6 !important; color: #102a43 !important; }

/* smmscripts guest footer -> light */
body.guest { background: #f6f9fc !important; }
.guest footer, footer {
  background-color: #ffffff !important;
  color: #102a43 !important;
  border-top: 1px solid #e7eff6 !important;
}
.guest .footer-banner, .footer-banner {
  background: linear-gradient(135deg, #1aa5ec, #5fd0ff) !important;
  color: #ffffff !important;
  box-shadow: 0 25px 60px rgba(31, 179, 240, 0.35) !important;
}
.guest .footer-banner h5, .footer-banner h5,
.guest .footer-banner a, .footer-banner a { color: #ffffff !important; }

/* ============ error pages (403/404/500) ============ */
body .error-card {
  background: #ffffff !important;
  border: 1px solid #eef4fa !important;
  box-shadow: 0 14px 44px rgba(31, 179, 240, 0.12) !important;
}
/* ============ auth-card pages (forgot / reset / verify) ============ */
body .auth-card {
  background: #ffffff !important;
  border: 1px solid #eef4fa !important;
  box-shadow: 0 14px 44px rgba(139, 36, 243, 0.12) !important;
}
body .auth-card::before { background: linear-gradient(90deg, #8b24f3, #6519cf, #8b24f3) !important; }
body .auth-logo i, body .auth-logo span { color: #8b24f3 !important; }
body .auth-header p, body .auth-footer { color: #7b90a7 !important; }
body .form-group label { color: #102a43 !important; }
body .form-control { background: #fbfdfe !important; border-color: #e7eff6 !important; color: #102a43 !important; }
body .form-control:focus { border-color: #8b24f3 !important; box-shadow: 0 0 0 3px rgba(139, 36, 243, 0.15) !important; }
body .btn-submit {
  background: linear-gradient(120deg, #8b24f3, #6519cf) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 25px rgba(139, 36, 243, 0.35) !important;
}
body .auth-link { color: #8b24f3 !important; }

/* ============ admin accents (sidebar / pills / buttons) ============ */
.admin-sidebar .nav-item.active,
.admin-nav-item.active,
.admin-menu-item.active,
.admin-sidebar .nav-item.active a,
.admin-nav-item.active a,
.admin-menu-item.active a {
  background: linear-gradient(135deg, #0284c7, #0ea5e9) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border-inline-start: 3px solid #0369a1 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
}
.admin-sidebar .nav-item.active a i,
.admin-nav-item.active a i,
.admin-menu-item.active a i {
  color: #ffffff !important;
}

.admin-layout .btn-primary,
.admin-layout button.btn-primary,
.admin-layout a.btn-primary,
.admin-btn-primary, .btn-admin-primary,
.admin-sidebar .logout-btn {
  background: linear-gradient(135deg, #0284c7, #0ea5e9) !important;
  color: #ffffff !important;
  border: 1px solid #0284c7 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3) !important;
}
.admin-layout .btn-primary:hover,
.admin-layout button.btn-primary:hover,
.admin-layout a.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1, #0284c7) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4) !important;
}

.admin-layout .badge-role {
  background: linear-gradient(135deg, #0284c7, #0ea5e9) !important;
  color: #ffffff !important;
  border: 1px solid #0284c7 !important;
}

.admin-layout .admin-sidebar-user-avatar {
  background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
  color: #ffffff !important;
}

.admin-layout .admin-sidebar-user-role {
  color: #0284c7 !important;
}

.admin-layout .profit-card::after {
  background: linear-gradient(90deg, #0284c7, #38bdf8) !important;
}

.badge-yellow, .badge-gold, .pill-yellow { background: #e0f2fe !important; color: #0284c7 !important; }
.admin-brand-logo {
  background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
  color: #ffffff !important;
}
.admin-brand-accent { color: #0284c7 !important; }

/* ============ auth pages (login / register page-level styles) ============ */
#login-sec .btn-login-submit, #signup-sec .btn-register-submit {
  background: linear-gradient(120deg, #8b24f3, #6519cf) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 30px rgba(139, 36, 243, 0.35) !important;
}
#login-sec .btn-login-submit:hover, #signup-sec .btn-register-submit:hover {
  background: linear-gradient(120deg, #7c1ee0, #5414ad) !important;
  transform: translateY(-2px);
}
#login-sec .input-icon, #signup-sec .input-icon { background-color: var(--input, #19191e) !important; color: var(--primary, #8b24f3) !important; }
#login-sec .input-icon i, #signup-sec .input-icon i { color: var(--primary, #8b24f3) !important; }
#login-sec .input-icon svg, #signup-sec .input-icon svg,
#login-sec .input-icon svg path, #signup-sec .input-icon svg path { fill: var(--primary, #8b24f3) !important; color: var(--primary, #8b24f3) !important; }
#login-sec .form-group.v2 .form-control:focus, #signup-sec .form-group.v2 .form-control:focus {
  border-color: #8b24f3 !important;
  box-shadow: 0 0 0 3px rgba(139, 36, 243, 0.15) !important;
}
#login-sec nav a[href="register.php"], #signup-sec nav a[href="login.php"] { color: var(--primary, #8b24f3) !important; }

/* ============ smmscripts guest header (login/register/terms/...) ============ */
.guest .lang-button, #login-sec .lang-button, #signup-sec .lang-button {
  background: var(--card, #202024) !important;
  color: var(--text, #ffffff) !important;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08)) !important;
  border-radius: 999px !important;
}
.guest .navbar-brand { color: var(--text, #ffffff) !important; }
.guest .navbar-brand span.brand-logo-icon {
  background: linear-gradient(120deg, #8b24f3, #6519cf) !important;
  color: #ffffff !important;
}
.guest .navbar-brand span.highlight { color: #8b24f3 !important; }
.guest .navbar-nav > li > a { color: var(--muted, #b1adb9) !important; }
.guest .navbar-nav > li > a:hover { color: #8b24f3 !important; }
.guest .navbar-nav > li.active > a { color: #8b24f3 !important; }
.guest .navbar-nav > li.btn-signup-link > a,
.guest .navbar-nav > li.nav-signup > a {
  background: linear-gradient(120deg, #8b24f3, #6519cf) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  padding: 8px 22px !important;
  text-shadow: none !important;
  box-shadow: 0 8px 20px rgba(139, 36, 243, 0.35) !important;
}
.guest .navbar-nav > li.btn-signup-link > a:hover,
.guest .navbar-nav > li.nav-signup > a:hover { color: #ffffff !important; text-shadow: none !important; }
.guest .lang-button:hover { background: rgba(139, 36, 243, 0.12) !important; color: #8b24f3 !important; border-color: #8b24f3 !important; }
.guest .dropdown-menu-lang { background: var(--card, #202024) !important; border: 1px solid var(--border, rgba(255, 255, 255, 0.08)) !important; }
.guest .dropdown-menu-lang a { color: var(--text, #ffffff) !important; }
.guest .dropdown-menu-lang a:hover { background: rgba(139, 36, 243, 0.12) !important; color: #8b24f3 !important; }
.guest .dropdown-menu-lang a.active,
#currDropdownMenu a.active {
  background: linear-gradient(120deg, #8b24f3, #6519cf) !important;
  color: #ffffff !important;
}
.guest .dropdown-menu-lang a.active span,
#currDropdownMenu a.active span,
.guest .dropdown-menu-lang a.active span:first-child,
#currDropdownMenu a.active span:first-child,
.guest .dropdown-menu-lang a.active span:last-child,
#currDropdownMenu a.active span:last-child {
  color: #ffffff !important;
  font-weight: 800 !important;
}
.guest #currDropdownBtn, #currDropdownBtn { color: #8b24f3 !important; }
.guest #currDropdownBtn span, #currDropdownBtn span { color: #8b24f3 !important; }
.guest #currDropdownBtn i, #currDropdownBtn i { color: #8b24f3 !important; }
#currDropdownMenu a:not(.active) span:last-child { color: #8b24f3 !important; }
#currDropdownMenu a:not(.active) span:first-child { color: #ffffff !important; }
#currDropdownMenu a:hover { background: rgba(139, 36, 243, 0.15) !important; color: #ffffff !important; }
#currDropdownMenu a:hover span { color: #ffffff !important; }

/* smmscripts footer logo + socials on light footer */
footer .navbar-brand > span[style*="background"] {
  background: linear-gradient(120deg, #8b24f3, #6519cf) !important;
  color: #ffffff !important;
}
footer .navbar-brand > span:not([style*="background"]) { color: var(--text, #ffffff) !important; }
footer .social-links a { background: rgba(139, 36, 243, 0.12) !important; color: #8b24f3 !important; border-color: transparent !important; }

/* ============ PWA install banner (legacy widget) ============ */
#smmPwaBanner {
  background: var(--card, #202024) !important;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08)) !important;
  border-top: 3px solid #8b24f3 !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
}
#smmPwaBanner [style*="color: #FFF"],
#smmPwaBanner [style*="color: #fff"] { color: var(--text, #ffffff) !important; }
#smmPwaBanner [style*="color: #94A3B8"] { color: var(--muted, #b1adb9) !important; }
#smmPwaBanner [style*="background: #000"],
#smmPwaBanner [style*="background:#000"] {
  background: linear-gradient(120deg, #8b24f3, #6519cf) !important;
  border-color: #8b24f3 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(139, 36, 243, 0.3) !important;
}
#smmPwaInstallBtn {
  background: linear-gradient(120deg, #8b24f3, #6519cf) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(139, 36, 243, 0.3) !important;
}
#smmPwaDismissBtn { background: rgba(255, 255, 255, 0.08) !important; color: var(--muted, #b1adb9) !important; }

/* ============ blog / faq (style.min system extras) ============ */
.blog-hero {
  background: linear-gradient(135deg, rgba(139, 36, 243, 0.14), rgba(139, 36, 243, 0.04)) !important;
  border-color: var(--border, rgba(255, 255, 255, 0.08)) !important;
}
.site-header select { background: var(--card, #202024) !important; color: var(--text, #ffffff) !important; border-color: var(--border, rgba(255, 255, 255, 0.08)) !important; }
.pill-active {
  background: linear-gradient(120deg, #8b24f3, #6519cf) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}
.blog-card { background: var(--card, #202024) !important; border: 1px solid var(--border, rgba(255, 255, 255, 0.08)) !important; }
.blog-card a { color: var(--text, #ffffff) !important; }

/* ============ Universal Safety Rules (Eliminate any yellow remnant) ============ */
[style*="color: #FFE600"], [style*="color:#FFE600"],
[style*="color: #FDF001"], [style*="color:#FDF001"],
[style*="color: #ffd700"], [style*="color:#ffd700"] {
  color: #8b24f3 !important;
}

[style*="background: #FFE600"], [style*="background:#FFE600"],
[style*="background-color: #FFE600"], [style*="background-color:#FFE600"],
[style*="background: #FDF001"], [style*="background:#FDF001"],
[style*="background-color: #FDF001"], [style*="background-color:#FDF001"] {
  background: linear-gradient(120deg, #8b24f3, #6519cf) !important;
  background-color: #8b24f3 !important;
  color: #ffffff !important;
}

[style*="border-color: #FFE600"], [style*="border-color:#FFE600"],
[style*="border: 1.5px dashed #FFE600"], [style*="border: 1px dashed #FFE600"] {
  border-color: #8b24f3 !important;
}

/* User Panel Currency & Gold Highlights */
.curr-gold, .currency-gold, .text-gold, .gold-text {
  color: #8b24f3 !important;
}

.btn-pill-yellow, .tab-pill-yellow, .badge-gold {
  background: linear-gradient(120deg, #8b24f3, #6519cf) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(139, 36, 243, 0.25) !important;
}
.btn-pill-yellow:hover, .tab-pill-yellow:hover {
  background: linear-gradient(120deg, #7c1ee0, #5414ad) !important;
  color: #ffffff !important;
}

/* ==============================================================================
   Master Universal Responsive System for All Devices (Mobile, Tablet, Desktop)
   ============================================================================== */

/* Viewport & Body Safe Scaling */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img, svg, video, canvas, iframe {
  max-width: 100%;
  height: auto;
}

/* Universal Data Tables Mobile Scroller */
.table-responsive {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  display: block !important;
  margin-bottom: 16px;
  scrollbar-width: thin;
}

/* Global iOS Safari Auto-Zoom Fix (font-size < 16px causes viewport zoom on iOS) */
@media (max-width: 768px) {
  input, select, textarea, .form-control, .form-select {
    font-size: 16px !important;
  }
}

/* Guest & Public Header Responsive Navbar */
@media (max-width: 991px) {
  .guest .navbar.navbar-default {
    padding: 12px 0 10px;
  }
  .guest .header-wrapper {
    padding: 10px 18px !important;
    border-radius: 18px !important;
    gap: 12px;
  }
  .navbar-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(139, 36, 243, 0.12) !important;
    color: #8b24f3 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .navbar-toggle:hover {
    background: rgba(139, 36, 243, 0.22) !important;
    transform: scale(1.05);
  }
  .guest .navbar-collapse {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 15px;
    right: 15px;
    background: #ffffff !important;
    border: 1px solid #e7eff6 !important;
    border-radius: 20px !important;
    padding: 18px 20px !important;
    box-shadow: 0 18px 45px rgba(16, 42, 67, 0.15) !important;
    z-index: 9999 !important;
  }
  .guest .navbar-collapse.show {
    display: block !important;
    animation: guestNavSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  @keyframes guestNavSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .guest .navbar-nav {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .guest .navbar-nav > li > a {
    color: #102a43 !important;
    font-weight: 700 !important;
    padding: 10px 14px !important;
    border-radius: 10px;
    display: block !important;
    text-align: center;
  }
  .guest .navbar-nav > li > a:hover,
  .guest .navbar-nav > li.active > a {
    color: #8b24f3 !important;
    background: rgba(139, 36, 243, 0.12) !important;
    font-weight: 800 !important;
  }
  .guest .navbar-nav > li.btn-signup-link > a,
  .guest .navbar-nav > li.nav-signup > a {
    background: linear-gradient(120deg, #8b24f3, #6519cf) !important;
    color: #ffffff !important;
    text-align: center;
    margin-top: 6px;
    box-shadow: 0 4px 15px rgba(139, 36, 243, 0.35) !important;
  }
}

/* Auth Pages Responsive (Sign In & Sign Up) */
@media (max-width: 768px) {
  #login-sec, #signup-sec {
    padding: 30px 0 60px !important;
  }
  #login-sec h1, #signup-sec h1 {
    font-size: 32px !important;
    margin-bottom: 10px !important;
    letter-spacing: -0.3px;
  }
  #login-sec p.login-sub, #signup-sec p.signup-sub {
    font-size: 15px !important;
    margin-bottom: 24px !important;
    line-height: 1.6;
  }
  .login-card-container, .signup-card-container {
    padding: 0 14px !important;
    max-width: 100% !important;
  }
  .form-group.v2 .form-control {
    height: 52px !important;
    font-size: 16px !important;
    border-radius: 16px !important;
  }
  .btn-login-submit, .btn-register-submit {
    height: 52px !important;
    font-size: 16px !important;
    border-radius: 16px !important;
  }
  .input-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 16px !important;
    border-radius: 10px !important;
  }
}

@media (max-width: 480px) {
  #login-sec h1, #signup-sec h1 {
    font-size: 26px !important;
  }
  #login-sec p.login-sub, #signup-sec p.signup-sub {
    font-size: 13.5px !important;
  }
  .guest .header-wrapper {
    padding: 8px 12px !important;
  }
  .auth-card {
    padding: 24px 18px !important;
    max-width: 94vw !important;
    border-radius: 16px !important;
  }
  .auth-wrapper {
    padding: 20px 10px !important;
  }
}

/* Public Policy Pages (Refund, Terms, Privacy, FAQ, Blog) */
@media (max-width: 768px) {
  .terms-hero, .refund-hero, .privacy-hero, .blog-hero {
    padding: 35px 0 25px !important;
  }
  .terms-hero-title, .refund-hero-title, .privacy-hero-title {
    font-size: 28px !important;
    line-height: 1.3 !important;
  }
  .terms-hero-desc, .refund-hero-desc, .privacy-hero-desc {
    font-size: 14.5px !important;
    margin-bottom: 18px !important;
  }
  .term-card, .refund-card, .policy-card {
    padding: 22px 18px !important;
    border-radius: 18px !important;
    margin-bottom: 20px !important;
  }
  .term-header, .refund-header {
    gap: 12px !important;
    margin-bottom: 16px !important;
  }
  .term-title, .refund-title {
    font-size: 18px !important;
  }
  .term-body, .refund-body {
    font-size: 14px !important;
    line-height: 1.8 !important;
  }
  .terms-meta-strip, .refund-meta-strip, .privacy-meta-strip {
    gap: 10px !important;
  }
  .meta-item {
    font-size: 12px !important;
    padding: 5px 10px !important;
  }
  .terms-cta-card {
    padding: 24px 18px !important;
    border-radius: 18px !important;
  }
  .btn-cta-wa, .btn-cta-ticket {
    width: 100% !important;
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .terms-hero-title, .refund-hero-title, .privacy-hero-title {
    font-size: 24px !important;
  }
  .term-card, .refund-card, .policy-card {
    padding: 18px 14px !important;
    border-radius: 14px !important;
  }
  .terms-hero-badge, .refund-hero-badge, .privacy-hero-badge {
    font-size: 11.5px !important;
    padding: 5px 14px !important;
  }
}

/* Public pages (blog, faq, etc.) mobile nav-actions & card padding */
@media (max-width: 768px) {
  .site-header .nav-actions {
    gap: 6px !important;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .site-header .nav-actions .btn-sm {
    padding: 6px 10px !important;
    font-size: 12px !important;
  }
  .site-header .nav-actions select {
    padding: 5px 8px !important;
    font-size: 12px !important;
  }
  .card[style*="padding: 40px"],
  .card[style*="padding:40px"] {
    padding: 22px 16px !important;
    border-radius: 16px !important;
  }
  main.container {
    padding: 30px 14px !important;
  }
}


