/* ===== CICC TRAINING THEME — leansigmavn.com ===== */
@layer base, layout, components, pages, utilities;

@layer base {
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --primary:       #16a34a;
    --primary-light: #22c55e;
    --primary-dark:  #15803d;
    --accent:        #f97316;
    --accent-light:  #fb923c;
    --navy:          #0f172a;
    --white:         #ffffff;
    --gray-50:       #f8fafc;
    --gray-100:      #f1f5f9;
    --gray-200:      #e2e8f0;
    --gray-300:      #cbd5e1;
    --gray-600:      #64748b;
    --gray-700:      #334155;
    --gray-800:      #1e293b;
    --gray-900:      #0f172a;
    --green:         #16a34a;
    --yellow:        #eab308;
    --red:           #ef4444;
    --orange:        #f97316;
    --font-heading:  'Plus Jakarta Sans', sans-serif;
    --font-body:     'Inter', sans-serif;
    --radius-sm:     8px;
    --radius-md:     12px;
    --radius-lg:     16px;
    --radius-xl:     20px;
    --shadow-sm:     0 1px 3px rgba(0,0,0,0.06);
    --shadow-md:     0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg:     0 12px 40px rgba(0,0,0,0.08);
    --header-h:      104px;
  }
  html { scroll-behavior: smooth; }
  body { font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--gray-800); background: var(--white); }
  h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); color: var(--gray-900); line-height: 1.2; }
  a { color: var(--primary); text-decoration: none; transition: color .2s; }
  a:hover { color: var(--primary-light); }
  img { max-width: 100%; height: auto; display: block; }
  .container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
  .section { padding: 80px 0; }
  .section-header { text-align: center; margin-bottom: 48px; }
  .section-tag { display: inline-block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--primary); background: rgba(22,163,74,0.08); padding: 6px 16px; border-radius: 20px; margin-bottom: 16px; }
  .section-header h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; margin: 0 0 12px; }
  .section-header p { font-size: 17px; color: var(--gray-600); max-width: 640px; margin: 0 auto; line-height: 1.7; }
  body.admin-bar { --header-h: 136px; }
  body { padding-top: var(--header-h); }
}

@layer layout {
  /* TOP BAR */
  .top-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
    height: 36px; background: #fff; border-bottom: 1px solid #f1f5f9;
    display: flex; align-items: center; font-size: 12px; color: #64748b;
  }
  .top-bar-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 36px; padding: 0 24px; max-width: 1200px; margin: 0 auto; width: 100%; gap: 8px;
  }
  .top-bar-left { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
  .top-globe { font-size: 11px; opacity: .4; }
  .top-lang { color: #94a3b8; text-decoration: none; font-weight: 500; font-size: 11px; padding: 2px 4px; border-radius: 4px; transition: color .2s; }
  .top-lang:hover { color: #16a34a; background: #f1f5f9; }
  .top-lang.active { color: #16a34a; font-weight: 600; background: #eef2ff; }
  .top-lang-sep { color: #e2e8f0; font-size: 9px; }

  .top-bar-center { flex: 1; display: flex; align-items: center; min-width: 0; max-width: 400px; }
  .top-search-form-inline {
    display: flex; align-items: center; gap: 6px;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 20px;
    padding: 0 12px; width: 100%; height: 26px; transition: border .2s;
  }
  .top-search-form-inline:focus-within { border-color: #16a34a; background: #fff; box-shadow: 0 0 0 2px rgba(22,163,74,0.08); }
  .top-search-icon { flex-shrink: 0; color: #cbd5e1; }
  .top-search-form-inline input { flex: 1; background: none; border: none; outline: none; color: #334155; font-size: 12px; padding: 0; min-width: 0; }
  .top-search-form-inline input::placeholder { color: #94a3b8; }

  .top-bar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
  .top-phone, .top-email, .top-login-text {
    display: inline-flex; align-items: center; gap: 4px;
    color: #64748b; text-decoration: none; font-size: 11.5px; font-weight: 500;
    white-space: nowrap; transition: color .2s;
  }
  .top-phone svg { flex-shrink: 0; color: #94a3b8; }
  .top-phone:hover, .top-login-text:hover { color: #16a34a; }
  .top-login-text { padding: 2px 8px; border-radius: 4px; }
  .top-login-text:hover { background: #f1f5f9; }
  .top-register { color: #16a34a; font-weight: 700; }

  /* MAIN HEADER — VIP PRO */
  .site-header {
    position: fixed; top: 36px; left: 0; right: 0;
    height: 68px; background: rgba(255,255,255,0.88); backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(226,232,240,0.6); z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
  }
  .header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px; max-width: 1200px; margin: 0 auto; padding: 0 24px;
  }
  .logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
  .logo-icon { font-size: 22px; }
  .logo-text { font-size: 18px; font-weight: 800; background: linear-gradient(135deg,#16a34a,#059669); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

  .main-nav { display: flex; }
  .nav-list { display: flex !important; gap: 0; list-style: none; margin: 0; padding: 0; align-items: center; }
  .nav-list > li { position: relative; }
  .nav-list > li > a {
    display: flex !important; align-items: center; gap: 4px;
    padding: 8px 14px; font-size: 13.5px; font-weight: 500;
    color: #475569; border-radius: 8px; text-decoration: none; transition: all .2s; white-space: nowrap;
    position: relative;
  }
  .nav-list > li > a:hover { color: #16a34a; background: #f0fdf4; }
  .nav-list > li.current-menu-item > a { color: #16a34a; font-weight: 600; background: #f0fdf4; }
  .nav-list > li.current-menu-item > a::after { content:''; position:absolute; bottom:2px; left:14px; right:14px; height:2px; background:#16a34a; border-radius:1px; }
  .nav-arrow { font-size: 9px; margin-left: 2px; opacity: .5; transition: transform .2s; }
  .menu-item-has-children:hover .nav-arrow { transform: rotate(180deg); }

  /* MEGA MENU */
  .mega-menu {
    display: none; position: absolute; top: 100%; left: -40px;
    width: 640px; background: #fff; border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 4px 20px rgba(0,0,0,0.06);
    padding: 8px; margin-top: 8px; z-index: 100;
    animation: megaIn .25s ease;
  }
  .mega-inner { display: grid; grid-template-columns: 1fr 1fr 1fr 1.1fr; gap: 4px; }
  .mega-col { display: flex; flex-direction: column; gap: 2px; padding: 8px; }
  .mega-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: #94a3b8; padding: 8px 10px 4px; }
  .mega-col a {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 10px; font-size: 13px; font-weight: 500; color: #475569;
    text-decoration: none; border-radius: 8px; transition: all .15s;
  }
  .mega-col a:hover { background: #f0fdf4; color: #16a34a; }
  .mega-featured { background: #f8fafc; border-radius: 12px; }
  .mega-feat-item { display: flex !important; align-items: center; gap: 10px; padding: 10px !important; }
  .mega-feat-item small { font-weight: 400; color: #94a3b8; font-size: 11px; }
  .mega-feat-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #fff; font-size: 18px; flex-shrink: 0; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
  .mega-all { margin-top: 2px; font-weight: 700 !important; color: #16a34a !important; justify-content: center !important; }
  .menu-item-has-children:hover .mega-menu { display: block; }
  @keyframes megaIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

  .header-actions { display: flex; align-items: center; gap: 10px; }
  .header-user { display: flex; align-items: center; gap: 8px; text-decoration: none; padding: 4px 10px 4px 4px; border-radius: 24px; border: 1px solid #e2e8f0; transition: all .2s; }
  .header-user:hover { border-color: #16a34a; background: #f0fdf4; }
  .header-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
  .header-avatar-placeholder { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,#16a34a,#22c55e); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; }
  .header-user-name { font-size: 13px; font-weight: 600; color: #1e293b; display: none; }
  @media (min-width: 1025px) { .header-user-name { display: inline; } }
  .btn-header-actions { display: flex; align-items: center; gap: 8px; }
  .btn-header-trial {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 7px 18px; font-size: 13px; font-weight: 600;
    border: 1.5px solid #16a34a; color: #16a34a; background: transparent; text-decoration: none;
    border-radius: 24px; transition: all .3s;
  }
  .btn-header-trial:hover { background: #f0fdf4; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(22,163,74,.15); color: #16a34a; }
  .btn-header-register {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 7px 20px; font-size: 13px; font-weight: 700;
    background: linear-gradient(135deg,#16a34a,#059669); color: #fff; text-decoration: none;
    border-radius: 24px; transition: all .3s; box-shadow: 0 2px 8px rgba(22,163,74,.25);
  }
  .btn-header-register:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(22,163,74,.35); color: #fff; }
  .mobile-toggle { display: none; width: 36px; height: 36px; align-items: center; justify-content: center; border: none; background: none; cursor: pointer; color: #475569; border-radius: 8px; transition: background .2s; }
  .mobile-toggle:hover { background: #f1f5f9; }

  /* MOBILE NAV — VIP */
  .mobile-nav { display: none; position: fixed; top: 104px; left: 0; right: 0; bottom: 0; z-index: 999; background: rgba(15,23,42,0.98); backdrop-filter: blur(8px); padding: 0; overflow-y: auto; animation: mobIn .25s ease; }
  .mobile-nav.open { display: block; }
  @keyframes mobIn { from { opacity: 0; } to { opacity: 1; } }
  .mobile-nav-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .mobile-logo { font-size: 18px; font-weight: 800; color: #16a34a; text-decoration: none; }
  .mobile-close { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: none; background: rgba(255,255,255,0.06); border-radius: 8px; cursor: pointer; color: #fff; transition: background .2s; }
  .mobile-close:hover { background: rgba(255,255,255,0.12); }
  .mobile-user-card { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .mob-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.1); }
  .mob-avatar-placeholder { width: 44px; height: 44px; min-width: 44px; border-radius: 50%; background: linear-gradient(135deg,#16a34a,#22c55e); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; font-weight: 700; }
  .mob-user-name { font-size: 15px; font-weight: 700; color: #fff; }
  .mob-user-email { font-size: 12px; color: rgba(255,255,255,0.5); }
  .mobile-search-form { padding: 12px 24px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .mobile-search-input { width: 100%; padding: 12px 16px; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; background: rgba(255,255,255,0.06); color: #fff; font-size: 14px; font-family: inherit; outline: none; box-sizing:border-box; }
  .mobile-search-input:focus { border-color: #16a34a; background: rgba(255,255,255,0.1); }
  .mobile-search-input::placeholder { color: rgba(255,255,255,0.3); }
  .mobile-nav-list { padding: 8px 0 24px; }
  .mobile-nav-group { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .mobile-nav-label { padding: 8px 24px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.3); }
  .mobile-nav-group a { display: block; padding: 12px 24px; font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.8); text-decoration: none; transition: all .15s; }
  .mobile-nav-group a:hover { background: rgba(255,255,255,0.04); color: #16a34a; }
  .mobile-eco { padding: 16px 24px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.3); }
  .mobile-eco-links { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
  .mobile-eco-links a { padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 500; text-decoration: none; color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.06); }

  .site-main { padding-top: 0; }

  @media (max-width: 1024px) { .main-nav { display: none; } .mobile-toggle { display: flex; } }
  @media (max-width: 640px) { .top-bar-center { display: none; } }
  .footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 48px 0 0; }
  .footer h4 { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.9); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; }
  .footer p, .footer span, .footer .footer-contact-item { color: rgba(255,255,255,0.6); }
  .footer a { color: rgba(255,255,255,0.5); font-size: 13px; text-decoration: none; transition: color .2s; }
  .footer a:hover { color: var(--primary-light); }
  .footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .footer-links { display: flex; flex-direction: column; gap: 8px; }
  .footer-contact-item { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.5; }
  .footer-contact-item svg { flex-shrink: 0; color: rgba(255,255,255,0.3); }
  .footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; font-size: 12px; color: rgba(255,255,255,0.35); }
  .footer-bottom-links { display: flex; gap: 20px; }
  .footer-bottom-links a { font-size: 12px; }

  @media (max-width: 1024px) { .main-nav { display: none; } .mobile-toggle { display: flex; } .footer-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; gap: 8px; text-align: center; } }
}

@layer components {
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-size: 15px; font-weight: 600; padding: 12px 28px; border-radius: var(--radius-md); border: 2px solid transparent; cursor: pointer; transition: all .3s; text-decoration: none; }
  .btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
  .btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .btn-accent { background: var(--accent); color: var(--white); }
  .btn-accent:hover { background: #ea580c; color: var(--white); transform: translateY(-2px); }
  .btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
  .btn-outline:hover { background: var(--primary); color: var(--white); }
  .btn-lg { padding: 16px 36px; font-size: 17px; }

  .card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 24px; transition: all .3s; }
  .card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

  .tag { display: inline-block; font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 12px; background: var(--gray-100); color: var(--gray-600); }
  .tag-green { background: rgba(22,163,74,0.08); color: var(--primary); }
  .tag-yellow { background: rgba(234,179,8,0.1); color: #a16207; }
  .tag-orange { background: rgba(249,115,22,0.08); color: #c2410c; }

  .breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0; font-size: 13px; color: var(--gray-600); }
  .breadcrumb a { color: var(--gray-600); }
  .breadcrumb a:hover { color: var(--primary); }
  .breadcrumb .sep { color: var(--gray-300); }
}

@layer pages {
  .hero { padding: 60px 0 80px; background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 50%, var(--primary) 100%); position: relative; overflow: hidden; text-align: center; color: var(--white); }
  .hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
  .hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
  .hero-tag { display: inline-block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.15); padding: 6px 16px; border-radius: 20px; color: rgba(255,255,255,0.85); margin-bottom: 20px; }
  .hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; color: var(--white); margin: 0 0 16px; text-shadow: 0 2px 12px rgba(0,0,0,0.15); }
  .hero p { font-size: 18px; opacity: .88; max-width: 600px; margin: 0 auto 32px; line-height: 1.7; }
  .hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
  .hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 700px; margin: 40px auto 0; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.12); }
  .hero-stat { text-align: center; }
  .hero-stat-num { display: block; font-size: 32px; font-weight: 800; color: var(--white); line-height: 1.1; }
  .hero-stat-label { display: block; font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 4px; }

  .path-visual { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
  .path-item { text-align: center; padding: 24px 20px; min-width: 140px; position: relative; }
  .path-arrow { font-size: 24px; color: var(--gray-300); }
  .path-badge { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-weight: 800; font-size: 14px; color: var(--white); }
  .path-name { font-size: 15px; font-weight: 700; color: var(--gray-900); }
  .path-meta { font-size: 12px; color: var(--gray-600); margin-top: 4px; }

  .course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
  .course-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; transition: all .3s; }
  .course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .course-header { padding: 20px; display: flex; align-items: center; gap: 16px; }
  .course-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: var(--white); flex-shrink: 0; }
  .course-info { flex: 1; }
  .course-info h3 { font-size: 16px; margin: 0 0 4px; }
  .course-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
  .course-meta span { font-size: 12px; color: var(--gray-600); display: flex; align-items: center; gap: 4px; }
  .course-body { padding: 0 20px 20px; flex: 1; }
  .course-body p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }
  .course-footer { padding: 16px 20px; border-top: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
  .course-price { font-size: 20px; font-weight: 800; color: var(--primary); }
  .course-btn { font-size: 13px; }

  .testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .testimonial-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 28px; }
  .testimonial-stars { display: flex; gap: 2px; color: #f59e0b; margin-bottom: 12px; }
  .testimonial-text { font-size: 15px; color: var(--gray-700); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
  .testimonial-author { display: flex; align-items: center; gap: 12px; }
  .testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gray-200); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--gray-600); }
  .testimonial-name { font-size: 14px; font-weight: 600; color: var(--gray-900); }
  .testimonial-role { font-size: 12px; color: var(--gray-600); }

  .cta-section { background: var(--navy); padding: 60px 0; text-align: center; }
  .cta-section h2 { color: var(--white); font-size: 32px; margin: 0 0 12px; }
  .cta-section p { color: rgba(255,255,255,0.7); font-size: 16px; max-width: 500px; margin: 0 auto 28px; }
  .cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

  .page-hero { background: linear-gradient(135deg, var(--navy), var(--primary-dark)); color: var(--white); padding: 40px 0 60px; text-align: center; }
  .page-hero h1 { font-size: clamp(28px, 4vw, 42px); color: var(--white); margin: 0; }
  .page-content { padding: 48px 0 80px; }
  .page-content .container { max-width: 800px; }
  .page-content h2 { margin-top: 32px; margin-bottom: 16px; }
  .page-content p { margin-bottom: 16px; color: var(--gray-600); line-height: 1.8; }

  @media (max-width: 768px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } .testimonial-grid { grid-template-columns: 1fr; } .path-visual { flex-direction: column; } .path-arrow { transform: rotate(90deg); } }
}

@layer utilities {
  .text-center { text-align: center; }
  .mt-2 { margin-top: 20px; }
  .mb-2 { margin-bottom: 20px; }
  .gap-2 { gap: 20px; }
  .flex-wrap { flex-wrap: wrap; }
  .d-flex { display: flex; }
  .ai-center { align-items: center; }
  .jc-center { justify-content: center; }
}

/* ===== PWA / MOBILE APP STYLES ===== */
@layer pwa {
  /* Skeleton loading animation */
  .skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
  }
  @keyframes skeleton-pulse { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

  /* Bottom nav spacing */
  @media (max-width: 767px) {
    body { padding-bottom: 64px; }
    body.admin-bar { padding-bottom: calc(64px + 46px); }
    .footer { padding-bottom: 80px; }
    
    /* Hero section mobile */
    .hero-section { padding: 16px 0 40px !important; }
    .hero-section h1 { font-size: clamp(20px, 6vw, 32px) !important; }
    .hero-section p { font-size: 14px !important; }
    
    /* Course grid single column */
    .course-grid, 
    [class*="grid-cols-"],
    [class*="course-grid"] { grid-template-columns: 1fr !important; }
    
    /* Course cards compact */
    .course-card { margin-bottom: 12px; }
    .course-thumb { height: 160px !important; }
    .course-body { padding: 12px 16px 16px !important; }
    .course-body h3 { font-size: 15px !important; }
    
    /* Content spacing */
    .container { padding-left: 16px; padding-right: 16px; }
    .page-content { padding: 24px 0 40px !important; }
    .page-hero { padding: 24px 0 36px !important; }
    .page-hero h1 { font-size: clamp(22px, 5vw, 32px) !important; }
    
    /* Buttons touch-friendly */
    .btn, button, [class*="button"] { 
      min-height: 44px; 
      padding: 12px 20px !important;
      font-size: 15px !important;
    }
    
    /* Forms mobile */
    input, select, textarea { font-size: 16px !important; /* Prevent zoom on iOS */ }
    
    /* Tables scrollable */
    table { display: block; overflow-x: auto; white-space: nowrap; }
    
    /* Footer condense */
    .footer-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
    .footer { padding: 32px 0 80px !important; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    
    /* Top bar compact */
    .top-bar { padding: 8px 0 !important; }
    
    /* Stats mobile */
    .hero-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
    .stat-card { padding: 12px !important; }
    .stat-number { font-size: 20px !important; }
    .stat-label { font-size: 11px !important; }
    
    /* Lesson player fullscreen on mobile */
    .lesson-player { border-radius: 0 !important; margin: 0 !important; }
    .lesson-player iframe, 
    .lesson-player video { border-radius: 0 !important; }
    
    /* Accordion mobile */
    .lesson-item { padding: 10px 12px !important; }
    
    /* Nav compact */
    .nav-links { gap: 0 !important; }
    .nav-link { font-size: 13px !important; padding: 8px !important; }
    
    /* PWA install banner position */
    #pwa-install-banner { bottom: 76px !important; }
  }

  /* Smooth page transitions for app-like feel */
  body { opacity: 0; animation: appFadeIn 0.3s ease forwards; }
  @keyframes appFadeIn { to { opacity: 1; } }

  /* Safe area for notched phones */
  @supports (padding-bottom: env(safe-area-inset-bottom)) {
    #mobile-bottom-nav { padding-bottom: calc(6px + env(safe-area-inset-bottom)) !important; }
  }
}
