/* Excalibur Courses: front end. Colors are CSS variables so Elementor controls can override them per widget. */
:root{
	--exmc-accent:#DD4242;
	--exmc-accent-dark:#b93030;
	--exmc-text:#ffffff;
	--exmc-muted:#b9bcc4;
	--exmc-surface:#26272d;
	--exmc-card:#ffffff;
	--exmc-card-text:#16171c;
	--exmc-card-muted:#7b7f88;
	--exmc-radius:6px;
}
.exmc-grid,.exmc-player,.exmc-unlock-wrap,.exmc-overview,.exmc-included,.exmc-profile,.exmc-wallet,.exmc-invite,.exmc-auth,.exmc-leaderboard,.exmc-empty,.exmc-single{font-family:inherit;color:var(--exmc-text);box-sizing:border-box}
.exmc-grid *,.exmc-player *,.exmc-profile *,.exmc-wallet *,.exmc-invite *,.exmc-auth *{box-sizing:border-box}

/* buttons */
a.exmc-btn,button.exmc-btn,button[type].exmc-btn,.exmc-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:var(--exmc-accent);color:#fff;border:0;border-radius:4px;padding:10px 26px;font:inherit;font-size:14px;font-weight:500;line-height:1.2;text-decoration:none;cursor:pointer;transition:background .2s,transform .1s,opacity .2s}
a.exmc-btn:hover,button.exmc-btn:hover,button[type].exmc-btn:hover,a.exmc-btn:focus-visible,button.exmc-btn:focus-visible{background:var(--exmc-accent-dark);color:#fff}
.exmc-btn:active{transform:translateY(1px)}
.exmc-btn[disabled],.exmc-btn.is-busy{opacity:.55;cursor:default;pointer-events:none}
.exmc-btn-dark,button[type].exmc-btn-dark{background:#16171c}
.exmc-btn-dark:hover,button[type].exmc-btn-dark:hover{background:#000}
.exmc-btn-sm{padding:8px 16px;font-size:13px}
.exmc-btn.is-done,button[type].exmc-btn.is-done{background:#2e7d4f}
.exmc-unlock-wrap{display:flex;flex-direction:column;align-items:var(--exmc-btn-align,center);gap:8px}
.exmc-unlock-note{font-size:13px;color:var(--exmc-muted)}
.exmc-member-link{font-size:13px;color:var(--exmc-muted);text-decoration:underline}
.exmc-member-link:hover{color:var(--exmc-text)}
.exmc-msg{font-size:13px;min-height:1em}
.exmc-msg.is-error{color:#ff8a8a}
.exmc-msg.is-ok{color:#7fdca4}
.exmc-placeholder{border:1px dashed rgba(255,255,255,.3);padding:24px;text-align:center;color:var(--exmc-muted);border-radius:var(--exmc-radius);font-size:14px}

/* course grid + card */
.exmc-grid{display:grid;grid-template-columns:repeat(var(--exmc-cols,4),minmax(0,1fr));gap:32px}
.exmc-card{background:var(--exmc-card);color:var(--exmc-card-text);border-radius:4px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 2px 14px rgba(0,0,0,.25);transition:transform .2s,box-shadow .2s}
.exmc-card:hover{transform:translateY(-3px);box-shadow:0 8px 26px rgba(0,0,0,.35)}
.exmc-card-media{position:relative;display:block;aspect-ratio:16/11;background:#ececee;overflow:hidden}
.exmc-card .exmc-card-media img{width:100%!important;height:100%!important;max-width:none;object-fit:cover;display:block;border-radius:0}
.exmc-card-ph{display:block;width:100%;height:100%;background:linear-gradient(135deg,#f1f1f3,#e2e2e6)}
.exmc-badge{position:absolute;left:10px;top:10px;font-size:11px;font-weight:600;padding:4px 9px;border-radius:20px;line-height:1.2}
.exmc-badge-lock{background:rgba(22,23,28,.85);color:#fff}
.exmc-badge-open{background:#2e7d4f;color:#fff}
.exmc-card-body{padding:14px 16px 18px;display:flex;flex-direction:column;gap:8px;flex:1}
.exmc-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.exmc-card-title{margin:0;font-size:17px;line-height:1.25;font-weight:600;color:var(--exmc-card-text)}
.exmc-card-title a{color:inherit;text-decoration:none}
.exmc-card-title a:hover{color:var(--exmc-accent)}
.exmc-card-text{margin:0;font-size:12.5px;line-height:1.55;color:var(--exmc-card-muted)}
button.exmc-heart,.exmc-card button.exmc-heart{flex:none;background:none;border:0;border-radius:0;box-shadow:none;min-height:0;width:auto;padding:2px;cursor:pointer;color:var(--exmc-card-text);line-height:0;transition:transform .15s}
.exmc-heart svg{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linejoin:round}
button.exmc-heart:hover,button.exmc-heart:focus{background:none;transform:scale(1.12);color:var(--exmc-accent)}
.exmc-heart.is-on{color:var(--exmc-accent)}
.exmc-heart.is-on svg{fill:currentColor}
.exmc-empty{text-align:center;padding:28px 16px;color:var(--exmc-muted)}
.exmc-empty p{margin:0 0 14px}

/* course title + image */
.exmc-ctitle-h{margin:0;color:var(--exmc-text);font-size:clamp(32px,4.4vw,52px);line-height:1.12;font-weight:700}
.exmc-hl{color:var(--exmc-accent)}
.exmc-ctitle-ex{margin:16px 0 0;color:var(--exmc-text);font-size:16px;line-height:1.6;max-width:560px}
.exmc-cimg{width:240px;height:240px;border-radius:50%;overflow:hidden;background:#d9d9dc;margin:0 auto}
.exmc-cimg img,.exmc-cimg-el{width:100%!important;height:100%!important;object-fit:cover;display:block}
.exmc-cimg-ph{display:block;width:100%;height:100%}

/* player */
.exmc-player{display:flex;flex-direction:column;align-items:center;gap:18px;width:100%}
.exmc-frame{position:relative;width:100%;aspect-ratio:16/9;background:#d9d9dc;border-radius:4px;overflow:hidden}
.exmc-frame iframe,.exmc-frame video,.exmc-frame .exmc-video-el{position:absolute;inset:0;width:100%!important;height:100%!important;border:0;display:block;background:#000}
.exmc-frame-lock{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background-size:cover;background-position:center}
.exmc-frame-lock::before{content:"";position:absolute;inset:0;background:rgba(22,23,28,.35)}
.exmc-frame-lock:not([style])::before{background:transparent}
.exmc-lock-icon{position:relative;line-height:0}
.exmc-lock-icon svg{fill:none;stroke:#16171c;stroke-width:1.5}
.exmc-frame-lock[style] .exmc-lock-icon svg{stroke:#fff}
.exmc-lock-title{position:relative;font-weight:600;color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.5)}
.exmc-player-actions{display:flex;justify-content:center;width:100%}

/* overview + included boxes */
.exmc-overview,.exmc-included{height:100%;padding:34px 30px;border-radius:2px}
.exmc-overview{border:4px solid #3a1d20;background:transparent}
.exmc-included{background:var(--exmc-accent);color:#16171c}
.exmc-box-title{margin:0 0 18px;font-size:30px;line-height:1.15;font-weight:700;color:inherit;text-align:center}
.exmc-meta{list-style:none;margin:0 0 18px;padding:0;font-size:16px;line-height:1.85}
.exmc-meta-k{font-weight:inherit}
.exmc-desc{font-size:14px;line-height:1.6;color:var(--exmc-text)}
.exmc-desc p{margin:0 0 12px}
.exmc-overview .exmc-unlock-wrap{margin-top:18px}
.exmc-included-intro{font-weight:600;font-size:18px;line-height:1.6;margin:0 0 16px;color:#16171c}
.exmc-files-label{font-weight:600;font-size:14px;margin:0 0 6px;color:#16171c;display:list-item;list-style:disc inside}
.exmc-files{margin:0 0 26px;padding-left:22px;list-style:none;font-size:14px;line-height:2.1;font-weight:600;color:#16171c}
.exmc-files a{color:#16171c;text-decoration:none;border-bottom:1px solid rgba(22,23,28,.35)}
.exmc-files a:hover{border-bottom-color:#16171c}
.exmc-included .exmc-btn{display:flex;width:max-content;margin:0 auto}
.exmc-locked-note{font-size:13px;margin:0;color:#16171c;opacity:.85;text-align:center}

/* profile */
.exmc-profile{display:flex;align-items:flex-start;gap:40px;flex-wrap:wrap}
.exmc-avatar{width:162px;height:162px;border-radius:50%;border:12px solid #fff;background:#16171c;overflow:hidden;flex:none}
.exmc-avatar img,.exmc-avatar-img{width:100%!important;height:100%!important;object-fit:cover;display:block;border-radius:50%}
.exmc-avatar-ph{display:block;width:100%;height:100%;background:radial-gradient(circle at 50% 38%,#fff 0 22%,transparent 23%),radial-gradient(ellipse at 50% 100%,#fff 0 46%,transparent 47%) #16171c}
.exmc-profile-info{display:flex;flex-direction:column;align-items:flex-start;gap:22px}
.exmc-profile-rows{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px;font-size:22px;font-weight:600;line-height:1.3}
.exmc-pr-v{word-break:break-word}

/* wallet */
.exmc-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px}
.exmc-tile{background:var(--exmc-surface);border-radius:var(--exmc-radius);padding:18px 16px;display:flex;flex-direction:column;gap:6px;border-top:3px solid var(--exmc-accent)}
.exmc-tile-num{font-size:30px;font-weight:700;line-height:1}
.exmc-tile-level .exmc-tile-num{font-size:18px;line-height:1.3}
.exmc-tile-lab{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--exmc-muted)}
.exmc-wallet-note{margin:14px 0 0;font-size:14px;color:var(--exmc-muted)}
.exmc-redeem{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px;font-size:14px}
.exmc-history{list-style:none;margin:18px 0 0;padding:0;border-top:1px solid rgba(255,255,255,.1)}
.exmc-history li{display:grid;grid-template-columns:1fr auto auto;gap:14px;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.08);font-size:13.5px}
.exmc-h-when{color:var(--exmc-muted)}
.exmc-h-amt{font-weight:600;text-align:right}
.exmc-h-amt.is-plus{color:#7fdca4}
.exmc-h-amt.is-minus{color:#ff9a9a}

/* invite */
.exmc-invite{display:flex;flex-direction:column;align-items:var(--exmc-btn-align,center);gap:14px}
.exmc-invite-panel{width:100%;max-width:520px;display:flex;flex-direction:column;gap:12px;background:var(--exmc-surface);padding:18px;border-radius:var(--exmc-radius);text-align:left}
.exmc-invite-panel[hidden]{display:none}
.exmc-copy,.exmc-invite-form{display:flex;gap:8px}
.exmc-copy input,.exmc-invite-form input{flex:1;min-width:0}
.exmc-sms{color:var(--exmc-text);font-size:14px}
.exmc-invite-count{margin:0;font-size:13px;color:var(--exmc-muted)}

/* forms (scoped with the element name so theme/Elementor input rules do not win) */
.exmc-auth{max-width:440px;margin:0 auto;background:var(--exmc-surface);border-radius:var(--exmc-radius);padding:26px}
.exmc-auth-tabs{display:flex;gap:4px;margin-bottom:18px;background:rgba(0,0,0,.25);padding:4px;border-radius:6px}
.exmc-auth-tabs button{flex:1;background:none;border:0;box-shadow:none;color:var(--exmc-muted);padding:9px;border-radius:4px;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.exmc-auth-tabs button.is-on{background:var(--exmc-accent);color:#fff}
.exmc-auth-form{display:flex;flex-direction:column;gap:12px}
.exmc-auth-form[hidden]{display:none}
.exmc-auth-form label{display:flex;flex-direction:column;gap:5px;font-size:13px;color:var(--exmc-muted)}
.exmc-auth-form label.exmc-check{flex-direction:row;align-items:center;gap:8px}
.exmc-auth input[type=text],.exmc-auth input[type=email],.exmc-auth input[type=password],.exmc-invite input[type=text],.exmc-invite input[type=email]{background:#16171c;border:1px solid rgba(255,255,255,.16);color:#fff;border-radius:4px;padding:10px 12px;font:inherit;font-size:15px;width:100%}
.exmc-auth input:focus,.exmc-invite input:focus{outline:2px solid var(--exmc-accent);outline-offset:1px;border-color:transparent}
.exmc-auth .exmc-btn{margin-top:4px;width:100%}
.exmc-auth-note{margin:0;font-size:13px;color:var(--exmc-muted)}
.exmc-auth-in{text-align:center}
.exmc-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0}

/* leaderboard */
.exmc-leaderboard ol{margin:0;padding:0;list-style:none;counter-reset:exmc}
.exmc-leaderboard li{counter-increment:exmc;display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.08)}
.exmc-leaderboard li::before{content:counter(exmc);width:26px;height:26px;border-radius:50%;background:var(--exmc-surface);display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700}
.exmc-leaderboard li:nth-child(-n+3)::before{background:var(--exmc-accent);color:#fff}
.exmc-leaderboard li span{flex:1}
.exmc-leaderboard li.is-me{color:var(--exmc-accent)}

/* toast */
.exmc-toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,30px);background:#16171c;color:#fff;border-left:4px solid var(--exmc-accent);padding:13px 20px;border-radius:6px;box-shadow:0 10px 30px rgba(0,0,0,.4);font-size:14px;z-index:99999;opacity:0;transition:opacity .35s,transform .35s;max-width:calc(100vw - 32px)}
.exmc-toast.is-in{opacity:1;transform:translate(-50%,0)}

/* built-in single layout (used only when no Elementor template is set) */
.exmc-single{background:#16171c}
.exmc-s-in{max-width:1140px;margin:0 auto;padding:0 20px}
.exmc-s-hero{padding:80px 0}
.exmc-s-hero .exmc-s-in{display:flex;align-items:center;justify-content:space-between;gap:40px}
.exmc-s-title{color:#fff;font-size:44px;line-height:1.1;margin:0 0 16px}
.exmc-s-lead{color:var(--exmc-muted);font-size:17px;max-width:520px;margin:0}
.exmc-s-thumb img{width:260px;height:260px;border-radius:50%;object-fit:cover}
.exmc-s-two{padding:30px 0 70px}
.exmc-s-cols{display:grid;grid-template-columns:1fr 1fr;gap:56px}
.exmc-s-player{background:#2a2b30;padding:50px 0}
.exmc-s-player .exmc-s-in{max-width:560px;display:flex;flex-direction:column;align-items:center;gap:18px}
.exmc-s-more{padding:70px 0}
.exmc-s-h2{color:#fff;text-align:center;font-size:32px;line-height:1.2;margin:0 0 30px}

@media (max-width:1024px){
	.exmc-grid{--exmc-cols:2}
	.exmc-grid[style]{grid-template-columns:repeat(2,minmax(0,1fr))}
	.exmc-s-cols{grid-template-columns:1fr}
}
@media (max-width:767px){
	.exmc-grid{--exmc-cols:1;gap:20px}
	.exmc-grid[style]{grid-template-columns:1fr}
	.exmc-profile{flex-direction:column;align-items:center;text-align:center;gap:24px}
	.exmc-profile-info{align-items:center}
	.exmc-profile-rows{font-size:18px}
	.exmc-box-title{font-size:24px}
	.exmc-overview,.exmc-included{padding:24px 18px}
	.exmc-s-hero .exmc-s-in{flex-direction:column-reverse;text-align:center}
	.exmc-s-title{font-size:32px}
	.exmc-s-thumb img{width:180px;height:180px}
	.exmc-copy,.exmc-invite-form{flex-direction:column}
	.exmc-history li{grid-template-columns:1fr auto;}
	.exmc-h-when{display:none}
}
@media (prefers-reduced-motion:reduce){
	.exmc-card,.exmc-btn,.exmc-heart,.exmc-toast{transition:none}
}
