/* Nuya modern UI kit (v1) — shared by the redesigned public pages. Colors are variables: change them here once and every page follows. */
:root{
  --nm-bg:#eef3ef; --nm-surface:#ffffff; --nm-surface2:#f6faf7;
  --nm-primary:#3f7a55; --nm-primary-dark:#2e5d41; --nm-primary-soft:#e3f0e7;
  --nm-accent:#ee7b30; --nm-accent-soft:#ffeadb;
  --nm-text:#1f2d24; --nm-muted:#6b7d71; --nm-line:#dbe6de; --nm-danger:#c0392b;
  --nm-radius:20px; --nm-shadow:0 6px 20px rgba(32,64,44,.08); --nm-shadow-lg:0 14px 34px rgba(32,64,44,.16);
}
html:has(.nm-page){background:var(--nm-bg)!important}
.nm-page{max-width:880px;margin:0 auto;padding:6px 14px 120px;color:var(--nm-text);direction:rtl;font-family:inherit}
.nm-page *{box-sizing:border-box}
.nm-hero{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding:20px 20px;margin:12px 0 14px;border-radius:var(--nm-radius);color:#fff;background:linear-gradient(135deg,var(--nm-primary) 0%,var(--nm-primary-dark) 100%);box-shadow:var(--nm-shadow)}
.nm-title{margin:0;font-size:21px;font-weight:800;color:#fff}
.nm-sub{margin:4px 0 0;font-size:13px;opacity:.85}
.nm-pills{display:flex;gap:8px;flex-wrap:wrap}
.nm-pill{display:inline-flex;align-items:center;gap:7px;padding:9px 14px;border-radius:999px;background:rgba(255,255,255,.16);color:#fff;font-size:13px;text-decoration:none;border:1px solid rgba(255,255,255,.28);transition:.15s}
.nm-pill:hover{background:rgba(255,255,255,.28);color:#fff;text-decoration:none}
.nm-banner{display:block;margin:0 0 14px;border-radius:var(--nm-radius);overflow:hidden;box-shadow:var(--nm-shadow);background:var(--nm-surface)}
.nm-banner img{display:block;width:100%;height:auto;max-height:none;object-fit:contain}
.nm-sec{margin:20px 0 6px}
.nm-sec-title{display:flex;align-items:center;gap:9px;margin:0 0 12px;font-size:16px;font-weight:800;color:var(--nm-text)}
.nm-sec-title i{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:var(--nm-primary-soft);color:var(--nm-primary);font-size:15px}
.nm-grid{display:grid;gap:12px}
.nm-levels{grid-template-columns:repeat(3,1fr)}
.nm-coins{grid-template-columns:repeat(3,1fr)}
@media(max-width:520px){
  .nm-levels{gap:8px}.nm-levels .nm-card{padding:14px 6px 10px}.nm-levels .nm-ico{width:42px;height:42px;font-size:19px;border-radius:13px}
  .nm-levels .nm-name{font-size:13.5px}.nm-levels .nm-hint{font-size:11px}.nm-levels .nm-price b{font-size:14px}.nm-levels .nm-price s{font-size:11px}
  .nm-levels .nm-tick{top:7px;left:7px;width:20px;height:20px;font-size:10px}
  .nm-coins{grid-template-columns:repeat(2,1fr)}.nm-coins .nm-coin:last-child:nth-child(odd){grid-column:1/-1}
}
.nm-card{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:18px 12px 14px;margin:0;background:var(--nm-surface);border:2px solid var(--nm-line);border-radius:var(--nm-radius);box-shadow:var(--nm-shadow);cursor:pointer;transition:transform .15s,border-color .15s,box-shadow .15s;user-select:none}
.nm-card:hover{transform:translateY(-2px);box-shadow:var(--nm-shadow-lg)}
.nm-check{position:absolute!important;opacity:0;pointer-events:none;width:0;height:0}
.nm-tick{position:absolute;top:10px;left:10px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;border:2px solid var(--nm-line);background:#fff;color:transparent;font-size:12px;transition:.15s}
.nm-card:has(.nm-check:checked){border-color:var(--nm-primary);background:var(--nm-primary-soft)}
.nm-card:has(.nm-check:checked) .nm-tick{background:var(--nm-primary);border-color:var(--nm-primary);color:#fff}
.nm-card.is-owned{opacity:.92;cursor:default;background:var(--nm-surface2)}
.nm-card.is-owned:hover{transform:none;box-shadow:var(--nm-shadow)}
.nm-ico{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:var(--nm-primary-soft);color:var(--nm-primary);font-size:22px;font-weight:800}
.nm-ico-num{font-size:24px}
.nm-name{font-size:15px;font-weight:800;color:var(--nm-text)}
.nm-hint{font-size:12px;color:var(--nm-muted)}
.nm-price{margin-top:6px;font-size:13px;color:var(--nm-muted);display:flex;flex-wrap:wrap;gap:6px;align-items:baseline;justify-content:center}
.nm-price b{font-size:17px;color:var(--nm-primary-dark)}
.nm-price s{color:var(--nm-danger);font-size:12px;opacity:.85}
.nm-price small{font-size:11px}
.nm-owned{margin-top:6px;display:inline-flex;gap:6px;align-items:center;padding:5px 10px;border-radius:999px;background:var(--nm-primary-soft);color:var(--nm-primary-dark);font-size:12px;font-weight:700}
.nm-featured{flex-direction:row;justify-content:space-between;gap:14px;margin-top:12px;padding:16px 18px 16px 48px;text-align:right;border-color:var(--nm-accent);background:linear-gradient(135deg,var(--nm-accent-soft),#fff)}
.nm-featured .nm-ico{background:var(--nm-accent);color:#fff;flex:none}
.nm-feat-body{display:flex;flex-direction:column;flex:1;align-items:flex-start}
.nm-featured .nm-price{margin:0;flex-direction:column;align-items:flex-end;gap:0}
.nm-featured:has(.nm-check:checked){border-color:var(--nm-primary);background:var(--nm-primary-soft)}
.nm-coin{padding-top:14px}
.nm-coin-img{width:64px;height:64px;object-fit:contain;filter:drop-shadow(0 4px 6px rgba(0,0,0,.15))}
.nm-coin-amt{font-size:22px;font-weight:900;color:var(--nm-text);line-height:1.1}
.nm-bar{position:sticky;bottom:12px;z-index:20;display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:22px;padding:12px 14px;background:rgba(255,255,255,.96);border:1px solid var(--nm-line);border-radius:var(--nm-radius);box-shadow:var(--nm-shadow-lg);backdrop-filter:blur(8px)}
.nm-bar-sum{display:flex;flex-direction:column;flex:1;min-width:130px}
.nm-bar-lbl{font-size:12px;color:var(--nm-muted)}
.nm-bar-total{font-size:20px;font-weight:900;color:var(--nm-primary-dark)}
.nm-bar-total small{font-size:12px;font-weight:600}
.nm-rules{display:flex;align-items:center;gap:8px;margin:0;font-size:12.5px;color:var(--nm-muted);cursor:pointer}
.nm-rules input{position:static!important;margin:0!important;width:18px;height:18px;accent-color:var(--nm-primary)}
.nm-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:150px;padding:12px 20px;border:0;border-radius:14px;background:linear-gradient(135deg,var(--nm-primary),var(--nm-primary-dark));color:#fff;font-size:15px;font-weight:800;box-shadow:0 8px 18px rgba(46,93,65,.3);cursor:pointer;transition:.15s}
.nm-btn:hover{transform:translateY(-1px);filter:brightness(1.06)}
.nm-btn:active{transform:none}
@media(max-width:520px){.nm-btn{width:100%}.nm-bar{bottom:8px}}
/* v2 — compact layout: whole shop fits one screen, no scrolling */
.nm-page{padding:2px 10px 12px}
.nm-hero{padding:10px 14px;margin:6px 0 8px;gap:6px}
.nm-title{font-size:17px}
.nm-sub{display:none}
.nm-pill{padding:6px 11px;font-size:12px}
.nm-banner{margin:0 0 8px;max-width:340px;margin-inline:auto}
.nm-sec{margin:8px 0 2px}
.nm-sec-title{margin:0 0 6px;font-size:14px}
.nm-sec-title i{width:24px;height:24px;font-size:12px;border-radius:8px}
.nm-grid{gap:7px}
.nm-card{padding:8px 6px 7px;gap:1px;border-radius:16px}
.nm-ico{width:34px;height:34px;font-size:16px;border-radius:11px}
.nm-ico-num{font-size:17px}
.nm-name{font-size:13px}.nm-hint{font-size:10.5px}
.nm-price{margin-top:2px}.nm-price b{font-size:13.5px}.nm-price s{font-size:10.5px}
.nm-tick{top:5px;left:5px;width:17px;height:17px;font-size:9px}
.nm-owned{margin-top:2px;padding:3px 8px;font-size:11px}
.nm-featured{margin-top:7px;padding:8px 12px 8px 34px;gap:10px}
.nm-coins{grid-template-columns:repeat(5,1fr)}
.nm-coin{padding-top:8px}
.nm-coin-img{width:38px;height:38px}
.nm-coin-amt{font-size:15px}
.nm-bar{position:static;margin-top:10px;padding:8px 10px;gap:6px 12px}
.nm-bar-total{font-size:17px}
.nm-btn{padding:9px 16px;font-size:14px;min-width:130px}
@media(max-width:520px){
  .nm-coins{grid-template-columns:repeat(3,1fr)}
  .nm-coins .nm-coin:last-child:nth-child(odd){grid-column:auto}
  .nm-banner{max-width:240px}
  .nm-btn{width:auto;flex:1}
  .nm-rules{font-size:11.5px}
}
/* v2b — tighter for phones */
@media(max-width:520px){
  .nm-banner{display:none}
  .nm-hero{flex-wrap:nowrap;padding:8px 12px}
  .nm-title{font-size:15px;white-space:nowrap}
  .nm-pill{padding:5px 9px;font-size:11px;gap:4px}
  .nm-pill i{display:none}
  .nm-levels .nm-hint{display:none}
  .nm-levels .nm-card{padding:6px 4px}
  .nm-levels .nm-ico{width:28px;height:28px;font-size:14px}
  .nm-levels .nm-price small,.nm-coin .nm-price small,.nm-coin .nm-hint{display:none}
  .nm-coin{padding-top:6px}
  .nm-coin-img{width:30px;height:30px}
  .nm-coin-amt{font-size:14px}
  .nm-featured{padding:6px 10px 6px 30px}
  .nm-featured .nm-ico{width:30px;height:30px}
  .nm-bar{margin-top:8px}
  .nm-bar-sum{flex-direction:row;align-items:center;gap:10px;min-width:0}
}
@media(max-width:520px){.nm-bar{display:grid;grid-template-columns:auto 1fr;align-items:center}.nm-btn{grid-column:1/-1;width:100%}.nm-bar-sum{white-space:nowrap}}
@media(min-width:521px){.nm-banner{max-width:200px}.nm-levels,.nm-coins{gap:8px}}
/* v2c — avatar/card banner stays visible on phones (small, never cropped) */
@media(max-width:520px){.nm-banner{display:block;max-width:150px;margin:0 auto 6px;border-radius:14px}}
@media(max-width:520px){
  .nm-featured .nm-price{flex-direction:row;align-items:baseline;gap:6px}.nm-featured .nm-price small{display:none}
  .nm-featured{margin-top:5px;padding:4px 10px 4px 30px}
  .nm-sec{margin:5px 0 0}.nm-sec-title{margin-bottom:4px}
  .nm-coin{padding:4px 4px 5px}.nm-coin-img{width:26px;height:26px}
  .nm-levels .nm-card{padding:4px}
  .nm-banner{max-width:130px;margin-bottom:4px}
  .nm-hero{margin:4px 0 6px}
  .nm-grid{gap:6px}.nm-bar{margin-top:6px}
}
/* v2d — nuya-card banner back to its original full size (never shrink it) */
.nm-banner,.nm-banner img{max-width:none}
.nm-banner{display:block;width:100%;margin:0 0 8px;border-radius:var(--nm-radius)}
.nm-banner img{width:100%;height:auto}
@media(max-width:520px){
  .nm-coins{grid-template-columns:repeat(5,1fr);gap:4px}
  .nm-coin{padding:4px 2px 5px;border-radius:12px;border-width:1.5px}
  .nm-coin-img{width:24px;height:24px}
  .nm-coin-amt{font-size:12px}
  .nm-coin .nm-price b{font-size:10.5px}
  .nm-coin .nm-tick{top:3px;left:3px;width:13px;height:13px;font-size:7px;border-width:1.5px}
  .nm-levels .nm-card{padding:3px}.nm-levels .nm-ico{width:24px;height:24px;font-size:12px}
  .nm-hero{margin:2px 0 5px;padding:6px 12px}
}
@media(max-width:520px){.nm-banner{margin-bottom:4px}.nm-sec-title{margin-bottom:3px}}
/* ===== home map ===== */
.homepage .hm-map{position:relative;max-width:560px;margin:0 auto;line-height:0;user-select:none;-webkit-user-select:none}
.homepage .hm-map img{width:100%;height:auto;display:block;-webkit-touch-callout:none}
.hm-hot{position:absolute;display:block;border-radius:22px;background:none!important;outline:none!important;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-touch-callout:none;user-select:none}
.hm-hot:hover,.hm-hot:active,.hm-hot:focus,.hm-hot:focus-visible{background:none!important;outline:none!important;box-shadow:none!important;transform:none!important}
.hm-help,.hm-support{border-radius:50%}

/* ===== sitewide skin (v3) — every inner page follows the home-map look ===== */
.ui-main:not(.homepage) .container-fluid{max-width:640px;margin:0 auto;padding:10px 12px 20px!important}
.ui-main:not(.homepage) .container-fluid>.row{background:var(--nm-surface);border-radius:var(--nm-radius);box-shadow:var(--nm-shadow);margin:0 0 12px;padding:12px 6px}
.ui-main:not(.homepage) .container-fluid>.row.p-3{padding:12px 6px!important}
.ui-main:not(.homepage) .nm-page .container-fluid>.row{background:none;box-shadow:none}
/* section headings */
.ui-main:not(.homepage) h3.nuya6,.ui-main:not(.homepage) h4.nuya6,.ui-main:not(.homepage) h5.nuya6,.ui-main:not(.homepage) h3.title,.ui-main:not(.homepage) h4.title{
  display:flex;align-items:center;gap:9px;margin:2px 0 10px;font-size:16px!important;font-weight:800!important;color:var(--nm-text)!important;text-align:right}
.ui-main:not(.homepage) h3.nuya6>i,.ui-main:not(.homepage) h4.nuya6>i,.ui-main:not(.homepage) h5.nuya6>i,
.ui-main:not(.homepage) h3.nuya6>span.fa,.ui-main:not(.homepage) h5.nuya6>span.fa{
  display:inline-grid;place-items:center;flex:none;width:30px;height:30px;border-radius:10px;background:var(--nm-primary-soft);color:var(--nm-primary);font-size:15px}
/* buttons */
.ui-main:not(.homepage) .btn,.modal .btn{border:0;border-radius:14px;padding:10px 20px;font-weight:800;box-shadow:0 6px 14px rgba(32,64,44,.14);transition:transform .12s,filter .12s}
.ui-main:not(.homepage) .btn:hover{transform:translateY(-1px);filter:brightness(1.05)}
.ui-main:not(.homepage) .btn:active{transform:none}
.ui-main:not(.homepage) .btn-success,.ui-main:not(.homepage) .bg-nuya3.btn,.ui-main:not(.homepage) .bg-nuya4.btn,.ui-main:not(.homepage) .btn-dark,.ui-main:not(.homepage) .bg-nuya6.btn,.ui-main:not(.homepage) .bg-nuya5.btn{
  background:linear-gradient(135deg,var(--nm-primary),var(--nm-primary-dark))!important;color:#fff!important}
.ui-main:not(.homepage) .btn-danger{background:linear-gradient(135deg,#e0584a,var(--nm-danger))!important;color:#fff!important}
.ui-main:not(.homepage) .btn-light{background:var(--nm-surface)!important;color:var(--nm-primary-dark)!important;border:1px solid var(--nm-line)}
.ui-main:not(.homepage) .btn-warning,.ui-main:not(.homepage) .btn-orange{background:linear-gradient(135deg,#f59a55,var(--nm-accent))!important;color:#fff!important}
/* inputs */
.ui-main:not(.homepage) .form-control,.ui-main:not(.homepage) select.custom-select{border:2px solid var(--nm-line);border-radius:14px;min-height:44px;background:var(--nm-surface2);color:var(--nm-text);box-shadow:none}
.ui-main:not(.homepage) .form-control:focus{border-color:var(--nm-primary);background:#fff;box-shadow:0 0 0 3px rgba(63,122,85,.15)}
.ui-main:not(.homepage) .form-control:disabled{background:#eef2ef;color:var(--nm-muted)}
.ui-main:not(.homepage) label{font-size:13px;font-weight:700;color:var(--nm-muted);margin-bottom:4px}
.ui-main:not(.homepage) a{color:var(--nm-primary-dark)}
.ui-main:not(.homepage) .input-group-text{border:2px solid var(--nm-line);background:var(--nm-primary-soft);color:var(--nm-primary);border-radius:14px}
.ui-main:not(.homepage) img.rounded{border-radius:var(--nm-radius)!important}
/* tables / alerts / breadcrumbs */
.ui-main:not(.homepage) .breadcrumb{border-radius:999px;background:var(--nm-surface);box-shadow:var(--nm-shadow);padding:8px 16px}
.ui-main:not(.homepage) .alert{border:0;border-radius:16px;box-shadow:var(--nm-shadow)}
.ui-main:not(.homepage) .table{background:var(--nm-surface);border-radius:var(--nm-radius);overflow:hidden}
/* simple info rows (contact / about) */
.nm-info{display:flex;gap:12px;align-items:flex-start;padding:12px 4px;border-top:1px solid var(--nm-line)}
.nm-info:first-of-type{border-top:0}
.nm-info>i{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:13px;background:var(--nm-primary-soft);color:var(--nm-primary);font-size:18px}
.nm-info b{display:block;font-size:14px;color:var(--nm-text);margin-bottom:2px}
.nm-info span,.nm-info a{font-size:13.5px;color:var(--nm-muted);line-height:1.9}
.nm-card-box{background:var(--nm-surface);border-radius:var(--nm-radius);box-shadow:var(--nm-shadow);padding:14px;margin:0 0 12px}
.nm-embed{border-radius:var(--nm-radius);overflow:hidden;box-shadow:var(--nm-shadow);margin-bottom:12px;line-height:0}
.nm-embed iframe,.nm-embed video{width:100%;border:0;display:block;background:#000}
/* ===== back button: fixed (not draggable), top-right under the hamburger ===== */
.nm-back{position:fixed;top:92px;right:8px;z-index:2000;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--nm-primary-dark);color:#fff!important;font-size:16px;text-decoration:none!important;box-shadow:0 4px 12px rgba(32,64,44,.3);-webkit-tap-highlight-color:transparent;transition:transform .12s,filter .12s}
.nm-back:active{transform:scale(.92)}
@media(min-width:700px){.nm-back{right:calc(50% - 292px)}}
.nm-back{top:101px;right:10px;width:36px;height:36px}
@media(min-width:700px){.nm-back{right:calc(50% - 290px)}}
/* switched-off item: stays visible, greyed, not selectable */
.nm-card.is-off{opacity:.55;filter:grayscale(.85);cursor:not-allowed;box-shadow:none}
.nm-card.is-off:hover{transform:none;box-shadow:none}
.nm-off{margin-top:2px;display:inline-flex;gap:5px;align-items:center;padding:3px 9px;border-radius:999px;background:#e7ebe8;color:var(--nm-muted);font-size:11px;font-weight:700}
/* ===== header: 3 equal columns so the logo is truly centred ===== */
.nm-head{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:6px;padding:0 8px}
.nm-head-r{display:flex;align-items:center;justify-content:flex-start;gap:6px;min-width:0}
.nm-head-l{display:flex;justify-content:flex-end;min-width:0}
.nm-head-c img{display:block;max-height:46px;width:auto;max-width:150px;margin:0 auto}
.nm-head .coins{padding:0!important;margin:0}

/* back button sits in its own row under the header (content is no longer shifted) */
.ui-main:not(.homepage) .nm-head{margin-top:6px!important;margin-bottom:46px!important}
.nm-back{top:80px;right:10px}

/* ===== profile / forms / accordions (shared kit) ===== */
.nm-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media(max-width:360px){.nm-fields{grid-template-columns:1fr}}
.nm-field{background:var(--nm-surface);border:2px solid var(--nm-line);border-radius:18px;padding:9px 11px 11px;box-shadow:var(--nm-shadow)}
.nm-field label{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--nm-muted);margin:0 0 6px}
.nm-field label i{color:var(--nm-primary)}
.nm-field .form-control{border:0!important;background:var(--nm-surface2)!important;border-radius:12px!important;min-height:40px}
.nm-field:focus-within{border-color:var(--nm-primary)}
.nm-stats{grid-template-columns:1fr 1fr}
.nm-stat{cursor:default}.nm-stat:hover{transform:none;box-shadow:var(--nm-shadow)}
.nm-ico-sm{width:34px;height:34px;font-size:16px;border-radius:11px;flex:none}
.nm-acc{background:var(--nm-surface);border:2px solid var(--nm-line);border-radius:18px;box-shadow:var(--nm-shadow);margin-bottom:10px;overflow:hidden}
.nm-acc-head{display:flex;align-items:center;gap:10px;padding:10px 12px;color:var(--nm-text)!important;text-decoration:none!important}
.nm-acc-head .nm-name{flex:1;text-align:right}
.nm-acc-arrow{color:var(--nm-muted);transition:transform .2s}
.nm-acc-head[aria-expanded="true"] .nm-acc-arrow{transform:rotate(180deg)}
.nm-acc-body{padding:2px 10px 10px;display:grid;gap:7px}
.nm-result{display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:14px;background:var(--nm-surface2);font-size:13px;color:var(--nm-text)}
.nm-result span{flex:1}
.nm-result b{padding:3px 10px;border-radius:999px;background:var(--nm-primary-soft);color:var(--nm-primary-dark);font-size:12px}
.nm-result.ok>i{color:var(--nm-primary)}
.nm-result.bad>i{color:var(--nm-danger)}.nm-result.bad b{background:#fde7e4;color:var(--nm-danger)}
.nm-result.none{color:var(--nm-muted)}
.nm-actions{display:grid;gap:10px;margin-top:16px}
.nm-actions .nm-btn{width:100%}
.nm-btn-danger{background:linear-gradient(135deg,#e0584a,var(--nm-danger))!important;box-shadow:0 8px 18px rgba(192,57,43,.28)!important;text-decoration:none!important;color:#fff!important}

/* ===== lessons / player ===== */
.nm-day{margin:14px 0 6px}
.nm-lessons{display:grid;gap:8px}
.nm-lesson{display:flex;align-items:center;gap:12px;padding:10px 12px;background:var(--nm-surface);border:2px solid var(--nm-line);border-radius:18px;box-shadow:var(--nm-shadow);color:var(--nm-text)!important;text-decoration:none!important;transition:transform .15s,border-color .15s,box-shadow .15s}
.nm-lesson:hover{transform:translateY(-2px);box-shadow:var(--nm-shadow-lg)}
.nm-lesson.is-playing,.nm-lesson:active{border-color:var(--nm-primary);background:var(--nm-primary-soft)}
.nm-lesson img{width:38px;height:38px;padding:6px;background:var(--nm-primary-soft);border-radius:12px;flex:none}
.nm-lesson-title{flex:1;font-size:14px;font-weight:700;line-height:1.7}
.nm-lesson-check{flex:none;min-width:22px;text-align:center;font-size:18px}
.nm-exam{width:100%;margin:16px 0 4px;text-decoration:none!important;color:#fff!important}
.nm-btn-accent{background:linear-gradient(135deg,#f59a55,var(--nm-accent))!important;box-shadow:0 8px 18px rgba(238,123,48,.3)!important}
.nm-player:empty{display:none}
.nm-player{line-height:normal;background:var(--nm-surface)}
.nm-player .player-title{background:var(--nm-surface);font-size:14px!important;text-align:right;padding:12px 14px!important;direction:ltr}
.nm-player .player-contents{background:var(--nm-surface2);padding:10px 14px!important;direction:ltr;text-align:left}
.nm-player .player-text{border-radius:var(--nm-radius)}
.nm-player .player-pdf{padding:14px!important}
.nm-player img{width:100%;height:auto;display:block}

/* ===== tiles (terms / days / extras) ===== */
.nm-tiles{grid-template-columns:repeat(3,1fr);margin:10px 0 14px}
@media(max-width:380px){.nm-tiles{grid-template-columns:repeat(2,1fr)}}
.nm-tile{text-decoration:none!important;color:var(--nm-text)!important;padding:12px 6px;min-height:128px;justify-content:center}
.nm-tile .nm-tick{display:none}
.nm-tile-img{width:72px;height:72px;object-fit:contain;border-radius:14px}
.nm-tile-img-lg{width:100%;max-width:110px;height:auto;aspect-ratio:1/1;object-fit:cover}
.nm-tile .nm-ico{width:30px;height:30px;font-size:14px;border-radius:10px}
.nm-tile .nm-name{font-size:13px;line-height:1.5}
.nm-pill-dark{background:var(--nm-primary-dark);border-color:transparent;color:#fff!important;text-decoration:none!important}
.extra_main_link.nm-tile img{width:64px;height:64px;object-fit:contain}
.nm-flat>.row{background:none!important;box-shadow:none!important;padding:0!important;margin:0!important}
.nm-flat .col-12{padding-left:0!important;padding-right:0!important}
.nm-flat .levels-banner:not(.player){margin:6px 0}
.nm-flat .levels-banner:not(.player) img{height:120px;width:auto}

/* ===== hamburger drawer: button-style menu ===== */
.drawerSub{background:var(--nm-bg)!important;border-radius:0 0 0 var(--nm-radius);box-shadow:var(--nm-shadow-lg);overflow-y:auto;max-height:100%}
.nm-menu{display:grid;gap:9px;padding:12px}
.nm-menu-item{display:flex;align-items:center;gap:12px;padding:10px 12px;background:var(--nm-surface);border:2px solid var(--nm-line);border-radius:18px;box-shadow:var(--nm-shadow);color:var(--nm-text)!important;text-decoration:none!important;transition:transform .12s,border-color .12s,background .12s}
.nm-menu-item:hover,.nm-menu-item:active{border-color:var(--nm-primary);background:var(--nm-primary-soft);transform:translateY(-1px)}
.nm-menu-ico{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:12px;background:var(--nm-primary-soft);color:var(--nm-primary);font-size:17px}
.nm-menu-txt{flex:1;font-size:14px;font-weight:800}
.nm-menu-arrow{color:var(--nm-muted);font-size:12px}
/* home hotspots: no hover highlight on the round icons */
@media(hover:hover){.hm-help:hover,.hm-support:hover{background:none}}
.nm-back{z-index:9!important}

.hm-hot::selection,.hm-map ::selection{background:transparent}

/* ===== remaining pages: tours, forms, payment, exam ===== */
.nm-imgcard{padding:0;overflow:hidden;line-height:0;position:relative;display:block}
.nm-imgcard img{width:100%;height:auto;display:block;border-radius:var(--nm-radius)}
.nm-tourlink{text-decoration:none!important}
.nm-tourlink .nm-btn{position:absolute;left:12px;bottom:12px;min-width:0;padding:8px 14px;font-size:13px;line-height:1.4;width:auto}
.nm-text{line-height:2;font-size:14px;color:var(--nm-text)}
.nm-tiles-2{grid-template-columns:repeat(2,1fr)!important}
.nm-tiles-2 .nm-tile{padding:22px 10px}
.nm-tiles-2 .nm-ico{width:54px;height:54px;font-size:24px}
.nm-form{padding:16px}
.nm-form .input-group{direction:ltr;flex-wrap:nowrap;margin-bottom:12px}
.nm-form .form-control{min-height:46px;border:2px solid var(--nm-line)!important;border-radius:14px!important;background:var(--nm-surface2)!important}
.nm-form .form-control:focus{border-color:var(--nm-primary)!important;box-shadow:none}
.nm-form .input-group .form-control{border-radius:14px 0 0 14px!important}
.nm-form .input-group-append .input-group-text{border:2px solid var(--nm-line);border-left:0;border-radius:0 14px 14px 0;background:var(--nm-primary-soft);color:var(--nm-primary);font-size:20px!important;padding:0 14px}
.nm-form label{font-weight:700;font-size:13px;color:var(--nm-muted)}
.nm-form .toggle-password{position:absolute;right:56px;top:10px;z-index:5;background:none;border:0;color:var(--nm-muted)}
.nm-form h3{font-size:16px;font-weight:800}
.nm-link{color:var(--nm-primary-dark)!important;font-weight:700;text-decoration:none!important}
.nm-pay-list{display:grid;gap:10px;margin-bottom:12px}
.nm-pay{flex-direction:row;justify-content:flex-start;gap:12px;padding:14px 16px}
.nm-pay .payment-icon{width:44px;height:44px;object-fit:contain}
.nm-pay .nm-tick{left:14px;top:50%;margin-top:-12px}
.nm-total{display:grid;gap:8px}
.nm-total>div{display:flex;justify-content:space-between;align-items:center;font-size:14px}
.nm-total-sum{border-top:1px dashed var(--nm-line);padding-top:8px;font-size:16px!important;font-weight:800;color:var(--nm-primary-dark)}
/* exam */
.nm-q{background:var(--nm-surface);border-radius:var(--nm-radius);box-shadow:var(--nm-shadow);padding:14px;margin-bottom:12px;text-align:left}
.nm-q-head h4{font-size:15px;font-weight:800;line-height:1.7;margin:0 0 10px;color:var(--nm-text)}
.nm-opts{display:grid;gap:8px}
.nm-opt{display:flex;align-items:center;gap:10px;margin:0;padding:11px 14px;background:var(--nm-surface2);border:2px solid var(--nm-line);border-radius:14px;cursor:pointer;transition:.12s;direction:ltr}
.nm-opt input{accent-color:var(--nm-primary);width:18px;height:18px;flex:none;margin:0}
.nm-opt-t{font-size:14px;color:var(--nm-text)}
.nm-opt:has(input:checked){border-color:var(--nm-primary);background:var(--nm-primary-soft)}
#timer.nm-pill{background:rgba(0,0,0,.18)}
/* profile photo */
.nm-avatar-box{display:flex;align-items:center;gap:16px;background:var(--nm-surface);border-radius:var(--nm-radius);box-shadow:var(--nm-shadow);padding:14px;margin-bottom:14px}
.nm-avatar{position:relative;display:grid;place-items:center;flex:none;width:96px;height:96px;margin:0;border-radius:50%;background:var(--nm-primary-soft);color:var(--nm-primary);font-size:44px;cursor:pointer;border:3px solid #fff;box-shadow:0 0 0 2px var(--nm-primary)}
.nm-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.nm-avatar-cam{position:absolute;bottom:-2px;left:-2px;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--nm-accent);color:#fff;font-size:14px;border:2px solid #fff}
.nm-avatar-act{display:grid;gap:8px;flex:1}
.nm-avatar-act form{margin:0}
.nm-avatar-act .nm-btn{width:100%;min-width:0;margin:0}
.nm-avatar-act label.nm-btn{color:#fff!important;font-size:14px;font-weight:800}

/* ---- tours ---- */
.nm-tour{padding:0;overflow:hidden;display:block;text-decoration:none!important;color:inherit}
.nm-tourimg{position:relative;line-height:0;overflow:hidden}
.nm-tourimg img{width:100%;height:auto;display:block}
.nm-tourov{position:absolute;right:0;left:0;padding:12px 14px;line-height:1.7;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.65)}
.nm-tourov-bottom{bottom:0;background:linear-gradient(transparent,rgba(0,0,0,.72))}
.nm-tourov-top{top:0;background:linear-gradient(rgba(0,0,0,.72),transparent)}
.nm-tourov-center{top:50%;transform:translateY(-50%);background:rgba(0,0,0,.5)}
.nm-tourov-row{display:flex;justify-content:space-between;gap:10px;font-size:14px}
.nm-tourov-row span{opacity:.9}
.nm-tourov-sm .nm-tourov-row{font-size:12px}
.nm-tourbody{padding:12px 14px;display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;justify-content:space-between}
.nm-tourbody h3{margin:0;font-size:17px;flex:1 1 100%}
.nm-tourprice{font-weight:700;color:var(--nm-accent,#e8821e)}
.nm-chip{display:inline-block;padding:3px 10px;border-radius:99px;font-size:12px;background:#eef3ea;color:#4a6b45}
.nm-chip.warn{background:#fff1e0;color:#b25e00}.nm-chip.bad{background:#fde8e8;color:#b42318}
.nm-opts{list-style:none;margin:0;padding:0}
.nm-opts li{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px dashed #dfe6db}
.nm-opts li:last-child{border:0}
.nm-opts li span{color:#6b7a66}
.nm-mytour{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap;padding:10px 0;border-bottom:1px dashed #dfe6db}
.nm-mytour:last-child{border:0}

/* ===== home: the header floats over the map artwork (map starts at the very top of the screen) ===== */
.homepage .nm-head{position:absolute!important;top:0;left:50%;transform:translateX(-50%);width:100%;max-width:560px;margin:0!important;padding:calc(env(safe-area-inset-top,0px) + 8px) 10px 0!important;z-index:6;background:transparent}
.homepage .hm-map{margin-top:0}
.homepage .nm-head [onclick],.homepage .nm-head svg{color:#fff!important}
.homepage .nm-head,.homepage .nm-head a,.homepage .nm-head .coins{color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.45)}

/* ===== header avatar dropdown: card with button-style items ===== */
.nm-head .dropdown-menu,.homepage .dropdown-menu{min-width:190px;padding:10px!important;margin-top:8px!important;background:#fff!important;border:0!important;border-radius:18px!important;box-shadow:0 12px 32px rgba(0,0,0,.28)!important;text-shadow:none}
.nm-head .dropdown-menu .dropdown-item,.homepage .dropdown-menu .dropdown-item{display:flex;align-items:center;gap:10px;width:100%;margin:0 0 8px;padding:11px 14px;border-radius:14px;border:0;font-size:15px;font-weight:800;color:#fff!important;text-shadow:none;background:linear-gradient(135deg,#3f7a55,#2f6445);box-shadow:0 3px 0 rgba(0,0,0,.18);text-decoration:none!important;white-space:nowrap;transition:transform .08s}
.nm-head .dropdown-menu .dropdown-item:last-child{margin-bottom:0}
.nm-head .dropdown-menu .dropdown-item:active{transform:translateY(2px);box-shadow:0 1px 0 rgba(0,0,0,.18)}
.nm-head .dropdown-menu .dropdown-item i{font-size:18px;width:22px;text-align:center;color:#fff!important}
.nm-head .dropdown-menu a[href*="profile"]{background:linear-gradient(135deg,#f59a4d,#ee7b30)}
.nm-head .dropdown-menu a[href*="signout"]{background:linear-gradient(135deg,#d9503f,#c0392b)}
.nm-head .dropdown-menu a[href*="signin"],.nm-head .dropdown-menu a[href*="signup"]{background:linear-gradient(135deg,#f59a4d,#ee7b30)}

/* ===== header logo: transparent 3D NUYA ===== */
.nm-head-c img{max-height:51px;max-width:none;width:auto;height:51px;background:none;border-radius:0;box-shadow:none;object-fit:contain}

/* home header: keep avatar/coins away from the screen corners */
.homepage .nm-head{padding-left:20px!important;padding-right:20px!important}

/* header logo shadow, matching the other soft shadows on the page */
.nm-head-c img{filter:drop-shadow(0 2px 3px rgba(0,0,0,.45)) drop-shadow(0 6px 10px rgba(0,0,0,.28))}

/* terms list (university page): tiles sit directly on the green background, no white card */
.nm-tiles#terms .nm-card.nm-tile{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
.nm-tiles#terms .nm-tile .nm-name{color:#fff!important;text-shadow:0 1px 3px rgba(0,0,0,.45)}
.nm-tile-wrap{position:relative;display:block;width:100%;max-width:130px;aspect-ratio:1/1;margin:0 auto;container-type:inline-size}
.nm-tile-wrap .nm-tile-img{display:block;width:100%;height:100%}
.nm-tiles#terms{gap:2px;grid-template-columns:repeat(3,minmax(0,1fr))}
.nm-tiles#terms .nm-card.nm-tile{padding:6px 0!important;min-height:0;overflow:visible;min-width:0}
/* number sits in the small coloured sticky square, term name in the white area of the note (sizes follow the tile width) */
.nm-tnum{position:absolute;left:0;right:0;top:28%;transform:translateY(-50%) rotate(-4deg);text-align:center;font-size:25px;font-size:22cqw;font-weight:800;line-height:1;direction:ltr;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.3)}
.nm-tnum .fa{font-size:inherit}
.nm-tname{position:absolute;left:4%;right:4%;top:70%;transform:translateY(-50%);text-align:center;font-size:13px;font-size:11.5cqw;font-weight:800;line-height:1.15;direction:ltr;white-space:nowrap}
.nm-tiles#terms .nm-tile .nm-tile-img{filter:drop-shadow(0 2px 3px rgba(0,0,0,.3))}

/* extra page: tiles directly on the green background, bigger icons */
.nm-tiles#subjects{gap:6px;grid-template-columns:repeat(3,minmax(0,1fr))}
.nm-tiles#subjects .nm-card.extra_main_link{background:transparent!important;border-color:transparent!important;box-shadow:none!important;padding:6px 0 4px!important;min-width:0;min-height:0;gap:6px}
.nm-tiles#subjects .extra_main_link.nm-tile img{width:100%;max-width:104px;height:auto;aspect-ratio:1/1;filter:drop-shadow(0 3px 5px rgba(0,0,0,.3))}
.nm-tiles#subjects .extra_main_link .nm-name{color:#fff!important;font-size:15px;text-shadow:0 1px 3px rgba(0,0,0,.45)}
