/* Gulmarg Snowline — pricing admin (mobile-first) */
:root {
  --navy: #0F2540; --blue: #199BE8; --blue-dark: #147BB8;
  --surface: #F6F8FA; --border: #E2E8F0; --muted: #4A5568; --ink: #1A202C;
  --green: #1F8A4C; --red: #C53030; --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.5;
}
[hidden] { display: none !important; }
h1 { font-size: 1.6rem; margin: 0; color: var(--navy); }
h2 { font-size: 1.05rem; margin: 0 0 .25rem; color: var(--navy); }

.ad-top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top); }
.ad-top-inner { max-width: 760px; margin: 0 auto; padding: .85rem 16px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.ad-brand { font-weight: 700; }
.ad-brand span { font-weight: 400; opacity: .7; margin-left: .35rem; }
.ad-top .ad-link { color: #fff; }

.ad-main { max-width: 760px; margin: 0 auto; padding: 1.25rem 16px; }
.ad-head { margin-bottom: 1rem; }
.ad-muted { color: var(--muted); font-size: .875rem; margin: 0 0 .75rem; }
.ad-empty { margin: 0; }

.ad-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem; margin-bottom: 1rem; }
.ad-login { max-width: 420px; margin: 2rem auto; }
.ad-login h1 { margin-bottom: .25rem; }

.ad-fields { display: grid; gap: .85rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .ad-fields { grid-template-columns: 1fr 1fr; } }

.ad-field { display: grid; gap: .3rem; min-width: 0; }
.ad-field > span:first-child { font-size: .8rem; font-weight: 600; color: var(--muted); }
.ad-field input, .ad-field select {
  width: 100%; min-height: 46px; padding: .6rem .75rem; font: inherit; font-size: 16px; color: var(--ink);
  border: 1.5px solid var(--border); border-radius: var(--radius); background: #fff;
}
.ad-field input:focus, .ad-field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(25,155,232,.2); }
.ad-inputwrap { position: relative; display: block; }
.ad-prefix, .ad-suffix { position: absolute; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; font-weight: 600; }
.ad-prefix { left: .75rem; }
.ad-suffix { right: .75rem; }
.ad-prefix + input { padding-left: 1.75rem; }
.ad-inputwrap input:has(+ .ad-suffix) { padding-right: 2rem; }
.ad-invalid { border-color: var(--red) !important; background: #FFF5F5 !important; }

.ad-switchrow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .85rem; border: 1.5px solid var(--border); border-radius: var(--radius); cursor: pointer; font-size: .92rem; font-weight: 500; }
.ad-switchrow input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ad-switch { flex: none; width: 44px; height: 26px; border-radius: 999px; background: #CBD5E0; position: relative; transition: background-color .15s; }
.ad-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.ad-switchrow input:checked ~ .ad-switch { background: var(--blue); }
.ad-switchrow input:checked ~ .ad-switch::after { transform: translateX(18px); }
.ad-switchrow input:focus-visible ~ .ad-switch { box-shadow: 0 0 0 3px rgba(25,155,232,.3); }

.ad-list { display: grid; gap: .75rem; margin-bottom: .75rem; }
.ad-row { display: grid; gap: .6rem; grid-template-columns: 1fr 1fr; padding: .85rem; padding-right: 2.75rem; background: var(--surface); border-radius: var(--radius); position: relative; }
.ad-row .ad-wide { grid-column: 1 / -1; }
.ad-row input { min-width: 0; padding-inline: .6rem; }
.ad-row input[type="date"] { font-size: 15px; }
@media (min-width: 640px) {
  .ad-row { grid-template-columns: 2fr 1.3fr 1.3fr 1fr; align-items: end; }
  .ad-row .ad-wide { grid-column: auto; }
  .ad-row:not(:has(.ad-wide)) { grid-template-columns: 1fr 1fr; max-width: 420px; }
}
.ad-remove { position: absolute; top: .5rem; right: .5rem; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1rem; cursor: pointer; }
.ad-remove:hover { background: #FED7D7; color: var(--red); }

.ad-btn { min-height: 44px; padding: .55rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.ad-btn:disabled { opacity: .5; cursor: not-allowed; }
.ad-btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.ad-btn-primary:hover:not(:disabled) { background: var(--blue-dark); }
.ad-login .ad-btn-primary { width: 100%; margin-top: .5rem; }
.ad-login .ad-field { margin-bottom: .85rem; }
.ad-link { background: none; border: 0; padding: .25rem; color: var(--blue-dark); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; }
.ad-forgot { display: block; margin: .75rem auto 0; }
.ad-error { color: var(--red); font-size: .875rem; min-height: 1.2em; margin: 0; }

.ad-banner { padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .9rem; font-weight: 500; }
.ad-banner.is-info { background: #EBF8FF; color: #2C5282; border: 1px solid #BEE3F8; }
.ad-banner.is-ok { background: #F0FFF4; color: var(--green); border: 1px solid #C6F6D5; }
.ad-banner.is-error { background: #FFF5F5; color: var(--red); border: 1px solid #FED7D7; }

.ad-actions-pad { height: 5rem; }
.ad-savebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -4px 16px rgba(15,37,64,.08);
  padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
@media (min-width: 792px) { .ad-savebar { padding-inline: calc((100vw - 760px) / 2 + 16px); } }
.ad-status { font-size: .85rem; color: var(--muted); }
.ad-status.is-dirty { color: #B7791F; font-weight: 600; }
.ad-savebar-btns { display: flex; gap: .5rem; }

.ad-sample { position: sticky; top: 56px; z-index: 5; margin-bottom: 1rem; padding: .85rem 1rem; border-radius: 14px; background: var(--navy); color: #fff; box-shadow: 0 4px 12px rgba(15,37,64,.15); }
.ad-sample-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.ad-sample-head span { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; opacity: .75; font-weight: 700; }
.ad-sample-head strong { font-size: 1.4rem; }
.ad-sample p { margin: .2rem 0 0; font-size: .8rem; opacity: .8; }
.ad-sample-diff { font-weight: 700; opacity: 1 !important; }
.ad-sample-diff.up { color: #FFC48A; }
.ad-sample-diff.down { color: #8FE3AE; }

/* ---------- premium polish ---------- */
:root { --navy: #0B1F3A; --surface: #F5F8FB; --border: #E4EAF1; --muted: #5B6B80; --ink: #14213D; --radius: 12px; }
body { font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
h1 { font-weight: 800; letter-spacing: -.02em; }
h2 { font-weight: 750; letter-spacing: -.01em; }
.ad-top { background: rgba(255,255,255,.92); color: var(--ink); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ad-top-inner { padding: .55rem 16px; }
.ad-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.ad-brand img { height: 38px; width: auto; display: block; }
.ad-brand span { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); opacity: 1; margin: 0; padding-left: .6rem; border-left: 1px solid var(--border); }
.ad-top .ad-link { color: var(--blue-dark); }
.ad-pill { display: inline-flex; padding: .45rem .8rem; border-radius: 999px; font-size: .82rem; font-weight: 700; text-decoration: none; color: #fff; background: linear-gradient(135deg, #0B1F3A, #17406B); white-space: nowrap; }
.ad-card { border-radius: 18px; border-color: var(--border); box-shadow: 0 1px 2px rgba(11,31,58,.04), 0 8px 24px rgba(11,31,58,.05); padding: 1.25rem; }
.ad-field input, .ad-field select { border-radius: 12px; background: #FBFCFE; }
.ad-row { border-radius: 12px; }
.ad-btn { border-radius: 12px; }
.ad-btn-primary { background: linear-gradient(135deg, #0B1F3A, #17406B); border-color: transparent; }
.ad-btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, #102A4D, #1C4D80); }
.ad-sample { top: 64px; border-radius: 18px; background: linear-gradient(135deg, #0B1F3A, #133459); }
@media (max-width: 480px) { .ad-brand span { display: none; } }
