/* GiC Membership Ticket V2 — full inherited button override and top-layer modal. */
@media(max-width:850px) {
  /* app.css defines #mobileNav.mobile-menu button {width:54px;height:54px;font-size:26px;...!important}.
     The ticket trigger must explicitly override EVERY conflicting property. */
  body > #mobileNav.mobile-menu.gic-premium-drawer-v4 button.gic-v4-plan.gic-v4-smart-badge {
    appearance:none!important;-webkit-appearance:none!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    flex:0 0 auto!important;place-items:normal!important;gap:5px!important;
    width:auto!important;height:34px!important;min-height:34px!important;max-width:122px!important;min-width:0!important;
    margin:0!important;padding:6px 9px!important;
    font:900 10px/1.05 Manrope,system-ui,sans-serif!important;
    letter-spacing:.015em!important;white-space:nowrap!important;text-transform:none!important;
    border:1px solid rgba(23,101,79,.24)!important;border-radius:999px!important;
    background:linear-gradient(145deg,#fbfffd,#e5f6ed)!important;color:#17664f!important;
    box-shadow:0 3px 9px rgba(17,87,65,.07)!important;
    cursor:pointer!important;touch-action:manipulation;
    transform:none!important;transition:box-shadow .15s ease,transform .15s ease!important;
  }
  body > #mobileNav.mobile-menu.gic-premium-drawer-v4 button.gic-v4-smart-badge.is-pro {
    color:#8f6829!important;border-color:#dec58f!important;
    background:linear-gradient(130deg,#fffefa,#f8e9c6)!important;
    box-shadow:0 3px 12px rgba(150,105,30,.10)!important;
  }
  body > #mobileNav.mobile-menu.gic-premium-drawer-v4 button.gic-v4-smart-badge.is-core {
    color:#17604f!important;border-color:#b9dccc!important;
    background:linear-gradient(130deg,#f8fffb,#ddf1e5)!important;
  }
  body > #mobileNav.mobile-menu.gic-premium-drawer-v4 button.gic-v4-smart-badge.is-free,
  body > #mobileNav.mobile-menu.gic-premium-drawer-v4 button.gic-v4-smart-badge.is-unknown {
    color:#62746d!important;border-color:#cedbd5!important;
    background:linear-gradient(130deg,#fcfefd,#eff4f1)!important;box-shadow:none!important;
  }
  body > #mobileNav.mobile-menu.gic-premium-drawer-v4 button.gic-v4-smart-badge:active {transform:scale(.97)!important}
  body > #mobileNav.mobile-menu.gic-premium-drawer-v4 button.gic-v4-smart-badge:focus-visible {outline:3px solid #277e67!important;outline-offset:3px!important}
  #mobileNav.gic-premium-drawer-v4 .gic-v4-smart-badge .gic-v4-badge-level,
  #mobileNav.gic-premium-drawer-v4 .gic-v4-smart-badge .gic-v4-badge-tier {
    font-size:10px!important;line-height:1.05!important;letter-spacing:0!important;
  }
  #mobileNav.gic-premium-drawer-v4 .gic-v4-smart-badge .gic-v4-badge-star {
    font-size:12px!important;line-height:1!important;
  }
}
body.gic-mt-open{overflow:hidden!important}
.gic-mt-overlay,.gic-mt-overlay *{box-sizing:border-box}
/* Native <dialog>.showModal enters the browser TOP LAYER, above even a
   high-z-index transformed or isolated drawer. A regular fixed div did not. */
dialog.gic-mt-overlay {
  position:fixed!important;inset:0!important;z-index:2147483647!important;
  width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;
  margin:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
  padding:16px;box-sizing:border-box;overflow:hidden;
  color:inherit;transform:none!important;
  display:none;align-items:center;justify-content:center;
  font-family:Manrope,system-ui,-apple-system,"Segoe UI",sans-serif;
}
dialog.gic-mt-overlay[open] {display:flex!important}
dialog.gic-mt-overlay::backdrop {
  background:rgba(5,29,25,.60);
  -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
}
.gic-mt-sheet{
  --gic-mt-ink:#173f36;--gic-mt-muted:#677d72;--gic-mt-line:#deeadf;
  position:relative;display:flex;flex-direction:column;gap:12px;
  width:min(100%,440px);max-height:min(93dvh,770px);overflow:auto;overscroll-behavior:contain;
  background:linear-gradient(160deg,#fffdfa 1%,#f5f8f3 66%,#f2f8f4);
  border:1px solid rgba(239,236,219,.9);border-radius:28px;
  padding:19px;box-shadow:0 30px 90px rgba(7,25,22,.32);
  color:var(--gic-mt-ink);
}
.gic-mt-head{display:flex;align-items:flex-start;gap:10px;justify-content:space-between}
.gic-mt-head-copy{min-width:0;flex:1}
.gic-mt-kicker,.gic-mt-label{color:#a68547;font-size:10px;font-weight:800;letter-spacing:.13em}
.gic-mt-head h2{margin:8px 0 6px;font-family:Georgia,"Times New Roman",serif;font-size:clamp(23px,6vw,31px);font-weight:700;letter-spacing:-.035em;line-height:1.13;color:#114b3f}
.gic-mt-subtitle{font-size:12px;line-height:1.55;margin:0;color:#647b71}
.gic-mt-close{border:1px solid #d8e5df;border-radius:14px;flex:0 0 39px;width:39px;height:39px;background:#edf4ef;color:#27564a;cursor:pointer;font-size:25px;line-height:1;display:grid;place-items:center}
.gic-mt-close:focus-visible,.gic-mt-action:focus-visible,.gic-mt-plan:focus-visible{outline:3px solid #2b9576;outline-offset:3px}
.gic-mt-ticket{position:relative;background:linear-gradient(150deg,#fffefd,#fff9ef 80%);border:1px solid #e6d4a9;border-radius:22px;box-shadow:0 10px 30px rgba(97,84,45,.09);overflow:hidden}
.gic-mt-ticket::before{content:"";position:absolute;top:0;left:0;right:0;height:5px;background:linear-gradient(90deg,#116452,#b99953,#e0c68b,#116452)}
.gic-mt-ticket-top{display:flex;align-items:center;gap:10px;padding:18px 16px 13px}
.gic-mt-emblem{width:36px;height:36px;display:grid;place-items:center;flex:0 0 36px;color:#fff;font-size:20px;border-radius:11px;background:linear-gradient(145deg,#a77a2d,#d8ba79)}
.gic-mt-plan-name{font-family:Georgia,"Times New Roman",serif;font-size:18px;line-height:1.22;color:#235347;min-width:0;flex:1}
.gic-mt-status{border:1px solid #bfd7ca;border-radius:99px;background:#e9f4ec;color:#116e53;font-size:10px;white-space:nowrap;font-weight:850;padding:6px 9px}
.gic-mt-ticket.state-free .gic-mt-status,.gic-mt-ticket.state-unavailable .gic-mt-status{color:#64746b;background:#f0f2ef;border-color:#d8e0d9}
.gic-mt-ticket.state-expired .gic-mt-status{color:#9b553d;background:#fff0e9;border-color:#e7b9a3}
.gic-mt-facts{padding:3px 17px 16px}
.gic-mt-row{display:flex;gap:14px;align-items:baseline;justify-content:space-between;padding:9px 0;border-bottom:1px solid rgba(176,190,176,.28)}
.gic-mt-row:last-child{border-bottom:0}
.gic-mt-row-label{font-size:12px;color:#6c8176}
.gic-mt-row-value{font-weight:850;max-width:60%;text-align:right;font-size:12px;color:#25493e;overflow-wrap:anywhere}
.gic-mt-ticket-cut{height:22px;position:relative;background:radial-gradient(circle at 0 50%,#f7f9f5 10px,transparent 11px) left center / 50% 100% no-repeat,radial-gradient(circle at 100% 50%,#f7f9f5 10px,transparent 11px) right center / 50% 100% no-repeat}
.gic-mt-ticket-cut::after{content:"";position:absolute;left:20px;right:20px;top:50%;border-top:1px dashed #d2c5a5}
.gic-mt-actions{display:flex;flex-direction:column;gap:9px;padding:10px 17px 17px}
.gic-mt-plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.gic-mt-plan{position:relative;display:flex;flex-direction:column;gap:6px;align-items:flex-start;min-width:0;border:1px solid #d1e3d8;border-radius:14px;padding:13px 10px 28px;text-decoration:none!important;background:linear-gradient(150deg,#fff,#edf6ef);color:#195445!important}
.gic-mt-plan-pro{background:linear-gradient(145deg,#fffefb,#fff2d9);border-color:#ebd49e;color:#876126!important}
.gic-mt-plan strong{font-family:Georgia,"Times New Roman",serif;font-size:18px}
.gic-mt-plan small{font-size:10px;line-height:1.35;color:#687e73}
.gic-mt-plan-pro small{color:#957c4b}
.gic-mt-plan-arrow{position:absolute;bottom:9px;right:11px;font-size:16px}
.gic-mt-benefits{border-radius:14px;background:#f4f8f2;border:1px solid #e0e9dc;padding:11px 12px}
.gic-mt-benefits .gic-mt-label{margin:0 0 8px}
.gic-mt-benefits ul{padding:0 0 0 20px;margin:0;display:grid;gap:7px}
.gic-mt-benefits li{font-size:11.5px;color:#47685a;line-height:1.4}
.gic-mt-action{display:flex;align-items:center;justify-content:center;min-height:43px;padding:10px 13px;border-radius:13px;font-size:12px;font-weight:850;text-align:center;text-decoration:none!important}
.gic-mt-action.primary{background:linear-gradient(125deg,#136853,#0b594b);color:#fff!important;box-shadow:0 8px 20px rgba(14,89,72,.15)}
.gic-mt-action.secondary{background:#fff;color:#225e4f!important;border:1px solid #c7dacc}
.gic-mt-action.tertiary{background:transparent;color:#947134!important;border:1px solid #e5d3a9}
.gic-mt-footnote{font-size:10px;line-height:1.55;color:#809184;text-align:center;margin:0 5px}
@media(max-width:600px){
  dialog.gic-mt-overlay[open]{align-items:flex-end!important;padding:0!important}
  .gic-mt-sheet{width:100%;max-height:calc(94dvh - env(safe-area-inset-top,0px));padding:18px 18px calc(18px + env(safe-area-inset-bottom,0px));border-radius:26px 26px 0 0}
}
@media(max-width:365px){.gic-mt-sheet{padding-inline:13px}.gic-mt-plan{padding-inline:8px}.gic-mt-plan-name{font-size:16px}}
html[data-gic-theme="dark"] .gic-mt-sheet{--gic-mt-ink:#e7f3ed;--gic-mt-muted:#a8bcb2;background:linear-gradient(160deg,#192a25,#13231f);border-color:#375247;color:#e7f3ed}
html[data-gic-theme="dark"] .gic-mt-head h2{color:#f4f2e7}
html[data-gic-theme="dark"] .gic-mt-subtitle{color:#afc2b8}
html[data-gic-theme="dark"] .gic-mt-close{background:#2a4138;border-color:#456459;color:#e6f3e9}
html[data-gic-theme="dark"] .gic-mt-ticket{background:linear-gradient(150deg,#20362e,#2e3024);border-color:#7a6a47}
html[data-gic-theme="dark"] .gic-mt-plan-name,html[data-gic-theme="dark"] .gic-mt-row-value{color:#f0ecdd}
html[data-gic-theme="dark"] .gic-mt-row-label{color:#bbccc0}
html[data-gic-theme="dark"] .gic-mt-ticket-cut{background:radial-gradient(circle at 0 50%,#182a24 10px,transparent 11px) left center / 50% 100% no-repeat,radial-gradient(circle at 100% 50%,#182a24 10px,transparent 11px) right center / 50% 100% no-repeat}
html[data-gic-theme="dark"] .gic-mt-benefits{background:#253e32;border-color:#446452}
html[data-gic-theme="dark"] .gic-mt-benefits li{color:#d1e2d4}
html[data-gic-theme="dark"] .gic-mt-plan{background:#264238;border-color:#4d725f;color:#e3f2e7!important}
html[data-gic-theme="dark"] .gic-mt-plan-pro{background:#3c3628;border-color:#917847;color:#f3dca9!important}
html[data-gic-theme="dark"] .gic-mt-plan small,html[data-gic-theme="dark"] .gic-mt-plan-pro small{color:#cad3bd}
html[data-gic-theme="dark"] .gic-mt-action.secondary{background:#273e33;border-color:#446450;color:#e4f1e9!important}
html[data-gic-theme="dark"] .gic-mt-footnote{color:#b5c5b9}
@media(prefers-reduced-motion:reduce){.gic-mt-overlay *,#mobileNav.gic-premium-drawer-v4 button.gic-v4-smart-badge{transition:none!important;animation:none!important}}
