/* =====================================================
   DUMIDUUDDIPANA
   RESPONSIVE GLOBAL STYLE
   ===================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;

  background: #f7f8fc;
  color: #111827;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}


/* =====================================================
   NAVBAR
   ===================================================== */

.navbar {
  width: 100%;
  height: 92px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 6%;

  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5e7eb;

  position: sticky;
  top: 0;
  z-index: 1000;

  backdrop-filter: blur(14px);
}


/* LOGO */

.logo {
  display: flex;
  align-items: center;
  gap: 14px;

  font-weight: 800;
  color: #111827;
}

.logo-box {
  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 16px;

  background: #172033;
  color: white;

  font-size: 18px;
  font-weight: 900;

  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.logo-name {
  font-size: 20px;
  font-weight: 800;
}


/* NAV */

.navbar nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar nav > a {
  padding: 10px 14px;

  color: #475569;

  font-size: 15px;
  font-weight: 650;

  border-radius: 10px;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.navbar nav > a:hover {
  background: #f1f5f9;
  color: #111827;
}


/* =====================================================
   LOGIN / REGISTER NAV
   ===================================================== */

.nav-login {
  border: 1px solid #dbe1ea;
  background: white;
}

.nav-login:hover {
  border-color: #6366f1 !important;
  color: #4f46e5 !important;
}


.nav-register {
  background: #111827 !important;
  color: white !important;

  padding: 11px 18px !important;

  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.15);
}

.nav-register:hover {
  background: #4f46e5 !important;
  color: white !important;

  transform: translateY(-1px);
}


/* DASHBOARD NAV */

.nav-dashboard {
  background: #eef2ff;
  color: #4f46e5 !important;
}

.nav-dashboard:hover {
  background: #e0e7ff !important;
}


/* LOGOUT */

.nav-logout,
.menu-logout-button {
  border: 0;

  background: transparent;
  color: #dc2626;

  padding: 10px 14px;

  border-radius: 10px;

  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.nav-logout:hover,
.menu-logout-button:hover {
  background: #fef2f2;
  transform: translateY(-1px);
}


/* MOBILE MENU BUTTON */

.menu-button {
  display: none;

  width: 54px;
  height: 54px;

  border: 0;
  border-radius: 16px;

  background: #f1f5f9;
  color: #111827;

  font-size: 27px;

  cursor: pointer;
}


/* =====================================================
   HERO
   ===================================================== */

.hero {
  min-height: 650px;

  max-width: 1250px;

  margin: auto;

  padding: 100px 6%;

  display: grid;
  grid-template-columns: 1.05fr 0.95fr;

  align-items: center;

  gap: 70px;
}

.eyebrow {
  margin-bottom: 18px;

  color: #6366f1;

  font-size: 13px;
  font-weight: 900;

  letter-spacing: 5px;
}

.hero h1 {
  font-size: clamp(48px, 6vw, 78px);

  line-height: 1.02;

  letter-spacing: -3px;

  color: #111827;
}

.hero h1 span {
  color: #6366f1;
}

.hero p {
  max-width: 650px;

  margin-top: 25px;

  color: #64748b;

  font-size: 19px;
}


/* BUTTONS */

.hero-buttons,
.modal-buttons {
  display: flex;
  gap: 12px;

  margin-top: 32px;
}

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 48px;

  padding: 0 22px;

  border-radius: 12px;

  font-weight: 750;

  transition: 0.2s ease;
}

.btn.primary {
  background: #111827;
  color: white;

  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.btn.primary:hover {
  background: #4f46e5;
  transform: translateY(-2px);
}

.btn.secondary {
  background: white;
  color: #111827;

  border: 1px solid #dbe1ea;
}

.btn.secondary:hover {
  border-color: #6366f1;
  color: #4f46e5;
  transform: translateY(-2px);
}


/* =====================================================
   HERO VISUAL
   ===================================================== */

.hero-visual {
  min-height: 470px;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
}

.academy-card {
  width: 330px;
  min-height: 390px;

  padding: 42px;

  border-radius: 28px;

  background: #111827;
  color: white;

  box-shadow:
    0 30px 70px rgba(15, 23, 42, 0.22);
}

.academy-logo {
  width: 60px;
  height: 60px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 17px;

  background: white;
  color: #111827;

  font-weight: 900;
}

.mini-label {
  margin-top: 35px;

  color: #a5b4fc;

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 3px;
}

.academy-card h2 {
  margin-top: 18px;

  font-size: 42px;
  line-height: 1.05;
}

.academy-line {
  width: 60px;
  height: 4px;

  margin: 25px 0;

  border-radius: 10px;

  background: #818cf8;
}

.academy-card p {
  color: #cbd5e1;
}

.floating-card {
  position: absolute;

  padding: 14px 18px;

  background: white;

  border: 1px solid #e5e7eb;

  border-radius: 14px;

  font-weight: 700;

  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
}

.floating-top {
  top: 35px;
  right: 5px;
}

.floating-bottom {
  bottom: 35px;
  left: 5px;
}


/* =====================================================
   HOME MAIN CARDS
   ===================================================== */

.dashboard-section {
  max-width: 1250px;

  margin: auto;

  padding: 80px 6%;
}

.section-heading {
  max-width: 750px;

  margin-bottom: 45px;
}

.section-heading h2 {
  font-size: clamp(32px, 5vw, 52px);

  line-height: 1.1;

  letter-spacing: -2px;
}

.section-heading p {
  margin-top: 15px;

  color: #64748b;

  font-size: 17px;
}


/* HOME CARD GRID */

.main-cards {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 20px;
}


/* HOME CARD */

.main-card {
  min-height: 270px;

  padding: 28px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background: white;

  border: 1px solid #e5e7eb;

  border-radius: 22px;

  box-shadow:
    0 8px 30px rgba(15, 23, 42, 0.05);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.main-card:hover {
  transform: translateY(-5px);

  border-color: #c7d2fe;

  box-shadow:
    0 20px 45px rgba(15, 23, 42, 0.10);
}

.card-icon {
  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 15px;

  background: #f1f5f9;

  font-size: 25px;

  margin-bottom: 20px;
}

.main-card h3 {
  font-size: 19px;

  line-height: 1.25;

  color: #111827;
}

.card-subtitle {
  margin-top: 8px;

  font-weight: 700;

  color: #4f46e5;
}

.card-description {
  margin-top: 8px;

  color: #64748b;

  font-size: 14px;
}

.card-arrow {
  margin-top: 25px;

  font-weight: 800;

  color: #111827;
}


/* =====================================================
   DASHBOARD PAGE
   ===================================================== */

.dashboard {
  max-width: 1250px;

  margin: auto;

  padding: 70px 6% 100px;
}

.dashboard-welcome {
  margin-bottom: 45px;
}

.dashboard-welcome h1 {
  font-size: clamp(38px, 6vw, 62px);

  line-height: 1.05;

  letter-spacing: -2.5px;
}

.dashboard-welcome h1 span {
  color: #4f46e5;
}

.dashboard-welcome p {
  margin-top: 12px;

  color: #64748b;

  font-size: 19px;
}


/*
   IMPORTANT:
   Dashboard cards remain professional
   and are NOT made giant on mobile.
*/

.dashboard-main-cards {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 20px;
}

.dashboard-main-card {
  min-height: 290px;

  padding: 28px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background: white;

  border: 1px solid #e5e7eb;

  border-radius: 22px;

  box-shadow:
    0 8px 30px rgba(15, 23, 42, 0.05);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.dashboard-main-card:hover {
  transform: translateY(-5px);

  border-color: #c7d2fe;

  box-shadow:
    0 20px 45px rgba(15, 23, 42, 0.10);
}

.dashboard-card-icon {
  width: 54px;
  height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f1f5f9;

  border-radius: 15px;

  font-size: 25px;

  margin-bottom: 18px;
}

.dashboard-main-card h3 {
  font-size: 19px;

  line-height: 1.3;

  color: #111827;
}

.dashboard-card-subtitle {
  margin-top: 8px;

  color: #4f46e5;

  font-weight: 700;
}

.dashboard-main-card p {
  margin-top: 9px;

  color: #64748b;

  font-size: 14px;
}

.dashboard-card-arrow {
  margin-top: 25px;

  font-weight: 800;

  color: #111827;
}


/* =====================================================
   LOGIN / REGISTER PAGE
   ===================================================== */

.auth-page {
  min-height: calc(100vh - 92px);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 50px 20px;
}

.auth-container {
  width: 100%;
  max-width: 460px;
}

.auth-card {
  padding: 42px;

  background: white;

  border: 1px solid #e5e7eb;

  border-radius: 24px;

  box-shadow:
    0 25px 70px rgba(15, 23, 42, 0.10);
}

.auth-card h1 {
  font-size: 34px;

  line-height: 1.1;

  letter-spacing: -1px;
}

.auth-card > p {
  margin-top: 10px;

  color: #64748b;
}

.auth-form {
  margin-top: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;

  margin-bottom: 7px;

  color: #334155;

  font-size: 14px;

  font-weight: 750;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;

  min-height: 50px;

  padding: 0 14px;

  background: #f8fafc;

  border: 1px solid #dbe1ea;

  border-radius: 11px;

  outline: none;

  color: #111827;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.form-group textarea {
  padding-top: 12px;
  min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  background: white;

  border-color: #6366f1;

  box-shadow:
    0 0 0 4px rgba(99, 102, 241, 0.10);
}

.auth-submit {
  width: 100%;

  min-height: 52px;

  border: 0;

  border-radius: 12px;

  background: #111827;

  color: white;

  font-weight: 800;

  cursor: pointer;

  transition: 0.2s ease;
}

.auth-submit:hover {
  background: #4f46e5;

  transform: translateY(-1px);
}

.auth-footer {
  margin-top: 22px;

  text-align: center;

  color: #64748b;

  font-size: 14px;
}

.auth-footer a {
  color: #4f46e5;

  font-weight: 800;
}


/* =====================================================
   AI VIDEO CREATION PAGE
   ===================================================== */

.ai-page {
  max-width: 1150px;

  margin: auto;

  padding: 65px 6% 100px;
}

.ai-hero {
  padding: 50px;

  border-radius: 28px;

  background: #111827;

  color: white;

  box-shadow:
    0 25px 60px rgba(15, 23, 42, 0.15);
}

.ai-hero .eyebrow {
  color: #a5b4fc;
}

.ai-hero h1 {
  max-width: 850px;

  font-size: clamp(38px, 6vw, 68px);

  line-height: 1.05;

  letter-spacing: -2px;
}

.ai-hero p {
  max-width: 750px;

  margin-top: 18px;

  color: #cbd5e1;

  font-size: 17px;
}

.ai-content {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 20px;

  margin-top: 25px;
}

.ai-card {
  padding: 30px;

  background: white;

  border: 1px solid #e5e7eb;

  border-radius: 20px;

  box-shadow:
    0 8px 30px rgba(15, 23, 42, 0.05);
}

.ai-card h2,
.ai-card h3 {
  color: #111827;
}

.ai-card p {
  margin-top: 10px;

  color: #64748b;
}

.ai-prompt-box {
  width: 100%;

  min-height: 180px;

  margin-top: 20px;

  padding: 18px;

  background: #f8fafc;

  border: 1px solid #e2e8f0;

  border-radius: 14px;

  font-family: monospace;

  color: #334155;

  resize: vertical;
}

.ai-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 48px;

  margin-top: 15px;

  padding: 0 20px;

  border: 0;

  border-radius: 11px;

  background: #4f46e5;

  color: white;

  font-weight: 800;

  cursor: pointer;

  transition: 0.2s ease;
}

.ai-button:hover {
  background: #3730a3;

  transform: translateY(-1px);
}


/* =====================================================
   MODAL
   ===================================================== */

.login-modal {
  position: fixed;

  inset: 0;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(15, 23, 42, 0.55);

  backdrop-filter: blur(5px);

  z-index: 3000;
}

.login-modal.active {
  display: flex;
}

.login-modal-box {
  width: 100%;
  max-width: 430px;

  padding: 35px;

  background: white;

  border-radius: 24px;

  text-align: center;

  box-shadow:
    0 30px 80px rgba(15, 23, 42, 0.25);

  position: relative;
}

.modal-close {
  position: absolute;

  top: 15px;
  right: 15px;

  width: 38px;
  height: 38px;

  border: 0;

  border-radius: 50%;

  background: #f1f5f9;

  font-size: 23px;

  cursor: pointer;
}

.modal-icon {
  font-size: 42px;

  margin-bottom: 10px;
}

.login-modal-box h2 {
  font-size: 28px;
}

.login-modal-box p {
  margin-top: 10px;

  color: #64748b;
}


/* =====================================================
   FOOTER
   ===================================================== */

footer {
  padding: 45px 6% 30px;

  background: #111827;

  color: white;
}

.footer-content {
  max-width: 1250px;

  margin: auto;
}

.footer-logo {
  color: white;
}

.footer-content p {
  margin-top: 15px;

  color: #94a3b8;
}

.copyright {
  max-width: 1250px;

  margin: 30px auto 0;

  padding-top: 20px;

  border-top: 1px solid #273449;

  color: #64748b;

  font-size: 13px;
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 900px) {

  .navbar {
    height: 78px;

    padding: 0 20px;
  }

  .logo-box {
    width: 46px;
    height: 46px;

    border-radius: 14px;
  }

  .logo-name {
    font-size: 18px;
  }

  .menu-button {
    display: flex;

    align-items: center;
    justify-content: center;
  }

  .navbar nav {
    display: none;

    position: absolute;

    top: 88px;
    left: 15px;
    right: 15px;

    padding: 12px;

    flex-direction: column;
    align-items: stretch;

    background: white;

    border: 1px solid #e5e7eb;

    border-radius: 18px;

    box-shadow:
      0 20px 50px rgba(15, 23, 42, 0.12);
  }

  .navbar nav.mobile-open {
    display: flex;
  }

  .navbar nav > a,
  .navbar nav > button {
    width: 100%;

    text-align: left;

    padding: 13px 15px;
  }

  .hero {
    grid-template-columns: 1fr;

    padding-top: 65px;

    gap: 35px;
  }

  .hero h1 {
    letter-spacing: -2px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .main-cards,
  .dashboard-main-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-content {
    grid-template-columns: 1fr;
  }
}


/* =====================================================
   SMALL MOBILE
   ===================================================== */

@media (max-width: 600px) {

  .navbar {
    padding: 0 15px;
  }

  .logo-name {
    font-size: 16px;
  }

  .logo-box {
    width: 44px;
    height: 44px;

    font-size: 16px;
  }

  .menu-button {
    width: 50px;
    height: 50px;
  }

  .hero {
    padding: 55px 20px 70px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 400px;
  }

  .academy-card {
    width: 285px;

    min-height: 350px;

    padding: 30px;
  }

  .academy-card h2 {
    font-size: 35px;
  }

  .floating-card {
    font-size: 12px;

    padding: 10px 12px;
  }

  .floating-top {
    right: 0;
    top: 20px;
  }

  .floating-bottom {
    left: 0;
    bottom: 20px;
  }

  .dashboard-section,
  .dashboard {
    padding-left: 18px;
    padding-right: 18px;
  }

  .main-cards,
  .dashboard-main-cards {
    grid-template-columns: 1fr;
  }

  .dashboard-main-card {
    min-height: 250px;

    padding: 24px;
  }

  .dashboard-welcome h1 {
    font-size: 40px;
  }

  .dashboard-welcome p {
    font-size: 16px;
  }

  .section-heading h2 {
    font-size: 35px;
  }

  .auth-page {
    padding: 30px 15px;
  }

  .auth-card {
    padding: 28px 22px;

    border-radius: 20px;
  }

  .auth-card h1 {
    font-size: 30px;
  }

  .ai-page {
    padding: 35px 15px 70px;
  }

  .ai-hero {
    padding: 30px 22px;

    border-radius: 22px;
  }

  .ai-hero h1 {
    font-size: 40px;
  }

  .ai-card {
    padding: 23px;
  }

  .login-modal-box {
    padding: 30px 22px;
  }

  .modal-buttons {
    flex-direction: column;
  }

  .modal-buttons .btn {
    width: 100%;
  }
}


/* =====================================================
   ===== FIXES & MISSING STYLES (added) =====
   ===================================================== */

/* ---------- login popup: JS adds .show ---------- */

.login-modal.show,
.login-modal.active {
  display: flex;
}

.login-modal-box {
  position: relative;
  background: white;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
}

.modal-buttons {
  justify-content: center;
}

.modal-close {
  cursor: pointer;
}


/* ---------- nav extras ---------- */

.nav-logout,
.login-button {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbe1ea;
  background: white;
  color: #111827;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s ease;
}

.nav-logout {
  color: #dc2626;
  border-color: #fecaca;
}

.nav-logout:hover {
  background: #fef2f2;
}

.login-button:hover {
  border-color: #6366f1;
  color: #4f46e5;
}

.navbar nav > a.active {
  background: #eef2ff;
  color: #4f46e5;
}

.nav-register,
.nav-login,
.nav-dashboard {
  align-items: center;
}


/* ---------- home hero ---------- */

.hero-content {
  min-width: 0;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.main-card.protected-card {
  cursor: pointer;
}

.card-content {
  flex: 1;
}

.video-icon     { background: #fee2e2; }
.image-icon     { background: #dbeafe; }
.prompt-icon    { background: #ede9fe; }
.thumbnail-icon { background: #ffedd5; }
.title-icon     { background: #dcfce7; }
.chat-icon      { background: #e0f2fe; }
.generator-icon { background: #fef9c3; }
.watch-icon     { background: #fce7f3; }
.trending-icon  { background: #ffe4e6; }


/* ---------- shared page helpers ---------- */

.section,
.page-hero,
.contact-page,
.ebook-page,
.faq-page,
.lesson-page,
.course-detail,
.payment-page,
.admin-page,
.certificate-page,
.thumbnail-tool,
.tool-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 6%;
}

.page-hero {
  padding-bottom: 20px;
}

.page-hero h1,
.contact-page h1,
.ebook-page h1,
.faq-page h1,
.lesson-content h1,
.course-detail h1,
.payment-card h1,
.admin-page h1,
.section h1,
.thumbnail-box h1,
.tool-page h1 {
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.page-hero p,
.contact-page p,
.ebook-page p,
.course-detail p,
.lesson-content p,
.thumbnail-box > p,
.tool-page > p {
  margin-top: 14px;
  color: #64748b;
  font-size: 17px;
}

.course-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}


/* ---------- login & register ---------- */

.auth-body {
  background:
    radial-gradient(circle at 15% 10%, #e0e7ff 0, transparent 40%),
    radial-gradient(circle at 90% 90%, #fce7f3 0, transparent 40%),
    #f7f8fc;
}

.auth-page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.auth-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
}

.auth-glow-one { background: #818cf8; top: -90px; left: -90px; }
.auth-glow-two { background: #f9a8d4; bottom: -90px; right: -90px; }

.auth-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  padding: 42px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 26px;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.10);
}

.auth-logo,
.auth-box > .logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  font-weight: 800;
}

.auth-eyebrow {
  margin-bottom: 10px;
  color: #6366f1;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 4px;
}

.auth-box h1 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -1px;
}

.auth-box > p,
.auth-description {
  margin-top: 10px;
  color: #64748b;
}

.auth-box form {
  margin-top: 26px;
}

.auth-field {
  margin-bottom: 18px;
}

.auth-box label {
  display: block;
  margin: 14px 0 7px;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

.auth-field label { margin-top: 0; }

.auth-box input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background: #f8fafc;
  border: 1px solid #dbe1ea;
  border-radius: 14px;
  outline: none;
  transition: 0.2s ease;
}

.auth-box input:focus {
  background: white;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap input {
  padding-right: 56px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
}

.password-toggle:hover { background: #f1f5f9; }

.auth-box .btn,
.auth-submit {
  width: 100%;
  margin-top: 22px;
  min-height: 52px;
  border: 0;
  cursor: pointer;
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #111827;
  color: white;
  border-radius: 14px;
  font-weight: 800;
}

.auth-submit:hover { background: #4f46e5; }
.auth-submit:disabled,
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-message,
#registerMessage {
  min-height: 24px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.auth-switch,
.auth-box > p:not(#registerMessage) {
  margin-top: 16px;
  text-align: center;
  color: #64748b;
  font-size: 15px;
}

.auth-switch a,
.auth-box > p a {
  color: #4f46e5;
  font-weight: 700;
}

.auth-divider { margin: 22px 0; border-top: 1px solid #e5e7eb; }
.auth-home, .auth-secure { text-align: center; color: #64748b; font-size: 14px; margin-top: 12px; }


/* ---------- contact / ebook ---------- */

.contact-page,
.ebook-page,
.course-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.contact-form,
.ebook-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form,
.payment-card {
  padding: 32px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.08);
}

.contact-form input,
.contact-form textarea,
.ebook-form input,
.thumbnail-box input,
.tool-card input,
.tool-card textarea,
.tool-card select {
  width: 100%;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #dbe1ea;
  border-radius: 14px;
  outline: none;
  transition: 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.ebook-form input:focus,
.thumbnail-box input:focus,
.tool-card input:focus,
.tool-card textarea:focus,
.tool-card select:focus {
  background: white;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.contact-form textarea { resize: vertical; }

#contactResult,
#ebookMessage,
#thumbnailMessage {
  margin-top: 6px;
  font-weight: 600;
  font-size: 14px;
}

.ebook-cover,
.course-detail-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  font-size: 110px;
  background: linear-gradient(135deg, #e0e7ff, #fce7f3);
  border-radius: 28px;
}


/* ---------- FAQ ---------- */

.faq-page { max-width: 800px; }
.faq-list { margin-top: 30px; display: grid; gap: 12px; }

.faq-list details {
  padding: 18px 22px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}

.faq-list summary { font-weight: 750; cursor: pointer; }
.faq-list details p { margin-top: 10px; color: #64748b; }


/* ---------- course / lesson / progress ---------- */

.course-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }

.course-meta span {
  padding: 8px 14px;
  background: #eef2ff;
  color: #4338ca;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.lesson-page { display: grid; gap: 30px; max-width: 900px; }

.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  font-size: 70px;
  color: white;
  background: linear-gradient(135deg, #172033, #4f46e5);
  border-radius: 24px;
}

.lesson-list { display: grid; gap: 10px; margin-top: 26px; }

.lesson-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  font-weight: 650;
  transition: 0.2s ease;
}

.lesson-list a:hover { border-color: #6366f1; transform: translateX(4px); }
.lesson-list a span { color: #16a34a; font-weight: 900; }

.big-progress { margin: 26px 0; }
.progress { height: 14px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, #6366f1, #ec4899); border-radius: 999px; }
.big-progress strong { display: block; margin-top: 10px; }


/* ---------- courses.html / ai-video.html lessons ---------- */

.course-learning-page { max-width: 1000px; margin: 0 auto; padding: 60px 6%; }

.course-page-header { text-align: center; margin-bottom: 50px; }

.course-page-header h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.course-page-header p { margin-top: 14px; color: #64748b; font-size: 17px; }

.learning-section { margin-bottom: 40px; }

.learning-section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.learning-section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 26px;
  background: #eef2ff;
  border-radius: 16px;
}

.learning-section-heading h2 { font-size: 24px; }
.learning-section-heading p { color: #64748b; font-size: 15px; }

.lesson-card {
  padding: 28px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.lesson-number,
.small-label {
  display: inline-block;
  margin-bottom: 10px;
  color: #6366f1;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
}

.lesson-card h3 { font-size: 26px; letter-spacing: -0.5px; }
.lesson-intro { margin: 10px 0 20px; color: #64748b; }
.lesson-intro-center, .lesson-title-center { text-align: center; }

.lesson-video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 18px 0;
  overflow: hidden;
  background: #0f172a;
  border-radius: 18px;
}

.lesson-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.resource-media { margin: 18px 0; }
.resource-media img, .resource-media video { max-width: 100%; border-radius: 16px; }

.lesson-description-box {
  margin-top: 20px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
}

.lesson-description-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.lesson-description-header h4 { font-size: 16px; }

.copy-button {
  padding: 10px 16px;
  border: 0;
  background: #111827;
  color: white;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.copy-button:hover { background: #4f46e5; }

.lesson-copy-text {
  width: 100%;
  min-height: 150px;
  padding: 14px;
  background: white;
  border: 1px solid #dbe1ea;
  border-radius: 12px;
  resize: vertical;
  line-height: 1.6;
}


/* ---------- thumbnail tool ---------- */

.thumbnail-tool,
.tool-page { max-width: 820px; }

.thumbnail-box,
.tool-card {
  padding: 36px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 26px;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.08);
}

#thumbnailForm {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

#thumbnailForm input { flex: 1; }
#thumbnailForm .btn { border: 0; cursor: pointer; white-space: nowrap; }

.thumbnail-result { margin-top: 28px; text-align: center; }
.thumbnail-result h2 { font-size: 22px; margin-bottom: 16px; }

.thumbnail-result img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.thumbnail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
}

.footer-links a { color: #94a3b8; }
.footer-links a:hover { color: white; }


/* ---------- generic tool pages (new pages) ---------- */

.tool-card { margin-top: 28px; display: grid; gap: 14px; }
.tool-card label { font-weight: 700; font-size: 14px; color: #334155; }
.tool-card .btn { border: 0; cursor: pointer; }

.tool-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.tool-output {
  padding: 18px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  white-space: pre-wrap;
  line-height: 1.7;
}

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }

.stat {
  padding: 18px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}

.stat strong { display: block; font-size: 28px; letter-spacing: -1px; }
.stat span { color: #64748b; font-size: 14px; }

.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  padding: 10px 16px;
  background: #eef2ff;
  color: #4338ca;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.chip:hover { background: #e0e7ff; }

.prompt-list { display: grid; gap: 16px; margin-top: 28px; }

.prompt-item {
  padding: 22px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
}

.prompt-item h3 { font-size: 18px; margin-bottom: 10px; }

.prompt-item p {
  margin-bottom: 14px;
  padding: 14px;
  background: #f8fafc;
  border-radius: 12px;
  color: #334155;
  font-size: 15px;
}


/* ---------- payment / admin / certificate ---------- */

.payment-page { max-width: 560px; }
.price { margin: 18px 0; font-size: 42px; font-weight: 900; letter-spacing: -1px; }
.payment-options { display: grid; gap: 12px; }

.payment-options button {
  min-height: 52px;
  background: #111827;
  color: white;
  border: 0;
  border-radius: 14px;
  font-weight: 750;
  cursor: pointer;
}

.payment-options button:hover { background: #4f46e5; }
.small-text { margin-top: 16px; color: #94a3b8; font-size: 13px; }

.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 30px 0; }

.dashboard-card {
  padding: 24px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
}

.dashboard-card span { font-size: 28px; }
.dashboard-card strong { display: block; margin-top: 8px; font-size: 30px; }
.dashboard-card p { color: #64748b; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.certificate {
  padding: 60px 30px;
  text-align: center;
  background: white;
  border: 6px double #c7d2fe;
  border-radius: 24px;
}

.certificate h1 { font-size: clamp(30px, 5vw, 48px); margin: 14px 0; }
.certificate h2 { margin: 12px 0; font-size: 34px; color: #4f46e5; }
.certificate-footer { display: flex; justify-content: space-between; margin-top: 40px; color: #64748b; font-weight: 700; }


/* ---------- mobile for everything added above ---------- */

@media (max-width: 900px) {

  .contact-page,
  .ebook-page,
  .course-detail { grid-template-columns: 1fr; gap: 30px; }

  .section,
  .page-hero,
  .contact-page,
  .ebook-page,
  .faq-page,
  .lesson-page,
  .course-detail,
  .payment-page,
  .admin-page,
  .thumbnail-tool,
  .tool-page { padding: 45px 5%; }

  .menu-logout-button { text-align: left; }
}

@media (max-width: 600px) {

  .auth-box,
  .thumbnail-box,
  .tool-card,
  .contact-form,
  .payment-card { padding: 24px 20px; }

  #thumbnailForm { flex-direction: column; }
  #thumbnailForm .btn { width: 100%; min-height: 50px; }

  .tool-row { grid-template-columns: 1fr; }

  .lesson-card { padding: 20px; }
  .lesson-description-header { flex-direction: column; align-items: flex-start; }
  .hero-buttons .btn { width: 100%; }
  .ebook-cover, .course-detail-cover { min-height: 200px; font-size: 80px; }
}


/* ---------- login polish ---------- */

.auth-box > p.auth-description,
.auth-box > .auth-description {
  text-align: left;
  font-size: 16px;
}

.auth-divider {
  position: relative;
  margin: 22px 0;
  border: 0;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  border-top: 1px solid #e5e7eb;
}

.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

.auth-home a {
  color: #4f46e5;
  font-weight: 700;
}


/* =====================================================
   MY BRANDS (public section)
   ===================================================== */

.brands-section {
  max-width: 1250px;
  margin: auto;
  padding: 70px 6% 10px;
  scroll-margin-top: 90px;
}

.brand-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.other-heading {
  margin: 45px 0 25px;
}

.other-heading h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.brand-card {
  padding: 30px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.brand-card:hover {
  transform: translateY(-5px);
  border-color: #c7d2fe;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
}

.brand-wide {
  grid-column: 1 / -1;
  background: #f8fafc;
  border-style: dashed;
}

.brand-logo {
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #111827;
  color: white;
  font-size: 22px;
  font-weight: 800;
}

.brand-card h3 {
  font-size: 22px;
  line-height: 1.25;
  color: #111827;
}

.social-links {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}




.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-pill svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.social-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
}

.social-pill.youtube   { background: #ff0000; }
.social-pill.facebook  { background: #1877f2; }
.social-pill.linkedin  { background: #0a66c2; }
.social-pill.x         { background: #111827; }
.social-pill.instagram { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.social-pill.tiktok {
  background: #000;
  box-shadow: -3px 3px 0 #25f4ee, 3px -3px 0 #fe2c55;
}
.social-pill.tiktok:hover {
  box-shadow: -4px 4px 0 #25f4ee, 4px -4px 0 #fe2c55;
}

@media (max-width: 700px) {
  .brand-cards { grid-template-columns: 1fr; }
  .brand-card { padding: 24px 20px; }
  .social-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .social-pill {
    justify-content: center;
    padding: 13px 10px;
    min-width: 0;
  }
  .social-pill.tiktok {
    box-shadow: -2px 2px 0 #25f4ee, 2px -2px 0 #fe2c55;
  }
  .brands-section { padding-top: 50px; }
}
