/* ===================================================================
   STYアカデミー デモサイト共通スタイル
=================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
  --navy-900: #0b2036;
  --navy-800: #123452;
  --navy-700: #1a4468;
  --navy-600: #23577f;
  --navy-100: #e7edf3;
  --navy-50: #f3f6f9;
  --amber-600: #b96a12;
  --amber-500: #d98a2b;
  --amber-400: #e8a856;
  --amber-100: #fbead2;
  --gray-900: #1c2226;
  --gray-700: #454e56;
  --gray-500: #6b7580;
  --gray-300: #cfd6dc;
  --gray-200: #e3e8ec;
  --gray-100: #f2f4f6;
  --white: #ffffff;
  --success: #1f8a4c;
  --success-bg: #e5f6ec;
  --danger: #c23a2f;
  --danger-bg: #fbe9e7;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(11, 32, 54, 0.08);
  --shadow-md: 0 4px 16px rgba(11, 32, 54, 0.10);
  --shadow-lg: 0 12px 32px rgba(11, 32, 54, 0.16);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
.icon { width: 20px; height: 20px; stroke-width: 2; vertical-align: -4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--navy-50); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-sm); font-weight: 700; font-size: 15px;
  border: 1.5px solid transparent; cursor: pointer; transition: all .15s ease; white-space: nowrap;
}
.btn-primary { background: var(--amber-500); color: var(--white); }
.btn-primary:hover { background: var(--amber-600); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-900); }
.btn-outline { background: transparent; border-color: var(--gray-300); color: var(--navy-800); }
.btn-outline:hover { border-color: var(--navy-700); background: var(--navy-50); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { opacity: .88; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 21px; color: var(--navy-900); white-space: nowrap; }
.brand .brand-mark {
  width: 38px; height: 38px; border-radius: 9px; background: var(--navy-800);
  color: var(--amber-400); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 900;
}
.brand small { display: block; font-size: 10px; font-weight: 500; color: var(--gray-500); letter-spacing: .04em; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-size: 14.5px; font-weight: 500; color: var(--gray-700); }
.main-nav a:hover, .main-nav a.active { color: var(--navy-900); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.cart-link { position: relative; display: flex; align-items: center; }
.cart-badge {
  position: absolute; top: -8px; right: -10px; background: var(--amber-500); color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 20px; min-width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.8); padding: 56px 0 24px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-grid li { margin-bottom: 9px; font-size: 13.5px; }
.footer-grid a:hover { color: var(--amber-400); }
.footer-bottom { padding-top: 20px; font-size: 12.5px; color: rgba(255,255,255,.5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; color: #fff; margin-bottom: 10px; }
.footer-brand .brand-mark { background: var(--amber-500); color: var(--navy-900); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; padding: 88px 0 96px;
  background: linear-gradient(115deg, rgba(10,26,44,.94) 0%, rgba(11,40,64,.86) 48%, rgba(11,40,64,.55) 100%),
              url('https://images.pexels.com/photos/1216589/pexels-photo-1216589.jpeg?auto=compress&cs=tinysrgb&w=1600') center 22% / cover no-repeat;
}
.hero-inner { max-width: 620px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); padding: 6px 14px; border-radius: 30px; font-size: 12.5px; font-weight: 700; letter-spacing: .03em; margin-bottom: 22px; }
.hero h1 { font-size: 40px; font-weight: 900; line-height: 1.45; margin-bottom: 18px; }
.hero p.lead { font-size: 16px; color: rgba(255,255,255,.85); margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 24px; font-weight: 900; color: var(--amber-400); }
.hero-stats div span { font-size: 12.5px; color: rgba(255,255,255,.75); }

.page-hero { background: var(--navy-900); color: #fff; padding: 52px 0; }
.page-hero .crumbs { font-size: 12.5px; color: rgba(255,255,255,.6); margin-bottom: 10px; }
.page-hero .crumbs a:hover { color: var(--amber-400); }
.page-hero h1 { font-size: 28px; font-weight: 900; }
.page-hero p { color: rgba(255,255,255,.75); margin-top: 8px; font-size: 14.5px; }

/* ---------- Section headings ---------- */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-head .eyebrow { color: var(--amber-600); font-weight: 700; font-size: 13px; letter-spacing: .06em; margin-bottom: 8px; display: block; }
.section-head h2 { font-size: 28px; font-weight: 900; color: var(--navy-900); margin-bottom: 10px; }
.section-head p { color: var(--gray-700); font-size: 14.5px; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.course-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.course-card .thumb-wrap { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.course-card .thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.badge { display: inline-block; padding: 4px 11px; border-radius: 20px; font-size: 11.5px; font-weight: 700; }
.cat-shikaku { background: #e5edfb; color: #1e4fa3; }
.cat-ginou { background: var(--amber-100); color: var(--amber-600); }
.cat-senryu { background: #fbe5e9; color: #b3283f; }
.cat-tokubetsu { background: var(--success-bg); color: var(--success); }
.course-card .badge { position: absolute; top: 12px; left: 12px; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.course-card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.course-card h3 { font-size: 16.5px; font-weight: 700; color: var(--navy-900); line-height: 1.5; }
.course-card .tagline { font-size: 12.5px; color: var(--gray-500); }
.course-card .meta-row { display: flex; gap: 14px; font-size: 12px; color: var(--gray-700); }
.course-card .meta-row span { display: inline-flex; align-items: center; gap: 4px; }
.course-card .price-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px dashed var(--gray-200); }
.course-card .price { font-size: 19px; font-weight: 900; color: var(--navy-900); }
.course-card .price small { font-size: 11px; color: var(--gray-500); font-weight: 500; }

/* ---------- Why choose ---------- */
.feature-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 26px 22px; }
.feature-card .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--navy-50); color: var(--navy-800); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-card .ic .icon { width: 24px; height: 24px; }
.feature-card h3 { font-size: 16px; margin-bottom: 8px; color: var(--navy-900); }
.feature-card p { font-size: 13.5px; color: var(--gray-700); }

/* ---------- Testimonials ---------- */
.testi-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px; }
.testi-stars { color: var(--amber-500); margin-bottom: 10px; display: flex; gap: 2px; }
.testi-card p.quote { font-size: 13.5px; color: var(--gray-700); margin-bottom: 18px; }
.testi-person { display: flex; align-items: center; gap: 12px; }
.testi-person img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testi-person strong { font-size: 13.5px; display: block; }
.testi-person span { font-size: 12px; color: var(--gray-500); }

/* ---------- Corporate teaser ---------- */
.corp-teaser { background: var(--navy-900); border-radius: 18px; padding: 48px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; color: #fff; overflow: hidden; position: relative; }
.corp-teaser::after { content: ""; position: absolute; inset: 0; background: url('https://images.pexels.com/photos/8192058/pexels-photo-8192058.jpeg?auto=compress&cs=tinysrgb&w=1200') right/cover no-repeat; opacity: .16; }
.corp-teaser > * { position: relative; z-index: 1; }
.corp-teaser h2 { font-size: 25px; font-weight: 900; margin-bottom: 14px; }
.corp-teaser p { color: rgba(255,255,255,.8); font-size: 14px; margin-bottom: 22px; }
.corp-teaser ul { display: flex; flex-direction: column; gap: 10px; }
.corp-teaser ul li { font-size: 13.5px; display: flex; gap: 8px; align-items: flex-start; }
.corp-teaser ul li .icon { color: var(--amber-400); flex-shrink: 0; margin-top: 1px; }

/* ---------- Filters (catalog) ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
.filter-chip { padding: 9px 18px; border-radius: 30px; border: 1.5px solid var(--gray-300); background: #fff; font-size: 13.5px; font-weight: 600; color: var(--gray-700); cursor: pointer; }
.filter-chip.active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.filter-tools { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.select, .input, textarea.input {
  padding: 10px 14px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 13.5px; background: #fff;
}
.result-count { font-size: 13px; color: var(--gray-500); margin-bottom: 16px; }

/* ---------- Course detail ---------- */
.detail-hero { background: var(--navy-900); color: #fff; padding: 48px 0; }
.detail-hero .crumbs { font-size: 12px; color: rgba(255,255,255,.55); margin-bottom: 14px; }
.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.detail-hero h1 { font-size: 27px; font-weight: 900; margin-bottom: 12px; }
.detail-hero p.tagline { color: rgba(255,255,255,.82); font-size: 15px; margin-bottom: 18px; }
.detail-hero .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-hero .tags span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: 5px 12px; border-radius: 20px; font-size: 12px; }
.detail-hero img { border-radius: 14px; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.detail-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; padding: 48px 0; align-items: start; }
.detail-main section { margin-bottom: 40px; }
.detail-main h2 { font-size: 19px; font-weight: 800; color: var(--navy-900); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--navy-100); }
.detail-main p { color: var(--gray-700); font-size: 14.5px; }
.highlight-list li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--gray-100); font-size: 14px; align-items: flex-start; }
.highlight-list li .icon { color: var(--success); flex-shrink: 0; margin-top: 2px; }

.curr-item { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); margin-bottom: 10px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.curr-item .num { width: 30px; height: 30px; border-radius: 50%; background: var(--navy-50); color: var(--navy-800); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.curr-item .t { flex: 1; }
.curr-item .t strong { font-size: 14px; display: block; }
.curr-item .t span { font-size: 12px; color: var(--gray-500); }

.instructor-box { display: flex; gap: 16px; background: var(--navy-50); border-radius: var(--radius); padding: 20px; }
.instructor-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.instructor-box strong { font-size: 15px; }
.instructor-box .role { font-size: 12px; color: var(--amber-600); font-weight: 700; display: block; margin: 3px 0 8px; }
.instructor-box p { font-size: 13px; color: var(--gray-700); }

.buy-box { position: sticky; top: 90px; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-md); background: #fff; }
.buy-box .price { font-size: 30px; font-weight: 900; color: var(--navy-900); }
.buy-box .price small { font-size: 12px; color: var(--gray-500); font-weight: 500; }
.buy-box .info-list { margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.buy-box .info-list li { display: flex; gap: 10px; font-size: 13px; color: var(--gray-700); }
.buy-box .info-list .icon { color: var(--navy-700); flex-shrink: 0; margin-top: 1px; }

/* ---------- Cart / checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 12.5px; color: var(--gray-500); padding: 0 0 12px; border-bottom: 1px solid var(--gray-200); font-weight: 600; }
.cart-table td { padding: 18px 0; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.cart-item-info { display: flex; gap: 14px; align-items: center; }
.cart-item-info img { width: 90px; height: 62px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.cart-item-info strong { font-size: 14.5px; display: block; margin-bottom: 4px; }
.cart-item-info span { font-size: 12px; color: var(--gray-500); }
.remove-link { font-size: 12.5px; color: var(--danger); cursor: pointer; display: inline-flex; gap: 4px; align-items: center; margin-top: 6px; }
.summary-box { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 22px; background: var(--navy-50); }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; }
.summary-row.total { border-top: 1px dashed var(--gray-300); margin-top: 8px; padding-top: 14px; font-size: 17px; font-weight: 800; color: var(--navy-900); }
.empty-state { text-align: center; padding: 70px 20px; color: var(--gray-500); }
.empty-state .icon { width: 52px; height: 52px; color: var(--gray-300); margin: 0 auto 16px; }

.checkout-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: start; }
.form-card { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.form-card h2 { font-size: 16.5px; font-weight: 800; margin-bottom: 18px; color: var(--navy-900); display: flex; align-items: center; gap: 8px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--gray-700); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 14px;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--navy-700); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pay-tabs { display: flex; gap: 10px; margin-bottom: 18px; }
.pay-tab { flex: 1; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); padding: 14px; text-align: center; cursor: pointer; font-size: 13.5px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pay-tab.active { border-color: var(--navy-800); background: var(--navy-50); color: var(--navy-900); }
.pay-panel { display: none; }
.pay-panel.active { display: block; }
.bank-info { background: var(--navy-50); border-radius: var(--radius-sm); padding: 16px; font-size: 13.5px; }
.bank-info div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--gray-200); }
.bank-info div:last-child { border-bottom: none; }

.confirm-box { text-align: center; max-width: 560px; margin: 0 auto; padding: 60px 24px; }
.confirm-box .ok-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.confirm-box .ok-ic .icon { width: 38px; height: 38px; }
.email-preview { text-align: left; border: 1px solid var(--gray-200); border-radius: var(--radius); margin-top: 30px; overflow: hidden; }
.email-preview .email-head { background: var(--gray-100); padding: 12px 18px; font-size: 12.5px; color: var(--gray-500); }
.email-preview .email-body { padding: 22px; font-size: 13.5px; }
.email-preview .email-body p { margin-bottom: 10px; }

/* ---------- Login ---------- */
.login-wrap { max-width: 440px; margin: 60px auto; }
.login-card { border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; }
.login-tabs { display: flex; }
.login-tab { flex: 1; padding: 16px; text-align: center; font-weight: 700; font-size: 14px; background: var(--gray-100); color: var(--gray-500); cursor: pointer; }
.login-tab.active { background: #fff; color: var(--navy-900); box-shadow: inset 0 -3px 0 var(--amber-500); }
.login-panel { padding: 30px 28px; display: none; }
.login-panel.active { display: block; }
.login-panel h2 { font-size: 17px; margin-bottom: 6px; }
.login-panel p.hint { font-size: 12.5px; color: var(--gray-500); margin-bottom: 20px; }
.demo-fill { font-size: 12px; color: var(--navy-700); background: var(--navy-50); padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.demo-fill code { background: #fff; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--gray-200); }

/* ---------- My page ---------- */
.mypage-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; flex-wrap: wrap; gap: 14px; }
.user-chip { display: flex; align-items: center; gap: 12px; }
.user-chip .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--navy-800); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.stat-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin: 28px 0; }
.stat-box { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 18px; }
.stat-box strong { font-size: 24px; font-weight: 900; color: var(--navy-900); display: block; }
.stat-box span { font-size: 12.5px; color: var(--gray-500); }

.enroll-card { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px; display: grid; grid-template-columns: 140px 1fr auto; gap: 18px; align-items: center; margin-bottom: 16px; }
.enroll-card img { width: 140px; height: 90px; object-fit: cover; border-radius: 8px; }
.enroll-card h3 { font-size: 15.5px; margin-bottom: 8px; }
.progress-track { background: var(--gray-200); border-radius: 20px; height: 8px; overflow: hidden; margin-bottom: 6px; }
.progress-fill { background: var(--amber-500); height: 100%; border-radius: 20px; transition: width .4s ease; }
.progress-fill.done { background: var(--success); }
.enroll-card .pct { font-size: 12px; color: var(--gray-500); }
.enroll-actions { display: flex; flex-direction: column; gap: 8px; min-width: 150px; }

/* ---------- Video player ---------- */
.player-shell { display: grid; grid-template-columns: 1fr 340px; background: var(--navy-900); min-height: calc(100vh - 72px); }
.player-main { padding: 24px 28px; }
.player-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; color: #fff; }
.player-topbar a { color: rgba(255,255,255,.7); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.video-wrap { position: relative; background: #000; border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; }
.video-wrap video { width: 100%; height: 100%; display: block; }
.video-caption { color: #fff; margin-top: 18px; }
.video-caption h1 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.video-caption p { color: rgba(255,255,255,.6); font-size: 13px; }
.lock-note { display: flex; gap: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.85); padding: 12px 14px; border-radius: 8px; font-size: 12.5px; margin-top: 16px; align-items: flex-start; }
.lock-note .icon { color: var(--amber-400); flex-shrink: 0; }
.player-cta { margin-top: 20px; display: flex; gap: 12px; }

.lesson-sidebar { background: var(--navy-800); padding: 22px 18px; overflow-y: auto; }
.lesson-sidebar h3 { color: #fff; font-size: 13.5px; margin-bottom: 4px; }
.lesson-sidebar .course-name { color: rgba(255,255,255,.5); font-size: 12px; margin-bottom: 16px; display: block; }
.lesson-row { display: flex; gap: 12px; padding: 13px 10px; border-radius: 8px; cursor: pointer; align-items: flex-start; }
.lesson-row.current { background: rgba(255,255,255,.1); }
.lesson-row:hover { background: rgba(255,255,255,.06); }
.lesson-row .st { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; margin-top: 1px; }
.lesson-row .st.done { background: var(--success); color: #fff; }
.lesson-row .st.active { background: var(--amber-500); color: #fff; }
.lesson-row .st.locked { background: rgba(255,255,255,.12); color: rgba(255,255,255,.45); }
.lesson-row .tt { flex: 1; }
.lesson-row .tt strong { color: #fff; font-size: 13px; display: block; line-height: 1.4; }
.lesson-row .tt span { color: rgba(255,255,255,.45); font-size: 11.5px; }
.lesson-row.locked { cursor: not-allowed; opacity: .7; }

/* ---------- Quiz ---------- */
.quiz-wrap { max-width: 720px; margin: 0 auto; }
.quiz-progress { font-size: 13px; color: var(--gray-500); margin-bottom: 10px; }
.q-card { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 26px; margin-bottom: 18px; }
.q-card .qn { font-size: 12px; font-weight: 800; color: var(--amber-600); margin-bottom: 8px; }
.q-card h3 { font-size: 15.5px; margin-bottom: 16px; line-height: 1.6; }
.choice { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); padding: 13px 15px; margin-bottom: 10px; cursor: pointer; font-size: 14px; }
.choice:hover { border-color: var(--navy-400); }
.choice input { accent-color: var(--navy-800); width: 16px; height: 16px; }
.choice.correct { border-color: var(--success); background: var(--success-bg); }
.choice.wrong { border-color: var(--danger); background: var(--danger-bg); }
.result-box { text-align: center; padding: 50px 24px; }
.score-ring { width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 24px; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.score-ring strong { font-size: 34px; font-weight: 900; }
.score-ring span { font-size: 12px; color: var(--gray-500); }
.pass-badge { display: inline-block; padding: 6px 18px; border-radius: 30px; font-weight: 800; font-size: 13.5px; margin-bottom: 14px; }
.pass-badge.pass { background: var(--success-bg); color: var(--success); }
.pass-badge.fail { background: var(--danger-bg); color: var(--danger); }

/* ---------- Certificate ---------- */
.cert-frame { max-width: 820px; margin: 0 auto; background: #fdfcf8; border: 10px solid var(--navy-900); border-radius: 4px; padding: 56px 60px; position: relative; box-shadow: var(--shadow-lg); }
.cert-frame::before { content: ""; position: absolute; inset: 12px; border: 1.5px solid var(--amber-500); pointer-events: none; }
.cert-top { text-align: center; margin-bottom: 30px; }
.cert-top .mark { width: 56px; height: 56px; border-radius: 50%; background: var(--navy-900); color: var(--amber-400); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-weight: 900; }
.cert-top h1 { font-size: 30px; letter-spacing: .15em; color: var(--navy-900); font-weight: 900; }
.cert-top span { font-size: 12px; letter-spacing: .3em; color: var(--gray-500); }
.cert-body { text-align: center; margin: 34px 0; }
.cert-body .name { font-size: 30px; font-weight: 800; color: var(--navy-900); border-bottom: 2px solid var(--navy-900); display: inline-block; padding: 0 20px 8px; margin: 10px 0 22px; }
.cert-body .desc { font-size: 14.5px; color: var(--gray-700); line-height: 2; }
.cert-body .course-name { font-size: 19px; font-weight: 800; color: var(--amber-600); margin: 10px 0; }
.cert-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 40px; }
.cert-foot .date { font-size: 13px; color: var(--gray-700); }
.cert-foot .seal { text-align: center; }
.cert-foot .seal .stamp { width: 68px; height: 68px; border-radius: 50%; border: 2.5px solid var(--danger); color: var(--danger); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; margin-bottom: 6px; transform: rotate(-8deg); }
.cert-foot .seal span { font-size: 11px; color: var(--gray-500); }
.cert-actions { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }

/* ---------- Admin (shared) ---------- */
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 72px); }
.admin-side { background: var(--navy-900); padding: 22px 14px; }
.admin-side .grp { color: rgba(255,255,255,.4); font-size: 11px; font-weight: 700; letter-spacing: .06em; margin: 18px 10px 8px; }
.admin-side a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 8px; color: rgba(255,255,255,.78); font-size: 13.5px; margin-bottom: 2px; }
.admin-side a:hover { background: rgba(255,255,255,.06); }
.admin-side a.active { background: var(--amber-500); color: #fff; font-weight: 700; }
.admin-main { padding: 30px 34px; background: var(--gray-100); }
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.admin-head h1 { font-size: 21px; font-weight: 900; color: var(--navy-900); }
.admin-head p { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.panel { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; }
.panel h2 { font-size: 15.5px; font-weight: 800; margin-bottom: 16px; color: var(--navy-900); display: flex; align-items: center; gap: 8px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th { text-align: left; padding: 10px 12px; background: var(--navy-50); color: var(--gray-700); font-size: 12px; font-weight: 700; }
.data-table td { padding: 12px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 700; }
.pill.on { background: var(--success-bg); color: var(--success); }
.pill.off { background: var(--gray-200); color: var(--gray-500); }
.icon-btn { background: none; border: 1px solid var(--gray-300); border-radius: 6px; padding: 6px 9px; cursor: pointer; color: var(--gray-700); }
.icon-btn:hover { background: var(--gray-100); }
.icon-btn.danger { color: var(--danger); border-color: #f0c9c5; }
.admin-stat-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 22px; }
.admin-stat { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 18px; }
.admin-stat .ic { width: 38px; height: 38px; border-radius: 9px; background: var(--navy-50); color: var(--navy-800); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.admin-stat strong { font-size: 22px; font-weight: 900; display: block; color: var(--navy-900); }
.admin-stat span { font-size: 12px; color: var(--gray-500); }

.upload-box { border: 2px dashed var(--gray-300); border-radius: var(--radius); padding: 8px; text-align: center; cursor: pointer; transition: border-color .15s; }
.upload-box:hover { border-color: var(--navy-700); }
.upload-box .inner { padding: 34px 20px; }
.upload-box .icon { width: 34px; height: 34px; color: var(--gray-400); margin: 0 auto 12px; }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(11,32,54,.55); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; border-radius: var(--radius); padding: 26px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.modal-box h3 { font-size: 16px; margin-bottom: 18px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

.toast { position: fixed; bottom: 26px; right: 26px; background: var(--navy-900); color: #fff; padding: 14px 20px; border-radius: 10px; font-size: 13.5px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; z-index: 2000; transform: translateY(20px); opacity: 0; pointer-events: none; transition: all .25s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast .icon { color: var(--success); }

/* ---------- Static content pages ---------- */
.content-page { max-width: 820px; margin: 0 auto; }
.content-page h2 { font-size: 19px; font-weight: 800; color: var(--navy-900); margin: 34px 0 14px; }
.content-page p { color: var(--gray-700); font-size: 14.5px; margin-bottom: 12px; }
.content-page table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.content-page table th, .content-page table td { border: 1px solid var(--gray-200); padding: 12px 14px; font-size: 13.5px; text-align: left; }
.content-page table th { background: var(--navy-50); width: 200px; color: var(--gray-700); }
.faq-item { border-bottom: 1px solid var(--gray-200); padding: 18px 0; }
.faq-item summary { font-weight: 700; cursor: pointer; font-size: 14.5px; color: var(--navy-900); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin-top: 12px; color: var(--gray-700); font-size: 13.5px; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-info li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.contact-info .icon { color: var(--navy-700); margin-top: 2px; }

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.center-cta { text-align: center; margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid, .detail-body, .checkout-grid { grid-template-columns: 1fr; }
  .corp-teaser { grid-template-columns: 1fr; padding: 32px; }
  .player-shell { grid-template-columns: 1fr; }
  .lesson-sidebar { order: 2; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: flex; overflow-x: auto; gap: 4px; }
  .admin-side .grp { display: none; }
  .admin-side a { white-space: nowrap; }
  .admin-stat-strip { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 680px) {
  .main-nav { position: fixed; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 18px 24px; border-bottom: 1px solid var(--gray-200); display: none; gap: 4px; box-shadow: var(--shadow-md); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: block; }
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 28px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .stat-strip { grid-template-columns: repeat(2,1fr); }
  .enroll-card { grid-template-columns: 1fr; }
  .enroll-card img { width: 100%; height: 150px; }
  .cert-frame { padding: 30px 20px; }
  .cert-body .name { font-size: 22px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .admin-main { padding: 20px 16px; }
  .pay-tabs { flex-direction: column; }

  .header-inner { height: 60px; }
  .brand { font-size: 15px; gap: 7px; }
  .brand .brand-mark { width: 30px; height: 30px; font-size: 12px; border-radius: 7px; }
  .brand small { display: none; }
  .header-actions { gap: 8px; }
  .header-actions .btn-sm { padding: 7px 10px; font-size: 12px; }
  .header-actions .btn-sm .icon { width: 14px; height: 14px; }
  .main-nav { top: 60px; }
}
@media (max-width: 360px) {
  .brand { font-size: 13.5px; }
  .header-actions { gap: 5px; }
}
