@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@500;700;800&display=swap');

:root {
  --primary-dark: #0A2A4A;   /* Deep Navy */
  --primary-medium: #185FA5; /* Steel Blue */
  --accent: #F5A623;         /* Golden Yellow */
  --accent-hover: #D98C0B;   /* Darker Gold */
  --bg-light: #F4F7F9;       /* Light Grey-Blue background */
  --card-bg: #FFFFFF;
  --text-main: #1C2D3D;
  --text-muted: #627585;
  --border-color: #E2E8F0;
  --success: #10B981;
  --shadow: 0 4px 12px rgba(10, 42, 74, 0.05), 0 1px 3px rgba(10, 42, 74, 0.03);
  --shadow-hover: 0 10px 25px rgba(10, 42, 74, 0.08), 0 4px 6px rgba(10, 42, 74, 0.04);
  --radius: 8px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary-dark);
  font-weight: 700;
}

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

/* APP LAYOUT */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* NAVBAR */
.navbar {
  background-color: var(--primary-dark);
  color: #white;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF;
}

.nav-logo {
  width: 32px;
  height: 32px;
  background-color: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 1.2rem;
}

.nav-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: #E2E8F0;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  padding: 6px 12px;
  border-radius: 4px;
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 20px;
}

.user-name {
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-logout {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-logout:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
}

/* MAIN CONTENT CONTAINER */
.main-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px;
}

/* UTILITY CLASSES */
.hidden {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-accent {
  background-color: var(--accent);
  color: var(--primary-dark);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline-dark {
  background: transparent;
  border: 2px solid var(--primary-medium);
  color: var(--primary-medium);
}

.btn-outline-dark:hover {
  background-color: rgba(24, 95, 165, 0.05);
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.badge-new {
  background-color: rgba(245, 166, 35, 0.15);
  color: var(--accent-hover);
}

/* LOGIN VIEW */
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.login-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  width: 100%;
  max-width: 400px;
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-header h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.login-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-medium);
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.15);
}

.btn-login {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
}

/* SHOP VIEW / VITRINE */
.shop-hero {
  background-color: var(--primary-dark);
  color: #FFFFFF;
  border-radius: var(--radius);
  padding: 48px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--accent);
}

.shop-hero-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.shop-hero h2 {
  color: #FFFFFF;
  font-size: 2.2rem;
  margin-bottom: 12px;
  line-height: 1.25;
}

.shop-hero p {
  color: #E2E8F0;
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--primary-medium);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 48px;
}

.product-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-card-img {
  height: 180px;
  background-color: var(--primary-dark);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.product-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
}

.product-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.product-card-desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.product-price {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.price-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
}

/* PRODUCT DETAIL VIEW */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--primary-medium);
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 24px;
  transition: var(--transition);
}

.back-btn:hover {
  color: var(--primary-dark);
  transform: translateX(-2px);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-main {
  height: 380px;
  background-color: var(--primary-dark);
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
}

.gallery-thumb {
  width: 80px;
  height: 60px;
  background-color: var(--primary-dark);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.gallery-thumb:hover, .gallery-thumb.active {
  border-color: var(--accent);
  opacity: 0.9;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  display: flex;
  flex-direction: column;
}

.detail-title {
  font-size: 1.8rem;
  line-height: 1.25;
  margin-bottom: 12px;
}

.detail-tagline {
  color: var(--primary-medium);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.detail-desc {
  color: var(--text-main);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.detail-checklist {
  margin-bottom: 28px;
}

.checklist-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.checklist-item::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

.purchase-card {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: auto;
}

.purchase-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.btn-purchase-large {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

/* MEMBER DASHBOARD VIEW */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.student-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.student-progress-ring {
  width: 48px;
  height: 48px;
  background-color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.student-info h3 {
  font-size: 1.1rem;
}

.student-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.my-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
  margin-bottom: 48px;
}

.course-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.course-card-header {
  height: 120px;
  background-color: var(--primary-dark);
  color: #FFFFFF;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 3px solid var(--accent);
}

.course-card-category {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-weight: 700;
}

.course-card-title {
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.course-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.course-progress-bar-wrap {
  width: 100%;
}

.course-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background-color: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--primary-medium);
  border-radius: 3px;
  transition: width 0.4s ease-out;
}

.course-card-subjects {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.course-card-subjects ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.course-card-subjects li {
  display: flex;
  justify-content: space-between;
}

.btn-enter-course {
  width: 100%;
  margin-top: auto;
}

/* COURSE VIEWER VIEW (SUBJECTS & MATERIALS) */
.viewer-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 32px;
  align-items: start;
}

.subjects-sidebar {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  position: sticky;
  top: 90px;
}

.sidebar-title {
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.subject-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subject-nav-item {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  background-color: var(--bg-light);
  border: 1px solid transparent;
}

.subject-nav-item:hover, .subject-nav-item.active {
  background-color: var(--primary-medium);
  color: #FFFFFF;
  border-color: var(--primary-medium);
}

.subject-nav-item.active .badge-subject-count {
  background-color: #FFFFFF;
  color: var(--primary-medium);
}

.badge-subject-count {
  background-color: var(--primary-dark);
  color: #FFFFFF;
  padding: 2px 6px;
  font-size: 0.65rem;
  border-radius: 4px;
}

.materials-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.materials-header {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.materials-header h2 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.materials-header p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.materials-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.material-item-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
}

.material-item-card:hover {
  border-color: var(--primary-medium);
}

.material-item-card.active-card {
  border-color: var(--primary-medium);
  background-color: #f4f8fc;
  box-shadow: 0 4px 12px rgba(24, 95, 165, 0.08);
}

.material-meta {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.study-checkbox-label {
  display: flex;
  align-items: center;
  margin-top: 2px;
  cursor: pointer;
}

.study-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid var(--border-color);
  cursor: pointer;
  accent-color: var(--success);
}

.material-info {
  margin-left: 4px;
  flex: 1;
}

.material-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.3;
}

.material-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.material-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
  border-top: 1px solid #eef2f6;
  padding-top: 10px;
}

.btn-action-sm {
  padding: 8px 16px;
  font-size: 0.78rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

/* UPSELL SECTION IN MEMBER AREA */
.upsell-banner-member {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #153e6b 100%);
  color: #FFFFFF;
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 40px;
  border-left: 5px solid var(--accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.upsell-banner-info h3 {
  color: #FFFFFF;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.upsell-banner-info p {
  color: #E2E8F0;
  font-size: 0.8rem;
}

/* FOOTER PLATFORM */
.platform-footer {
  background-color: var(--primary-dark);
  color: #E2E8F0;
  padding: 24px;
  text-align: center;
  font-size: 0.78rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.platform-footer p {
  opacity: 0.7;
}

/* MATERIALS LIST & PREVIEW SPLIT VIEW */
.materials-list-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.material-preview-pane {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  position: sticky;
  top: 90px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.preview-pane-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
}

.preview-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
  animation: floatIcon 3s infinite alternate ease-in-out;
}

@keyframes floatIcon {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.preview-pane-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.preview-material-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  color: var(--primary-dark);
}

.preview-canvas {
  flex: 1;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  position: relative;
}

.preview-canvas img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.preview-canvas iframe {
  width: 100%;
  height: 380px;
  border: none;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 24px;
  }
  .viewer-layout {
    grid-template-columns: 1fr;
  }
  .materials-list-wrapper {
    grid-template-columns: 1fr;
  }
  .material-preview-pane {
    position: static;
    min-height: auto;
    margin-top: 20px;
  }
  .subjects-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .dashboard-header {
    display: none !important;
  }
  .navbar {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .nav-menu {
    width: 100%;
    justify-content: space-between;
  }
  .nav-user {
    padding-left: 12px;
  }
  .shop-hero {
    padding: 30px 24px;
  }
  .shop-hero h2 {
    font-size: 1.6rem;
  }
  .upsell-banner-member {
    flex-direction: column;
    text-align: center;
  }
}

/* Lock Overlay for Locked Showcase Products */
.product-card-img {
  position: relative;
}
.lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 42, 74, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: #F5A623;
  border-radius: var(--radius) var(--radius) 0 0;
  backdrop-filter: blur(2px);
  user-select: none;
}

/* Premium Gold Card Styling */
.product-card.premium-gold-card {
  border: 3.5px solid #FFD700 !important;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFDE5 60%, #FFF59D 100%) !important;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.45) !important;
  position: relative;
  transform: scale(1.03) !important;
  z-index: 5;
}

.product-card.premium-gold-card:hover {
  border-color: #F39C12 !important;
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.75) !important;
  transform: translateY(-6px) scale(1.05) !important;
}

.premium-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #D35400 0%, #D4AF37 100%);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  z-index: 10;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  text-shadow: 1px 1px 1px rgba(0,0,0,0.25);
  animation: badgePulse 2s infinite alternate ease-in-out;
}

@keyframes badgePulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}

.premium-gold-card .product-card-title {
  color: #B27A00 !important;
  font-weight: 800 !important;
}

.premium-gold-card .price-val {
  color: #D35400 !important;
}

/* Gold Button Override inside Premium Card */
.premium-gold-card .btn-buy-now {
  background: linear-gradient(135deg, #F39C12 0%, #D4AF37 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 10px rgba(243, 156, 18, 0.35) !important;
  transition: all 0.2s ease-in-out !important;
}

.premium-gold-card .btn-buy-now:hover {
  background: linear-gradient(135deg, #D35400 0%, #F39C12 100%) !important;
  box-shadow: 0 6px 14px rgba(243, 156, 18, 0.5) !important;
  transform: scale(1.03) !important;
}

/* MOBILE OPTIMIZATIONS (max-width: 576px) */
@media (max-width: 576px) {
  /* Global Typography Sizing & Line Heights */
  h1, h2 {
    font-size: 1.45rem !important;
    line-height: 1.35 !important;
    letter-spacing: -0.02em !important;
  }
  
  h3 {
    font-size: 1.08rem !important;
    line-height: 1.35 !important;
  }
  
  p, span, li, a {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
  }

  /* Padding Scale Down */
  .main-content {
    padding: 16px 12px !important;
  }

  /* Navbar Adjustments */
  .navbar {
    padding: 12px 16px !important;
    gap: 8px !important;
  }
  
  .nav-title {
    font-size: 1rem !important;
  }
  
  .nav-menu {
    gap: 8px !important;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-link {
    font-size: 0.75rem !important;
    padding: 4px 8px !important;
  }
  
  .nav-user {
    padding-left: 8px !important;
    border-left: none !important;
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }

  /* Grids & Cards spacing */
  .products-grid, .my-courses-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .product-card-body, .course-card-body {
    padding: 16px !important;
    gap: 12px !important;
  }

  /* Premium Gold Card Mobile Fix */
  .product-card.premium-gold-card {
    transform: none !important; /* Prevent overlapping adjacent items on small screens */
    margin: 8px 0 !important;
  }
  
  .product-card.premium-gold-card:hover {
    transform: translateY(-4px) !important;
  }

  /* Shop Hero Banner */
  .shop-hero {
    padding: 24px 16px !important;
    margin-bottom: 20px !important;
  }
  
  .shop-hero h2 {
    font-size: 1.35rem !important;
    line-height: 1.25 !important;
  }
  
  .shop-hero p {
    font-size: 0.85rem !important;
    margin-bottom: 16px !important;
  }

  /* Product Details Modal / Screen */
  .detail-layout {
    padding: 20px 16px !important;
    gap: 20px !important;
  }
  
  .detail-title {
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
  }
  
  .gallery-main {
    height: 220px !important;
  }
  
  .gallery-thumb {
    width: 60px !important;
    height: 45px !important;
  }
  
  .purchase-card {
    padding: 16px !important;
  }

  /* Materials Viewer Mobile */
  .viewer-layout {
    gap: 16px !important;
  }
  
  .subjects-sidebar {
    padding: 16px !important;
  }
  
  .subject-nav-item {
    padding: 10px 12px !important;
    font-size: 0.78rem !important;
  }
  
  .materials-header {
    padding: 16px !important;
  }
  
  .materials-header h2 {
    font-size: 1.15rem !important;
  }

  .preview-canvas {
    min-height: 200px !important;
  }
  
  .preview-canvas img, .preview-canvas iframe {
    max-height: 240px !important;
  }
}
