/* IAOM South Asia Region Conference & Expo 2026 Registration — design tokens
   Palette drawn from the association mark: deep navy + milling teal as the
   two blues, on a clean white/blue-gray canvas — no warm/beige tones. */

:root {
    --navy-900: #0b1f3a;
    --navy-700: #163258;
    --navy-600: #1c3f6e;
    --navy-500: #2a4d7a;
    --teal: #157f72;
    --teal-dark: #0f6459;
    --gold: #157f72;
    --gold-light: #8fd6c9;
    --paper: #ffffff;
    --card: #ffffff;
    --ink: #1d2430;
    --muted: #64748b;
    --border: #dbe3ee;
    --border-soft: #e8eef6;

    --success-bg: #e6f4ee;
    --success-text: #0f6459;
    --warn-bg: #fbf1de;
    --warn-text: #8a5b12;
    --danger-bg: #fbe9e4;
    --danger-text: #a3382a;

    --app-bg: #eef2f7;

    --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06);
    --shadow-md: 0 6px 20px rgba(11, 31, 58, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--teal);
}

a:hover {
    color: var(--teal-dark);
}

::selection {
    background: var(--gold-light);
    color: var(--navy-900);
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ---------------------------------------------------------------
   Header
--------------------------------------------------------------- */
header.site-header {
    background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
    color: #fff;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 12px rgba(11, 31, 58, 0.18);
    position: relative;
    z-index: 10;
}

header.site-header .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

header.site-header .brand img {
    height: 36px;
    background: #fff;
    border-radius: 5px;
    padding: 4px 6px;
}

header.site-header .brand .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

header.site-header .brand .brand-text .org {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

header.site-header .brand .brand-text .sub {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-light);
    font-weight: 500;
}

header.site-header nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

header.site-header nav a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    margin-left: 4px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

header.site-header nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

header.site-header nav a.nav-cta {
    background: var(--gold);
    color: var(--navy-900);
}

header.site-header nav a.nav-cta:hover {
    background: var(--gold-light);
    color: var(--navy-900);
}

/* ---------------------------------------------------------------
   Hero band (used on entry pages: login, signup, register)
--------------------------------------------------------------- */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--navy-500) 100%);
    color: #fff;
    padding: 56px 28px 84px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -40px;
    width: 420px;
    height: 560px;
    background-image: url('../img/wheat-motif.svg');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.16;
    pointer-events: none;
}

.hero-inner {
    max-width: 880px;
    margin: 0 auto;
    position: relative;
}

.hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 10px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 400;
    margin: 0 0 10px;
    color: #fff;
    letter-spacing: -0.01em;
}

.hero h1 .accent {
    color: #5eead4;
}

.hero p.lead {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.78);
    max-width: 560px;
    margin: 0;
}

/* ---------------------------------------------------------------
   Layout
--------------------------------------------------------------- */
main.container {
    max-width: 880px;
    margin: -48px auto 40px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

main.container.no-hero {
    margin-top: 32px;
}

/* action-hub already pulls itself up over the hero and adds its own
   bottom margin — main shouldn't also pull up, or the two would overlap. */
main.container.hub-present {
    margin-top: 0;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

/* ---------------------------------------------------------------
   Step headers (numbered sections — "1  Select Your Ticket")
--------------------------------------------------------------- */
.step-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 30px 0 16px;
}

.step-header:first-child {
    margin-top: 0;
}

.step-header .step-number {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--border-soft);
    color: var(--navy-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 15px;
}

.step-header .step-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy-700);
    margin: 3px 0 2px;
}

.step-header .step-subtitle {
    font-size: 12.5px;
    color: var(--muted);
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    color: var(--navy-700);
    font-weight: 400;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 26px;
    margin: 0 0 6px;
}

h2 {
    font-size: 20px;
}

h3 {
    font-family: var(--font-body);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 700;
    margin: 28px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-soft);
}

h3:first-child {
    margin-top: 0;
}

p.section-note {
    color: var(--muted);
    font-size: 14px;
    margin-top: -2px;
}

/* ---------------------------------------------------------------
   Badges / status pills
--------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 13px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: #fff;
    border: 1.5px solid currentColor;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge-paid,
.badge-complimentary {
    color: var(--success-text);
}

.badge-pending {
    color: var(--warn-text);
}

.badge-cancelled {
    color: var(--danger-text);
}

/* ---------------------------------------------------------------
   Tables
--------------------------------------------------------------- */
/* Horizontal scroll container so a wide table never breaks the page width
   on narrow screens — the table itself keeps its natural column widths and
   just scrolls within the card instead of each cell squeezing/wrapping. */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

th,
td {
    text-align: left;
    padding: 11px 12px;
    border-bottom: 1px solid var(--border-soft);
}

th {
    color: var(--muted);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f4f7fb;
}

tbody tr:hover {
    background: #f4f7fb;
}

td.num,
th.num {
    text-align: right;
    font-family: var(--font-mono);
}

/* ---------------------------------------------------------------
   Forms
--------------------------------------------------------------- */
form .field {
    margin-bottom: 18px;
}

label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--navy-700);
}

label .field-icon {
    color: var(--muted);
    flex-shrink: 0;
}

input[type=text],
input[type=email],
input[type=password],
input[type=tel],
input[type=date],
select,
textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-body);
    background: #f7f9fc;
    color: var(--ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--teal);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(21, 127, 114, 0.14);
}

input:disabled {
    background: var(--border-soft);
    color: var(--muted);
    cursor: not-allowed;
}

/* Phone field with a fixed country-code chip (display only — the input
   still captures whatever the person types, unchanged) */
.phone-field-group {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #f7f9fc;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.phone-field-group:focus-within {
    border-color: var(--teal);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(21, 127, 114, 0.14);
}

.phone-field-group .phone-code-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
    border-right: 1px solid var(--border);
    color: var(--navy-700);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

.phone-field-group input[type=tel] {
    border: none;
    background: transparent;
    box-shadow: none !important;
    flex: 1;
    min-width: 0;
}

.phone-field-group .phone-code-select {
    border: none;
    border-right: 1px solid var(--border);
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23163258' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: none !important;
    color: var(--navy-700);
    font-weight: 600;
    font-size: 14px;
    padding: 0 26px 0 8px;
    flex-shrink: 0;
    max-width: 180px;
    border-radius: 0;
}

/* ---------------------------------------------------------------
   Pill tabs (segmented nav, e.g. admin sub-sections)
--------------------------------------------------------------- */
.tabs-pill {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 4px 0 24px;
}

.tabs-pill a {
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border);
    font-weight: 600;
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    background: #fff;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.tabs-pill a:hover {
    border-color: var(--navy-500);
    color: var(--navy-700);
}

.tabs-pill a.active {
    border-color: var(--teal);
    color: var(--teal-dark);
    background: rgba(21, 127, 114, 0.08);
}

/* ---------------------------------------------------------------
   Pagination (admin tables)
--------------------------------------------------------------- */
.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.pagination a,
.pagination .pagination-current,
.pagination .pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--navy-700);
}
.pagination a {
    border: 1px solid var(--border-soft);
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.pagination a:hover {
    border-color: var(--teal);
    background: rgba(21, 127, 114, 0.06);
}
.pagination .pagination-current {
    background: var(--navy-700);
    color: #fff;
}
.pagination .pagination-ellipsis {
    color: var(--muted);
    font-weight: 400;
}
.pagination .btn { padding: 0 16px; height: 34px; }

/* ---------------------------------------------------------------
   Admin sidebar shell
--------------------------------------------------------------- */
body.admin-body {
    background: var(--app-bg);
}

.admin-shell {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

.admin-sidebar {
    width: 252px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid var(--border-soft);
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
}

.admin-sidebar .admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 20px;
    text-decoration: none;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 18px;
}

.admin-sidebar .admin-brand img {
    height: 32px;
    border-radius: 5px;
}

.admin-sidebar .admin-brand .org {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 400;
    color: var(--navy-900);
    line-height: 1.2;
}

.admin-sidebar .admin-brand .sub {
    font-size: 10.5px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-sidebar .nav-section-label {
    text-transform: uppercase;
    font-size: 10.5px;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 700;
    margin: 18px 0 8px;
    padding: 0 10px;
}

.admin-sidebar .nav-section-label:first-of-type {
    margin-top: 0;
}

.admin-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    margin-bottom: 2px;
    transition: background 0.15s ease, color 0.15s ease;
}

.admin-sidebar nav a:hover {
    background: var(--border-soft);
}

.admin-sidebar nav a.active {
    background: rgba(21, 127, 114, 0.1);
    color: var(--teal-dark);
}

.admin-sidebar nav a .nav-icon {
    flex-shrink: 0;
    opacity: 0.85;
}

.admin-sidebar .sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
}

.admin-main {
    flex: 1;
    min-width: 0;
    padding: 30px 36px 50px;
}

.admin-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-topbar h1 {
    margin-bottom: 4px;
}

.admin-topbar .admin-topbar-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

@media (max-width: 880px) {
    .admin-shell {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        padding: 12px 16px;
    }

    .admin-sidebar .admin-brand {
        border-bottom: none;
        margin-bottom: 0;
        padding: 4px 14px 4px 4px;
    }

    .admin-sidebar .nav-section-label {
        display: none;
    }

    .admin-sidebar nav {
        display: flex;
        gap: 4px;
    }

    .admin-sidebar .sidebar-footer {
        margin-top: 0;
        margin-left: auto;
        padding-left: 10px;
    }

    .admin-main {
        padding: 22px 18px 40px;
    }
}

/* ---------------------------------------------------------------
   Buttons
--------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--teal);
    color: #fff;
    border: none;
    padding: 12px 26px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background: var(--teal-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #fff;
    color: var(--navy-700);
    border: 1.5px solid var(--border);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--border-soft);
    color: var(--navy-900);
}

.btn-dark {
    background: var(--navy-900);
}

.btn-dark:hover {
    background: var(--navy-700);
}

.btn-gold {
    background: var(--gold);
    color: var(--navy-900);
}

.btn-gold:hover {
    background: var(--gold-light);
    color: var(--navy-900);
}

.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}

/* ---------------------------------------------------------------
   Pricing cards
--------------------------------------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 4px 0 8px;
}

@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.price-option {
    position: relative;
    display: block;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 20px 18px 44px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.price-option:hover {
    border-color: var(--navy-500);
}

.price-option::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 18px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.price-option.selected {
    border-color: var(--navy-900);
    border-width: 2px;
    background: var(--border-soft);
    padding-left: 43px;
}

.price-option.selected::before {
    border: 5px solid var(--navy-900);
    background: var(--navy-900);
}

.price-option .tier-eyebrow {
    text-transform: uppercase;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin-bottom: 6px;
}

.price-option h4 {
    margin: 0 0 10px;
    color: var(--navy-700);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.price-option .price {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    color: var(--navy-900);
}

.price-option .price .currency {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    margin-right: 4px;
}

.price-option .tier-label {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

/* ---------------------------------------------------------------
   Alerts / policy box
--------------------------------------------------------------- */
.alert {
    padding: 13px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 13.5px;
    border: 1px solid transparent;
}

.alert-error {
    background: var(--danger-bg);
    color: var(--danger-text);
    border-color: #f2c7bd;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: #b9e2cf;
}

.policy-box {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--muted);
    background: #f4f7fb;
    border: 1px solid var(--border-soft);
    border-left: 3px solid var(--teal);
    border-radius: 6px;
    padding: 14px 18px;
    margin-top: 10px;
}

.policy-box strong {
    color: var(--navy-700);
}

/* ---------------------------------------------------------------
   Stat tiles (admin dashboard)
--------------------------------------------------------------- */
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0 28px;
}

@media (max-width: 640px) {
    .stat-row {
        grid-template-columns: 1fr;
    }

    /* Tables become a stack of cards instead of scrolling sideways — each
       row is its own bordered block, each cell a labeled line (label from
       data-label, stacked above the value) instead of a column. Page only
       ever scrolls vertically on mobile. */
    .table-scroll { overflow-x: visible; }
    table { border: none; }
    table thead { display: none; }
    table, table tbody, table tr, table td { display: block; width: 100%; }
    table tr {
        margin-bottom: 14px;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow-sm);
        overflow: hidden;
    }
    table td {
        text-align: left;
        padding: 10px 14px;
        border-bottom: 1px solid var(--border-soft);
        font-size: 13px;
    }
    table td:last-child { border-bottom: none; }
    table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        font-size: 10.5px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--muted);
        margin-bottom: 4px;
    }
}

.stat-tile {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.stat-tile .stat-value {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 400;
    color: var(--navy-900);
}

.stat-tile .stat-label {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.stat-tile .stat-tier {
    margin-top: 8px;
    font-weight: 700;
    color: var(--teal-dark);
    font-size: 13px;
}

/* ---------------------------------------------------------------
   Footer
--------------------------------------------------------------- */
footer.site-footer {
    text-align: center;
    color: var(--muted);
    font-size: 12.5px;
    padding: 30px 20px;
    border-top: 1px solid var(--border-soft);
    margin-top: 40px;
}

/* ---------------------------------------------------------------
   Action hub — the main "what do you want to do" buttons, centered
   and prominent right under the hero, instead of buried in header nav
--------------------------------------------------------------- */
.action-hub {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 880px;
    margin: -30px auto 28px;
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    color: var(--navy-700);
    border: 1.5px solid var(--border);
    padding: 14px 26px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.action-btn svg {
    flex-shrink: 0;
    opacity: 0.85;
}

.action-btn:hover {
    border-color: var(--teal);
    color: var(--teal-dark);
    transform: translateY(-1px);
}

.action-btn.active {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}

.action-btn.active svg {
    opacity: 1;
}

@media (max-width: 560px) {
    .action-hub {
        margin-top: -20px;
    }

    .action-btn {
        flex: 1 1 auto;
        justify-content: center;
        padding: 13px 16px;
        font-size: 13px;
    }
}

/* ---------------------------------------------------------------
   Group connect hint (signup / register — "this mill is managed by X")
--------------------------------------------------------------- */
.group-hint {
    margin-top: 8px;
    padding: 10px 14px;
    background: #f4f7fb;
    border: 1px solid var(--border-soft);
    border-left: 3px solid var(--teal);
    border-radius: 6px;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.5;
}

.group-hint strong {
    color: var(--navy-700);
}

.group-hint .btn {
    margin-top: 8px;
    padding: 7px 16px;
    font-size: 12.5px;
}

/* ---------------------------------------------------------------
   Promo code runtime validation (register.php)
--------------------------------------------------------------- */
.promo-hint {
    margin-top: 8px;
    padding: 9px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    line-height: 1.5;
    border: 1px solid transparent;
}

.promo-hint.valid {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: #b9e2cf;
}

.promo-hint.invalid,
:is(.register-page, .profile-page) .alert-error {
    background: #fff1f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    border-left: 4px solid #dc2626;
    border-radius: 9px;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(185, 28, 28, 0.08);
}

/* ---------------------------------------------------------------
   Mill/company name autocomplete dropdown (register.php)
--------------------------------------------------------------- */
.mill-suggest-wrap {
    position: relative;
}

.mill-suggest-list {
    position: absolute;
    inset: calc(100% + 7px) 0 auto;
    z-index: 20;
    padding: 6px;
    background: #fff;
    border: 1px solid #cddfdc;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(11, 31, 58, .14);
    max-height: 250px;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: none;
}
.mill-suggest-list.open { display: block; }
.mill-suggest-item {
    position: relative;
    padding: 12px 35px 12px 14px;
    min-height: 44px;
    border-radius: 9px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    color: var(--navy-700);
    overflow-wrap: anywhere;
    cursor: pointer;
}
.mill-suggest-item + .mill-suggest-item { margin-top: 2px; }
.mill-suggest-item::after {
    content: '↗';
    position: absolute;
    right: 13px;
    top: 12px;
    color: #72968f;
}
.mill-suggest-item:hover, .mill-suggest-item.active {
    background: #eaf7f3;
    color: var(--teal-dark);
}

.field-optional {
    font-weight: 400;
    color: var(--muted);
    font-size: 12px;
}

/* ---------------------------------------------------------------
   Toggle switch (admin "Payment Received in Bank")
--------------------------------------------------------------- */
.switch {
    display: inline-block;
    cursor: pointer;
}

.switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-track {
    display: inline-block;
    width: 38px;
    height: 21px;
    background: var(--border-soft);
    border-radius: 999px;
    position: relative;
    transition: background 0.15s ease;
}

.switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 17px;
    height: 17px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease;
}

.switch input:checked+.switch-track {
    background: var(--teal);
}

.switch input:checked+.switch-track .switch-thumb {
    transform: translateX(17px);
}

.switch input:disabled+.switch-track {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---------------------------------------------------------------
   Misc
--------------------------------------------------------------- */
.muted {
    color: var(--muted);
}

.btn-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--teal);
    font-weight: 600;
    font-size: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--navy-700);
}

.mono {
    font-family: var(--font-mono);
}

/* ---------------------------------------------------------------
   Side panel (admin group detail — slides in from the left)
--------------------------------------------------------------- */
.side-panel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 31, 58, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 40;
}

.side-panel-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.side-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 92vw;
    background: #fff;
    box-shadow: -8px 0 30px rgba(11, 31, 58, 0.18);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 41;
    display: flex;
    flex-direction: column;
}

.side-panel.open {
    transform: translateX(0);
}

.side-panel-header {
    padding: 20px 22px;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.side-panel-header h2 {
    margin: 0 0 3px;
    font-size: 18px;
}

.side-panel-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    padding: 6px;
    border-radius: 8px;
    line-height: 0;
    flex-shrink: 0;
}

.side-panel-close:hover {
    background: var(--border-soft);
    color: var(--navy-900);
}

.side-panel-body {
    padding: 20px 22px;
    overflow-y: auto;
    flex: 1;
}

.side-panel-body h3 {
    margin-top: 22px;
}

.side-panel-body h3:first-child {
    margin-top: 0;
}

.member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-soft);
}

.member-row:last-child {
    border-bottom: none;
}

.member-row .member-name {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--navy-700);
}

.member-row .member-meta {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 2px;
}

.side-panel-loading {
    color: var(--muted);
    font-size: 13.5px;
    padding: 20px 0;
    text-align: center;
}

/* ---------------------------------------------------------------
   Auth split screen (login / signup) — full-bleed photo right panel,
   feature panel left, floating card with pill tabs
--------------------------------------------------------------- */
body.auth-body {
    margin: 0;
}

/* Keep the desktop introduction and features together and vertically centered.
   Separate grid areas preserve the intro / form / features order on mobile. */
.auth-split {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    grid-template-rows: minmax(48px, 1fr) auto auto minmax(48px, 1fr);
    grid-template-areas:
        ".      card"
        "top    card"
        "bottom card"
        ".      card";
    min-height: 100vh;
    background: #fff;
}

.auth-left-backdrop {
    display: none;
}

.auth-left-top {
    grid-area: top;
    position: relative;
    z-index: 2;
    width: calc(100% - 10vw);
    max-width: 460px;
    margin-left: 5vw;
}

.auth-left-bottom {
    grid-area: bottom;
    position: relative;
    z-index: 2;
    width: calc(100% - 10vw);
    max-width: 460px;
    margin-left: 5vw;
}

.auth-logo-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}

.auth-logo-row img {
    height: 52px;
}

.auth-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    font-weight: 700;
    color: var(--teal-dark);
    margin-bottom: 14px;
}

.auth-eyebrow-accent {
    color: var(--navy-700);
    font-weight: 800;
}

.auth-eyebrow-year {
    color: #111827;
    font-weight: 500;
}

.auth-heading {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 18px;
}

.auth-heading .line1 {
    display: block;
    font-size: 32px;
    color: var(--navy-900);
}

.auth-heading .line2 {
    display: block;
    font-size: 40px;
    color: var(--teal-dark);
    margin-top: 2px;
}

.auth-event-meta {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy-700);
    margin: 0 0 18px;
}

.auth-lead {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 0 36px;
}

.auth-features {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 40px;
}

.auth-feature {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 0 10px;
}

.auth-feature+.auth-feature {
    border-left: 1px solid var(--border-soft);
}

.auth-feature .feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #eef2f7;
    color: var(--navy-700);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.auth-feature .feature-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy-700);
    line-height: 1.35;
}

.auth-footer-tag {
    border-top: 2px solid var(--teal);
    padding-top: 12px;
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    max-width: 260px;
}

.auth-right {
    grid-area: card;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 6vw;
    background-color: var(--navy-900);
    /* Browsers without image-set() support (or that fail to parse it) fall
       back to this plain JPEG; everything else picks the smaller WebP. */
    background-image: url('../img/login-bg-fallback.jpg');
    background-image: -webkit-image-set(url('../img/login-bg.webp') 1x);
    background-image: image-set(url('../img/login-bg.webp') type('image/webp'),
            url('../img/login-bg-fallback.jpg') type('image/jpeg'));
    background-size: cover;
    background-position: center;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(11, 31, 58, 0.3);
    padding: 34px 38px;
    max-width: 420px;
    width: 100%;
    position: relative;
    z-index: 3;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 26px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.auth-tab.active {
    background: #eafaf6;
    border-color: var(--teal);
    color: var(--teal-dark);
}

.auth-tab:not(.active) {
    background: #f1f3f6;
    color: var(--muted);
}

.auth-tab:not(.active):hover {
    background: #e6e9ee;
}

.auth-card .field label {
    display: flex;
    align-items: center;
    gap: 7px;
}

.auth-card input[type=email],
.auth-card input[type=password],
.auth-card input[type=text] {
    border-radius: 14px;
    background: #f7f9fc;
    padding: 13px 16px;
}

.password-field-wrapper {
    position: relative;
}

.password-field-wrapper input {
    padding-right: 44px !important;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    padding: 4px;
    line-height: 0;
}

.password-toggle-btn:hover {
    color: var(--navy-700);
}

.auth-forgot-row {
    text-align: right;
    margin: -8px 0 20px;
}

.auth-forgot-row a {
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-soft);
}

@media (max-width: 900px) {

    /* Intro text, then the login/signup box, then the feature icons/footer
       tag — matches the row order in grid-template-areas below. */
    .auth-split {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas: "top" "card" "bottom";
    }

    .auth-left-backdrop {
        display: none;
    }

    .auth-left-top,
    .auth-left-bottom {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        padding: 32px 24px 0;
    }

    .auth-left-bottom {
        padding: 24px 24px 32px;
    }

    .auth-features {
        flex-wrap: wrap;
        gap: 20px;
    }

    .auth-feature {
        flex: 1 1 30%;
    }

    .auth-right {
        padding: 32px 20px;
    }

    .auth-heading .line1 {
        font-size: 26px;
    }

    .auth-heading .line2 {
        font-size: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}