/* =================================================================== */
/* === THEME VARIABLES === */
/* =================================================================== */
:root {
  /* -- Light Mode -- */
  --background-color: #f0f2f5;
  --card-bg: #ffffff;
  --text-color: #1c1e21;
  --glow-border-color: #1a237e; /* Blue */
  --header-text: #1a237e;
  --input-border-color: #ccc;
  --primary-button-bg: #1a237e;
  --primary-button-text: #ffffff;
  --accent-color: #007bff;
  --primary-color: #f1c40f; /* For primary CTAs */
}

body.dark-mode {
  /* -- Dark Mode -- */
  --background-color: #1a1c2b;
  --card-bg: #232539;
  --text-color: #f1c40f;
  --glow-border-color: #f1c40f; /* Golden */
  --header-text: #f1c40f;
  --input-border-color: #555;
  --primary-button-bg: #f1c40f;
  --primary-button-text: #1a1c2b;
  --accent-color: #f1c40f;
}

/* =================================================================== */
/* === GLOBAL RESET & FONT SETUP === */
/* =================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}
/* ============================================
   GLOBAL TYPOGRAPHY
   ============================================ */

/* Smooth rendering on most browsers */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Base font: Poppins for all regular text */
body, input, button, textarea, select {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

/* Headings: BIZ UDPMincho for premium look */
h1, h2, h3, h4, h5, h6 {
  font-family: "BIZ UDPMincho", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Typography scale */
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
h6 { font-size: 13px; }

small {
  font-size: 12px;
}

p { line-height: 1.6; }


/* =================================================================== */
/* === CORE APP LAYOUT (HEADER, MAIN, FOOTER) === */
/* =================================================================== */
#app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body[data-page-type="app"] #app-container {
  height: 100vh;
}
body[data-page-type="app"], body[data-page-type="centered"] {
  overflow: hidden;
}

header {
  flex-shrink: 0;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  background-color: var(--card-bg);
  color: var(--header-text);
  border-bottom: 2px solid var(--glow-border-color);
  z-index: 10;
}

main {
  flex-grow: 1;
}
body[data-page-type="app"] main {
  display: flex;
  gap: 20px;
  padding: 20px;
  overflow: hidden;
}
body[data-page-type="centered"] main {
  display: flex;
  gap: 40px;
  padding: 20px;
  overflow: auto;
  justify-content: center;
  align-items: center;
}
body[data-page-type="scrolling"] main {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding: 40px 20px;
}
body[data-page-type="scrolling-full"] main {
    overflow-y: auto;
    padding: 30px;
}

footer {
  flex-shrink: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  background-color: var(--card-bg);
  color: var(--header-text);
  border-top: 2px solid var(--glow-border-color);
}
/* =================================================================== */
/* === ANALYTICS PAGE SPECIFIC STYLES (Scoped) === */
/* =================================================================== */
body[data-page-id="analytics"] .analytics-title {
  font-family: 'BIZ UDPMincho', serif;
  font-size: 2em;
  margin-bottom: 20px;
}

body[data-page-id="analytics"] .analytics-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

body[data-page-id="analytics"] .analytics-card {
  flex: 1;
  min-width: 180px;
  background: var(--background-color);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--glow-border-color);
}

body[data-page-id="analytics"] .analytics-card h2 {
  font-size: 2.5rem;
  margin-bottom: 5px;
  color: var(--glow-border-color);
}

body[data-page-id="analytics"] .analytics-card p {
  font-size: 1rem;
  margin: 0;
}

body[data-page-id="analytics"] .date-filter {
  margin: 20px 0 10px 0;
  display: flex;
  gap: 10px;
}

body[data-page-id="analytics"] .date-filter-btn {
  background: var(--background-color);
  border: 1px solid var(--glow-border-color);
  color: var(--glow-border-color);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

body[data-page-id="analytics"] .date-filter-btn.active {
  background: var(--glow-border-color);
  color: var(--card-bg);
}

body[data-page-id="analytics"] .analytics-graph {
  margin-bottom: 40px;
}

body[data-page-id="analytics"] .top-content {
  margin-bottom: 40px;
}

body[data-page-id="analytics"] .top-reels-list {
  list-style: none;
  padding: 0;
}

body[data-page-id="analytics"] .reel-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--background-color);
  border: 1px solid var(--glow-border-color);
}

body[data-page-id="analytics"] .reel-item img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
}

body[data-page-id="analytics"] .reel-item-info h4 {
  margin: 0 0 5px 0;
}

body[data-page-id="analytics"] .reel-item-info p {
  margin: 0;
  font-size: 0.9rem;
}

body[data-page-id="analytics"] .demographics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

body[data-page-id="analytics"] .demographics-card {
  text-align: center;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ✅ Fix chart stretching */
body[data-page-id="analytics"] .demographics-card canvas {
  width: 100% !important;
  height: auto !important;
  max-height: 300px;
}

body[data-page-id="analytics"] .analytics-content {
  width: 100%;
  padding: 0 30px;     /* breathing gap */
  margin: 0 auto;
  box-sizing: border-box;
}

body[data-page-id="analytics"] .admin-tools-container {
  flex: 1.5;
}

body[data-page-id="analytics"] .calendar-main-container {
  flex: 1;
}

body[data-page-id="analytics"] .careers-content-box {
  flex: 1;
  padding: 25px 40px;
}

/* =================================================================== */
/* === HEADER & FOOTER CONTENT (patched) === */
/* =================================================================== */

header {
  display: flex;
  justify-content: space-between; /* push left and right apart */
  align-items: center;
  padding: 0 1rem;
}

.header-left,
.header-right,
.footer-left,
.footer-center,
.footer-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto; /* 🔥 ensure header buttons stick to far right */
}

.header-right a,
.footer-center a,
.header-right button {
  color: var(--header-text);
  text-decoration: none;
  border: 1px solid var(--header-text);
  background: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.header-right a:hover,
.footer-center a:hover,
.header-right button:hover {
  background-color: var(--header-text);
  color: var(--card-bg);
}

.header-left img {
  height: 36px;
  border-radius: 50%;
}

.footer-left img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

#welcome-message {
  font-weight: 500;
}

.live-clock {
  font-weight: 500;
  font-size: 1rem;
}

.header-tagline {
  font-size: 1rem;
  opacity: 0.8;
  color: var(--header-text);
}

.icon-btn {
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
}

#admin-link {
  display: none;
}


/* =================================================================== */
/* === UNIVERSAL ELEMENTS & COMPONENTS === */
/* =================================================================== */
.content-box {
  background-color: var(--card-bg);
  border: 2px solid var(--glow-border-color);
  border-radius: 12px;
  padding: 25px;
  overflow-y: auto;
  min-width: 0; /* Make sure this line is here */
}
.btn {
  font-weight: bold;
  display: inline-block;
  cursor: pointer;
  border-radius: 6px;
  text-decoration: none;
  border:none;
  background-color: var(--glow-border-color);
  color: var(--card-bg);
  padding: 8px 16px;
}
.btn.btn-primary {
    background-color: var(--primary-color);
    color: #1a1c2b;
}
.btn.btn-large {
    padding: 14px 30px;
    font-size: 1rem;
}
.btn.btn-xlarge {
    padding: 16px 35px;
    font-size: 1.1rem;
}
.btn.btn-full-width {
  width: 100%;
}

/* Specific flex behavior for main content areas */
.illustration-box { flex: 1; min-width: 300px; display:flex; align-items:center; justify-content:center; padding: 10px; }
.settings-box { flex: 1.5; }
.tips-box { flex: 1; }
.wizard-container { flex: 1; padding: 30px; }
.admin-container { flex: 2.5; }
.admin-tools-container { flex: 1.5; }
.analytics-content { flex: 2.5; }
.calendar-main-container { flex: 1; }
.careers-content-box { flex: 1; padding: 25px 40px; }
.connect-container { flex: 1.5; }
.policy-content-container { flex: 2; }
.dashboard-content-box { flex: 1.5; }
.lucky-draw-box { flex: 1.2; padding: 0; overflow: hidden; }
.downloads-container { flex: 2; }
.metrics-container { flex: 1.5; }
.notification-panel { flex: 1.5; display: flex; flex-direction: column; }
.onboarding-main-container { flex: 1; }
.course-content-box { flex: 1; }
.template-main-container { flex: 1; }

.illustration-box img { max-width: 100%; height: auto; display: block; object-fit: contain; border-radius: 12px; }

.text-center {
  text-align: center;
}

/* =================================================================== */
/* === SOCIAL MEDIA ICONS (Font Awesome) === */
/* =================================================================== */

/* Wrapper + label */
.socials-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.connect-prompt {
    font-size: 0.85rem;
    color: var(--header-text);
    opacity: 0.85;
    margin-right: 0.15rem;
}

/* Base icon button */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease,
        opacity 0.2s ease;
}

.social-link i {
    font-size: 0.9rem;
}

/* ===== DARK THEME ===== */
:root[data-theme="dark"] .social-link {
    background: #020617;
    color: #e5e7eb;
    border: 1px solid #1e293b;
    opacity: 0.85;
}

:root[data-theme="dark"] .social-link:hover {
    opacity: 1;
    transform: translateY(-1px) scale(1.08);
    background: radial-gradient(circle at 30% 0, rgba(129, 140, 248, 0.5), #020617);
    box-shadow:
        0 0 0 1px rgba(129, 140, 248, 0.6),
        0 0 18px rgba(129, 140, 248, 0.55);
}

/* Optional brand-specific glow */
:root[data-theme="dark"] .social-link[title="Instagram"]:hover {
    box-shadow:
        0 0 0 1px rgba(236, 72, 153, 0.7),
        0 0 18px rgba(236, 72, 153, 0.6);
}

:root[data-theme="dark"] .social-link[title="Facebook"]:hover {
    box-shadow:
        0 0 0 1px rgba(59, 130, 246, 0.7),
        0 0 18px rgba(59, 130, 246, 0.6);
}

:root[data-theme="dark"] .social-link[title="Twitter"]:hover {
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.7),
        0 0 18px rgba(56, 189, 248, 0.6);
}

:root[data-theme="dark"] .social-link[title="LinkedIn"]:hover {
    box-shadow:
        0 0 0 1px rgba(37, 99, 235, 0.7),
        0 0 18px rgba(37, 99, 235, 0.6);
}

:root[data-theme="dark"] .social-link[title="YouTube"]:hover {
    box-shadow:
        0 0 0 1px rgba(248, 113, 113, 0.8),
        0 0 18px rgba(248, 113, 113, 0.7);
}

/* ===== LIGHT THEME ===== */
:root[data-theme="light"] .social-link {
    background: #ffffff;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    opacity: 0.9;
}

:root[data-theme="light"] .social-link:hover {
    opacity: 1;
    transform: translateY(-1px) scale(1.05);
    background: #f3f4f6;
    box-shadow:
        0 0 0 1px rgba(59, 130, 246, 0.35),
        0 0 14px rgba(148, 163, 184, 0.45);
}


/* =================================================================== */
/* === AUTHENTICATION PAGE (SIGNUP/LOGIN) SPECIFIC STYLES === */
/* =================================================================== */
.logo-container, .login-box {
    flex: 1;
    max-width: 480px;
    height: 520px;
    box-sizing: border-box;
}
.logo-container { display: flex; align-items: center; justify-content: center; }
.logo-container img { max-width: 80%; height: auto; }


/* =================================================================== */
/* === INDEX (LANDING) PAGE SPECIFIC STYLES === */
/* =================================================================== */

/* --- General Section Styling --- */
.landing-main {
  /* This overrides the default main styles for a clean slate */
  display: block;
  padding: 0;
  overflow: visible;
}

.landing-section {
  padding: 60px 20px; /* Default padding for all sections */
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: 'BIZ UDPMincho', serif;
  font-size: clamp(2rem, 5vw, 2.8rem); /* Responsive font size */
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-color);
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 120px; /* Extra padding to account for fixed header/promo */
  padding-bottom: 80px;
  background-color: var(--background-color);
}
.hero-image {
  max-width: 250px;
  margin-bottom: 20px;
}
.hero-title {
  font-family: 'BIZ UDPMincho', serif;
  font-size: clamp(2.5rem, 8vw, 4rem);
  color: var(--glow-border-color);
  margin-bottom: 15px;
  line-height: 1.2;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 650px;
  margin: 0 auto 30px auto;
  line-height: 1.7;
  opacity: 0.9;
}
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to stack on very small screens */
}
.secondary-cta {
  color: var(--glow-border-color);
  text-decoration: underline;
  font-weight: 500;
}

/* --- Features Section --- */
.features {
  background-color: var(--card-bg);
}
.features-grid {
  display: grid;
  gap: 30px;
  /* Mobile: Single column by default */
  grid-template-columns: 1fr;
}
.feature-card {
  text-align: center;
  padding: 25px;
  background-color: var(--background-color);
  border: 1px solid var(--input-border-color);
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.feature-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 600;
}

/* --- Testimonials Section --- */
.testimonials-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
}
.testimonial-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--input-border-color);
  display: flex;
  flex-direction: column;
}
.testimonial-quote {
  flex-grow: 1;
  font-style: italic;
  opacity: 0.9;
  margin-bottom: 20px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}
.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--glow-border-color);
  color: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.author-name {
  margin: 0;
  font-weight: 600;
}
.author-title {
  opacity: 0.8;
  font-size: 0.9rem;
}

/* --- Final CTA Section --- */
.final-cta {
  background-color: var(--glow-border-color);
  text-align: center;
}
.final-cta .section-title {
  color: var(--card-bg);
}

/* --- Desktop Layout Adjustments --- */
@media (min-width: 768px) {
  .features-grid {
    /* 2 columns on tablets, up to 5 on wide desktops */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

/* --- Fix for Promo Bar Height --- */
.promo-bar {
  height: auto !important;
  overflow: visible !important;
}
.promo-bar .promo-line-2 {
  display: block !important;
  height: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.promo-bar {
  background-color: var(--glow-border-color);
  color: var(--card-bg);
  text-align: center; /* This line centers the text */
  padding: 10px;
  font-weight: 500;
}
/* =================================================================== */
/* === ACCOUNT SETTINGS PAGE SPECIFIC STYLES === */
/* =================================================================== */
.settings-box h2 { font-size: 1.8em; margin-bottom: 25px; color: var(--glow-border-color); }
.settings-box p { margin-bottom: 15px; font-size: 1rem; }
.settings-box h3 { font-size: 1.2em; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--glow-border-color); color: var(--glow-border-color); }
.settings-box ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.connected-handles { margin-top: 10px; }
.platform-icon { width: 20px; vertical-align: middle; margin-right: 6px; }
.tips-box h3 { font-size: 1.2em; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--glow-border-color); color: var(--glow-border-color); }
.tips-box ul { list-style-type: '✅'; padding-left: 20px; }
.tips-box li { margin-bottom: 10px; }
.btn-action { background: none; border: 1px solid var(--glow-border-color); padding: 4px 10px; color: var(--glow-border-color); border-radius: 6px; cursor: pointer; font-size: 0.8rem; margin-left: 10px; }
.btn-action:hover { background: var(--glow-border-color); color: var(--card-bg); }
.edit-input { background: var(--background-color); color: var(--text-color); border: 1px solid var(--glow-border-color); border-radius: 4px; padding: 5px; }


/* =================================================================== */
/* === ACCOUNT SETUP WIZARD-SPECIFIC STYLES (FINAL & HORIZONTAL) === */
/* =================================================================== */

/* --- Progress Bar with Connecting Line --- */
.progress-bar {
  display: flex;
  justify-content: center; /* Centers the circles */
  align-items: center; 
  gap: 40px; /* Controls space between circles */
  margin-bottom: 40px;
  position: relative;
  width: fit-content; /* Wraps snugly around circles */
  margin-left: auto;
  margin-right: auto;
}

/* This is the gray background line */
.progress-bar::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 25px; /* Starts just after first circle’s edge */
  transform: translateY(-50%);
  height: 4px;
  width: calc(100% - 50px); /* Fits between circles */
  background-color: var(--input-border-color);
  z-index: 1;
}

/* This is the colored progress line */
.progress-bar::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 25px;
  transform: translateY(-50%);
  height: 4px;
  width: var(--progress-width, 0%);
  background-color: var(--glow-border-color);
  z-index: 2;
  transition: width 0.4s ease;
}

/* Corrected rule for the circular steps */
.progress-step { 
  box-sizing: border-box;
  flex: 0 0 auto; /* Prevents stretching */
  width: 50px; 
  height: 50px; /* Same as width for perfect circle */
  background-color: var(--card-bg); 
  border: 3px solid var(--input-border-color); 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  z-index: 3;
  font-weight: bold; 
  transition: all 0.4s ease; 
  color: var(--input-border-color);
}

.progress-step.active { 
  border-color: var(--glow-border-color); 
  transform: scale(1.1); 
  color: var(--glow-border-color);
}

/* --- Other Wizard Styles (Unchanged) --- */
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: slideIn 0.5s forwards; }
@keyframes slideIn { from { transform: translateX(50px); opacity: 0; } to { transform: translateX(0); opacity: 1); } }
.wizard-step h1 { margin-bottom: 10px; color: var(--header-text); }
.wizard-step > p { margin-bottom: 25px; font-size: 1.1rem; max-width: 800px; }
.options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.option-card { border: 2px solid var(--input-border-color); border-radius: 8px; cursor: pointer; }
.option-card label { display: block; padding: 20px; cursor: pointer; height: 100%; }
.option-card input { display: none; }
.option-card h3 { font-size: 1.25rem; margin-bottom: 8px; color: var(--header-text); }
.option-card input:checked + label { border-color: var(--glow-border-color); box-shadow: 0 0 15px 4px color-mix(in srgb, var(--glow-border-color) 85%, transparent); }
.wizard-nav { display: flex; justify-content: space-between; margin-top: 30px; border-top: 1px solid var(--input-border-color); padding-top: 20px; }
.wizard-nav button { padding: 10px 20px; border-radius: 8px; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; border: none; }
.wizard-nav .btn-next { background-color: var(--primary-button-bg); color: var(--primary-button-text); }
.wizard-nav .btn-back { background-color: #eee; color: #333; }

/* =================================================================== */
/* === ADMIN DASHBOARD SPECIFIC STYLES === */
/* =================================================================== */
.admin-title { font-family: 'BIZ UDPMincho', serif; font-size: 1.8em; margin-bottom: 10px; }
.admin-nav { display: flex; border-bottom: 2px solid var(--glow-border-color); margin-bottom: 20px; }
.tab-button { background: none; border: none; padding: 12px 20px; cursor: pointer; font-size: 1rem; font-weight: 500; color: var(--text-color); opacity: 0.7; border-bottom: 3px solid transparent; }
.tab-button:hover { opacity: 1; }
.tab-button.active { opacity: 1; border-bottom-color: var(--glow-border-color); }
.tab-content { display: none; animation: fadeIn 0.5s; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.charts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.chart-container { padding: 20px; border-radius: 8px; background: var(--background-color); border: 1px solid var(--glow-border-color); }
.search-bar { width: 100%; padding: 10px; margin-bottom: 15px; border-radius: 6px; border: 1px solid var(--glow-border-color); background-color: var(--background-color); color: var(--text-color); }
.user-table { width: 100%; border-collapse: collapse; }
.user-table th, .user-table td { padding: 12px; border: 1px solid var(--glow-border-color); text-align: left; }
.user-table th { background-color: var(--card-bg); }
.user-table tr:hover { background-color: rgba(128, 128, 128, 0.1); }
.user-table .btn-action { font-size: 0.8rem; padding: 5px 8px; margin-right: 5px; cursor: pointer; border-radius: 4px; border: 1px solid var(--glow-border-color); background: none; color: var(--glow-border-color); }
.user-table .btn-action.suspend { border-color: #e74c3c; color: #e74c3c; }
.counter-box { display:flex; flex-wrap:wrap; gap:16px; margin-bottom:30px; }
.counter { flex:1; min-width:180px; background:var(--background-color); padding:16px; border-radius:8px; border: 1px solid var(--glow-border-color); }


/* =================================================================== */
/* === ADMIN TOOLS PAGE SPECIFIC STYLES === */
/* =================================================================== */
.tools-title { font-family:'BIZ UDPMincho', serif; font-size:2em; margin-bottom:30px; }
.admin-tool { padding: 20px; margin-bottom: 20px; border: 1px solid var(--glow-border-color); border-radius: 8px; background-color: var(--background-color); }
.admin-tool h3 { font-family: 'BIZ UDPMincho', serif; font-size: 1.5em; margin-top: 0; padding-bottom: 10px; border-bottom: 1px solid var(--glow-border-color); }
.admin-tool .btn { margin-top: 10px; }
.admin-tool textarea, .admin-tool select, .admin-tool input[type="text"] { width: 100%; padding: 10px; margin: 10px 0; border-radius: 6px; border: 1px solid var(--glow-border-color); background-color: var(--card-bg); color: var(--text-color); font-family: 'Poppins', sans-serif; }
.admin-tool hr { margin: 20px 0; border: none; border-top: 1px solid var(--input-border-color); }
.setting-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.switch { position: relative; display: inline-block; width: 60px; height: 34px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--glow-border-color); }
input:focus + .slider { box-shadow: 0 0 1px var(--glow-border-color); }
input:checked + .slider:before { transform: translateX(26px); }
.btn-danger { background-color: #e74c3c; color: white; border: 1px solid #c03g2b; }


/* =================================================================== */
/* === CALENDAR PAGE SPECIFIC STYLES === */
/* =================================================================== */
@keyframes fallIn { to { opacity: 1; transform: translateY(0); } }
.calendar-title { font-family:'BIZ UDPMincho', serif; font-size:1.8em; text-align:center; margin-bottom:16px; }
.calendar-container { width: 100%; }
.calendar-day { display: flex; flex-direction: column; justify-content: space-between; min-height: 95px; transition: transform .2s ease, box-shadow .2s ease; padding: 10px; border-radius: 1rem; cursor: pointer; background: var(--background-color); color: var(--text-color); border: 2px solid var(--glow-border-color); box-shadow: 0 0 4px transparent; opacity: 0; transform: translateY(-30px); animation: fallIn 0.4s ease-out forwards; }
.calendar-day:hover { transform: translateY(-5px); box-shadow: 0 0 15px var(--glow-border-color); }
.day-number { font-weight: bold; font-size: 1.1rem; align-self: flex-start; }
.day-indicators { display: flex; gap: 5px; align-self: flex-end; font-size: 1.2rem; }
.calendar-day.prev-month, .calendar-day.next-month { opacity: 0.3; pointer-events: none; }
.calendar-day.dimmed { opacity: 0.2; }
.calendar-day.disabled { opacity: 0.4 !important; cursor: not-allowed; background-color: transparent !important; }
.calendar-day.disabled:hover { transform: none; box-shadow: none; }
.heatmap-high { background-color: rgba(52, 152, 219, 0.35); }
.calendar-header-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px;}
.calendar-nav { display: flex; align-items: center; gap: 12px; }
.calendar-nav button { background: var(--glow-border-color); color: var(--card-bg); border: none; padding: 8px 16px; font-weight: bold; border-radius: 6px; cursor: pointer; }
#monthYearLabel { font-weight: bold; color: var(--glow-border-color); font-size: 1.5rem; }
.calendar-header { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; margin-bottom: 8px; font-weight: bold; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.pillar-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.pillar-btn { background: none; border: 1px solid var(--glow-border-color); color: var(--glow-border-color); border-radius: 20px; padding: 5px 15px; cursor: pointer; }
.pillar-btn.active { font-weight: bold; background: var(--glow-border-color); color: var(--card-bg); }


/* =================================================================== */
/* === CAREERS PAGE SPECIFIC STYLES === */
/* =================================================================== */
.section { margin-bottom: 40px; }
.section h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 10px; color: var(--header-text); text-align: center; }
.section h2 { font-size: 1.8rem; font-weight: 600; color: var(--header-text); border-bottom: 2px solid var(--accent-color); padding-bottom: 8px; margin-bottom: 20px; display: inline-block; }
.section > p { font-size: 1.1rem; max-width: 800px; margin: 0 auto 40px auto; text-align: center; }
.job-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.job-card { background-color: var(--background-color); border: 1px solid var(--glow-border-color); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.job-card:hover { transform: translateY(-5px); box-shadow: 0 6px 12px rgba(0,0,0,0.1); }
.job-card h3 { font-size: 1.2rem; font-weight: 600; color: var(--header-text); margin-bottom: 8px; }
.job-card p { flex-grow: 1; margin-bottom: 15px; }
.btn-apply { padding: 10px 20px; background-color: var(--header-text); color: var(--card-bg); border: none; border-radius: 6px; text-decoration: none; font-weight: 500; text-align: center; transition: background-color 0.3s ease, transform 0.3s ease; cursor: pointer; }
.btn-apply:hover { background-color: var(--accent-color); color: #fff; transform: translateY(-2px); }
.icon-list, .careers-content-box ol { list-style: none; padding-left: 0; }
.icon-list li, .careers-content-box ol li { padding-left: 35px; position: relative; margin-bottom: 10px;}
.icon-list li i { position: absolute; left: 0; top: 5px; color: var(--accent-color); font-size: 1.2rem; }
.careers-content-box ol { list-style-type: none; counter-reset: step-counter; margin-top: 30px;}
.careers-content-box ol li { counter-increment: step-counter; }
.careers-content-box ol li::before { content: counter(step-counter); margin-right: 15px; background: var(--accent-color); color: var(--card-bg); width: 30px; height: 30px; border-radius: 50%; display: inline-block; line-height: 30px; text-align: center; position: absolute; left: 0; }
.margin-top-40 { margin-top: 40px; }

/* Modal Styles */
.modal { display: flex; justify-content: center; align-items: center; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); opacity: 0; pointer-events: none; transform: scale(0.4); transition: opacity 0.3s ease-in-out, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.modal.active { opacity: 1; pointer-events: auto; transform: scale(1); }
.modal-content { background-color: var(--card-bg); padding: 40px; border-radius: 12px; border: 2px solid var(--glow-border-color); max-width: 600px; width: 90%; position: relative; max-height: 90vh; overflow-y: auto; }
.close-btn { color: var(--text-color); position: absolute; top: 10px; right: 20px; font-size: 2rem; font-weight: bold; cursor: pointer; }
#application-heading { color: var(--header-text); margin-bottom: 25px; }
.form-group input[type="text"], .form-group input[type="date"], .form-group input[type="file"] { width: 100%; padding: 12px; border: 1px solid var(--glow-border-color); border-radius: 6px; background-color: var(--background-color); color: var(--text-color); font-size: 1rem; }
.experience-radio-group { display: flex; gap: 20px; margin-bottom: 20px; }
#experience-details { display: none; padding: 20px; margin-top: 10px; border: 1px dashed var(--glow-border-color); border-radius: 8px; }
.btn-submit { display: inline-block; width: 100%; padding: 15px; border: none; border-radius: 6px; background-color: var(--header-text); color: var(--card-bg); font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: background-color 0.3s; margin-top: 20px; }

/* =================================================================== */
/* === CONNECT PAGE SPECIFIC STYLES === */
/* =================================================================== */
.connect-title { font-family:'BIZ UDPMincho', serif; font-size:28px; color:var(--glow-border-color); text-align: center; margin-top:0; margin-bottom: 30px; }
.trust-icon { font-size: 18px; }
#feedback-message { padding: 10px; border-radius: 6px; margin-bottom: 20px; text-align: center; display: none; }
#feedback-message.success { background-color: rgba(46, 204, 113, 0.2); color: #2ecc71; }
#feedback-message.error { background-color: rgba(231, 76, 60, 0.2); color: #e74c3c; }
.connection-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.connection-item { display: flex; align-items: center; justify-content: space-between; padding: 15px; background: var(--background-color); border-radius: 8px; border: 1px solid var(--glow-border-color); }
.platform-info { display: flex; align-items: center; gap: 15px; font-weight: 500; }
.platform-info img { height: 40px; }

/* UPDATED, STRONGER RULE */
.connection-item .status-info {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

.status-info .status { font-size: 0.9rem; opacity: 0.8; }
.status-info .status.connected { color: #2ecc71; }
.btn-connect { padding: 8px 20px; font-weight: bold; cursor: pointer; border-radius: 6px; }
.btn-connect.connect { background-color: var(--glow-border-color); color: var(--card-bg); border: none; }
.btn-connect.disconnect { background: none; border: 1px solid #e74c3c; color: #e74c3c; }
.btn-connect:disabled { opacity: 0.7; cursor: wait; }
.trust-message { margin-top: 30px; text-align: center; opacity: 0.8; font-size: 0.9rem; }

/* =================================================================== */
/* === POLICY PAGE SPECIFIC STYLES (Terms, Privacy, etc.) === */
/* =================================================================== */
.policy-title { font-family:'BIZ UDPMincho', serif; font-size:2em; margin-bottom:10px; }
.effective-date { margin-bottom: 30px; }
.policy-content-container {flex: 2;}
.policy-content-container p, .policy-content-container li { line-height: 1.8; opacity: 0.9; }
.policy-content-container a { color: var(--glow-border-color); font-weight: bold; text-decoration: none; }
.policy-content-container h2 { margin-top: 25px; }
.policy-content-container ul { padding-left: 20px; }
.policy-content-container ul.no-bullets { list-style-type: none; padding-left: 0; }
.toc { list-style: none; padding: 15px 30px; margin: 20px 0; background: var(--background-color); border-radius: 8px; border: 1px solid var(--glow-border-color); }
.toc li { padding: 5px 0; }
.toc a.active { font-weight: bold; color: var(--glow-border-color); }


/* =================================================================== */
/* === DASHBOARD PAGE SPECIFIC STYLES === */
/* =================================================================== */
:root {
    --tool-card-border-light: #3B82F6; /* Denim Blue */
    --tool-card-border-dark: #FBBF24;  /* Golden Yellow */
}

/* =================================================================== */
/* === LAYOUT & BANNER STYLES (from dashboard.html) === */
/* =================================================================== */

/* --- Main Layout Containers --- */
main {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

main > .content-box {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.illustration-box img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin: auto;
}

/* --- Promotional Banners --- */
.promo-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.promo-column > .referral-banner,
.promo-column > .yearly-promo-banner {
    flex: 1;
}

.referral-banner, .yearly-promo-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 20px 30px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
  min-height: 150px;
}

.referral-banner {
  background-image: url('assets/referral.png');
}

.yearly-promo-banner {
  background-image: url('assets/luckydraw.png');
}

.referral-banner:hover,
.yearly-promo-banner:hover {
  transform: scale(1.02);
}

.referral-banner::before, .yearly-promo-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 0;
}

.referral-text, .promo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 1;
}

.referral-text h2, .promo-text h2 {
  margin: 0 0 8px;
  font-size: 1.5em;
  font-family: 'BIZ UDPMincho', serif;
}
.referral-text p, .promo-text p {
  margin: 0;
  font-size: 0.95em;
  font-family: 'Poppins', sans-serif;
  opacity: 0.9;
}

.referral-btn {
  margin-top: 12px;
  padding: 8px 16px;
  background: #fff;
  color: #7C3AED;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}
.referral-btn:hover { background: #f3f4f6; }

.promo-btn {
  margin-top: 12px;
  padding: 8px 16px;
  background: #fff;
  color: #F97316;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}
.promo-btn:hover { background: #f3f4f6; }

.referral-banner:hover::before,
.yearly-promo-banner:hover::before,
.referral-banner.is-visible::before,
.yearly-promo-banner.is-visible::before {
    opacity: 1;
}

.referral-banner:hover .referral-text,
.yearly-promo-banner:hover .promo-text,
.referral-banner.is-visible .referral-text,
.yearly-promo-banner.is-visible .promo-text {
    opacity: 1;
    visibility: visible;
}


/* =================================================================== */
/* === DASHBOARD PAGE SPECIFIC STYLES (from style.css) === */
/* =================================================================== */

:root {
    --tool-card-border-light: #3B82F6; /* Denim Blue */
    --tool-card-border-dark: #FBBF24;  /* Golden Yellow */
}

/* =================================================================== */
/* === LAYOUT & BANNER STYLES (from dashboard.html) === */
/* =================================================================== */

/* --- Main Layout Containers --- */
main {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

main > .content-box {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.illustration-box img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin: auto;
}

/* --- Promotional Banners --- */
.promo-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.promo-column > .referral-banner,
.promo-column > .yearly-promo-banner {
    flex: 1;
}

.referral-banner, .yearly-promo-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 20px 30px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
  min-height: 150px;
}

.referral-banner {
  background-image: url('assets/referral.png');
}

.yearly-promo-banner {
  background-image: url('assets/luckydraw.png');
}

.referral-banner:hover,
.yearly-promo-banner:hover {
  transform: scale(1.02);
}

.referral-banner::before, .yearly-promo-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 0;
}

.referral-text, .promo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 1;
}

.referral-text h2, .promo-text h2 {
  margin: 0 0 8px;
  font-size: 1.5em;
  font-family: 'BIZ UDPMincho', serif;
}
.referral-text p, .promo-text p {
  margin: 0;
  font-size: 0.95em;
  font-family: 'Poppins', sans-serif;
  opacity: 0.9;
}

.referral-btn {
  margin-top: 12px;
  padding: 8px 16px;
  background: #fff;
  color: #7C3AED;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}
.referral-btn:hover { background: #f3f4f6; }

.promo-btn {
  margin-top: 12px;
  padding: 8px 16px;
  background: #fff;
  color: #F97316;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}
.promo-btn:hover { background: #f3f4f6; }

.referral-banner:hover::before,
.yearly-promo-banner:hover::before,
.referral-banner.is-visible::before,
.yearly-promo-banner.is-visible::before {
    opacity: 1;
}

.referral-banner:hover .referral-text,
.yearly-promo-banner:hover .promo-text,
.referral-banner.is-visible .referral-text,
.yearly-promo-banner.is-visible .promo-text {
    opacity: 1;
    visibility: visible;
}


/* =================================================================== */
/* === DASHBOARD PAGE SPECIFIC STYLES (from style.css) === */
/* =================================================================== */

.dashboard-content-box {
  padding: 25px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-image: url('assets/dashboard-bg-light.png');
  overflow-y: hidden; /* Retained from original HTML styles */
}
body.dark-mode .dashboard-content-box {
  background-image: url('assets/dashboard-bg.png');
}
#lucky-draw-link {
  display: block;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 10px;
  background-image: url('assets/lucky-draw-banner-light.png');
}
body.dark-mode #lucky-draw-link {
  background-image: url('assets/lucky-draw-banner.png');
}
.dashboard-section { margin-bottom: 20px; }
.dashboard-section h3 { font-family: 'BIZ UDPMincho', serif; font-size: 1.2em; margin: 0 0 15px 0; padding-bottom: 10px; border-bottom: 1px solid var(--glow-border-color); color: var(--glow-border-color); }
.title { font-size: 1.8em; color: var(--glow-border-color); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; text-align: center;}
.stat-card { background: var(--background-color); padding: 15px; border-radius: 8px; border: 1px solid var(--glow-border-color); }
.upcoming-posts-list { list-style: none; padding:0; display: flex; flex-direction: column; gap: 15px; }
.post-item { display: flex; align-items: center; justify-content: space-between; padding: 10px; border-radius: 8px; background: var(--background-color); }
.tools-button-container { text-align: center; padding: 20px 0; }
#open-tools-modal-btn { padding: 18px 30px; font-size: 1.5rem; max-width: 400px; width: 60%; background: transparent; border: 2px solid var(--glow-border-color); color: var(--glow-border-color); }

/* =================================================================== */
/* === FULLSCREEN MODAL STYLES (from style.css) === */
/* =================================================================== */

.fullscreen-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--background-color);
  z-index: 1000;
  flex-direction: column;
  color: var(--text-color);
  animation: fadeIn 0.3s ease-in-out; /* Retained from original HTML styles */
}
.fullscreen-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 2px solid var(--glow-border-color);
  flex-shrink: 0;
}
.fullscreen-modal-header h2 {
  font-family: 'BIZ UDPMincho', serif;
  font-size: 1.8em;
  color: var(--text-color);
  display: flex; /* Retained from original HTML styles for alignment */
  align-items: center; /* Retained from original HTML styles for alignment */
  gap: 10px; /* Retained from original HTML styles for alignment */
  margin: 0; /* Retained from original HTML styles for alignment */
}
.modal-header-logo {
  height: 36px;
  border-radius: 50%;
  vertical-align: middle;
}
.fullscreen-modal-close {
  background: transparent;
  border: none;
  font-size: 3rem;
  font-weight: lighter;
  cursor: pointer;
  color: var(--text-color);
  opacity: 0.7;
  line-height: 1;
}
.fullscreen-modal-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 30px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.modal-section {
  background-color: rgba(255, 255, 255, 0.6);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
}
body.dark-mode .modal-section {
  background-color: rgba(30, 30, 50, 0.3);
}
.modal-section-title {
  font-size: 1.2rem;
  margin: 20px 0 15px 0;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--glow-border-color);
  opacity: 0.8;
  position: sticky;
  top: 0;
  background-color: var(--background-color);
  z-index: 5;
  padding-top: 10px;
  text-align: center; /* Retained from original HTML styles */
}
.fullscreen-modal-body > h3.modal-section-title {
  margin-top: 35px;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 15px;
  margin-bottom: 10px;
}
.tool-card {
  background: var(--background-color);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease;
  border: 2px solid var(--glow-border-color);
}
.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.tool-card h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1em;
  color: var(--text-color);
  margin: 0;
}

/* =================================================================== */
/* === DOWNLOADS PAGE SPECIFIC STYLES === */
/* =================================================================== */
.downloads-title { font-family: 'BIZ UDPMincho', serif; margin-top: 0; }
.report-card { background: var(--background-color); padding: 20px; border-radius: 8px; border: 1px solid var(--glow-border-color); margin-bottom: 30px;}
.report-card h3 { margin-top: 0; margin-bottom: 10px; font-family: 'BIZ UDPMincho', serif; }
.report-card .description { opacity: 0.8; margin-top: 0; font-size: 0.9rem; }
.report-card .metadata { font-size: 0.8rem; opacity: 0.7; margin-bottom: 15px; }

/* ADDED FOR SCROLLABLE TABLE */
.table-container {
  overflow-x: auto;
  width: 100%;
}

.date-filters { display: flex; gap: 15px; align-items: center; margin-bottom: 15px; }
.date-filters input[type="date"] { background: var(--card-bg); border: 1px solid var(--glow-border-color); color: var(--text-color); padding: 8px; border-radius: 6px; }
.audit-log-table { width: 100%; border-collapse: collapse; margin-top: 15px; }
.audit-log-table th, .audit-log-table td { padding: 12px; border: 1px solid var(--glow-border-color); text-align: left; }

/* =================================== */
/* === Referral Dashboard Styles === */
/* =================================== */

/* Main header for the referral page */
.referral-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.referral-header h1 {
  font-size: 2.5rem;
  color: var(--color-primary);
}
.referral-header p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Referral Link & Sharing Section */
.referral-link-section {
  text-align: center;
  background-color: #f7f5ff;
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 2.5rem;
  border: 1px dashed var(--color-primary);
}
.referral-link-section h2 {
  margin-bottom: 1rem;
}
.link-input-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto 1rem auto;
}
#referralLink {
  flex-grow: 1;
  height: 42px;
  padding: 10px 15px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  color: var(--color-text);
  font-family: 'Poppins', sans-serif;
}
#copyBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  padding: 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
#copyBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(127, 90, 240, 0.4);
}
#copyBtn svg {
  width: 20px;
  height: 20px;
  fill: #3a5b9b; 
}
body.dark-mode #copyBtn svg {
  fill: #FFD700;
}

/* Social Sharing Buttons */
.social-share-buttons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.social-share-buttons button {
  padding: 8px 16px;
  border: 1px solid var(--color-primary);
  background-color: transparent;
  color: var(--color-primary);
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}
.social-share-buttons button:hover {
  background-color: var(--color-primary);
  color: white;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.stat-card {
  background-color: var(--color-bg-secondary);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-card h3 {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}
.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0.5rem 0;
}
.stat-card.earnings .stat-number {
  color: var(--color-success);
}

/* Performance Graph */
.performance-graph-section {
  margin-bottom: 2.5rem;
}
#referralChartContainer {
  background-color: #f8f9fa;
  border-radius: var(--border-radius);
  padding: 1rem;
  min-height: 250px;
}

/* Tab Interface Styles */
.activity-tabs-section {
  margin-bottom: 2rem;
}
.tab-buttons {
  border-bottom: 2px solid #eee;
  margin-bottom: 1rem;
}
.tab-btn {
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  background-color: transparent;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-muted);
  position: relative;
  top: 2px;
}
.tab-btn.active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}
.tab-content {
  display: none;
  animation: tabFadeIn 0.5s;
}
@keyframes tabFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Referral Activity Table */
.table-container {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th, td {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
}
th {
  background-color: #f8f9fa;
  font-weight: 600;
}
.status-badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  display: inline-block;
}
.status-subscribed {
  background-color: #d4edda;
  color: #155724;
}
.status-joined {
  background-color: #cce5ff;
  color: #004085;
}

/* Withdraw Button Styles */
.withdraw-btn {
  margin-top: 1rem;
  padding: 8px 20px;
  background-color: transparent;
  color: #3a5b9b; 
  border: 2px solid #3a5b9b; 
  border-radius: 6px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}
.withdraw-btn:hover {
  background-color: #3a5b9b;
  color: white;
}
body.dark-mode .withdraw-btn {
  color: #FFD700; 
  border: 2px solid #FFD700; 
}
body.dark-mode .withdraw-btn:hover {
  background-color: #FFD700;
  color: #1c1e21; 
}
.withdraw-btn:disabled {
  color: #a3d9c7;
  border-color: #a3d9c7;
  background-color: transparent;
  cursor: not-allowed;
}
.withdraw-btn:disabled:hover {
  background-color: transparent;
  color: #a3d9c7;
}
.payout-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Program Terms Link */
.program-terms-link {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 2rem;
  color: var(--color-text-muted);
}
.program-terms-link a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}
.program-terms-link a:hover {
  text-decoration: underline;
}



/* =================================== */
/* === Modal Styles (Payout & Terms) === */
/* =================================== */

.modal-overlay {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  padding: 1rem; 
}
.modal-content {
  background-color: #ffffff;
  margin: auto;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 500px;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}
#termsModal.modal-overlay {
    padding: 0; 
}
.modal-content.modal-lg {
    width: 100%;
    height: 100%;
    max-width: 100vw; 
    max-height: 100vh; 
    border-radius: 0; 
    display: flex;
    flex-direction: column; 
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.close-btn {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
}
.close-btn:hover,
.close-btn:focus {
  color: #000;
  text-decoration: none;
}
.modal-content h2 {
  margin-top: 0;
  text-align: center;
  color: var(--color-primary);
}
.modal-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 0.9rem;
}
.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}
.save-details-btn {
  width: 100%;
  padding: 12px 20px;
  margin-top: 1rem;
  background-color: transparent;
  color: #3a5b9b; 
  border: 2px solid #3a5b9b; 
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.save-details-btn:hover {
  background-color: #3a5b9b;
  color: white;
}
body.dark-mode .save-details-btn {
  color: #FFD700; 
  border-color: #FFD700; 
}
body.dark-mode .save-details-btn:hover {
  background-color: #FFD700;
  color: #1c1e21; 
}
.error-message {
  display: none; 
  color: #D8000C;
  background-color: #FFD2D2;
  border: 1px solid #D8000C;
  border-radius: 6px;
  padding: 10px;
  margin-top: -5px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  text-align: center;
}
.terms-container {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%; 
}
.terms-container h1 {
    font-size: 1.8rem; 
    text-align: center;
    margin-bottom: 0.5rem;
    flex-shrink: 0; 
}
.terms-container .last-updated {
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}
.terms-content {
  overflow-y: auto; 
  flex-grow: 1; 
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 1rem 1.5rem;
  margin: 0; 
  background-color: #f8f9fa;
  text-align: left;
}
.terms-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  border: none;
  padding: 0;
}
.terms-content p, .terms-content li {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}
.modal-footer {
  text-align: right;
  margin-top: 1rem;
  flex-shrink: 0; 
  padding: 0 1rem 1rem 1rem;
}


/* =================================== */
/* === Modal Styles (Payout & Terms) === */
/* =================================== */

.modal-overlay {
  display: none; /* CRITICAL: Modals must be hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  padding: 1rem; /* Padding for smaller popups */
}

/* Default modal content (for payout form) */
.modal-content {
  background-color: #ffffff;
  margin: auto;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 500px;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

/* UPDATED: Full-screen style for the larger terms modal */
#termsModal.modal-overlay {
    padding: 0; /* Remove padding for full-screen */
}
.modal-content.modal-lg {
    width: 100%;
    height: 100%;
    max-width: 100vw; /* Viewport width */
    max-height: 100vh; /* Viewport height */
    border-radius: 0; /* No rounded corners */
    display: flex;
    flex-direction: column; /* Allows footer to stick to bottom */
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.close-btn {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
}

/* ... (rest of the modal styles for h2, form-group, etc. remain the same) ... */


/* UPDATED: Terms Modal Specific Styles for full-screen layout */
.terms-container {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%; /* Make container fill modal content area */
}
.terms-container h1 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 0.5rem;
    flex-shrink: 0; /* Prevent header from shrinking */
}
.terms-container .last-updated {
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}
.terms-content {
  overflow-y: auto; /* Enable scrolling for the terms text */
  flex-grow: 1; /* Allow this section to take up all available space */
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 1rem 1.5rem;
  margin: 0; /* Remove margin */
  background-color: #f8f9fa;
  text-align: left;
}
.terms-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  border: none;
  padding: 0;
}
.terms-content p, .terms-content li {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}
.modal-footer {
  text-align: right;
  margin-top: 1rem;
  flex-shrink: 0; /* Prevent footer from shrinking */
  padding: 0 1rem 1rem 1rem;
}

/* =================================================================== */
/* === ERROR PAGE SPECIFIC STYLES (UPDATED) === */
/* =================================================================== */
.error-box-container { 
    flex: 1.5; /* Adjusted flex ratio */
    max-width: 600px; /* Constrained width for text */
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
    padding: 20px 40px; /* More horizontal padding */
}

.illustration-box.error-illustration { 
    flex: 1; /* Adjusted flex ratio */
    overflow: visible; /* Allow hover effects to be seen */
    padding: 20px; 
}

/* Add floating animation and smooth transition for JS tilt */
.illustration-box.error-illustration img { 
    max-height: 100%; 
    animation: float 5s ease-in-out infinite;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.error-code { 
    font-size: 6rem; 
    font-family: 'BIZ UDPMincho', serif; 
    color: var(--glow-border-color); 
    margin: 0; 
    line-height: 1;
}

.error-title { 
    font-size: 2.2rem; /* Increased font size */
    margin-bottom: 1rem; 
}

.error-message { 
    font-size: 1.1rem; /* Increased font size */
    margin-bottom: 2.5rem; /* Increased spacing */
    opacity: 0.8; 
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

/* Animation for the mascot */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Large background text effect */
.background-404-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Poppins', sans-serif;
  font-size: 35vw;
  font-weight: 900;
  color: var(--text-color);
  opacity: 0.05;
  z-index: -1; /* Place it behind content */
  user-select: none;
  pointer-events: none;
}

/* New search bar container */
.error-search-container {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 1.5rem auto; /* Center the search bar */
}

.error-search-bar {
    flex-grow: 1;
    padding: 14px;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid var(--glow-border-color);
    background-color: var(--background-color);
    color: var(--text-color);
}

.error-search-bar:focus {
    outline: none;
    box-shadow: 0 0 8px color-mix(in srgb, var(--glow-border-color) 50%, transparent);
}

/* Prep for the JS tilt effect */
.interactive-tilt {
    transform-style: preserve-3d;
}


/* =================================================================== */
/* === METRICS PAGE SPECIFIC STYLES === */
/* =================================================================== */
.metrics-container h1, .metrics-container h2 { font-family: 'BIZ UDPMincho', serif; color: var(--glow-border-color); }
.metrics-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin: 20px 0 40px 0; }
.metrics-stat-card { background: var(--background-color); padding: 20px; border-radius: 8px; text-align: center; border: 1px solid var(--glow-border-color); }
.metrics-stat-card h4 { margin: 0 0 5px 0; font-size: 1rem; opacity: 0.8; }
.metrics-stat-card p { margin: 0; font-size: 2.2rem; font-weight: bold; color: var(--glow-border-color); }
.tooltip { position: relative; cursor: help; }
.tooltip::after { content: attr(data-tooltip); position: absolute; bottom: 125%; left: 50%; transform: translateX(-50%); background-color: #333; color: #fff; padding: 8px 12px; border-radius: 6px; font-size: 0.85rem; white-space: nowrap; visibility: hidden; opacity: 0; transition: opacity 0.2s; z-index: 10; }
.tooltip:hover::after { visibility: visible; opacity: 1; }


/* =================================================================== */
/* === NOTIFICATIONS PAGE SPECIFIC STYLES === */
/* =================================================================== */
.notification-panel h1 { font-family: 'BIZ UDPMincho', serif; color: var(--glow-border-color); margin-top: 0; }
.notification-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.filter-tabs { display: flex; gap: 10px; }
.filter-btn { background: var(--background-color); border: 1px solid var(--glow-border-color); color: var(--glow-border-color); padding: 8px 16px; border-radius: 6px; cursor: pointer; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.filter-btn.active { background: var(--glow-border-color); color: var(--card-bg); }
.unread-badge { background-color: #e74c3c; color: white; border-radius: 50%; padding: 2px 6px; font-size: 0.75rem; font-weight: bold; }
.action-buttons { display: flex; gap: 10px; }
.btn-clear { background: none; border: 1px solid #e74c3c; color: #e74c3c; }
#notificationsContainer { flex-grow: 1; display: flex; flex-direction: column; gap: 15px; overflow-y: auto; padding-right: 10px; }
.no-notifications-message { text-align: center; opacity: 0.7; }
.notification-item { display: flex; align-items: flex-start; gap: 15px; padding: 15px; border-radius: 8px; background: var(--background-color); border: 1px solid transparent; transition: opacity 0.4s ease; }
.notification-item.fading-out { opacity: 0; }
.notification-item.unread { border-color: var(--glow-border-color); cursor: pointer; }
.notification-item.read { opacity: 0.6; }
.notification-icon { font-size: 1.5rem; margin-top: -2px; }
.notification-content p { margin: 0; line-height: 1.5; }
.notification-content .timestamp { font-size: 0.8rem; opacity: 0.7; margin-top: 4px; }


/* =================================================================== */
/* === ONBOARDING CHECKLIST PAGE SPECIFIC STYLES === */
/* =================================================================== */
.onboarding-main-container { flex: 1; }
.onboarding-container { max-width: 900px; margin: 0 auto; }
.welcome-section { text-align: center; margin-bottom: 30px; }
.welcome-section h1 { font-family: 'BIZ UDPMincho', serif; color: var(--glow-border-color); }
.progress-bar-container { width: 100%; background-color: var(--background-color); border: 1px solid var(--glow-border-color); border-radius: 10px; padding: 4px; margin-bottom: 10px; }
.progress-bar { height: 20px; width: 0%; background-color: var(--glow-border-color); border-radius: 6px; transition: width 0.5s ease-in-out; }
#progress-text { font-weight: 500; }
.checklist { list-style: none; padding: 0; margin-top: 30px; }
.checklist-item { display: flex; align-items: center; background: var(--background-color); padding: 20px; border-radius: 8px; margin-bottom: 15px; border: 1px solid var(--glow-border-color); transition: opacity 0.3s; cursor: pointer; }
.checklist-item input[type="checkbox"] { width: 20px; height: 20px; margin-right: 20px; flex-shrink: 0; accent-color: var(--glow-border-color); pointer-events: none; /* Disable direct clicks */ }
.checklist-item label { font-size: 1.1rem; font-weight: 500; }
.checklist-item a { color: var(--text-color); text-decoration: none; }
.checklist-item.completed { opacity: 0.6; }
.checklist-item.completed label { text-decoration: line-through; }
#all-done-container { display: none; text-align: center; padding: 40px 0; }
#all-done-container img { max-width: 200px; margin-bottom: 20px; }
#all-done-container h2 { font-family: 'BIZ UDPMincho', serif; color: var(--glow-border-color); }
#all-done-container a { display: inline-block; margin-top: 20px; padding: 12px 24px; font-size: 1.1rem; background-color: var(--glow-border-color); color: var(--card-bg); text-decoration: none; font-weight: bold; border-radius: 8px; }


/* =================================================================== */
/* === PREMIUM COURSE PAGE SPECIFIC STYLES === */
/* =================================================================== */
.course-content-box { flex: 1; }
.page-title-centered { font-family: 'BIZ UDPMincho', serif; font-size: 2rem; color: var(--header-text); margin-bottom: 1rem; text-align: center; }
.prompt-heading { color: crimson; font-size: 1.5rem; margin-bottom: 0.5rem; }
.prompt-text { margin-bottom: 1rem; }
.btn-upgrade { padding: 10px 16px; background-color: crimson; color: white; border-radius: 8px; text-decoration: none; }
#introHero { margin-bottom: 2rem; text-align: center; }
#introHero h2 { font-family: 'BIZ UDPMincho', serif; font-size: 1.8rem; margin-bottom: 0.5rem; }
#introHero p { font-size: 1.1rem; }
#heroBadge { display: inline-block; margin-top: 1rem; padding: 8px 16px; background-color: gold; color: black; font-weight: bold; border-radius: 8px; }
#learnSection { margin-bottom: 2rem; }
#learnSection h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 1rem; }
#learnSection ul { list-style: none; padding-left: 0; }
#learnSection li { margin-bottom: 1rem; }
#modulesGrid { margin-bottom: 2rem; }
#modulesGrid h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 1rem; }
.modules-grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; }
.module-card { padding: 15px; }
#valueNote { margin-top: 2rem; background-color: #f9f9f9; padding: 20px; border-radius: 10px; border: 1px dashed var(--glow-border-color); }
body.dark-mode #valueNote { background-color: #2a2c3f; }
#valueNote h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.course-section { margin-bottom: 2rem; }
.course-subheading { font-family: 'BIZ UDPMincho', serif; font-size: 1.6rem; margin-bottom: 1rem; }
.content-breakdown-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.content-breakdown-card { flex: 1; min-width: 220px; }
.content-breakdown-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.visual-breakdown-title { font-size: 1.3rem; margin-bottom: 1rem; }
.pie-chart-container { display: flex; justify-content: center; }
.pie-chart { width: 180px; height: 180px; border-radius: 50%; background: conic-gradient(#1a237e 0% 70%, #7c4dff 70% 90%, #00c853 90% 100%); position: relative; }
.pie-chart-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-weight: bold; text-align: center; }
.checklist-title { font-size: 1.3rem; margin-bottom: 1rem; }
.strategy-checklist { list-style: none; padding-left: 0; }
.strategy-checklist li { margin-bottom: 10px; }
.pro-tip-box { margin-top: 1rem; background-color: #f9f9f9; padding: 15px; border-left: 4px solid var(--glow-border-color); border-radius: 8px; }
body.dark-mode .pro-tip-box { background-color: #2a2c3f; }
.format-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.comparison-table-title { font-size: 1.3rem; margin-bottom: 1rem; }
.table-container { overflow-x: auto; }
.comparison-table { width: 100%; border-collapse: collapse; text-align: left; }
.comparison-table thead tr { background: var(--glow-border-color); color: var(--card-bg); }
body.dark-mode .comparison-table thead tr { color: var(--background-color); }
.comparison-table th, .comparison-table td { padding: 12px 16px; }
.comparison-table tbody tr { border-bottom: 1px solid var(--input-border-color); }


/* =================================================================== */
/* === POLICY CONSENT PAGE SPECIFIC STYLES === */
/* =================================================================== */
.policy-consent-title { text-align: center; font-family: 'BIZ UDPMincho', serif; color: var(--glow-border-color); margin: 0 0 30px 0; font-size: 2em; }
.policy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.policy-box { height: 480px; overflow-y: auto; }
.policy-box h2, .policy-box h4 { margin-top: 0; }
.policy-box h2 { margin-bottom: 20px; }
.policy-box p, .policy-box li { line-height: 2.0; opacity: 0.9; }
.policy-box a { color: var(--glow-border-color); font-weight: bold; }
.policy-box ul { list-style-type: none; padding-left: 0; }
.consent-section { margin-top: 40px; padding: 20px; }
.consent-section hr { border: none; border-top: 1px solid var(--glow-border-color); opacity: 0.2; margin: 20px 0; }
.checkbox-group { text-align: left; }
.checkbox-group label { display: block; margin: 15px 0; font-size: 1.1rem; }
input[type="checkbox"] { width: 18px; height: 18px; margin-right: 10px; accent-color: var(--glow-border-color); }
#continue-btn-container { text-align: center; margin-top: 20px;}
.consent-section button { padding: 12px 24px; font-size: 1.1rem; }
.consent-section button:disabled { opacity: 0.5; cursor: not-allowed; }
/* =================================================================== */
/* === POLICY CONSENT PAGE SPECIFIC STYLES === */
/* =================================================================== */
.policy-consent-title { text-align: center; font-family: 'BIZ UDPMincho', serif; color: var(--glow-border-color); margin: 0 0 30px 0; font-size: 2em; }
.policy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.policy-box { height: 480px; overflow-y: auto; }
.policy-box h2, .policy-box h4 { margin-top: 0; }
.policy-box h2 { margin-bottom: 20px; }
.policy-box p, .policy-box li { line-height: 2.0; opacity: 0.9; }
.policy-box a { color: var(--glow-border-color); font-weight: bold; }
.policy-box ul { list-style-type: none; padding-left: 0; }

.consent-section { 
  margin-top: 40px; 
  padding: 20px; 
  padding-bottom: 80px; /* ADDED: This adds space for the footer */
}

.consent-section hr { border: none; border-top: 1px solid var(--glow-border-color); opacity: 0.2; margin: 20px 0; }
.checkbox-group { text-align: left; }
.checkbox-group label { display: block; margin: 15px 0; font-size: 1.1rem; }
input[type="checkbox"] { width: 18px; height: 18px; margin-right: 10px; accent-color: var(--glow-border-color); }
#continue-btn-container { text-align: center; margin-top: 20px;}
.consent-section button { padding: 12px 24px; font-size: 1.1rem; }
.consent-section button:disabled { opacity: 0.5; cursor: not-allowed; }

/* =================================================================== */
/* === PAYMENT PAGE SPECIFIC STYLES === */
/* =================================================================== */
.payment-container { display: grid; grid-template-columns: 1fr 1.5fr; gap: 30px; max-width: 1200px; margin: 0 auto; }
.order-summary, .payment-methods { padding: 30px; }
.order-summary h2, .payment-methods h2 { font-family: 'BIZ UDPMincho', serif; font-size: 1.8em; margin-bottom: 20px; color: var(--glow-border-color); }
.plan-details { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
#plan-name, #billing-cycle { margin: 0; }
#billing-cycle { opacity: 0.8; }
.change-plan-link { color:var(--glow-border-color); margin-bottom: 20px; display:inline-block; }
.plan-icon { background: var(--background-color); padding: 10px; border-radius: 8px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 1rem; }
.total-row { font-weight: bold; font-size: 1.2rem; margin-top: 20px; border-top: 2px solid var(--glow-border-color); padding-top: 15px; }
.order-summary hr { margin: 20px 0; border: none; border-top: 1px solid var(--glow-border-color); opacity: 0.5; }
#coupon-link { color: var(--glow-border-color); }
#coupon-section { margin-top: 10px; }
#coupon-message { margin-top: 5px; font-size: 0.9rem; }
.payment-tabs { display: flex; border-bottom: 1px solid var(--glow-border-color); margin-bottom: 20px; }
.tab { padding: 10px 15px; cursor: pointer; border-bottom: 3px solid transparent; background: none; color: var(--text-color); opacity: 0.7; font-size: 1rem; border-top: none; border-left: none; border-right: none; }
.tab.active { border-bottom-color: var(--glow-border-color); opacity: 1; }
.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }
#upiContent, #upiAppsContent { text-align: center; }
#upiContent img { max-width: 220px; margin: 10px auto; border: 4px solid var(--text-color); border-radius: 8px; }
#upiContent .or-divider { margin: 20px 0; font-weight: bold; }
.upi-app-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.upi-app-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border: 1px solid var(--glow-border-color); border-radius: 8px; text-decoration: none; color: var(--text-color); font-weight: 500; }
.upi-app-btn img { height: 24px; }
.coupon-form { display: flex; gap: 10px; margin-top: 10px; }
.coupon-form .form-group { margin: 0; }
#coupon-input { flex-grow: 1; }
#apply-coupon-btn { padding: 10px 12px; flex-shrink: 0; }
.discount-row { color: #27ae60; }
.security-badge { margin-top: 25px; text-align: center; opacity: 0.8; }
.security-badge span { font-size: 1.1rem; vertical-align: middle; }


/* =================================================================== */
/* === NEW PRICING PAGE STYLES (Mobile-First Design) === */
/* =================================================================== */

/* --- General Page & Section Layout --- */
.pricing-page-main {
  /* This ensures the main content area has its own padding */
  padding: 40px 20px;
}
.pricing-header, .pricing-cards-container, .comparison-section, .faq-section {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 60px;
}
.section-title, .pricing-header h1, .faq-section h2 {
  text-align: center;
  font-family: 'BIZ UDPMincho', serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 20px;
  color: var(--text-color);
}
.subheader {
  text-align: center;
  max-width: 500px;
  margin: 0 auto 40px auto;
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* --- Billing Cycle Toggles --- */
.billing-cycle-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.billing-btn {
  background: var(--background-color);
  border: 1px solid var(--input-border-color);
  color: var(--text-color);
  opacity: 0.7;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}
.billing-btn.active {
  background: var(--glow-border-color);
  color: var(--card-bg);
  border-color: var(--glow-border-color);
  opacity: 1;
  box-shadow: 0 4px 15px color-mix(in srgb, var(--glow-border-color) 30%, transparent);
}
.save-indicator {
  background-color: #27ae60;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8em;
  margin-left: 8px;
}

/* --- Pricing Grid & Cards (Mobile-First Default) --- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr; /* Default to 1 column for mobile */
  gap: 30px;
}
.plan-card {
  background-color: var(--card-bg);
  border: 1px solid var(--input-border-color);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.plan-header { margin-bottom: 20px; }
.plan-title { font-size: 1.5rem; font-weight: 600; }
.plan-badge { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 0.85em; font-weight: bold; margin-left: 10px; }
.badge.light { background-color: #e0e0e0; color: #333; }
.badge.primary { background-color: var(--glow-border-color); color: var(--card-bg); }
.badge.success { background-color: #27ae60; color: white; }
.plan-price { margin-bottom: 25px; flex-grow: 1; }
.plan-price .price { font-size: 3em; font-weight: 700; color: var(--text-color); }
.plan-price .price-period { opacity: 0.7; }
.plan-price .price-strikethrough { opacity: 0.6; height: 1.2em; text-decoration: line-through; }
.choose-btn {
  width: 100%;
  text-align: center;
  padding: 14px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  background-color: var(--primary-color);
  color: #1a237e;
  border: none;
  text-decoration: none;
  display: block;
}
.plan-card.most-popular .choose-btn {
  background-color: var(--glow-border-color);
  color: var(--card-bg);
}

/* =================================================================== */
/* === NEW COMPARISON SECTION STYLES (Card Grid Layout) === */
/* =================================================================== */

/* --- Default Mobile Layout (Stacked Cards) --- */
.comparison-table {
  border: none;
}
.comparison-table thead {
  display: none;
}
.comparison-section .table-container {
  overflow: visible;
}
.comparison-table tbody {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.comparison-table tr {
  display: block;
  border: 1px solid var(--input-border-color);
  border-radius: 12px;
  padding: 15px; /* REDUCED PADDING */
  background-color: var(--card-bg);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  height: 100%;
}
.comparison-table th[scope="row"] {
  display: block;
  font-size: 1.1rem; /* REDUCED FONT SIZE */
  font-weight: 600;
  margin-bottom: 10px; /* REDUCED MARGIN */
  padding-bottom: 10px; /* REDUCED PADDING */
  border-bottom: 1px solid var(--input-border-color);
}
.comparison-table td {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0; /* REDUCED PADDING */
  border-bottom: 1px solid var(--background-color);
}
.comparison-table tr td:last-child {
  border-bottom: none;
}
.comparison-table td::before {
  font-weight: 500;
  opacity: 0.8;
}
.comparison-table td:nth-of-type(1)::before { content: "Basic:"; }
.comparison-table td:nth-of-type(2)::before { content: "Pro:"; }
.comparison-table td:nth-of-type(3)::before { content: "Ultimate:"; }

/* --- Desktop Layout (3-Column Grid) --- */
@media (min-width: 901px) {
  .comparison-table tbody {
    grid-template-columns: repeat(4, 1fr);
    max-width: 950px;
    margin: 0 auto;
  }
}

/* --- FAQ Section --- */
.faq-section { max-width: 800px; }
.faq-item {
  background-color: var(--card-bg);
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid var(--input-border-color);
}
.faq-item summary {
  font-weight: 600;
  padding: 15px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] {
  border-color: var(--glow-border-color);
}
.faq-item div {
  padding: 0 15px 15px 15px;
  opacity: 0.9;
  line-height: 1.7;
}

/* --- Tablet & Desktop Layout Adjustments --- */
@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
  }
  .plan-card.most-popular {
    transform: scale(1.05);
    border: 2px solid var(--glow-border-color);
    box-shadow: 0 10px 40px color-mix(in srgb, var(--glow-border-color) 25%, transparent);
  }
}

/* =================================================================== */
/* === SUPPORT PAGE SPECIFIC STYLES === */
/* =================================================================== */
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; width: 100%; }
.support-box { padding: 30px; display: flex; flex-direction: column; }
.support-box h3 { margin-top: 0; font-size: 1.5rem; border-bottom: 2px solid var(--glow-border-color); padding-bottom: 10px; margin-bottom: 15px; color: var(--glow-border-color);}
.support-box p { line-height: 1.7; opacity: 0.9; }
.support-box a.btn { margin-top: auto; text-align: center; } 
.faq-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; overflow-y: auto; padding-right: 10px; }
.faq-list a { display: block; padding: 12px 15px; background: var(--background-color); border-radius: 8px; text-decoration: none; color: var(--text-color); border: 1px solid var(--glow-border-color); transition: all 0.2s ease-in-out; }
.faq-list a:hover { transform: translateX(5px); box-shadow: 0 0 8px var(--glow-border-color); }



/* =================================================================== */
/* === VERIFY PAGE SPECIFIC STYLES === */
/* =================================================================== */
.logo-container.verify-page, .verify-box { padding: 30px; height: 480px; box-sizing: border-box; }
.logo-container.verify-page { flex: 1; max-width: 450px; display: flex; align-items: center; justify-content: center; }
.logo-container.verify-page img { max-width: 80%; height: auto; }
.verify-box { flex: 1; max-width: 450px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.verify-box h2 { font-family: 'BIZ UDPMincho', serif; font-size: 2em; margin-bottom: 10px; color: var(--glow-border-color); }
.verify-box p { opacity: 0.8; margin-bottom: 30px; }
.otp-inputs { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.otp-inputs input { width: 45px; height: 50px; font-size: 1.5rem; text-align: center; border-radius: 8px; border: 1px solid var(--glow-border-color); background-color: var(--background-color); color: var(--text-color); }
.resend-container { font-size: 0.9rem; }
.resend-container a { color: var(--glow-border-color); font-weight: bold; cursor: pointer; }
.verify-btn { width: 100%; padding: 12px; margin-top: 20px; font-size: 1.1rem; background-color: var(--primary-color); color: #1a1c2b;}


/* =================================================================== */
/* === UPLOAD HISTORY PAGE SPECIFIC STYLES === */
/* =================================================================== */
.page-title { text-align: center; font-family: 'BIZ UDPMincho', serif; font-size: 2.5em; margin: 0 auto 20px; color: var(--glow-border-color); }
.history-container { max-width: 1400px; margin: 0 auto; padding: 20px; }
/* .filter-tabs defined in NOTIFICATIONS section, can be reused or specified */
.history-table { width: 100%; border-collapse: collapse; border-spacing: 0; border: 1px solid var(--glow-border-color); }
.history-table th, .history-table td { padding: 12px 15px; border: 1px solid var(--glow-border-color); text-align: left; vertical-align: middle; }
.history-table thead { background-color: var(--background-color); }
.history-table .thumbnail-col img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; }
.history-table .platforms-col { display: flex; gap: 8px; flex-wrap: nowrap; }
.history-table .platforms-col img { height: 24px; }
.history-table .caption-col { max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-table .btn-action { font-size: 0.9rem; padding: 5px 10px; }
.status-badge { padding: 5px 12px; border-radius: 20px; font-weight: 500; font-size: 0.85rem; text-align: center; }
.status-published { background-color: rgba(46, 204, 113, 0.2); color: #27ae60; }
.status-scheduled { background-color: rgba(241, 196, 15, 0.2); color: #f39c12; }

/* =================================================================== */
/* === WHATSAPP HELPER PAGE SPECIFIC STYLES === */
/* =================================================================== */
.illustration-box.whatsapp-helper { flex: 0.8; min-width: 250px; }
.support-card { flex: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.support-card img { width: 120px; margin-bottom: 20px; }
.support-card h1 { font-family: 'BIZ UDPMincho', serif; font-size: 2em; color: var(--glow-border-color); margin-top: 0; margin-bottom: 10px; }
.support-card p { font-size: 1.1rem; opacity: 0.9; max-width: 350px; margin-bottom: 30px; }
.support-card .btn { padding: 12px 30px; font-size: 1.2rem; background-color: var(--primary-color); color: #1a1c2b; }


/* =================================================================== */
/* === MEDIA QUERIES (Responsive Design) === */
/* =================================================================== */
@media (max-width: 1200px) {
    .job-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .profile-setup-grid { grid-template-columns: 1fr; }
    .live-preview-container { order: -1; margin-bottom: 20px; }

    /* Stack error page content specifically for responsiveness */
    body[data-page-type="centered"] main {
        flex-direction: column;
    }
    .illustration-box.error-illustration {
        order: -1; /* Puts the image on top on mobile */
        flex-basis: auto;
        width: 100%;
        max-width: 250px; /* Control size of illustration */
    }
    .error-box-container {
        flex-basis: auto;
    }
}
@media (max-width: 768px) {
    .job-grid { grid-template-columns: 1fr; }
    .policy-grid { grid-template-columns: 1fr; }
}

/* --- NEW: Responsive Pivot for Comparison Table --- */
    .comparison-table thead {
      display: none; /* Hide the original table header on mobile */
    }
    .comparison-table tr {
      display: block; /* Each row becomes its own block */
      margin-bottom: 20px;
      border: 1px solid var(--input-border-color);
      border-radius: 8px;
      padding: 15px;
    }
    .comparison-table td {
      display: flex; /* Arrange label and value side-by-side */
      justify-content: space-between;
      align-items: center;
      text-align: right; /* Aligns the value (checkmark, text) to the right */
      padding: 12px 5px;
      border-bottom: 1px solid var(--background-color);
    }
    .comparison-table tr td:last-child {
      border-bottom: none;
    }
    /* Style the feature name as the card's header */
    .comparison-table th[scope="row"] {
      display: block;
      text-align: left;
      font-size: 1.1rem;
      font-weight: 600;
      margin-bottom: 10px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--input-border-color);
    }
    
    /* Add plan labels before each data cell using CSS */
    .comparison-table td:nth-of-type(1)::before {
      content: "Basic:";
      font-weight: 500;
      text-align: left;
    }
    .comparison-table td:nth-of-type(2)::before {
      content: "Pro:";
      font-weight: 500;
      text-align: left;
    }
    .comparison-table td:nth-of-type(3)::before {
      content: "Ultimate:";
      font-weight: 500;
      text-align: left;
    }

/* =================================================================== */
/* === VISUAL ENHANCEMENT PATCH FOR COURSE PAGES === */
/* Paste this at the bottom of your styles.css file */
/* =================================================================== */

/* --- Adding a new color variable for card backgrounds --- */
:root {
  --subtle-bg: #f8f9fa;
}

body.dark-mode {
  --subtle-bg: #2a2a2a;
}

/* --- Core Course Content Box Refinement --- */
/* This will override the existing .content-box style only for course pages if needed, but is general enough */
.content-box.course-content-box {
  padding: 30px 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
body.dark-mode .content-box.course-content-box {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* --- Course-Specific Typography and Layout --- */
.page-title-centered {
  font-family: 'BIZ UDPMincho', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--header-text);
  margin-bottom: 2rem;
  text-align: center;
}

.course-section {
  margin-bottom: 3.5rem; /* Increased spacing between sections */
}
.course-section:last-child {
  margin-bottom: 2rem;
}

.course-subheading {
  font-family: 'Poppins', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
}

/* --- Enhanced Grid Card Styling --- */
.content-breakdown-card, .format-grid .content-box {
  background-color: var(--subtle-bg);
  border: 1px solid var(--input-border-color);
  border-radius: 12px;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-breakdown-card:hover, .format-grid .content-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}
body.dark-mode .content-breakdown-card:hover, body.dark-mode .format-grid .content-box:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.content-breakdown-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--header-text);
}

/* --- Enhanced Checklist Styling --- */
.checklist-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.strategy-checklist {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.strategy-checklist li {
  position: relative;
  padding-left: 35px;
  font-size: 1.05rem;
}

.strategy-checklist li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-color);
  color: var(--primary-button-text);
  border-radius: 50%;
  font-weight: bold;
}

.strategy-checklist ul {
    margin-top: 10px;
    padding-left: 20px;
    list-style-type: disc;
}
.strategy-checklist ul li::before {
    display: none; /* Hide the custom checkmark for sub-bullets */
}

/* --- Enhanced Pro Tip Box --- */
.pro-tip-box {
  margin-top: 2rem;
  background-color: var(--subtle-bg);
  padding: 25px;
  border-left: 5px solid var(--primary-color);
  border-radius: 0 8px 8px 0;
  position: relative;
}

.pro-tip-box:  :before {
    content: ;
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    background-color: var(--primary-color);
    color: var(--primary-button-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.pro-tip-box p {
  margin: 0;
  font-size: 1.05rem;
}

/* --- Enhanced Course Navigation Buttons --- */
.course-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid var(--input-border-color);
}

.nav-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--accent-color);
  color: var(--primary-button-text);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: var(--primary-button-text);
  background-color: var(--accent-color);
}

.justify-end {
  justify-content: flex-end;
}

/* =================================================================== */
/* === PATCH FOR CONSISTENT VERTICAL SPACING (Vertical Gap) === */
/* Paste this at the bottom of your styles.css file */
/* =================================================================== */

/* This rule creates a consistent vertical gap between all direct elements
   within a course section for a more balanced and rhythmic layout. */
.course-section > * + * {
    margin-top: 1.75rem;
}

/* This adjusts the larger gap between the main course sections themselves. */
.course-section {
    margin-bottom: 4rem;
}

/* --- Fine-tuning specific elements for better hierarchy --- */

/* Overrides the general gap to control the space just below a subheading. */
.course-subheading {
    margin-bottom: 1rem;
}

/* Adds a slightly larger gap before starting a new checklist or grid to signal a new block of content. */
.checklist-title,
.content-breakdown-grid, 
.format-grid {
    margin-top: 2.5rem;
}

/* Adjusts the space immediately after a checklist title. */
.checklist-title {
    margin-bottom: 1.25rem;
}

/* Resets the top margin for the very first element in any section to avoid extra space at the top. */
.course-section > *:first-child {
    margin-top: 0;
}

/*
 * REVISED WIZARD STYLES - Use this block in styles.css
 */

/* Hide all wizard steps by default using a more specific path */
.wizard-container > form > .wizard-step {
  display: none;
  animation: fadeIn 0.5s; /* Adds a nice fade-in effect */
}

/* ONLY show the step that has the .active class */
.wizard-container > form > .wizard-step.active {
  display: block;
}

/* Animation for the fade-in effect (no change here) */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =================================================================== */
/* === FINAL TOUR PAGE STYLES (Layout, Spacing & Animations) === */
/* =================================================================== */

/* --- Main Card Layout & Spacing --- */
.tour-card {
  display: flex;
  flex-direction: column; /* Mobile-first: stack vertically */
  width: 100%;
  max-width: 900px;
  min-height: 500px;
  background-color: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
  border: 1px solid var(--input-border-color);
  margin: 40px 0;
}

/* --- Image Pane --- */
.tour-card__image-pane {
  background-color: var(--background-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.tour-card__image-pane img {
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
}

/* --- Content Pane --- */
.tour-card__content-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  flex-grow: 1;
}
.tour-card__brand-title {
  font-weight: 500;
  color: var(--glow-border-color);
  margin-bottom: 15px;
}
.tour-card__title {
  font-family: 'BIZ UDPMincho', serif;
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 10px;
}
.tour-card__text {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 25px;
  max-width: 400px;
}
.tour-card__dots {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}
.tour-card__dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--glow-border-color);
  opacity: 0.3;
  transition: opacity 0.3s;
}
.tour-card__dots .dot.active {
  opacity: 1;
}
.tour-card__nav {
  display: flex;
  gap: 15px;
  width: 100%;
  max-width: 400px;
}
.tour-card__nav button {
  flex-grow: 1;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid var(--glow-border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.tour-card__nav #nextBtn {
  background-color: var(--glow-border-color);
  color: var(--card-bg);
}
.tour-card__nav #prevBtn {
  background-color: transparent;
  color: var(--glow-border-color);
}

/* --- Desktop Layout (Tablet & up) --- */
@media (min-width: 768px) {
  .tour-card {
    flex-direction: row;
    max-height: 550px;
    transform: scale(1.3); /* ADDED: This "zooms out" the card */
  }
  .tour-card__image-pane {
    flex-basis: 45%;
  }
  .tour-card__image-pane img {
    max-height: 400px;
  }
  .tour-card__content-pane {
    flex-basis: 55%;
    align-items: flex-start;
    text-align: left;
  }
}

/* --- TOUR PAGE ANIMATIONS --- */
@keyframes slideOutRight { from { transform: translateX(0); opacity: 1; } to { transform: translateX(-100%); opacity: 0; } }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOutLeft { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }
@keyframes slideInLeft { from { transform: translateX(-100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.slide-out-right { animation: slideOutRight 0.5s ease forwards; }
.slide-in-right { animation: slideInRight 0.5s ease forwards; }
.slide-out-left { animation: slideOutLeft 0.5s ease forwards; }
.slide-in-left { animation: slideInLeft 0.5s ease forwards; }

/* =================================================================== */
/* === RESPONSIVE PATCH FOR MOBILE VIEW (Final Version Updated) === */
/* =================================================================== */

@media (max-width: 900px) {
  /*
    GENERAL LAYOUT FIXES
  */
  /* Header & Footer */
  header {
    height: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 12px;
    gap: 10px;
  }
  header .header-left img {
    display: block !important; /* Ensure logo visible */
  }
  footer {
    height: auto;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 4px 10px; /* Reduced vertical padding */
    gap: 10px 20px;
  }

  /* App pages */
  body[data-page-type="app"] main {
    flex-direction: column;
    overflow-y: visible; /* MODIFIED: No inner scrollbar */
    padding: 10px;
    gap: 10px;
  }

  /* Centered pages (login, error, signup, etc.) */
  body[data-page-type="centered"] main {
    flex-direction: column;
    gap: 20px;
  }

  /* Login/Signup */
  .logo-container {
    display: none;
  }

  /* Account Page */
  .setting-item,
  .connected-handles li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 15px;
  }
  .setting-item .btn-action,
  .connected-handles .btn-action {
    margin-left: auto;
  }

  /* Account Setup Wizard */
  .wizard-container {
    padding: 20px 15px;
  }
  .options-grid {
    grid-template-columns: 1fr;
  }

  /* Downloads Page */
  .date-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  /* Connect Page */
  .connect-container {
    padding: 25px 15px;
  }
  .connection-item {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .connection-item .btn-connect {
    margin-left: auto;
  }

  /* Landing Page */
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-text {
    max-width: 100%;
  }
  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .features-section,
  .testimonials-section,
  .final-cta-section {
    padding: 40px 20px;
  }
  .promo-bar {
    padding: 8px 20px;
    line-height: 1.4;
  }
  .promo-bar .promo-line-1,
  .promo-bar .promo-line-2 {
    display: block;
    text-align: center;
  }

  /* Metrics Page */
  .metrics-stats-grid {
    grid-template-columns: 1fr;
  }

  /* Calendar Page */
  main:has(.calendar-main-container) {
    padding: 4px;
  }
  .calendar-main-container {
    padding: 10px;
  }
  .calendar-grid {
    gap: 4px;
  }
  .calendar-day {
    padding: 5px;
    min-height: 60px;
    font-size: 0.8rem;
  }
  .calendar-header {
    font-size: 0.75rem;
    margin-bottom: 4px;
    gap: 4px;
  }
  #monthYearLabel {
    font-size: 1.2rem;
  }

  /* Payment & Login Pages */
  .payment-container {
    grid-template-columns: 1fr;
  }
  .order-summary,
  .payment-methods {
    padding: 20px;
  }
  body[data-page-type="centered"]:has(.payment-container),
  body[data-page-type="centered"]:has(.login-box) {
    height: auto;
    overflow-y: auto;
  }
  body[data-page-type="centered"]:has(.payment-container) main,
  body[data-page-type="centered"]:has(.login-box) main {
    height: auto;
    overflow: visible;
    display: block;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  /* TOUR PAGE */
  body[data-page-type="app"] main:has(.tour-container) {
    display: block;
    overflow-y: auto;
    padding: 20px 15px;
  }
  .tour-container {
    flex-direction: column;
  }
  .tour-text,
  .tour-image {
    width: 100%;
    height: auto;
    min-height: 200px;
    flex-shrink: 0;
  }
  .tour-image {
    order: -1; /* Image above text */
  }
  .tour-logo {
    display: none !important;
  }

  /* FIX: HIDE IMAGES + EXPAND CONTAINERS */
  main img[src*="log.png"],
  main img[src*="log"],
  main img[src*="logo"],
  main img[src*="InstaYoddha"],
  main .illustration-box,
  main .logo-container,
  main .hero-logo,
  main .main-logo {
    display: none !important;
    visibility: hidden !important;
  }
  main .card,
  main .box,
  main .section,
  main .container,
  main .connected-platforms,
  main .account-security,
  main > div {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  main {
    overflow-y: auto; /* only page scroll, no inner scrollbars */
  }

  /* HIDE ELEMENTS ON MOBILE */
  #welcome-message {
    display: none;
  }
  header .header-right a,
 /* Fixed: checks for ID #menu-toggle instead of class .menu-toggle */
  header .header-right button:not(#menu-toggle):not(#theme-toggle) {
    display: none !important;
  }
  header .header-left > span:first-of-type {
    display: none;
  }
  .live-clock,
  .header-promo-message {
    display: none; 
  }

  /* --- ADDED: ALL PATCHES FOR SCROLLING AND FOOTER LAYOUT --- */

  /* 1. Allow the entire page to scroll */
  body[data-page-type="app"] {
    overflow-y: auto !important;
    height: auto;
  }
  body[data-page-type="app"] #app-container {
    height: auto;
  }

  /* 2. Make the header scroll with the page (remove sticky) */
  
    position: static;
  }

  /* 3. Style the footer layout and spacing */
  .footer-left,
  .foheader#header-placeholder {oter-right {
    display: none !important;
  }
  .footer-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 2px 15px; /* Vertical and horizontal gap */
    text-align: center;
  }
  .footer-center span:first-of-type {
    flex-basis: 100%; /* InstaYoddha text takes full width */
    font-weight: 600;
    font-size: 1rem;
    display: block;
  }
  .footer-center span:not(:first-of-type) {
    display: none !important; /* Hide text separators like '|' */
  }
  .footer-center a {
    border: none;
    padding: 0 8px;
    font-size: 0.9rem;
    display: inline-block;
  }
}

/* === IMAGE FIX PATCH (for logo.png inside main content only) ===
   Keeps large page logos fitting properly without affecting header logo.
*/

/* Target logo.png only if it’s inside the main content or illustration area */
.main-content img[src*="logo.png"],
.illustration-box img[src*="logo.png"],
.content-area img[src*="logo.png"],
.dashboard-body img[src*="logo.png"] {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  overflow: hidden;
}

/* Prevent scrollbars inside its container */
.main-content,
.illustration-box,
.content-area,
.dashboard-body {
  overflow: hidden;
}


 /* Custom Scrollbar for the sidebar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #1e293b;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Custom Scrollbar for the sidebar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #1e293b;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Sidebar base layout + transition */
#right-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    max-width: 80vw;
    background: rgba(15, 23, 42, 0.95); /* slate-900/95 style */
    border-left: 1px solid rgba(30, 64, 175, 0.6); /* similar to slate border */
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    z-index: 50;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);          /* hidden by default */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When sidebar is open */
#right-sidebar.open {
    transform: translateX(0);
}

/* Overlay base layout + transition */
#sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
}

/* When overlay is visible */
#sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Fade-in animation (used in dashboard too) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}
/* ----- SIDEBAR SHELL (you already have .open for animation) ----- */

#right-sidebar {
    /* your existing position/transition rules stay */
    background: #020617;              /* very dark navy */
    color: #e5e7eb;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Header row (Navigation + X) */
.sidebar-header {
    height: 64px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #111827;
}

.sidebar-title {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9ca3af;
}

.sidebar-close {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1rem;
}

.sidebar-close:hover {
    color: #f9fafb;
}

/* Main scroll area */
.sidebar-body {
    padding: 0.75rem 0 0.75rem 0;
    height: calc(100vh - 64px - 72px); /* header + footer approx */
}

/* Section wrapper */
.nav-section {
    padding: 0 1rem 1.25rem 1rem;
}

/* Section title (ANALYTICS, CONFIGURATION, etc.) */
.nav-section-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
    color: #6366f1; /* indigo accent like screenshot */
    margin: 0 0 0.5rem 0.3rem;
}

/* List container */
.nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Base nav button (icon + label) */
.nav-btn,
.nav-btn-active {
    display: flex;
    align-items: center;
    gap: 0.75rem;

    padding: 0.55rem 0.85rem;
    border-radius: 0.65rem;

    font-size: 0.9rem;
    color: #9ca3af;
    text-decoration: none;

    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.15s ease,
        box-shadow 0.18s ease;
}

/* Icon inside nav item */
.nav-btn i,
.nav-btn-active i {
    width: 1.25rem;
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Hover state */
.nav-btn:hover,
.nav-btn-active:hover {
    background-color: #0f172a;
    color: #e5e7eb;
    transform: translateX(2px);
}

/* Active item */
.nav-btn-active {
    background: radial-gradient(circle at 0 0, rgba(129, 140, 248, 0.35), #020617);
    color: #f9fafb;
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.7);
}

/* ----- ACCOUNT FOOTER (bottom bar) ----- */

.sidebar-account {
    height: 72px;
    padding: 0.75rem 1rem;
    border-top: 1px solid #111827;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #020617;
}

.sidebar-account-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.sidebar-account-name {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e5e7eb;
}

.sidebar-account-plan {
    margin: 0;
    font-size: 0.7rem;
    color: #9ca3af;
}

.sidebar-account-settings {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #1f2937;
    background: #020617;
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sidebar-account-settings:hover {
    background: #111827;
}
/* ========== DARK THEME (DEFAULT) ========== */

:root[data-theme="dark"] header#header-placeholder {
   
    top: 0;
    left: 0;
    right: 0;
    height: 65px;
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(51, 65, 85, 0.7);
    backdrop-filter: blur(12px);
    z-index: 40;
}

:root[data-theme="dark"] .header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #e5e7eb;
}

:root[data-theme="dark"] .header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Icon buttons (dark) */
:root[data-theme="dark"] .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.45rem;
    border-radius: 0.375rem;
    border: 1px solid #334155;
    background-color: #020617;
    color: #cbd5f5;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.1s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

:root[data-theme="dark"] .icon-btn:hover {
    background-color: #1f2937;
    color: #ffffff;
    border-color: #4b5563;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

:root[data-theme="dark"] .icon-btn:active {
    transform: scale(0.95);
}

/* Sidebar shell (dark) */
:root[data-theme="dark"] #right-sidebar {
    background: #020617;
    color: #e5e7eb;
}

/* Overlay (you already have .open, keep that) */
#sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
}
#sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Your nav-section, nav-btn, sidebar-account, etc. from previous step: */
:root[data-theme="dark"] .sidebar-header { /* ... */ }
:root[data-theme="dark"] .sidebar-title { /* ... */ }
:root[data-theme="dark"] .nav-section-title { /* ... */ }
:root[data-theme="dark"] .nav-btn { /* ... */ }
:root[data-theme="dark"] .nav-btn-active { /* ... */ }
:root[data-theme="dark"] .sidebar-account { /* ... */ }
/* keep all those rules you already added; just prefix with :root[data-theme="dark"] */
/* ========== LIGHT THEME ========== */

:root[data-theme="light"] body {
    background-color: #f3f4f6;
    color: #111827;
}

:root[data-theme="light"] header#header-placeholder {
    background: rgba(249, 250, 251, 0.9); /* light gray */
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: blur(12px);
}

:root[data-theme="light"] .header-left {
    color: #111827;
}

:root[data-theme="light"] .icon-btn {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    color: #4b5563;
}

:root[data-theme="light"] .icon-btn:hover {
    background-color: #f9fafb;
    color: #111827;
    border-color: #9ca3af;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
}

/* Sidebar (light) */
:root[data-theme="light"] #right-sidebar {
    background: #ffffff;
    color: #111827;
    box-shadow: -18px 0 40px rgba(15, 23, 42, 0.2);
}

:root[data-theme="light"] .sidebar-header {
    border-bottom-color: #e5e7eb;
}
:root[data-theme="light"] .sidebar-title {
    color: #6b7280;
}

:root[data-theme="light"] .nav-section-title {
    color: #4f46e5; /* slightly stronger indigo */
}

:root[data-theme="light"] .nav-btn,
:root[data-theme="light"] .nav-btn-active {
    color: #4b5563;
}

:root[data-theme="light"] .nav-btn:hover,
:root[data-theme="light"] .nav-btn-active:hover {
    background-color: #f3f4f6;
    color: #111827;
}

/* Active item in light mode */
:root[data-theme="light"] .nav-btn-active {
    background: radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.18), #ffffff);
    color: #111827;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.5);
}

/* Account bar (bottom) */
:root[data-theme="light"] .sidebar-account {
    background: #f9fafb;
    border-top-color: #e5e7eb;
}

:root[data-theme="light"] .sidebar-account-name {
    color: #111827;
}

:root[data-theme="light"] .sidebar-account-plan {
    color: #6b7280;
}

:root[data-theme="light"] .sidebar-account-settings {
    background: #ffffff;
    border-color: #d1d5db;
    color: #374151;
}
:root[data-theme="light"] .sidebar-account-settings:hover {
    background: #f3f4f6;
}
/* FORCE REAL DARK STYLE -- override unwanted yellow styles */
:root[data-theme="dark"] #right-sidebar .nav-btn,
:root[data-theme="dark"] #right-sidebar .nav-btn span,
:root[data-theme="dark"] #right-sidebar .nav-btn i {
    background: transparent !important;
    color: #d1d5db !important; /* slate-300 */
}

:root[data-theme="dark"] #right-sidebar .nav-btn-active {
    background: rgba(129, 140, 248, 0.25) !important;
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.6) !important;
    color: #f9fafb !important;
}
/* BLOCK global overrides */
#right-sidebar a,
#right-sidebar button {
    background: transparent !important;
}
:root[data-theme="dark"] #right-sidebar .nav-btn:hover {
    background: #0f172a !important;
    color: #ffffff !important;
}

:root[data-theme="dark"] #right-sidebar .nav-btn:active {
    transform: translateX(2px) !important;
}
/* Sidebar body scroll area */
.sidebar-body {
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 64px - 72px); /* header height + footer height */
    padding-bottom: 1rem;
}
.sidebar-body {
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    /* or */
    .md\:inline-flex { display: none; }
}
#menu-toggle {
    display: inline-flex !important;
}

@media (max-width: 768px) {
    #menu-toggle {
        display: inline-flex !important;
    }
}
.header-right {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
@media (max-width: 480px) {
    .header-right {
        gap: 0.25rem;
    }
}

/* ============================================
   COMMUNITY PAGE — ULTRA PREMIUM LAYOUT
   ============================================ */

.community-page {
  text-align: center;
  padding: 24px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 6px;
}

.page-subtitle {
  opacity: 0.8;
  margin-bottom: 24px;
}

/* ============================================
   RESPONSIVE GRID LAYOUT (3 → 2 → 1 CLEAN)
   ============================================ */

.community-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Desktop */
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card fills grid cell */
.community-row .community-card {
  width: 100%;
  max-width: 100%;
}

/* Tablet: 2 columns */
@media (max-width: 950px) {
  .community-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 column */
@media (max-width: 550px) {
  .community-row {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   CLEAN CARD STYLE + ANIMATIONS
   ============================================ */

.community-card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 26px 20px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  transform-style: preserve-3d;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Staggered fade-in with 6 cards (including Telegram) */
.community-card:nth-child(1) { animation-delay: 0.05s; }
.community-card:nth-child(2) { animation-delay: 0.10s; }
.community-card:nth-child(3) { animation-delay: 0.15s; }
.community-card:nth-child(4) { animation-delay: 0.20s; }
.community-card:nth-child(5) { animation-delay: 0.25s; }
.community-card:nth-child(6) { animation-delay: 0.30s; }

/* Hover tilt + premium shadow */
.community-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}


/* ============================================
   SOCIAL ICONS — CLEAN + ANIMATED
   ============================================ */

.social-icon {
  font-size: 48px;
  margin-bottom: 6px;
  transition: transform 0.25s ease;
}

.community-card:hover .social-icon {
  transform: scale(1.1);
}


/* ============================================
   TEXT STYLES
   ============================================ */

.community-card h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.community-card p {
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.85;
}


/* ============================================
   FOLLOW BUTTONS (PREMIUM PILL SHAPE)
   ============================================ */

.btn-follow {
  display: inline-block;
  padding: 10px 22px;
  margin-top: 6px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.25s ease;
}

.btn-follow:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 10px 22px rgba(15,23,42,0.35);
}

/* Platform colors */
.insta-btn { background: #e1306c; }
.fb-btn    { background: #1877f2; }
.yt-btn    { background: #ff0000; }
.wa-btn    { background: #25d366; }
.ln-btn    { background: #0077b5; }
.tg-btn    { background: #229ED9; } /* Telegram */


/* ============================================
   NOTIFICATION BOX (UNCHANGED)
   ============================================ */

.notifications-box {
  margin: 40px auto 0;
  max-width: 620px;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: var(--shadow);
  text-align: center;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.45s;
}

.notifications-box h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.notifications-box p {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 14px;
}

.notify-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 8px;
}

.notify-input {
  min-width: 230px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: var(--input-bg, #0f172a);
  color: inherit;
}

.notify-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.5);
  outline: none;
}

.notify-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  transition: 0.2s ease;
}

.notify-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(79,70,229,0.45);
}

.notify-note {
  font-size: 11px;
  opacity: 0.7;
}


/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}


/* ============================================
   RESPONSIVE TWEAKS
   ============================================ */

@media (max-width: 640px) {
  .community-page {
    padding-top: 18px;
  }

  .page-title {
    font-size: 22px;
  }

  .notifications-box {
    margin-top: 30px;
  }
}
/* ============================================
   COMMUNITY PAGE TYPOGRAPHY
   ============================================ */

.community-page,
.community-row,
.community-card {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Use BIZ UDPMincho only for card titles */
.community-card h3 {
  font-family: "BIZ UDPMincho", "Times New Roman", serif;
  font-weight: 600;
}

/* Subtitle under main title on community page */
.page-title {
  font-family: "BIZ UDPMincho", "Times New Roman", serif;
}

.page-subtitle {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
/* X (Twitter) styling */
.community-card .x {
    color: #ffffff;
}

.x-btn {
    background: #1d9bf0;
    color: #ffffff;
}

.x-btn:hover {
    background: #0c7ac9;
}
.social-svg {
  width: 48px;
  height: 48px;
}
