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

body {
  font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
}

/* Back-drop */

.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 110;
}

.popup-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 20;
    width: 300px;
}

.popup-message h2 {
    margin-top: 0;
    color: #333;
}

.buttons {
    margin-top: 25px;
    display: flex;
    justify-content: space-around;
}

.buttons button {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.confirm-btn {
    background-color: #28a745;
    color: white;
}

.confirm-btn:hover {
    background-color: #218838;
}

.cancel-btn {
    background-color: #dc3545;
    color: white;
}

.cancel-btn:hover {
    background-color: #c82333;
}

.hidden {
  display: none;
}

.notifi{
    border-radius:10px ;
    position: fixed;
    top: -125px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
  
    width: 200px;
    height: 125px;
    z-index: 200;
    animation-fill-mode: forwards;
   }

   .show-notifi {
  animation: message 1s ease-out forwards;
}

.hide-notifi {
  animation: message-return 1s ease-out forwards;
}

   .notifi-message{
    color: black;
    text-align: center;
    width: 95%;
   }
 
   @keyframes message{
    from{
  top:-150px;
    }
    to{
  top:15px;
    }
  }
  @keyframes message-return{
    from{
  top:15px;
    }
    to{
  top:-150px;
    }
  }

.red{
    background-color: rgb(233, 49, 3);
}
.green{
    background-color: #42fa9e;
}

/* ========== NAVBAR ========== */
.navbar {
  background: var(--card-bg);
  padding: 0 4px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px var(--shadow);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #7c3aed, #10b981);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg {
  width: 24px;
  height: 24px;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.logo-sub {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

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

.nav-links a {
  text-decoration: none;
  color: #4b5563;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 10px;
  transition: all 0.2s;
  cursor: pointer;
}

.nav-links a:hover {
  color: var(--accent);
  background: rgba(124, 58, 237, 0.06);
}

.nav-links a.active {
  color: #7c3aed;
  font-weight: 600;
  background: rgba(124, 58, 237, 0.08);
}

.nav-cta {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
  transition: transform 0.2s;
  flex-shrink: 0;
  font-family: inherit;
}

.nav-cta:hover {
  transform: scale(1.03);
}

.balance-container {
  display: flex;
  gap: 5px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: white;
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(14, 180, 95, 0.25);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #7c3aed;
}

.mobile-menu {
  display: none;
  background: var(--card-bg);
  border-top: 1px solid rgba(124, 58, 237, 0.1);
  padding: 12px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mobile-menu a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  background-color: var(--card-bg);
  font-weight: 500;
  font-size: 15px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(124, 58, 237, 0.08);
  transition: color 0.2s;
  cursor: pointer;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: #7c3aed;
  font-weight: 600;
}

.toggle {
  position: relative;
  width: 60px;
  height: 32px;
  display: inline-block;
  margin-inline-start: 10px;
}

.toggle input {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;
  background: #cfcfcf;
  border-radius: 32px;
  cursor: pointer;
  transition: 0.3s ease;
}

.slider::before {
  content: "☀️";
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  top: 2px;
  right: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.menu-toggle-wrap {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
}

:root {
  --purple: #432071;
  --purple-dark: #321453;
  --purple-light: #684092;
  --green: #46bd79;
  --green-dark: #0eb45f;

  --bg: #f7f8fa;
  --border: #dedfe5;
  --text: #29252e;
  --muted: #77757d;

  --card-bg: #ffffff;
  --shadow: rgba(0,0,0,.08);
  --accent: var(--purple);
}


.page-dark-mode {
  --bg: #1e1e1e;
  --text: #f5f5f5;
  --card-bg: #2a2a2a;
  --accent: #6a4bc4;
  --green: var(--accent);
  --shadow: rgba(0,0,0,.45);
}


.toggle input:checked + .slider {
  background: var(--accent);
}

.toggle input:checked + .slider::before {
  transform: translateX(-28px);
  content: "🌙";
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #10b981 100%);
  color: white;
  padding: 60px 20px 80px;
  position: relative;
  overflow: hidden;
}

.hero-img{
  width: 270px;
  height: 270px;
  border-radius: 50%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}


.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

@media (max-width: 600px) {
  .hero-inner {
    flex-direction: column;
  }
  .hero-avatar-wrap {
    margin-top: 58px;
  }
  .hero-img {
    width: 320px;
    height: 320px;
  }
}

.hero-content {
  flex: 1;
  min-width: 280px;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 30px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

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

.hero-stat-num {
  font-size: 32px;
  font-weight: 700;
}

.hero-stat-label {
  font-size: 14px;
  opacity: 0.9;
}

.hero-avatar-wrap {
  flex: 0 0 280px;
  text-align: center;
  min-width: 200px;
}

.hero-avatar {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.05)
  );
  border: 4px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.hero-avatar svg {
  width: 120px;
  height: 120px;
  opacity: 0.9;
}

.hero-deco-1 {
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.hero-deco-2 {
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
}

/* ========== SECTIONS COMMON ========== */


.section {
  padding: 60px 20px;
  background: var(--bg);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #7c3aed;
  text-align: center;
  margin-bottom: 40px;
}

.section-subtitle {
  text-align: center;
  color: #6b7280;
  margin-bottom: 40px;
  margin-top: -30px;
}

/* ========== WHY SUBSCRIBE ========== */
.why-section {
  background: var(--bg);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.why-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.why-card:hover {
  transform: translateY(-4px);
}

.why-num {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: white;
  font-size: 20px;
  font-weight: 700;
}

.why-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.why-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ========== SLIDER ========== */



/* COURSES*/
.courses-section {
  background: var(--bg);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  justify-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.course-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid var(--border);
  background: var(--card-bg);
  transition: transform 0.2s;
  cursor: pointer;
  max-width: 360px;
  -webkit-tap-highlight-color: transparent;
  min-width: 219px;
}

.course-card:hover {
  transform: translateY(-4px);
}

.course-card:nth-child(2) {
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.course-card:nth-child(3) {
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.course-img-container {
  height: 180px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.course-img {
  object-fit: contain;
  height: 100%;
}

.course-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: white;
}

.course-body {
  padding: 24px;
}

.course-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.course-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.course-price {
  font-weight: 700;
  font-size: 18px;
}

.course-btn {
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
  font-family: inherit;
}

.course-btn:hover {
  transform: scale(1.03);
}

/* ========== FEATURES DETAIL ========== */
.features-section {
  background: var(--bg);
}

.feature-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse  {
  flex-direction: row-reverse;
}
.feature-row.reverse  .feature-img-wrap{
  justify-content: flex-end;
}

.feature-row.reverse .feature-text {
  direction: rtl;
}

.feature-text {
  flex: 1;
  min-width: 0px;
  white-space: normal;
  overflow-wrap: break-word;
}

.feature-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon-box svg {
  width: 32px;
  height: 32px;
}

.feature-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
}

.feature-img-wrap {
  display: flex;
  flex: 0 0 120px;
  text-align: center;
  min-width: 220px;
  justify-content: flex-start;
}

.feature-img-box {
  width: 220px;
  height: 220px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed;
  /* margin: 0 auto; */
}

.feature-img-box svg {
  width: 100px;
  height: 100px;
  opacity: 0.6;
}

/* ========== ABOUT ========== */
.about-section {
  background: var(--bg);
}

.about-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
  background: var(--card-bg);
  box-shadow: 0 4px 20px var(--shadow);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid var(--border);
}

.about-avatar-wrap {
  flex: 0 0 220px;
  text-align: center;
  min-width: 180px;
}
@media (max-width: 627px) {
  .about-card {
    justify-content: center;
    text-align: center;
  }

  .about-avatar-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
  }

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

.about-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #10b981);
  padding: 4px;
  margin: 0 auto;
}

.about-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.about-avatar-inner svg {
  width: 80px;
  height: 80px;
}

.about-info {
  flex: 1;
  min-width: 280px;
}

.about-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature-icon svg {
  width: 22px;
  height: 22px;
}

.about-feature-title {
  width: 100%;
  text-align: start;
  font-weight: 600;
  color: var(--text);
}

.about-feature-desc {
  width: 100%;
  text-align: start;
  font-size: 13px;
  color: var(--muted);
}

/* ========== CTA ========== */
.cta-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #10b981 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 3px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
}

.cta-avatar svg {
  width: 60px;
  height: 60px;
}

.cta-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.5;
}

.cta-text {
  font-size: 18px;
  opacity: 0.95;
  line-height: 1.8;
  margin-bottom: 30px;
}

.cta-btn {
  background: white;
  color: #7c3aed;
  border: none;
  padding: 16px 48px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
  font-family: inherit;
}

.cta-btn:hover {
  transform: scale(1.05);
}

.cta-deco-1 {
  position: absolute;
  top: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.cta-deco-2 {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

/* ========== FOOTER ========== */
.footer {
  background: #1f2937;
  color: white;
  padding: 30px 20px;
  text-align: center;
  flex-shrink: 0;
  margin-top: auto;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
  cursor: pointer;
}

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

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.footer-copy p {
  font-size: 14px;
  opacity: 0.7;
  margin: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {

  .feature-text {
    order: 2;
  }
  .hero-title {
    font-size: 24px;
  }
  .hero-subtitle {
    font-size: 15px;
  }
  .hero-stats {
    flex-direction: column;
    gap: 15px;
  }
  .hero-stat-num {
    font-size: 24px;
  }
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .section-title {
    font-size: 22px;
  }
  .feature-title {
    font-size: 20px;
  }
  .about-name {
    font-size: 22px;
  }
  .cta-title {
    font-size: 22px;
  }
  .cta-text {
    font-size: 15px;
  }
  .navbar-inner {
    height: 60px;
    padding: 0 16px;
  }
  .logo-text {
    font-size: 16px;
  }
  .logo-sub {
    font-size: 11px;
  }
  .nav-cta {
    padding: 8px 16px;
    font-size: 13px;
  }
  .hero {
    padding: 40px 16px 60px;
  }
  .section {
    padding: 40px 16px;
  }
  .cta-section {
    padding: 60px 16px;
  }
  .hero-avatar {
    width: 180px;
    height: 180px;
  }
  .hero-avatar svg {
    width: 80px;
    height: 80px;
  }
  .feature-img-box {
    width: 190px;
    height: 190px;
  }
  .feature-img-box svg {
    width: 70px;
    height: 70px;
  }
  .about-avatar {
    width: 160px;
    height: 160px;
  }
  .about-img {
    width: 160px;
    height: 160px;
  }
  .about-avatar-inner svg {
    width: 60px;
    height: 60px;
  }
  .about-card {
    padding: 24px;
    gap: 30px;
  }
  .course-img-container {
    height: 140px;
  }
  .why-card {
    padding: 18px;
  }
  .why-num {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .feature-icon-box {
    width: 52px;
    height: 52px;
  }
  .feature-icon-box svg {
    width: 26px;
    height: 26px;
  }
  .about-feature-icon {
    width: 38px;
    height: 38px;
  }
  .about-feature-icon svg {
    width: 18px;
    height: 18px;
  }
  .cta-avatar {
    width: 90px;
    height: 90px;
  }
  .cta-avatar svg {
    width: 44px;
    height: 44px;
  }
  .cta-btn {
    padding: 14px 32px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 20px;
  }
  .hero-avatar {
    width: 140px;
    height: 140px;
  }
  .hero-avatar svg {
    width: 60px;
    height: 60px;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .courses-grid {
    grid-template-columns: 1fr;
  }
  .about-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) and (min-width: 470) {
  .feature-desc {
    font-size: 13px;
  }
  .feature-title {
    font-size: 17px;
  }
  .feature-img-box{
    width: 170px;
    height: 170px;
  }
}

@media (max-width: 469px) {
  .feature-desc {
    font-size: 11px;
  }
  .feature-title {
    font-size: 15px;
  }
  .feature-img-box{
    width: 140px;
    height: 140px;
  }
}

/* ===== hero actions ===== */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 4px 0 28px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform .2s, background .2s;
}
.hero-cta:hover { transform: translateY(-2px); }
.hero-cta-primary { background: #fff; color: #7c3aed; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.hero-cta-ghost { border: 1.5px solid rgba(255,255,255,.8); color: #fff; }
.hero-cta-ghost:hover { background: rgba(255,255,255,.12); }
#courses, #my-courses { scroll-margin-top: 80px; }
html { scroll-behavior: smooth; }

@media (max-width: 600px) {
  .hero-avatar-wrap { margin-top: 8px; }
  .hero-img { width: 200px; height: 200px; }
  .hero-actions { justify-content: center; }
  .hero-cta { flex: 1 1 140px; }
}

/* ===== my courses ===== */
.my-courses-section { background: var(--bg); padding-bottom: 0; }
.my-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
.my-course-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition: transform .2s;
}
.my-course-card:hover { transform: translateY(-3px); }
.my-course-img {
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}
.my-course-body { flex: 1 1 auto; min-width: 0; }
.my-course-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.my-course-bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(124, 58, 237, .12);
  overflow: hidden;
}
.my-course-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c3aed, #10b981);
}
.my-course-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 10px;
}
.my-course-cta { font-size: 13px; font-weight: 700; color: #7c3aed; }
.page-dark-mode .my-course-cta { color: #a78bfa; }

/* ===== course cards (from database) ===== */
.course-img-container { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.course-card:nth-child(even) .course-img-container { background: linear-gradient(135deg, #10b981, #34d399); }
.course-card.is-soon { cursor: default; }
.course-card.is-soon .course-img { opacity: .75; }
.course-card .course-price { color: #7c3aed; }
.course-card:nth-child(even) .course-price { color: #10b981; }
.course-card .course-btn { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.badge-soon { background: #7c3aed; }
.badge-owned { background: #10b981; }
.course-enter {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.courses-empty { color: var(--muted); grid-column: 1 / -1; text-align: center; }
