/* ============================================================================
 * MTRAVEL — Stylesheet
 * Layers on top of AdminLTE 3 and Bootstrap 4. Tokens centralised so the look
 * can be re-skinned in one place if the parent brand drifts.
 * ==========================================================================*/

:root {
    /* IGG brand palette — keeps the family tied to igg.ge / HQACI products.
     *   teal #0a6e7c  → primary brand surface (buttons, badges, hero accents)
     *   navy #0d2b45  → headings, top bar, hero typography
     *   gold #c9a84c  → accent for CTAs and premium highlights
     */
    --mt-primary:        #0a6e7c;
    --mt-primary-dark:   #085864;
    --mt-primary-soft:   #e6f1f3;
    --mt-primary-glow:   rgba(10,110,124,.18);
    --mt-primary-ink:    #ffffff;

    --mt-accent:         #0d2b45;        /* navy — H1 / footer / topbar */
    --mt-accent-dark:    #0a2237;
    --mt-accent-soft:    #e2e8f0;

    --mt-gold:           #c9a84c;
    --mt-gold-dark:      #ad8f3a;
    --mt-gold-soft:      #f5edd3;

    --mt-ink:            #0d2b45;
    --mt-ink-soft:       #475569;
    --mt-muted:          #64748b;

    --mt-bg:             #f7f9fb;
    --mt-bg-grad-from:   #f7f9fb;
    --mt-bg-grad-to:     #e6f1f3;
    --mt-surface:        #ffffff;
    --mt-border:         #e2e8f0;
    --mt-border-strong:  #cbd5e1;

    --mt-success:        #0a8554;
    --mt-warning:        #d97706;
    --mt-danger:         #dc2626;

    --mt-radius-sm:      6px;
    --mt-radius:         10px;
    --mt-radius-lg:      16px;

    --mt-shadow-sm:      0 1px 2px rgba(15, 23, 42, .06);
    --mt-shadow:         0 6px 18px rgba(15, 23, 42, .08);
    --mt-shadow-lg:      0 18px 40px rgba(15, 23, 42, .12);

    --mt-font:           "Plus Jakarta Sans", "Noto Sans Georgian", -apple-system, Segoe UI, sans-serif;
}

/* ---------- Base ---------- */
html, body {
    font-family: var(--mt-font);
    color: var(--mt-ink);
    background: var(--mt-bg);
    -webkit-font-smoothing: antialiased;
}
body.mt-public {
    background: linear-gradient(135deg, var(--mt-bg-grad-from) 0%, var(--mt-bg-grad-to) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}
/* Transparent "draft" watermark — the IGG logo printed faintly behind every
   public page so the brand reads even on minimal screens. Fixed so it
   doesn't scroll, pointer-events:none so it never blocks clicks. */
body.mt-public::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("../img/logo.svg");
    background-repeat: no-repeat;
    background-position: center 58%;
    background-size: min(780px, 78vw) auto;
    opacity: 0.055;
    filter: grayscale(0.4);
}
/* Lift real content above the watermark layer. */
body.mt-public > * { position: relative; z-index: 1; }

a { color: var(--mt-primary); }
a:hover { color: var(--mt-primary-dark); text-decoration: none; }

.mt-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Public top bar ---------- */
.mt-topbar {
    background: var(--mt-primary);
    color: #fff;
    font-size: 13px;
}
.mt-topbar a { color: #b9d8db; }
.mt-topbar a:hover { color: #fff; }
.mt-topbar .mt-container {
    display: flex; align-items: center; justify-content: space-between;
    height: 36px;
}

.mt-header {
    background: #fff;
    border-bottom: 1px solid var(--mt-border);
    box-shadow: var(--mt-shadow-sm);
}
.mt-header .mt-container {
    display: flex; align-items: center; justify-content: space-between;
    height: 76px;
}
.mt-header .mt-logo img { height: 44px; display: block; }
.mt-header .mt-nav { display: flex; gap: 28px; align-items: center; }
.mt-header .mt-nav a {
    color: var(--mt-ink);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .01em;
}
.mt-header .mt-nav a.is-active { color: var(--mt-primary); }

/* ---------- Hero ---------- */
.mt-hero {
    background:
        radial-gradient(900px 360px at 85% -10%, rgba(201,168,76,.14), transparent 60%),
        radial-gradient(900px 360px at -10% 110%, rgba(10,110,124,.14), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0) 100%);
    padding: 56px 0 28px;
    border-bottom: 1px solid var(--mt-border);
}
.mt-hero h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--mt-accent);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.mt-hero .mt-eyebrow {
    display: inline-block;
    background: var(--mt-primary-soft);
    color: var(--mt-primary);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.mt-hero p {
    color: var(--mt-ink-soft);
    font-size: 16px;
    max-width: 720px;
    margin: 0;
}

/* ---------- Stepper ---------- */
.mt-stepper {
    display: flex; align-items: center; gap: 14px;
    margin: 28px 0 0;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-radius);
    box-shadow: var(--mt-shadow-sm);
}
.mt-step { display: flex; align-items: center; gap: 10px; color: var(--mt-muted); font-weight: 600; font-size: 14px; }
.mt-step .mt-dot {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--mt-bg);
    border: 1.5px solid var(--mt-border-strong);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    color: var(--mt-muted);
}
.mt-step.is-active { color: var(--mt-primary-dark); }
.mt-step.is-active .mt-dot { background: var(--mt-primary); border-color: var(--mt-primary); color: #fff; }
.mt-step.is-done .mt-dot { background: var(--mt-success); border-color: var(--mt-success); color: #fff; }
.mt-step.is-done { color: var(--mt-success); }
.mt-step-line { flex: 1; height: 2px; background: var(--mt-border); border-radius: 2px; }
.mt-step-line.is-done { background: var(--mt-success); }

/* ---------- Category tabs ---------- */
.mt-tabs {
    display: inline-flex;
    background: #fff;
    border: 1px solid var(--mt-border);
    border-radius: 999px;
    padding: 4px;
    margin: 32px 0 24px;
    box-shadow: var(--mt-shadow-sm);
}
.mt-tab {
    border: 0; background: transparent;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 700; font-size: 14px;
    color: var(--mt-ink-soft);
    cursor: pointer;
    transition: all .18s ease;
}
.mt-tab:hover { color: var(--mt-primary); }
.mt-tab.is-active { background: var(--mt-primary); color: #fff; }

/* ---------- Package cards ---------- */
.mt-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
@media (max-width: 960px) { .mt-cards { grid-template-columns: 1fr; } }

.mt-card {
    background: #fff;
    border: 1.5px solid var(--mt-border);
    border-radius: var(--mt-radius-lg);
    padding: 26px 24px 22px;
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
    position: relative;
    display: flex; flex-direction: column;
}
.mt-card:hover { transform: translateY(-2px); box-shadow: var(--mt-shadow); border-color: var(--mt-primary-soft); }
.mt-card.is-selected { border-color: var(--mt-primary); box-shadow: var(--mt-shadow); }
.mt-card.is-selected::after {
    content: ""; position: absolute; inset: -1.5px;
    border: 2px solid var(--mt-primary);
    border-radius: var(--mt-radius-lg);
    pointer-events: none;
}
.mt-card .mt-tier {
    display: inline-block;
    font-size: 11px; font-weight: 800; letter-spacing: .14em;
    color: var(--mt-primary);
    background: var(--mt-primary-soft);
    padding: 5px 10px;
    border-radius: 4px;
    margin-bottom: 14px;
}
.mt-card.is-premium .mt-tier { background: var(--mt-accent-soft); color: var(--mt-accent); }
.mt-card .mt-title { font-size: 20px; font-weight: 800; color: var(--mt-ink); margin: 0 0 6px; }
.mt-card .mt-tagline { font-size: 14px; color: var(--mt-ink-soft); margin: 0 0 18px; min-height: 38px; }
.mt-card .mt-price { font-size: 32px; font-weight: 800; color: var(--mt-primary-dark); margin-bottom: 4px; letter-spacing: -.02em; }
.mt-card .mt-price small { font-size: 13px; color: var(--mt-muted); font-weight: 600; }
.mt-card .mt-hl { list-style: none; padding: 0; margin: 16px 0 18px; }
.mt-card .mt-hl li {
    font-size: 14px; color: var(--mt-ink-soft);
    padding: 6px 0 6px 24px;
    position: relative;
}
.mt-card .mt-hl li::before {
    content: "✓"; position: absolute; left: 0; top: 6px;
    width: 18px; height: 18px;
    color: var(--mt-success);
    font-weight: 800;
}
.mt-card .mt-select {
    margin-top: auto;
    background: transparent;
    color: var(--mt-primary);
    border: 1.5px solid var(--mt-primary);
    border-radius: var(--mt-radius);
    padding: 10px 16px;
    font-weight: 700; font-size: 14px;
    cursor: pointer;
    transition: all .15s ease;
}
.mt-card:hover .mt-select { background: var(--mt-primary); color: #fff; }
.mt-card.is-selected .mt-select { background: var(--mt-primary); color: #fff; }

/* ---------- Detail panel ---------- */
.mt-detail {
    background: #fff;
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-radius-lg);
    padding: 28px 30px;
    margin-bottom: 28px;
    display: none;
}
.mt-detail.is-open { display: block; animation: mt-fade .25s ease; }
@keyframes mt-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.mt-detail h3 { font-size: 22px; font-weight: 800; color: var(--mt-primary-dark); margin: 0 0 4px; }
.mt-detail .mt-detail-price { color: var(--mt-accent); font-weight: 700; font-size: 18px; margin-bottom: 18px; }
.mt-detail .mt-section { margin-bottom: 18px; }
.mt-detail .mt-section h4 { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--mt-primary); margin: 0 0 10px; font-weight: 800; }
.mt-detail .mt-section ul { padding-left: 18px; margin: 0; }
.mt-detail .mt-section li { padding: 4px 0; color: var(--mt-ink-soft); font-size: 14.5px; }
.mt-detail .mt-section.is-note { background: #fff7e6; border-left: 3px solid var(--mt-warning); padding: 12px 16px; border-radius: 0 8px 8px 0; }
.mt-detail .mt-section.is-note h4 { color: #a06700; }
.mt-detail .mt-section.is-note li { color: #6b4f00; }

/* ---------- Buttons ---------- */
.mt-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--mt-primary);
    color: #fff;
    padding: 12px 22px;
    border-radius: var(--mt-radius);
    border: 0;
    font-weight: 700; font-size: 14px;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease;
    text-decoration: none;
}
.mt-btn:hover:not(:disabled) { background: var(--mt-primary-dark); color: #fff; }
.mt-btn:active:not(:disabled) { transform: translateY(1px); }
.mt-btn:disabled { opacity: .55; cursor: not-allowed; }
.mt-btn-ghost { background: transparent; color: var(--mt-primary); border: 1.5px solid var(--mt-primary); }
.mt-btn-ghost:hover:not(:disabled) { background: var(--mt-primary-soft); color: var(--mt-primary); }
.mt-btn-accent { background: var(--mt-accent); }
.mt-btn-accent:hover:not(:disabled) { background: var(--mt-accent-dark); }
.mt-btn-block { width: 100%; padding: 14px 22px; }

.mt-actions {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 0 60px;
}

/* ---------- Form layout ---------- */
.mt-panel {
    background: #fff;
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-radius-lg);
    padding: 30px 32px;
    margin: 24px 0;
    box-shadow: var(--mt-shadow-sm);
}
.mt-panel-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--mt-border);
}
.mt-panel-head h2 { font-size: 22px; font-weight: 800; margin: 0 0 4px; color: var(--mt-primary-dark); }
.mt-panel-head p { color: var(--mt-muted); margin: 0; font-size: 14px; }

.mt-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .mt-grid-2 { grid-template-columns: 1fr; } }

.mt-field { display: flex; flex-direction: column; gap: 6px; }
.mt-field label {
    font-size: 13px; font-weight: 700;
    color: var(--mt-ink);
    letter-spacing: .01em;
}
.mt-field label .mt-req { color: var(--mt-danger); }
.mt-field input,
.mt-field select,
.mt-field textarea {
    padding: 11px 14px;
    border: 1.5px solid var(--mt-border-strong);
    border-radius: var(--mt-radius);
    font-size: 14.5px;
    background: #fff;
    color: var(--mt-ink);
    transition: border-color .15s ease, box-shadow .15s ease;
    font-family: inherit;
}
.mt-field input:focus,
.mt-field select:focus,
.mt-field textarea:focus {
    outline: 0;
    border-color: var(--mt-primary);
    box-shadow: 0 0 0 3px var(--mt-primary-glow);
}
.mt-field .mt-error { color: var(--mt-danger); font-size: 12.5px; min-height: 16px; }
.mt-field.has-error input,
.mt-field.has-error select { border-color: var(--mt-danger); }

.mt-checkbox {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 14px 16px;
    background: var(--mt-bg);
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-radius);
    margin-top: 18px;
}
.mt-checkbox input { margin-top: 3px; }
.mt-checkbox label { font-size: 14px; color: var(--mt-ink-soft); margin: 0; line-height: 1.55; }

.mt-attach {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px dashed var(--mt-border-strong);
    border-radius: var(--mt-radius);
    background: #fbfcfe;
    display: flex; align-items: center; gap: 12px;
}
.mt-attach .mt-attach-ic {
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--mt-primary-soft); color: var(--mt-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 13px;
}
.mt-attach a { font-weight: 700; }
.mt-attach .mt-attach-meta { font-size: 12.5px; color: var(--mt-muted); }

/* ---------- Three-checkbox consent block ---------- */
.mt-consent-block {
    margin-top: 18px;
    padding: 18px 18px 14px;
    border: 1px solid var(--mt-border-strong);
    border-radius: var(--mt-radius);
    background: #fbfcfe;
}
.mt-consent-lead { margin: 0 0 12px; font-size: 14.5px; color: var(--mt-ink); }
.mt-consent-block .mt-checkbox { margin-top: 8px; }
.mt-consent-block .mt-checkbox label a { font-weight: 700; }
.mt-consent-foot {
    margin: 14px 0 0;
    font-size: 12.5px; color: var(--mt-muted); font-style: italic;
}
/* Lock visual for checkboxes whose PDF hasn't been opened yet. */
.mt-checkbox-locked { opacity: .55; background: #f4f6fa; cursor: not-allowed; }
.mt-checkbox-locked input { cursor: not-allowed; }
.mt-checkbox-locked label::after {
    content: " — open the document first";
    color: #b91c1c; font-style: italic; font-size: 12px;
}

/* ---------- Order summary side ---------- */
.mt-checkout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 900px) { .mt-checkout { grid-template-columns: 1fr; } }
.mt-summary {
    background: #fff;
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-radius-lg);
    padding: 24px;
    box-shadow: var(--mt-shadow-sm);
    position: sticky; top: 20px;
}
.mt-summary h3 { font-size: 16px; font-weight: 800; margin: 0 0 14px; color: var(--mt-primary-dark); }
.mt-summary .mt-summary-pkg { padding: 14px 16px; background: var(--mt-primary-soft); border-radius: var(--mt-radius); margin-bottom: 16px; }
.mt-summary .mt-summary-pkg .mt-summary-tier { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--mt-primary); text-transform: uppercase; }
.mt-summary .mt-summary-pkg .mt-summary-title { font-weight: 800; color: var(--mt-primary-dark); margin-top: 4px; font-size: 16px; }
.mt-summary .mt-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--mt-ink-soft); border-top: 1px dashed var(--mt-border); }
.mt-summary .mt-line:first-of-type { border-top: 0; }
.mt-summary .mt-total { display: flex; justify-content: space-between; padding-top: 14px; margin-top: 8px; border-top: 2px solid var(--mt-ink); font-weight: 800; font-size: 18px; }

/* ---------- Card mock fields ---------- */
.mt-card-input {
    border: 1.5px solid var(--mt-border-strong);
    border-radius: var(--mt-radius);
    padding: 18px 20px;
    background: linear-gradient(135deg, #fff 0%, #fafbfd 100%);
}
.mt-card-row { display: grid; grid-template-columns: 1fr 110px 110px; gap: 12px; margin-top: 12px; }
@media (max-width: 540px) { .mt-card-row { grid-template-columns: 1fr; } }
.mt-card-input input { width: 100%; border: 0; outline: 0; padding: 8px 0; font-size: 16px; font-family: "JetBrains Mono", monospace; letter-spacing: .04em; background: transparent; }
.mt-card-input .mt-card-lbl { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mt-muted); font-weight: 700; }

.mt-secure {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--mt-success); font-weight: 700; font-size: 13px;
    margin-top: 14px;
}

/* ---------- Success ---------- */
.mt-success {
    text-align: center; padding: 60px 24px 80px;
}
.mt-success .mt-check {
    width: 88px; height: 88px; border-radius: 50%;
    background: var(--mt-success);
    color: #fff; font-size: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 22px;
    box-shadow: 0 12px 32px rgba(31,157,85,.30);
}
.mt-success h1 { font-size: 32px; color: var(--mt-primary-dark); margin: 0 0 10px; }
.mt-success p { color: var(--mt-ink-soft); font-size: 16px; max-width: 560px; margin: 0 auto 26px; }

.mt-policy-card {
    display: inline-block;
    margin: 22px auto 12px;
    padding: 22px 32px 24px;
    background: linear-gradient(135deg, var(--mt-primary-soft) 0%, #ffffff 100%);
    border: 1px solid var(--mt-primary-soft);
    border-radius: var(--mt-radius-lg);
    box-shadow: var(--mt-shadow-sm);
}
.mt-policy-card-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--mt-muted);
    margin-bottom: 4px;
}
.mt-policy-card-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--mt-primary-dark);
    letter-spacing: -0.01em;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* ---------- Footer ---------- */
.mt-footer {
    background: var(--mt-primary-dark);
    color: #bdd2d4;
    padding: 30px 0;
    margin-top: 40px;
    font-size: 13px;
}
.mt-footer .mt-container { display: flex; justify-content: space-between; align-items: center; }
.mt-footer a { color: #fff; }

/* ============================================================================
 *  Admin panel — extends AdminLTE
 * ==========================================================================*/
.mt-admin .content-header h1 { font-weight: 800; color: var(--mt-primary-dark); }
.mt-admin .main-sidebar { background: var(--mt-primary-dark) !important; }
.mt-admin .brand-link { background: var(--mt-primary) !important; border-bottom: 1px solid rgba(255,255,255,.08); }
.mt-admin .brand-link .brand-text { color: #fff !important; font-weight: 800; letter-spacing: .02em; }
.mt-admin .nav-sidebar .nav-link.active { background: var(--mt-primary) !important; color: #fff !important; }
.mt-admin .nav-sidebar .nav-link p { color: #bdd2d4; }
.mt-admin .nav-sidebar .nav-link.active p { color: #fff; }
.mt-admin .small-box.bg-info     { background: var(--mt-primary) !important; }
.mt-admin .small-box.bg-success  { background: var(--mt-success) !important; }
.mt-admin .small-box.bg-warning  { background: var(--mt-warning) !important; color: #fff !important; }
.mt-admin .small-box.bg-danger   { background: var(--mt-danger) !important; }
.mt-admin .card { border: 1px solid var(--mt-border); border-radius: var(--mt-radius); box-shadow: var(--mt-shadow-sm); }
.mt-admin .card-header { background: #fff; border-bottom: 1px solid var(--mt-border); }
.mt-admin .card-title { font-weight: 800; color: var(--mt-primary-dark); }

/* Custom AdminLTE-styled table (NOT datatables): fixed header/footer + body scroll + pagination */
.mt-table-wrap { display: flex; flex-direction: column; }
.mt-table-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0; gap: 12px; flex-wrap: wrap;
}
.mt-table-toolbar input.form-control, .mt-table-toolbar select.form-control { max-width: 260px; }
.mt-scroll {
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-radius);
    overflow: hidden;
    background: #fff;
}
.mt-scroll table { margin: 0; width: 100%; border-collapse: separate; border-spacing: 0; }
.mt-scroll thead th {
    position: sticky; top: 0; z-index: 2;
    background: var(--mt-primary-soft);
    color: var(--mt-primary-dark);
    font-weight: 800; font-size: 13px;
    letter-spacing: .02em;
    padding: 12px 14px;
    border-bottom: 1px solid var(--mt-border);
    text-align: left;
    white-space: nowrap;
}
.mt-scroll tbody td {
    padding: 12px 14px;
    font-size: 14px;
    color: var(--mt-ink);
    border-bottom: 1px solid var(--mt-border);
}
.mt-scroll tbody tr:hover { background: #fafbfd; }
.mt-scroll tfoot td {
    position: sticky; bottom: 0;
    background: #fafbfd;
    border-top: 1px solid var(--mt-border);
    font-weight: 700; font-size: 13px; color: var(--mt-ink-soft);
    padding: 10px 14px;
}
.mt-scroll-body { max-height: 540px; overflow-y: auto; }
.mt-pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 4px; }
.mt-pager .mt-pager-info { color: var(--mt-muted); font-size: 13px; }
.mt-pager .pagination { margin: 0; }
.mt-pager .page-link { color: var(--mt-primary); }
.mt-pager .page-item.active .page-link { background: var(--mt-primary); border-color: var(--mt-primary); color: #fff; }

.mt-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.mt-badge-success { background: #dcfce7; color: #166534; }
.mt-badge-warn    { background: #fef3c7; color: #92400e; }
.mt-badge-danger  { background: #fee2e2; color: #991b1b; }
.mt-badge-muted   { background: #e5e7eb; color: #374151; }

/* ============================================================================
 *  Responsive — mobile / small tablet layout
 *  Hero/header/stepper/footer all reflow below ~720px; cards collapse to a
 *  single column slightly earlier than the AdminLTE default so iPads in
 *  portrait still get the 1-up layout.
 * ==========================================================================*/

/* Phones (portrait) */
@media (max-width: 720px) {
    .mt-container { padding: 0 14px; }

    /* Topbar collapses to a single centred line and drops the phone number
       on the smallest screens — leave just the email link so the bar stays
       useful without overflowing. */
    .mt-topbar { font-size: 12px; }
    .mt-topbar .mt-container {
        flex-direction: column;
        height: auto;
        padding-top: 6px; padding-bottom: 6px;
        gap: 2px;
        text-align: center;
    }

    /* Header: logo left, nav becomes a compact horizontal scrollable strip. */
    .mt-header .mt-container {
        height: auto;
        padding-top: 12px; padding-bottom: 12px;
        gap: 10px;
        flex-wrap: wrap;
    }
    .mt-header .mt-logo img { height: 36px; }
    .mt-header .mt-nav {
        gap: 16px;
        width: 100%;
        order: 2;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
    }
    .mt-header .mt-nav::-webkit-scrollbar { height: 0; }
    .mt-header .mt-nav a { font-size: 13px; }

    /* Hero — smaller padding & headline, full-width copy. */
    .mt-hero { padding: 32px 0 18px; }
    .mt-hero h1  { font-size: 26px; line-height: 1.2; }
    .mt-hero p   { font-size: 14.5px; }
    .mt-hero .mt-eyebrow { font-size: 11px; padding: 5px 10px; }

    /* Stepper — vertical, compact dots, no horizontal connector lines so
       the three steps don't bleed off the screen. */
    .mt-stepper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px 16px;
        margin-top: 16px;
    }
    .mt-step { font-size: 13px; }
    .mt-step-line { display: none; }

    /* Cards — full width, tighter padding. */
    .mt-cards { grid-template-columns: 1fr; gap: 14px; margin-bottom: 22px; }
    .mt-card { padding: 22px 20px 18px; }
    .mt-card .mt-title   { font-size: 19px; }
    .mt-card .mt-tagline { min-height: 0; margin-bottom: 14px; }
    .mt-card .mt-price   { font-size: 28px; }

    /* Detail panel + summary side. */
    .mt-detail { padding: 22px 20px; }
    .mt-detail h3 { font-size: 19px; }
    .mt-panel { padding: 22px 20px; }
    .mt-panel-head { flex-direction: column; gap: 6px; }
    .mt-panel-head h2 { font-size: 19px; }
    .mt-summary { padding: 18px; }

    /* Action buttons stack & take full width — easier thumb targets. */
    .mt-actions {
        flex-direction: column-reverse;
        gap: 10px;
        padding: 14px 0 36px;
    }
    .mt-actions .mt-btn,
    .mt-actions .mt-btn-ghost { width: 100%; }
    .mt-btn { padding: 13px 18px; font-size: 14.5px; }

    /* Footer reflows vertically. */
    .mt-footer { padding: 22px 0; margin-top: 28px; }
    .mt-footer .mt-container {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}

/* Phones (narrow) — finer adjustments. */
@media (max-width: 420px) {
    .mt-hero h1 { font-size: 22px; }
    .mt-card .mt-price { font-size: 26px; }
    .mt-summary .mt-total { font-size: 16px; }
    .mt-success h1 { font-size: 24px; }
}

/* Tablets — keep 2 columns instead of 3 to avoid cramped cards. */
@media (min-width: 721px) and (max-width: 960px) {
    .mt-cards { grid-template-columns: repeat(2, 1fr); }
}