/* =============================================================
   MedEqHub Australia — Front website styles
   Colours come from CSS variables set in the layout (admin-controlled)
   ============================================================= */
:root {
    --primary: #183549;
    --accent: #4E9C9D;
    --primary-700: color-mix(in srgb, var(--primary) 85%, #000);
    --primary-50: color-mix(in srgb, var(--primary) 6%, #fff);
    --accent-600: color-mix(in srgb, var(--accent) 85%, #000);
    --accent-100: color-mix(in srgb, var(--accent) 14%, #fff);
    --accent-50: color-mix(in srgb, var(--accent) 7%, #fff);
    --ink: #1c2b36;
    --muted: #64748b;
    --line: #e3eaee;
    --bg: #f5f8fa;
    --coral: #e8605a;
    --amber: #e9a23b;
    --radius: 18px;
    --shadow-sm: 0 2px 10px rgba(24, 53, 73, .06);
    --shadow: 0 14px 40px -12px rgba(24, 53, 73, .18);
    --shadow-lg: 0 30px 60px -20px rgba(24, 53, 73, .28);
    --font-head: 'Outfit', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* { -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--font-body); color: var(--ink); background: #fff; font-size: 15.5px; line-height: 1.65; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6, .font-head { font-family: var(--font-head); color: var(--primary); letter-spacing: -.02em; font-weight: 700; }
a { color: var(--accent-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; }
.text-accent { color: var(--accent) !important; }
.text-primary-c { color: var(--primary) !important; }
.bg-soft { background: var(--bg); }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 12px; padding: .7rem 1.4rem; transition: all .25s cubic-bezier(.2, .8, .2, 1); }
.btn-pill { border-radius: 50px; }
.btn-accent { background: var(--accent); color: #fff; border: 0; box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-accent:hover, .btn-accent:focus { background: var(--accent-600); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-primary-c { background: var(--primary); color: #fff; border: 0; }
.btn-primary-c:hover { background: var(--primary-700); color: #fff; transform: translateY(-2px); }
.btn-outline-primary { color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-ghost-light { color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: #fff; color: var(--primary); }
.btn-lg { padding: .9rem 1.9rem; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: all .3s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -14px rgba(24, 53, 73, .25); }
.site-header .navbar { padding: 14px 0; }
.navbar-brand img { height: 46px; width: auto; transition: height .3s; }
.site-header.scrolled .navbar-brand img { height: 40px; }
.navbar .nav-link { font-weight: 600; color: var(--ink); padding: .5rem 1rem !important; border-radius: 10px; position: relative; font-size: .95rem; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--accent-600); }
.navbar .nav-link.active::after { content: ''; position: absolute; left: 1rem; right: 1rem; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); }
.nav-login { color: var(--primary); font-weight: 600; text-decoration: none; }
.navbar-toggler { border: 0; padding: 8px; display: flex; flex-direction: column; gap: 5px; box-shadow: none !important; }
.toggler-bar { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: var(--primary); }
.toggler-bar:nth-child(2) { width: 16px; margin-left: auto; background: var(--accent); }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 50px; background: var(--accent-50); border: 1px solid var(--accent-100); color: var(--primary); font-weight: 600; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--primary)); color: #fff; font-size: .78rem; font-weight: 700; }

.mega-menu { border: 0; border-radius: 20px; padding: 14px; box-shadow: var(--shadow-lg); min-width: 560px; margin-top: 10px !important; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega-item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; color: var(--ink); }
.mega-item:hover { background: var(--accent-50); color: var(--primary); }
.mega-item strong { display: block; font-size: .9rem; }
.mega-item small { color: var(--muted); font-size: .78rem; }
.mega-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--accent-100); color: var(--accent-600); font-size: 1.15rem; }
.mega-all { display: block; text-align: center; padding: 10px; margin-top: 8px; border-top: 1px solid var(--line); font-weight: 600; font-size: .9rem; }

.mobile-nav { max-width: 320px; }
.m-link { display: flex; gap: 12px; align-items: center; padding: 12px 6px; color: var(--ink); font-weight: 600; border-radius: 10px; }
.m-link i { color: var(--accent); font-size: 1.1rem; }
.m-sub { padding-left: 36px; margin-bottom: 6px; }
.m-sub a { display: flex; gap: 8px; padding: 6px 0; font-size: .9rem; color: var(--muted); }

/* ---------- Flash ---------- */
.toast-stack { position: fixed; top: 90px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.flash { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg); border-left: 4px solid var(--accent); animation: slideIn .4s cubic-bezier(.2, .8, .2, 1); font-weight: 500; font-size: .92rem; }
.flash i { font-size: 1.2rem; margin-top: 1px; }
.flash-success { border-color: #22a06b; } .flash-success i { color: #22a06b; }
.flash-danger { border-color: var(--coral); } .flash-danger i { color: var(--coral); }
.flash-warning { border-color: var(--amber); } .flash-warning i { color: var(--amber); }
.flash-info i { color: var(--accent); }
.flash-close { margin-left: auto; border: 0; background: none; font-size: 1.3rem; line-height: 1; color: var(--muted); }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(1200px 600px at 85% -10%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 60%), radial-gradient(800px 500px at -10% 110%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%), linear-gradient(160deg, var(--primary) 0%, var(--primary-700) 100%); color: #fff; padding: 90px 0 150px; overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); z-index: -1; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; }
.hero h1 .hl { background: linear-gradient(90deg, #8fe0d9, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: rgba(255, 255, 255, .78); font-size: 1.12rem; max-width: 560px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 50px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: .85rem; font-weight: 600; color: #d6f1ef; }
.hero-badge .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; position: relative; }
.hero-badge .dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent); animation: ping 1.8s infinite; }
@keyframes ping { 0% { opacity: .9; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.7); } }

.hero-search { margin-top: 34px; background: #fff; border-radius: 18px; padding: 8px; display: flex; gap: 6px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .5); max-width: 620px; }
.hero-search .field { display: flex; align-items: center; gap: 10px; flex: 1; padding: 0 14px; min-width: 0; }
.hero-search .field + .field { border-left: 1px solid var(--line); }
.hero-search i { color: var(--accent); font-size: 1.1rem; }
.hero-search input, .hero-search select { border: 0; outline: 0; width: 100%; padding: 12px 0; font-weight: 500; color: var(--ink); background: transparent; min-width: 0; }
.hero-stats { display: flex; gap: 40px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-family: var(--font-head); font-size: 2rem; color: #fff; line-height: 1; }
.hero-stats span { font-size: .85rem; color: rgba(255, 255, 255, .65); }

/* Hero visual: monitor card with animated ECG */
.hero-visual { position: relative; padding: 20px; }
.monitor { position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .18); border-radius: 26px; padding: 22px; backdrop-filter: blur(10px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.monitor-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: .78rem; color: rgba(255, 255, 255, .7); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.monitor-top .live { color: #8fe0d9; display: flex; align-items: center; gap: 6px; }
.monitor-top .live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #5ee0b4; box-shadow: 0 0 10px #5ee0b4; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.ecg-screen { background: rgba(5, 20, 30, .55); border-radius: 16px; height: 150px; position: relative; overflow: hidden; background-image: linear-gradient(rgba(143, 224, 217, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 224, 217, .07) 1px, transparent 1px); background-size: 20px 20px; }
.ecg-screen svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ecg-line { fill: none; stroke: #8fe0d9; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(143, 224, 217, .8)); stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 3.2s linear infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.vitals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.vital { background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 12px; }
.vital small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .55); font-weight: 600; }
.vital b { font-family: var(--font-head); font-size: 1.6rem; color: #fff; }
.vital b span { font-size: .8rem; color: rgba(255, 255, 255, .6); font-weight: 500; }
.vital.v1 b { color: #8fe0d9; } .vital.v2 b { color: #ffd38a; } .vital.v3 b { color: #a9c8ff; }
.float-card { position: absolute; background: #fff; color: var(--ink); border-radius: 16px; padding: 12px 16px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-lg); font-size: .85rem; animation: float 5s ease-in-out infinite; }
.float-card .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; }
.float-card b { display: block; font-size: .9rem; color: var(--primary); }
.float-card small { color: var(--muted); }
.fc-1 { top: -10px; left: -30px; } .fc-1 .ic { background: #e5f6ef; color: #22a06b; }
.fc-2 { bottom: -24px; right: -10px; animation-delay: -2.5s; } .fc-2 .ic { background: var(--accent-100); color: var(--accent-600); }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero-wave svg { width: 100%; height: 90px; }

/* ---------- Section headings ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-600); margin-bottom: 12px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; line-height: 1.1; }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 620px; }

/* ---------- Category cards ---------- */
.cat-card { position: relative; display: block; height: 100%; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink); overflow: hidden; transition: all .35s cubic-bezier(.2, .8, .2, 1); }
.cat-card::after { content: ''; position: absolute; width: 180px; height: 180px; right: -70px; top: -70px; border-radius: 50%; background: var(--accent-50); transition: all .5s; z-index: 0; }
.cat-card > * { position: relative; z-index: 1; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.cat-card:hover::after { transform: scale(2.6); background: var(--accent-100); }
.cat-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: linear-gradient(135deg, var(--accent), var(--accent-600)); color: #fff; box-shadow: 0 10px 20px -8px color-mix(in srgb, var(--accent) 80%, transparent); margin-bottom: 20px; }
.cat-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.cat-card p { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.cat-meta { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .88rem; color: var(--primary); }
.cat-arrow { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: all .3s; }
.cat-card:hover .cat-arrow { background: var(--primary); border-color: var(--primary); color: #fff; transform: rotate(-45deg); }
.cat-card img.cat-img { width: 58px; height: 58px; object-fit: cover; border-radius: 16px; margin-bottom: 20px; }

/* ---------- Training cards ---------- */
.t-card { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: all .35s cubic-bezier(.2, .8, .2, 1); }
.t-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.t-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.t-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.t-card:hover .t-thumb img { transform: scale(1.06); }
.t-thumb .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .9); }
.t-thumb .placeholder svg { width: 70%; height: 50%; opacity: .5; }
.t-thumb .placeholder i { position: absolute; font-size: 2.6rem; color: #fff; opacity: .95; }
.t-badges { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 50px; font-size: .74rem; font-weight: 700; background: rgba(255, 255, 255, .95); color: var(--primary); backdrop-filter: blur(6px); }
.chip-accent { background: var(--accent); color: #fff; }
.chip-full { background: var(--coral); color: #fff; }
.chip-low { background: var(--amber); color: #fff; }
.t-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.t-cat { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-600); margin-bottom: 8px; }
.t-body h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: 10px; }
.t-body h3 a { color: var(--primary); }
.t-body h3 a:hover { color: var(--accent-600); }
.t-body p { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.t-info { display: flex; flex-wrap: wrap; gap: 14px; font-size: .83rem; color: var(--muted); margin-bottom: 18px; }
.t-info i { color: var(--accent); margin-right: 4px; }
.t-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px dashed var(--line); }
.price { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--primary); line-height: 1; }
.price small { font-family: var(--font-body); font-size: .72rem; font-weight: 600; color: var(--muted); display: block; margin-top: 3px; }
.btn-round { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-50); color: var(--accent-600); transition: all .3s; font-size: 1.1rem; }
.t-card:hover .btn-round { background: var(--accent); color: #fff; }

/* ---------- Upcoming list ---------- */
.up-item { display: flex; gap: 18px; align-items: center; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: all .3s; color: var(--ink); }
.up-item:hover { box-shadow: var(--shadow); transform: translateX(6px); color: var(--ink); border-color: transparent; }
.up-date { flex-shrink: 0; width: 66px; text-align: center; border-radius: 14px; overflow: hidden; background: var(--primary-50); }
.up-date span { display: block; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; padding: 3px 0; letter-spacing: .08em; }
.up-date b { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--primary); padding: 4px 0; line-height: 1.2; }
.up-item h4 { font-size: 1rem; margin: 0 0 4px; }
.up-item small { color: var(--muted); }
.seat-bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 8px; width: 140px; }
.seat-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--primary)); border-radius: 6px; }

/* ---------- How it works ---------- */
.step { position: relative; padding: 32px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); height: 100%; }
.step-num { position: absolute; top: 20px; right: 24px; font-family: var(--font-head); font-size: 3.4rem; font-weight: 800; line-height: 1; color: var(--accent-100); }
.step-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 1.4rem; margin-bottom: 18px; box-shadow: 0 0 0 8px var(--primary-50); }
.step h4 { font-size: 1.12rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- CTA ---------- */
.cta-band { position: relative; border-radius: 28px; padding: 60px; background: linear-gradient(120deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--accent))); color: #fff; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; width: 380px; height: 380px; right: -100px; top: -140px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .06); }
.cta-band::after { content: '+'; position: absolute; right: 8%; bottom: -60px; font-family: var(--font-head); font-size: 280px; font-weight: 800; color: rgba(255, 255, 255, .06); line-height: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-band p { color: rgba(255, 255, 255, .78); }

/* ---------- Page header ---------- */
.page-hero { position: relative; background: radial-gradient(700px 300px at 90% 0%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%), linear-gradient(160deg, var(--primary), var(--primary-700)); color: #fff; padding: 64px 0 80px; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent, #000); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; position: relative; }
.page-hero p { color: rgba(255, 255, 255, .75); position: relative; max-width: 640px; }
.crumbs { display: flex; gap: 8px; font-size: .85rem; color: rgba(255, 255, 255, .6); margin-bottom: 14px; position: relative; flex-wrap: wrap; }
.crumbs a { color: rgba(255, 255, 255, .85); }
.crumbs a:hover { color: #fff; }
.page-body { margin-top: -40px; position: relative; z-index: 2; }

/* ---------- Filters ---------- */
.filter-bar { background: #fff; border-radius: 18px; padding: 14px; box-shadow: var(--shadow); display: flex; gap: 10px; flex-wrap: wrap; }
.filter-bar .form-control, .filter-bar .form-select { border: 1px solid var(--line); border-radius: 12px; padding: .65rem 1rem; font-weight: 500; }
.cat-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-pill { padding: 8px 16px; border-radius: 50px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: .87rem; display: inline-flex; align-items: center; gap: 6px; }
.cat-pill:hover, .cat-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Training detail ---------- */
.detail-hero { padding: 56px 0 120px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; position: relative; }
.meta-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: .88rem; font-weight: 600; }
.meta-pill i { color: #8fe0d9; }
.detail-wrap { margin-top: -80px; position: relative; z-index: 3; }
.panel { background: #fff; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 32px; }
.panel + .panel { margin-top: 24px; }
.panel h2 { font-size: 1.45rem; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.panel h2 .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-100); color: var(--accent-600); font-size: 1.1rem; }
.detail-cover { border-radius: 22px; overflow: hidden; aspect-ratio: 21/9; margin-bottom: 24px; box-shadow: var(--shadow); }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.rich { color: #3b4a56; }
.rich p:last-child { margin-bottom: 0; }
.rich h3, .rich h4 { margin-top: 1.2em; font-size: 1.15rem; }
.learn-list ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.learn-list li { position: relative; padding-left: 36px; color: #3b4a56; }
.learn-list li::before { content: '\F26E'; font-family: 'bootstrap-icons'; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-100); color: var(--accent-600); display: grid; place-items: center; font-size: .9rem; font-weight: 700; }
.learn-list ol { padding-left: 1.2rem; }

.sticky-side { position: sticky; top: 96px; }
.price-card { background: linear-gradient(160deg, var(--primary), var(--primary-700)); color: #fff; border-radius: 22px; padding: 28px; position: relative; overflow: hidden; }
.price-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 40%, transparent); filter: blur(30px); }
.price-card .big { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; line-height: 1; position: relative; }
.price-card .big small { font-size: .95rem; font-weight: 500; color: rgba(255, 255, 255, .6); }
.price-card ul { list-style: none; padding: 0; margin: 20px 0; position: relative; }
.price-card li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }
.price-card li span { color: rgba(255, 255, 255, .65); }
.price-card .btn { position: relative; }

/* Date cards in the apply form */
.date-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.date-opt { position: relative; }
.date-opt input { position: absolute; opacity: 0; pointer-events: none; }
.date-opt label { display: block; height: 100%; padding: 16px; border-radius: 16px; border: 2px solid var(--line); cursor: pointer; transition: all .2s; background: #fff; }
.date-opt label:hover { border-color: var(--accent); }
.date-opt input:checked + label { border-color: var(--accent); background: var(--accent-50); box-shadow: 0 0 0 4px var(--accent-100); }
.date-opt input:checked + label .check { background: var(--accent); border-color: var(--accent); color: #fff; }
.date-opt .check { position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: .7rem; color: transparent; }
.date-opt .d-main { font-family: var(--font-head); font-weight: 700; color: var(--primary); font-size: 1.05rem; padding-right: 26px; }
.date-opt .d-time { font-size: .82rem; color: var(--muted); }
.date-opt .d-seats { margin-top: 10px; font-size: .78rem; font-weight: 700; }
.date-opt .d-seats .bar { height: 5px; border-radius: 5px; background: var(--line); margin-top: 6px; overflow: hidden; }
.date-opt .d-seats .bar span { display: block; height: 100%; background: var(--accent); }
.date-opt.low .d-seats { color: var(--amber); } .date-opt.low .bar span { background: var(--amber); }
.date-opt.full label { cursor: not-allowed; background: repeating-linear-gradient(-45deg, #fafbfc, #fafbfc 8px, #f2f4f6 8px, #f2f4f6 16px); opacity: .8; }
.date-opt.full label:hover { border-color: var(--line); }
.date-opt.full .d-main { color: var(--muted); text-decoration: line-through; }
.date-opt .full-tag { position: absolute; top: 12px; right: 12px; background: var(--coral); color: #fff; font-size: .7rem; font-weight: 800; padding: 3px 9px; border-radius: 50px; letter-spacing: .06em; }

.pay-opt { position: relative; }
.pay-opt input { position: absolute; opacity: 0; }
.pay-opt label { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 2px solid var(--line); border-radius: 16px; cursor: pointer; transition: all .2s; height: 100%; }
.pay-opt label:hover { border-color: var(--accent); }
.pay-opt input:checked + label { border-color: var(--accent); background: var(--accent-50); box-shadow: 0 0 0 4px var(--accent-100); }
.pay-opt input:disabled + label { opacity: .5; cursor: not-allowed; }
.pay-opt .p-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0; }
.pay-opt .p-bank { background: var(--primary-50); color: var(--primary); }
.pay-opt .p-paypal { background: #e8f1ff; color: #0070ba; }
.pay-opt b { display: block; color: var(--primary); }
.pay-opt small { color: var(--muted); font-size: .8rem; }

.bank-box { border-radius: 16px; background: var(--primary-50); border: 1px dashed color-mix(in srgb, var(--primary) 30%, transparent); padding: 18px 20px; white-space: pre-line; font-size: .92rem; color: var(--primary); font-weight: 500; position: relative; }
.copy-btn { position: absolute; top: 12px; right: 12px; border: 0; background: #fff; border-radius: 10px; padding: 5px 10px; font-size: .78rem; font-weight: 600; color: var(--primary); box-shadow: var(--shadow-sm); }
.dropzone { position: relative; border: 2px dashed var(--line); border-radius: 16px; padding: 26px; text-align: center; transition: all .2s; background: #fff; cursor: pointer; }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-50); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone i { font-size: 2rem; color: var(--accent); }
.dropzone .fname { font-weight: 600; color: var(--primary); }

/* ---------- Forms ---------- */
.form-label { font-weight: 600; font-size: .88rem; color: var(--primary); margin-bottom: 6px; }
.form-control, .form-select { border-radius: 12px; border: 1.5px solid var(--line); padding: .72rem 1rem; font-size: .95rem; transition: all .2s; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-100); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-check-input:focus { box-shadow: 0 0 0 4px var(--accent-100); border-color: var(--accent); }
.input-icon { position: relative; }
.input-icon i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon .form-control { padding-left: 42px; }
.form-section-title { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 26px 0 14px; display: flex; align-items: center; gap: 10px; }
.form-section-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.form-section-title .n { width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: .72rem; letter-spacing: 0; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 80px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; background: radial-gradient(600px 400px at 100% 0%, color-mix(in srgb, var(--accent) 50%, transparent), transparent 70%), linear-gradient(160deg, var(--primary), var(--primary-700)); color: #fff; padding: 60px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.auth-side h2 { color: #fff; font-size: 2.4rem; font-weight: 800; }
.auth-side p { color: rgba(255, 255, 255, .75); }
.auth-side .ecg-bg { position: absolute; left: 0; right: 0; bottom: 60px; opacity: .35; }
.auth-feature { display: flex; gap: 14px; align-items: center; margin-top: 18px; }
.auth-feature i { width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; color: #8fe0d9; font-size: 1.15rem; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 50px 24px; background: var(--bg); }
.auth-card { width: 100%; max-width: 460px; background: #fff; border-radius: 24px; padding: 40px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.9rem; font-weight: 800; }

/* ---------- Account ---------- */
.acc-nav { background: #fff; border-radius: 20px; padding: 10px; border: 1px solid var(--line); }
.acc-nav a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; font-weight: 600; color: var(--ink); }
.acc-nav a i { color: var(--muted); font-size: 1.1rem; }
.acc-nav a.active, .acc-nav a:hover { background: var(--accent-50); color: var(--primary); }
.acc-nav a.active i { color: var(--accent); }
.stat-tile { background: #fff; border-radius: 18px; padding: 20px; border: 1px solid var(--line); display: flex; gap: 14px; align-items: center; height: 100%; }
.stat-tile .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; }
.stat-tile b { font-family: var(--font-head); font-size: 1.7rem; color: var(--primary); display: block; line-height: 1.1; }
.stat-tile small { color: var(--muted); font-weight: 600; }
.reg-card { display: flex; gap: 18px; align-items: center; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: #fff; transition: all .25s; }
.reg-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.reg-card + .reg-card { margin-top: 12px; }

.badge-soft { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 50px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.badge-soft::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-soft-success { background: #e3f6ee; color: #18865a; }
.badge-soft-warning { background: #fdf2dc; color: #b77610; }
.badge-soft-info { background: #e2f1fb; color: #1f6fa6; }
.badge-soft-danger { background: #fde7e6; color: #c23b35; }
.badge-soft-secondary { background: #eef1f4; color: #5b6b78; }
.badge-soft-dark { background: #e5e8ec; color: #26323c; }

/* ---------- Thank you ---------- */
.ty-card { max-width: 720px; margin: 0 auto; background: #fff; border-radius: 28px; box-shadow: var(--shadow-lg); overflow: hidden; }
.ty-top { background: linear-gradient(160deg, var(--primary), var(--primary-700)); color: #fff; text-align: center; padding: 50px 30px 40px; position: relative; }
.ty-check { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 20px; background: var(--accent); display: grid; place-items: center; font-size: 2.6rem; box-shadow: 0 0 0 14px rgba(255, 255, 255, .08), 0 0 0 28px rgba(255, 255, 255, .04); animation: pop .6s cubic-bezier(.2, 1.4, .4, 1); }
.ty-check.warn { background: var(--amber); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.ty-top h1 { color: #fff; font-weight: 800; }
.ty-top p { color: rgba(255, 255, 255, .75); }
.ty-ref { display: inline-block; margin-top: 10px; padding: 8px 18px; border-radius: 50px; background: rgba(255, 255, 255, .1); font-family: var(--font-head); letter-spacing: .08em; font-weight: 700; }
.kv { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.kv span { color: var(--muted); }
.kv b { color: var(--primary); text-align: right; }

/* ---------- Content pages ---------- */
.content-card { background: #fff; border-radius: 24px; padding: 48px; box-shadow: var(--shadow); }
.content-card h3, .content-card h4 { margin-top: 1.4em; }
.content-card h3:first-child, .content-card h4:first-child { margin-top: 0; }
.contact-tile { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.contact-tile i { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-100); color: var(--accent-600); font-size: 1.3rem; flex-shrink: 0; }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .ic { width: 90px; height: 90px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--accent-50); color: var(--accent); font-size: 2.4rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--primary); color: rgba(255, 255, 255, .7); padding: 90px 0 0; margin-top: 0; }
.footer-pulse { position: absolute; top: 0; left: 0; right: 0; height: 60px; transform: translateY(-50%); }
.footer-pulse svg { width: 100%; height: 100%; }
.footer-pulse path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 5s linear infinite; }
.footer-logo { display: inline-block; background: #fff; padding: 12px 18px; border-radius: 16px; }
.footer-logo img { height: 42px; }
.site-footer h6 { color: #fff; font-family: var(--font-head); font-size: 1rem; margin-bottom: 18px; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: .92rem; }
.site-footer a { color: rgba(255, 255, 255, .7); }
.site-footer a:hover { color: #fff; }
.contact-list li { display: flex; gap: 10px; }
.contact-list i { color: var(--accent); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: all .25s; }
.socials a:hover { background: var(--accent); transform: translateY(-3px); }
.footer-bottom { margin-top: 60px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } * { animation: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) { .mega-menu { min-width: 480px; } }
@media (max-width: 991px) {
    .section { padding: 70px 0; }
    .hero { padding: 60px 0 120px; }
    .hero-visual { margin-top: 50px; }
    .fc-1 { left: 0; }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .sticky-side { position: static; }
    .cta-band { padding: 40px 28px; }
    .content-card { padding: 30px; }
}
@media (max-width: 767px) {
    body { font-size: 15px; }
    .navbar-brand img { height: 38px; }
    .hero-search { flex-direction: column; }
    .hero-search .field + .field { border-left: 0; border-top: 1px solid var(--line); }
    .hero-search .btn { width: 100%; }
    .hero-stats { gap: 26px; }
    .hero-stats strong { font-size: 1.6rem; }
    .learn-list ul { grid-template-columns: 1fr; }
    .panel { padding: 22px; }
    .auth-card { padding: 28px 22px; }
    .reg-card { flex-direction: column; align-items: flex-start; }
    .up-item .seat-bar { width: 100px; }
    .float-card { display: none; }
    .toast-stack { top: 80px; right: 12px; left: 12px; max-width: none; }
}

.min-w-0 { min-width: 0; }
