  :root{
    --purple:#8b5cf6;
    --blue:#3b82f6;
    --teal:#14b8a6;
    --pink:#ec4899;
    --orange:#f97316;
    --yellow:#eab308;
    --dark:#1e1b2e;
    --card-bg:#ffffff;
    --bg:#f5f3ff;
  }
  *{box-sizing:border-box;}
  body{
    margin:0;
    font-family:'Segoe UI',system-ui,-apple-system,sans-serif;
    background:linear-gradient(180deg,#f5f3ff 0%,#eef2ff 100%);
    color:var(--dark);
    line-height:1.5;
  }
  header{
    background:linear-gradient(135deg,#6d28d9,#3b82f6);
    color:white;
    text-align:center;
    padding:50px 20px 60px;
    border-radius:0 0 40px 40px;
    box-shadow:0 10px 30px rgba(109,40,217,0.25);
  }
  header h1{
    margin:0 0 10px;
    font-size:2.4rem;
  }
  header p{
    margin:0;
    opacity:0.9;
    font-size:1.05rem;
  }
  .flag-strip{
    display:flex;
    justify-content:center;
    gap:6px;
    margin-top:16px;
  }
  .flag-strip span{
    width:10px;height:10px;border-radius:50%;background:white;opacity:0.6;
  }
  nav{
    max-width:1100px;
    margin:-30px auto 0;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px;
    padding:0 20px;
    position:relative;
    z-index:5;
  }
  nav a{
    background:white;
    color:var(--purple);
    text-decoration:none;
    padding:10px 18px;
    border-radius:30px;
    font-weight:600;
    font-size:0.9rem;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
    transition:transform 0.2s, box-shadow 0.2s;
  }
  nav a:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 18px rgba(109,40,217,0.25);
  }
  main{
    max-width:1100px;
    margin:0 auto;
    padding:50px 20px;
  }
  section{
    margin-bottom:70px;
    scroll-margin-top:20px;
  }
  .section-title{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:8px;
  }
  .section-badge{
    background:var(--purple);
    color:white;
    font-weight:700;
    font-size:0.8rem;
    padding:6px 14px;
    border-radius:20px;
    letter-spacing:0.5px;
  }
  .section-title h2{
    margin:0;
    font-size:1.8rem;
    color:var(--dark);
  }
  .section-sub{
    color:#6b7280;
    margin:0 0 30px;
    font-size:1rem;
  }

  /* ===== BAGIAN 1: ALFABET ===== */
  .alphabet-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:16px;
  }
  .letter-card{
    background:var(--card-bg);
    border-radius:16px;
    padding:18px;
    box-shadow:0 4px 14px rgba(0,0,0,0.06);
    border-top:5px solid var(--purple);
    transition:transform 0.25s, box-shadow 0.25s;
    cursor:default;
  }
  .letter-card:hover{
    transform:translateY(-6px) scale(1.02);
    box-shadow:0 12px 24px rgba(139,92,246,0.25);
  }
  .letter-card .big-letter{
    font-size:2.2rem;
    font-weight:800;
    color:var(--purple);
    margin-bottom:6px;
  }
  .letter-card .desc{
    font-size:0.92rem;
    color:#4b5563;
  }
  .letter-card.special{
    border-top-color:var(--pink);
  }
  .letter-card.special .big-letter{color:var(--pink);}

  /* ===== BAGIAN 2: HARMONI VOKAL ===== */
  .vowel-wrap{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
  }
  @media(max-width:700px){ .vowel-wrap{grid-template-columns:1fr;} }
  .vowel-box{
    border-radius:20px;
    padding:26px;
    color:white;
    box-shadow:0 8px 20px rgba(0,0,0,0.12);
  }
  .vowel-box.thick{ background:linear-gradient(135deg,var(--orange),#fb923c); }
  .vowel-box.thin{ background:linear-gradient(135deg,var(--teal),#2dd4bf); }
  .vowel-box h3{
    margin-top:0;
    font-size:1.3rem;
  }
  .vowel-letters{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:14px;
  }
  .vowel-letters span{
    background:rgba(255,255,255,0.25);
    padding:10px 18px;
    border-radius:12px;
    font-size:1.4rem;
    font-weight:700;
  }
  .info-box{
    background:#fff7ed;
    border-left:5px solid var(--orange);
    padding:16px 20px;
    border-radius:12px;
    margin-top:20px;
    font-size:0.95rem;
    color:#7c2d12;
  }

  /* Harmoni Vokal - suffix pattern cards */
  .suffix-type-wrap{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
    margin:28px 0;
  }
  @media(max-width:800px){ .suffix-type-wrap{grid-template-columns:1fr;} }
  .suffix-type-card{
    background:white;
    border-radius:20px;
    padding:26px;
    box-shadow:0 8px 22px rgba(0,0,0,0.08);
    border-top:6px solid var(--purple);
  }
  .suffix-type-card.type4{ border-top-color:var(--blue); }
  .suffix-type-card h3{
    margin-top:0;
    font-size:1.2rem;
    display:flex;
    align-items:center;
    gap:8px;
  }
  .suffix-type-card .example-word{
    font-family:'Consolas',monospace;
    background:#f3f0ff;
    color:var(--purple);
    padding:3px 8px;
    border-radius:6px;
    font-weight:700;
  }
  .suffix-type-card.type4 .example-word{
    background:#eff6ff;
    color:var(--blue);
  }

  .harmony-map{
    width:100%;
    border-collapse:collapse;
    margin:16px 0;
  }
  .harmony-map th{
    background:#f3f4f6;
    padding:10px;
    font-size:0.8rem;
    color:#6b7280;
  }
  .harmony-map td{
    text-align:center;
    padding:12px 8px;
    border-top:1px solid #f0f0f0;
    font-weight:700;
  }
  .harmony-map td.src{
    font-size:1.3rem;
    color:var(--dark);
  }
  .harmony-map td.arrow{
    color:#d1d5db;
    font-weight:400;
  }
  .harmony-map td.dst{
    font-size:1.3rem;
  }
  .harmony-map tr.grp-thick td.dst{ color:var(--orange); }
  .harmony-map tr.grp-thin td.dst{ color:var(--teal); }

  .word-build{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    background:#f9fafb;
    padding:12px 16px;
    border-radius:10px;
    margin:8px 0;
    font-size:1rem;
  }
  .word-build .base{
    font-weight:700;
    color:var(--dark);
  }
  .word-build .plus{ color:#9ca3af; }
  .word-build .suf{
    font-weight:700;
    padding:2px 8px;
    border-radius:6px;
  }
  .word-build .suf.thick{ background:#ffedd5; color:#c2410c; }
  .word-build .suf.thin{ background:#ccfbf1; color:#0f766e; }
  .word-build .eq{ color:#9ca3af; }
  .word-build .result{
    font-weight:800;
    color:var(--purple);
    font-family:'Consolas',monospace;
  }
  .word-build .meaning{
    color:#6b7280;
    font-size:0.88rem;
    margin-left:4px;
  }

  /* ===== BAGIAN 3: FLASHCARD ===== */
  .flashcard-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
    gap:20px;
  }
  .flashcard{
    background:linear-gradient(160deg,#ffffff,#f3f0ff);
    border-radius:18px;
    padding:26px 16px;
    text-align:center;
    box-shadow:0 6px 16px rgba(0,0,0,0.08);
    border:2px solid transparent;
    transition:all 0.3s ease;
    cursor:pointer;
  }
  .flashcard:hover{
    border-color:var(--blue);
    transform:rotate(-1deg) scale(1.05);
    box-shadow:0 14px 28px rgba(59,130,246,0.25);
  }
  .flashcard .tr-word{
    font-size:1.6rem;
    font-weight:800;
    color:var(--blue);
  }
  .flashcard .id-word{
    margin-top:8px;
    font-size:0.95rem;
    color:#6b7280;
  }

  /* ===== BAGIAN 4: KATA PENTING ===== */
  .important-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:20px;
  }
  .important-card{
    background:var(--card-bg);
    border-radius:18px;
    padding:24px;
    text-align:center;
    box-shadow:0 6px 16px rgba(0,0,0,0.07);
    transition:transform 0.25s;
  }
  .important-card:hover{ transform:translateY(-6px); }
  .important-card .icon{
    font-size:2.5rem;
    margin-bottom:10px;
  }
  .important-card .tr{
    font-size:1.3rem;
    font-weight:800;
  }
  .important-card .id{
    color:#6b7280;
    font-size:0.95rem;
    margin-top:4px;
  }
  .important-card.yes{ border-bottom:5px solid #22c55e; }
  .important-card.no{ border-bottom:5px solid #ef4444; }
  .important-card.ok{ border-bottom:5px solid var(--blue); }
  .important-card.understand{ border-bottom:5px solid var(--purple); }
  .important-card.c1{ border-bottom:5px solid var(--orange); }
  .important-card.c2{ border-bottom:5px solid var(--pink); }
  .important-card.c3{ border-bottom:5px solid var(--teal); }
  .important-card.c4{ border-bottom:5px solid var(--yellow); }

  /* ===== BAGIAN 5: STRUKTUR KALIMAT ===== */
  .formula-box{
    background:linear-gradient(135deg,#4338ca,#7c3aed);
    color:white;
    border-radius:20px;
    padding:30px;
    text-align:center;
    box-shadow:0 10px 26px rgba(79,70,229,0.3);
    margin-bottom:30px;
  }
  .formula-main{
    font-size:1.7rem;
    font-weight:800;
    display:flex;
    justify-content:center;
    gap:14px;
    flex-wrap:wrap;
    margin-bottom:14px;
  }
  .formula-main .tag{
    padding:8px 20px;
    border-radius:12px;
  }
  .formula-main .subjek{ background:#a855f7; }
  .formula-main .objek{ background:#3b82f6; }
  .formula-main .predikat{ background:#14b8a6; }
  .formula-example{
    font-size:1.05rem;
    opacity:0.95;
    background:rgba(255,255,255,0.15);
    display:inline-block;
    padding:10px 20px;
    border-radius:10px;
    margin-top:6px;
  }

  .predikat-breakdown{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
    margin:30px 0;
  }
  @media(max-width:700px){ .predikat-breakdown{grid-template-columns:1fr;} }
  .pb-card{
    border-radius:16px;
    padding:20px;
    color:white;
    text-align:center;
    box-shadow:0 6px 16px rgba(0,0,0,0.1);
  }
  .pb-card h4{ margin:0 0 8px; font-size:1.1rem; }
  .pb-card .ex{
    background:rgba(255,255,255,0.2);
    border-radius:8px;
    padding:6px 10px;
    margin-top:4px;
    font-size:0.9rem;
    display:inline-block;
  }
  .pb-card.kk{ background:linear-gradient(135deg,#a855f7,#c084fc); }
  .pb-card.sw{ background:linear-gradient(135deg,#3b82f6,#60a5fa); }
  .pb-card.sk{ background:linear-gradient(135deg,#14b8a6,#2dd4bf); }

  table{
    width:100%;
    border-collapse:collapse;
    background:white;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 6px 18px rgba(0,0,0,0.07);
    margin-bottom:24px;
  }
  thead tr{
    background:linear-gradient(135deg,var(--purple),var(--blue));
    color:white;
  }
  th, td{
    padding:14px 18px;
    text-align:left;
    font-size:0.95rem;
  }
  tbody tr:nth-child(even){ background:#f9fafb; }
  tbody tr:hover{ background:#f0e9ff; }
  td.mono, th.mono{ font-family:'Consolas',monospace; font-weight:700; color:var(--purple); }

  .subtitle-block{
    margin:36px 0 14px;
    font-weight:700;
    font-size:1.15rem;
    color:var(--dark);
    display:flex;
    align-items:center;
    gap:8px;
  }
  .subtitle-block::before{
    content:"";
    width:6px;height:22px;
    background:var(--teal);
    border-radius:4px;
  }

  footer{
    text-align:center;
    padding:30px 20px 50px;
    color:#9ca3af;
    font-size:0.85rem;
  }

  /* ===== BAGIAN 6: PERCAKAPAN ===== */
  .convo-category{
    margin-bottom:36px;
  }
  .convo-cat-title{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:1.15rem;
    font-weight:800;
    color:white;
    padding:10px 20px;
    border-radius:12px 12px 0 0;
    background:linear-gradient(135deg,var(--purple),var(--blue));
  }
  .convo-cat-title.g2{ background:linear-gradient(135deg,var(--teal),#22c55e); }
  .convo-cat-title.g3{ background:linear-gradient(135deg,var(--orange),#f59e0b); }
  .convo-cat-title.g4{ background:linear-gradient(135deg,var(--pink),#ec4899); }
  .convo-cat-title.g5{ background:linear-gradient(135deg,#6366f1,#8b5cf6); }
  .convo-cat-title.g6{ background:linear-gradient(135deg,#0ea5e9,#06b6d4); }
  .convo-cat-title.g7{ background:linear-gradient(135deg,#f43f5e,#fb7185); }
  .convo-cat-title.g8{ background:linear-gradient(135deg,#84cc16,#65a30d); }
  .convo-table{
    width:100%;
    border-collapse:collapse;
    background:white;
    box-shadow:0 6px 18px rgba(0,0,0,0.06);
    border-radius:0 0 12px 12px;
    overflow:hidden;
  }
  .convo-table th{
    background:#f3f4f6;
    text-align:left;
    padding:10px 16px;
    font-size:0.82rem;
    color:#6b7280;
    text-transform:uppercase;
    letter-spacing:0.4px;
  }
  .convo-table td{
    padding:12px 16px;
    font-size:0.95rem;
    border-top:1px solid #f0f0f0;
  }
  .convo-table td.tr-col{
    font-weight:700;
    color:var(--purple);
  }
  .convo-table td.pron-col{
    color:#9ca3af;
    font-style:italic;
    font-size:0.85rem;
  }
  .convo-table tr:hover td{ background:#faf5ff; }

  .dialog-box{
    background:white;
    border-radius:18px;
    padding:24px;
    box-shadow:0 8px 20px rgba(0,0,0,0.08);
    margin-bottom:24px;
    border-left:6px solid var(--blue);
  }
  .dialog-box h4{
    margin-top:0;
    color:var(--dark);
    font-size:1.1rem;
  }
  .dialog-line{
    display:flex;
    gap:12px;
    margin-bottom:10px;
    align-items:flex-start;
  }
  .dialog-line .speaker{
    flex-shrink:0;
    width:80px;
    font-weight:800;
    font-size:0.85rem;
    padding:4px 10px;
    border-radius:8px;
    text-align:center;
    color:white;
  }
  .dialog-line.a .speaker{ background:var(--purple); }
  .dialog-line.b .speaker{ background:var(--teal); }
  .dialog-line .content{
    flex:1;
  }
  .dialog-line .tr-line{
    font-weight:700;
    color:var(--dark);
  }
  .dialog-line .id-line{
    font-size:0.88rem;
    color:#6b7280;
    margin-top:2px;
  }

  .practice-tip{
    background:linear-gradient(135deg,#fef3c7,#fde68a);
    border-radius:16px;
    padding:20px 24px;
    margin-top:10px;
    color:#78350f;
    font-size:0.95rem;
  }

  @media(max-width:600px){
    header h1{ font-size:1.8rem; }
    .formula-main{ font-size:1.2rem; }
  }
  /* Number Table */
  .number-table-wrapper { background: white; border-radius: 15px; padding: 25px; box-shadow: 0 8px 22px rgba(0,0,0,0.08); margin-bottom: 25px; }
  .nt-title { color: var(--purple); font-size: 1.5rem; margin-top: 0; margin-bottom: 15px; border-bottom: 2px solid #f3f0ff; padding-bottom: 10px; }
  .info-box { background-color: #eff6ff; color: #1e3a8a; border-left: 4px solid var(--blue); padding: 15px; margin-bottom: 20px; border-radius: 4px; font-size: 0.95rem; line-height: 1.5; }
  .nt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
  @media (max-width: 768px) { .nt-grid { grid-template-columns: 1fr; } }
  .nt-col h3 { color: var(--dark); font-size: 1.1rem; margin-bottom: 12px; }
  .nt-table { width: 100%; border-collapse: collapse; }
  .nt-table td { padding: 10px 12px; border-bottom: 1px solid #e5e7eb; }
  .nt-table tr:last-child td { border-bottom: none; }
  .nt-num { font-weight: bold; color: var(--teal); width: 40px; font-size: 1.1rem; }
  .nt-tr { font-weight: 500; color: var(--dark); }
  .nt-formula { text-align: right; }
  .math-badge { display: inline-block; background: #f3f4f6; color: #4b5563; font-family: 'Consolas', monospace; padding: 4px 8px; border-radius: 6px; font-size: 0.85rem; font-weight: bold; letter-spacing: 1px; }
  /* RESPONSIVE ADDITIONS FOR MODULES */
  
  /* Make tables scrollable on small screens */
  .table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 24px;
  }
  
  /* Ensure grids drop to single column on very small screens */
  @media(max-width: 480px) {
    .alphabet-grid {
      grid-template-columns: 1fr;
    }
    .flashcard-grid {
      grid-template-columns: 1fr;
    }
    .important-grid {
      grid-template-columns: 1fr;
    }
    .convo-cat-title {
      font-size: 1rem;
      padding: 10px 14px;
    }
    .convo-table th, .convo-table td {
      padding: 10px 10px;
      font-size: 0.85rem;
    }
    .dialog-box {
      padding: 16px;
    }
    header {
      padding: 30px 15px 40px;
    }
    header h1 {
      font-size: 1.6rem;
    }
    nav {
      margin: -20px auto 0;
    }
    nav a {
      font-size: 0.8rem;
      padding: 8px 14px;
    }
    .section-title h2 {
      font-size: 1.4rem;
    }
  }
