@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-base: #f4f7f6;
    --surface-white: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --brand-accent: #ff6240;
    --brand-accent-light: #fff0ed;
    --border-light: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    --radius-lg: 24px;
    --radius-md: 16px;
    --ok: #16a34a;
    --ok-bg: #ecfdf3;
    --warn: #b45309;
    --warn-bg: #fff7e6;
    --bad: #dc2626;
    --bad-bg: #fef2f2;
    --info: #2563eb;
    --info-bg: #eff6ff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image:
        radial-gradient(at 0% 0%, hsla(11, 100%, 74%, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(199, 100%, 85%, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
}

/* Navbar */
.navbar {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 20px 5%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    position: fixed; width: 100%; top: 0; z-index: 100;
}
.logo { display: flex; align-items: center; text-decoration: none; color: var(--text-primary); }
.logo img { height: 32px; width: auto; }
.wordmark { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.04em; }
.nav-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.nav-status {
    background: var(--text-primary); color: var(--surface-white);
    padding: 8px 16px; border-radius: 100px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.5px;
    display: flex; align-items: center; gap: 8px; text-decoration: none; border: 0; cursor: pointer;
}
.nav-status::before {
    content: ''; display: block; width: 6px; height: 6px; background: var(--brand-accent);
    border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 98, 64, 0.2); animation: pulse 2s infinite;
}
.nav-link { color: var(--text-secondary); font-weight: 600; font-size: 0.85rem; text-decoration: none; padding: 8px 12px; border-radius: 100px; }
.nav-link:hover { background: var(--brand-accent-light); color: var(--brand-accent); }

main { margin-top: 100px; padding: 40px 5%; flex: 1; display: flex; flex-direction: column; align-items: center; }
.wrap { width: 100%; max-width: 1100px; }

/* Hero */
.hero { text-align: center; max-width: 800px; margin: 0 auto 40px; animation: slideUp 0.8s ease-out forwards; }
.location-tag {
    display: inline-flex; align-items: center; gap: 6px; color: var(--brand-accent);
    font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.hero h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.04em; margin-bottom: 24px; }
.hero p { font-size: 1.125rem; color: var(--text-secondary); line-height: 1.6; max-width: 600px; margin: 0 auto; }

/* Cards */
.card { background: var(--surface-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border-light); }
.pad { padding: 32px; }
.card + .card { margin-top: 24px; }
h2.section { font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.sub { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; }

/* Forms */
label, .field-label { display: flex; flex-direction: column; gap: 6px; font-size: 0.75rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.6px; }
input, select, textarea {
    font-size: 0.95rem; font-weight: 500; color: var(--text-primary); text-transform: none; letter-spacing: 0;
    padding: 13px 14px; border-radius: 12px; border: 1px solid var(--border-light); background: var(--surface-white);
    outline: none; width: 100%; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-accent); box-shadow: 0 0 0 4px var(--brand-accent-light); }
.search-grid { display: grid; grid-template-columns: 1.15fr auto 1.15fr 0.95fr 1.25fr; gap: 14px; align-items: end; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: end; }
.row > label { flex: 1; min-width: 150px; }
.stack > * + * { margin-top: 14px; }

/* Travellers & Class Popover */
.pax-wrap { position: relative; display: flex; flex-direction: column; gap: 6px; }
.pax-trigger {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    font-size: 0.95rem; font-weight: 600; color: var(--text-primary);
    padding: 13px 14px; border-radius: 12px; border: 1px solid var(--border-light);
    background: var(--surface-white); cursor: pointer; width: 100%; text-align: left;
    transition: border-color .2s, box-shadow .2s;
}
.pax-trigger:hover, .pax-trigger[aria-expanded="true"] { border-color: var(--brand-accent); box-shadow: 0 0 0 4px var(--brand-accent-light); }
.pax-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pax-pop {
    position: absolute; top: calc(100% + 8px); right: 0; width: 310px; max-width: 90vw;
    background: var(--surface-white); border: 1px solid var(--border-light); border-radius: 18px;
    box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.22); padding: 18px; z-index: 60;
}
.pax-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.pax-row:first-child { padding-top: 0; }
.pax-row b { display: block; font-size: 0.92rem; }
.pax-row small { color: var(--text-secondary); font-size: 0.76rem; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button {
    width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-light);
    background: #fff; color: var(--text-primary); font-size: 1.05rem; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.stepper button:hover:not(:disabled) { border-color: var(--brand-accent); color: var(--brand-accent); background: var(--brand-accent-light); }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper span { min-width: 18px; text-align: center; font-weight: 700; font-size: 0.95rem; }
.pax-cabin { margin-top: 14px; }
.cabin-pills { display: flex; gap: 6px; flex-wrap: wrap; }

/* Search Footer & Direct Switch */
.search-footer {
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
    margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-light);
}
.switch {
    display: inline-flex; flex-direction: row; align-items: center; gap: 10px;
    text-transform: none; letter-spacing: 0; font-size: 0.9rem; font-weight: 600;
    color: var(--text-primary); cursor: pointer; user-select: none;
}
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
    width: 42px; height: 24px; border-radius: 100px; background: #cbd5e1;
    position: relative; transition: background .2s; flex-shrink: 0;
}
.switch-track::after {
    content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
    border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.18);
    transition: transform .2s;
}
.switch input:checked + .switch-track { background: var(--brand-accent); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.search-submit { min-width: 190px; padding: 14px 28px; font-size: 0.95rem; }

/* Filter Bar */
.filter-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px;
    background: var(--surface-white); border: 1px solid var(--border-light);
    border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-lbl { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-secondary); }
.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-select {
    width: auto; padding: 7px 12px; border-radius: 100px; font-size: 0.82rem; font-weight: 600;
    border: 1px solid var(--border-light); background: #fff; cursor: pointer;
}
.filter-meta { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 0.82rem; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 100px; font-size: 0.9rem; font-weight: 700;
    border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: all .2s; white-space: nowrap;
}
.btn-primary { background: var(--brand-accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(255, 98, 64, 0.6); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-dark { background: var(--text-primary); color: #fff; }
.btn-dark:hover { transform: translateY(-1px); }
.btn-ghost { background: var(--surface-white); border-color: var(--border-light); color: var(--text-primary); }
.btn-ghost:hover { border-color: var(--brand-accent); color: var(--brand-accent); }
.btn-danger { background: var(--bad-bg); color: var(--bad); }
.btn-sm { padding: 8px 14px; font-size: 0.8rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.icon-btn { width: 46px; height: 46px; padding: 0; border-radius: 50%; }

/* Chips */
.chip { display: inline-block; padding: 5px 12px; border-radius: 100px; font-size: 0.72rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.info { background: var(--info-bg); color: var(--info); }
.chip.muted { background: #f1f5f9; color: var(--text-secondary); }
.chip.brand { background: var(--brand-accent-light); color: var(--brand-accent); }

/* Flight cards */
.res-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.toggle { flex-direction: row; align-items: center; gap: 8px; text-transform: none; font-size: .85rem; letter-spacing: 0; cursor: pointer; }
.toggle input { width: auto; accent-color: var(--brand-accent); }
.flight {
    display: grid; grid-template-columns: 1.1fr 1.7fr 1fr; gap: 24px; align-items: center;
    background: var(--surface-white); padding: 24px 28px; border-radius: var(--radius-md); border: 1px solid var(--border-light);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.flight + .flight { margin-top: 14px; }
.flight:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--brand-accent-light); }
.f-air { display: flex; align-items: center; gap: 14px; }
.al-badge { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-accent-light); color: var(--brand-accent); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
.f-air small, .f-times small { display: block; color: var(--text-secondary); font-size: .78rem; margin-top: 2px; }
.f-times { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; text-align: center; }
.f-times b { font-size: 1.4rem; letter-spacing: -0.02em; }
.f-times > div:first-child { text-align: left; } .f-times > div:last-child { text-align: right; }
.f-line { display: flex; flex-direction: column; align-items: center; }
.f-line i { display: block; width: 100%; height: 2px; background: var(--border-light); margin: 6px 0; position: relative; border-radius: 2px; }
.f-line i::after { content: ''; position: absolute; right: 0; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-accent); }
.f-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.price { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price small { display: block; font-size: .72rem; font-weight: 600; color: var(--text-secondary); letter-spacing: 0; margin-top: 4px; }
.price-ask { font-weight: 700; color: var(--text-secondary); font-size: .95rem; }
.empty { text-align: center; color: var(--text-secondary); padding: 48px 20px; background: var(--surface-white); border-radius: var(--radius-md); border: 1px dashed var(--border-light); }

/* Pillars */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; width: 100%; max-width: 1100px; margin-top: 56px; }
.feature-card { background: var(--surface-white); padding: 28px; border-radius: var(--radius-md); border: 1px solid var(--border-light); transition: transform .3s ease, box-shadow .3s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: var(--brand-accent-light); }
.feature-icon { width: 48px; height: 48px; background: var(--brand-accent-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--brand-accent); font-weight: 800; font-size: 1.2rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: .92rem; line-height: 1.5; }

/* Tracking */
.track-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--border-light); border-radius: 14px; background: #fff; cursor: pointer; width: 100%; text-align: left; font-size: .9rem; }
.track-item:hover { border-color: var(--brand-accent); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 20px 0; }
.kv div small { display: block; color: var(--text-secondary); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px; }
.kv div b { font-size: .98rem; }
.callout { background: var(--brand-accent-light); border-radius: 14px; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.callout .price { color: var(--brand-accent); }
.note { background: #f8fafc; border: 1px solid var(--border-light); border-radius: 12px; padding: 12px 14px; font-size: .88rem; color: var(--text-secondary); line-height: 1.5; }

/* Dialog & Modern Auth Modal */
dialog { border: none; border-radius: var(--radius-lg); padding: 0; width: min(680px, 94vw); box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .4); background: var(--surface-white); color: var(--text-primary); margin: auto; }
dialog.auth-dlg { width: min(440px, 94vw); }
dialog::backdrop { background: rgba(15, 23, 42, .52); backdrop-filter: blur(6px); }
.dlg-body { padding: 32px; max-height: 88vh; overflow: auto; position: relative; }
.dlg-body h3 { font-size: 1.4rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.x { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-light); background: #fff; font-size: 1.2rem; cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.x:hover { border-color: var(--brand-accent); color: var(--brand-accent); background: var(--brand-accent-light); }

.auth-head { text-align: center; margin-bottom: 22px; }
.auth-badge {
    width: 48px; height: 48px; border-radius: 16px; margin: 0 auto 14px;
    background: linear-gradient(135deg, #ff6240, #ff8a65); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem;
    box-shadow: 0 10px 24px -8px rgba(255, 98, 64, 0.55);
}
.auth-head h3 { font-size: 1.45rem; font-weight: 800; margin-bottom: 6px; }
.auth-head .sub { font-size: 0.88rem; }
.seg {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
    background: #f1f5f9; padding: 4px; border-radius: 14px; margin-bottom: 20px;
}
.seg button {
    border: 0; background: transparent; padding: 10px 12px; border-radius: 10px;
    font-size: 0.86rem; font-weight: 700; color: var(--text-secondary); cursor: pointer; transition: all .2s;
}
.seg button.active { background: #fff; color: var(--text-primary); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08); }
.pw-wrap { position: relative; display: flex; align-items: center; }
.pw-wrap input { padding-right: 44px; }
.pw-eye {
    position: absolute; right: 10px; background: none; border: 0; color: var(--text-secondary);
    cursor: pointer; padding: 6px; display: flex; align-items: center; justify-content: center; border-radius: 8px;
}
.pw-eye:hover { color: var(--text-primary); background: #f1f5f9; }
.btn-google {
    background: #fff; border: 1px solid var(--border-light); color: var(--text-primary);
    width: 100%; padding: 12px 18px; border-radius: 12px; font-weight: 600;
}
.btn-google:hover { background: #f8fafc; border-color: #cbd5e1; }

.pax { border: 1px solid var(--border-light); border-radius: 14px; padding: 16px; }
.pax h4 { font-size: .85rem; margin-bottom: 12px; }
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 22px; }
.success { text-align: center; padding: 12px 0; }
.success .tick { width: 64px; height: 64px; border-radius: 20px; background: var(--brand-accent-light); color: var(--brand-accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 1.8rem; font-weight: 800; }
.ref { display: inline-block; font-weight: 800; letter-spacing: 1.5px; background: var(--text-primary); color: #fff; padding: 8px 18px; border-radius: 100px; margin: 12px 0; }

/* Tables (admin) */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .7px; color: var(--text-secondary); padding: 10px 12px; border-bottom: 1px solid var(--border-light); white-space: nowrap; }
td { padding: 14px 12px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td small { color: var(--text-secondary); display: block; margin-top: 2px; }
td input { padding: 8px 10px; width: 110px; }
td input.narrow { width: 72px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tab { padding: 10px 20px; border-radius: 100px; background: var(--surface-white); border: 1px solid var(--border-light); font-weight: 700; font-size: .88rem; cursor: pointer; color: var(--text-secondary); }
.tab:hover { border-color: var(--brand-accent); color: var(--brand-accent); }
.tab.active { background: var(--text-primary); border-color: var(--text-primary); color: #fff; }
.tab .count { background: var(--brand-accent); color: #fff; border-radius: 100px; padding: 1px 8px; font-size: .7rem; margin-left: 6px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 24px; }
.stat { background: var(--surface-white); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 24px; transition: transform .3s ease, box-shadow .3s ease; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.stat small { color: var(--text-secondary); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.stat b { display: block; font-size: 2rem; letter-spacing: -0.04em; margin-top: 8px; }
.stat b.accent { color: var(--brand-accent); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pill { padding: 7px 14px; border-radius: 100px; font-size: .8rem; font-weight: 700; border: 1px solid var(--border-light); background: #fff; cursor: pointer; color: var(--text-secondary); transition: all .15s; }
.pill:hover { border-color: var(--brand-accent); color: var(--brand-accent); }
.pill.active { background: var(--brand-accent-light); border-color: var(--brand-accent); color: var(--brand-accent); }
.login-card { max-width: 440px; margin: 40px auto 0; text-align: center; }
.login-card form { text-align: left; margin-top: 24px; }

/* Toast */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--text-primary); color: #fff; padding: 12px 22px; border-radius: 100px; font-size: .88rem; font-weight: 600; opacity: 0; transition: all .3s; z-index: 1000; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Footer */
footer { border-top: 1px solid var(--border-light); padding: 40px 5%; text-align: center; width: 100%; background: var(--surface-white); margin-top: auto; }
.social-links { display: flex; justify-content: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.social-btn { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 100px; font-size: .9rem; font-weight: 600; text-decoration: none; transition: all .2s; border: 1px solid var(--border-light); }
.social-btn.wa { color: #25D366; background: rgba(37, 211, 102, 0.05); }
.social-btn.wa:hover { background: #25D366; color: #fff; }
.social-btn.ig { color: #E1306C; background: rgba(225, 48, 108, 0.05); }
.social-btn.ig:hover { background: #E1306C; color: #fff; }
.social-btn svg { width: 18px; height: 18px; fill: currentColor; }
footer p { font-size: .8rem; color: var(--text-secondary); margin-bottom: 8px; }
footer a.staff { color: var(--text-secondary); }

@keyframes slideUp { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 98, 64, 0.4); } 70% { box-shadow: 0 0 0 6px rgba(255, 98, 64, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 98, 64, 0); } }

@media (max-width: 960px) {
    .search-grid { grid-template-columns: 1fr 1fr; }
    .search-grid .icon-btn { display: none; }
    .pax-wrap { grid-column: 1 / -1; }
    .pax-pop { left: 0; right: auto; width: 100%; }
    .flight { grid-template-columns: 1fr; gap: 16px; }
    .f-price { align-items: stretch; text-align: left; flex-direction: row; justify-content: space-between; align-items: center; }
    .filter-meta { margin-left: 0; width: 100%; justify-content: space-between; }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .pad { padding: 22px; }
    .grid2, .grid3 { grid-template-columns: 1fr; }
    .nav-link { display: none; }
    .dlg-body { padding: 24px 20px; }
    .search-submit { width: 100%; }
}

/* ---- accounts, auth, inventory admin (added) ---- */
.linklike { background: none; border: 0; color: var(--brand-accent); font-weight: 700; font-size: .85rem; cursor: pointer; padding: 0; }
.linklike:hover { text-decoration: underline; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-secondary); font-size: .8rem; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border-light); }
.auth-err { color: var(--bad); font-size: .86rem; font-weight: 600; margin-top: 12px; min-height: 1px; text-align: center; }
.hint { color: var(--text-secondary); font-size: .82rem; margin-top: 14px; }
.demo-ribbon { position: fixed; left: 16px; bottom: 16px; background: var(--warn-bg); color: var(--warn); border: 1px solid #fde7b8; padding: 8px 14px; border-radius: 100px; font-size: .75rem; font-weight: 700; z-index: 900; pointer-events: none; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .5px; }
td input.wide { width: 130px; }
textarea.csv { min-height: 140px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; white-space: pre; }
.row-bad td { background: var(--bad-bg); }
.subtabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.check { flex-direction: row; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: .88rem; cursor: pointer; }
.check input { width: auto; accent-color: var(--brand-accent); }
.denied code { background: #f1f5f9; padding: 4px 10px; border-radius: 8px; font-size: .85rem; word-break: break-all; display: inline-block; }

/* ---- payments (added) ---- */
.pay-opt { display: flex; flex-direction: column; gap: 4px; text-align: left; width: 100%; padding: 16px 18px; border: 1px solid var(--border-light); border-radius: 14px; background: #fff; cursor: pointer; font-size: .95rem; transition: border-color .2s, box-shadow .2s; }
.pay-opt:hover { border-color: var(--brand-accent); box-shadow: 0 0 0 4px var(--brand-accent-light); }
.pay-opt small { color: var(--text-secondary); font-size: .82rem; line-height: 1.4; }
.pay-opt[disabled] { opacity: .5; cursor: wait; }
.upi { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.qr { width: 190px; height: 190px; padding: 8px; background: #fff; border: 1px solid var(--border-light); border-radius: 16px; flex-shrink: 0; }
.qr svg { width: 100%; height: 100%; display: block; }
.upi-info { display: grid; gap: 12px; flex: 1; min-width: 200px; }
.upi-info small { display: block; color: var(--text-secondary); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 2px; }
.upi-info b { font-size: 1rem; word-break: break-all; }
.mobile-only { display: none; }
@media (max-width: 768px) { .mobile-only { display: inline-flex; } .qr { margin: 0 auto; } }
.pay-chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }