:root {
    --mt-blue: #0b2f6b;
    --mt-red: #d71920;
    --mt-white: #ffffff;
    --mt-ink: #111827;
    --mt-muted: #64748b;
    --mt-soft: #f4f7fb;
    --mt-line: rgba(15, 23, 42, .10);
    --mt-shadow: 0 20px 60px rgba(15, 23, 42, .10);
    --mt-radius: 24px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--mt-soft);
    color: var(--mt-ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mt-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--mt-line);
}

.mt-container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.mt-nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.mt-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--mt-blue);
    text-decoration: none;
    font-weight: 900;
    letter-spacing: -.04em;
    font-size: 1.45rem;
}

.mt-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--mt-blue), var(--mt-red));
    box-shadow: 0 12px 28px rgba(11, 47, 107, .22);
}

.mt-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.mt-nav-links a {
    color: #334155;
    text-decoration: none;
    font-weight: 700;
    font-size: .94rem;
    padding: 10px 13px;
    border-radius: 999px;
}

.mt-nav-links a:hover {
    background: #eef4ff;
    color: var(--mt-blue);
}

.mt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.mt-btn:hover {
    transform: translateY(-1px);
}

.mt-btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--mt-blue), #0f55bd);
    box-shadow: 0 16px 36px rgba(11, 47, 107, .22);
}

.mt-btn-light {
    color: var(--mt-blue);
    background: white;
    border-color: var(--mt-line);
}

.mt-hero {
    position: relative;
    padding: 72px 0 44px;
    overflow: hidden;
}

.mt-hero::before,
.mt-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(6px);
    opacity: .16;
}

.mt-hero::before {
    width: 320px;
    height: 320px;
    background: var(--mt-blue);
    right: -90px;
    top: 10px;
}

.mt-hero::after {
    width: 220px;
    height: 220px;
    background: var(--mt-red);
    left: -70px;
    bottom: -60px;
}

.mt-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 30px;
    align-items: center;
}

.mt-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(215, 25, 32, .08);
    color: var(--mt-red);
    border: 1px solid rgba(215, 25, 32, .16);
    border-radius: 999px;
    padding: 8px 13px;
    font-weight: 900;
    font-size: .86rem;
}

.mt-title {
    margin: 20px 0 16px;
    font-size: clamp(2.4rem, 6vw, 4.7rem);
    line-height: .96;
    letter-spacing: -.07em;
}

.mt-title span {
    color: var(--mt-blue);
}

.mt-lead {
    color: var(--mt-muted);
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.7;
    max-width: 680px;
}

.mt-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.mt-card {
    background: white;
    border: 1px solid var(--mt-line);
    border-radius: var(--mt-radius);
    box-shadow: var(--mt-shadow);
}

.mt-showcase {
    padding: 18px;
}

.mt-post-card {
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff, #f7faff);
    border: 1px solid var(--mt-line);
}

.mt-post-head {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.mt-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--mt-blue), var(--mt-red));
}

.mt-post-head strong {
    display: block;
}

.mt-post-head small {
    color: var(--mt-muted);
}

.mt-post-visual {
    min-height: 220px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 20% 20%, rgba(215, 25, 32, .22), transparent 30%),
        radial-gradient(circle at 78% 18%, rgba(11, 47, 107, .22), transparent 34%),
        linear-gradient(135deg, #eef4ff, #ffffff);
    border: 1px solid var(--mt-line);
    display: grid;
    place-items: center;
    color: var(--mt-blue);
    font-weight: 900;
    text-align: center;
    padding: 24px;
}

.mt-reactions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.mt-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--mt-line);
    color: #475569;
    font-weight: 800;
    font-size: .86rem;
}

.mt-section {
    padding: 42px 0;
}

.mt-section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.mt-section-title h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    letter-spacing: -.04em;
}

.mt-section-title p {
    margin: 8px 0 0;
    color: var(--mt-muted);
    line-height: 1.6;
}

.mt-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.mt-feature {
    padding: 24px;
}

.mt-icon {
    width: 50px;
    height: 50px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--mt-blue), var(--mt-red));
    margin-bottom: 18px;
}

.mt-feature h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.mt-feature p {
    margin: 0;
    color: var(--mt-muted);
    line-height: 1.65;
}

.mt-page-head {
    padding: 56px 0 28px;
}

.mt-page-head h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -.05em;
}

.mt-page-head p {
    color: var(--mt-muted);
    max-width: 720px;
    line-height: 1.7;
    font-size: 1.08rem;
}

.mt-empty {
    padding: 32px;
    text-align: center;
}

.mt-empty h2 {
    margin: 0 0 8px;
}

.mt-empty p {
    color: var(--mt-muted);
    margin: 0;
    line-height: 1.6;
}

.mt-footer {
    margin-top: 48px;
    background: #07152f;
    color: white;
    padding: 38px 0;
}

.mt-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr;
    gap: 24px;
}

.mt-footer p,
.mt-footer a {
    color: rgba(255,255,255,.74);
}

.mt-footer a {
    display: block;
    text-decoration: none;
    margin: 8px 0;
}

.mt-footer strong {
    color: white;
}

@media (max-width: 860px) {
    .mt-nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 0;
    }

    .mt-nav-links {
        justify-content: flex-start;
    }

    .mt-hero-grid,
    .mt-grid-3,
    .mt-footer-grid {
        grid-template-columns: 1fr;
    }

    .mt-section-title {
        align-items: flex-start;
        flex-direction: column;
    }
}

.mt-flash-wrap {
    position: relative;
    z-index: 40;
    margin-top: 18px;
}

.mt-alert {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 10px;
    font-weight: 800;
    border: 1px solid transparent;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.mt-alert-success {
    color: #14532d;
    background: #dcfce7;
    border-color: #bbf7d0;
}

.mt-alert-warning {
    color: #713f12;
    background: #fef3c7;
    border-color: #fde68a;
}

.mt-alert-error {
    color: #7f1d1d;
    background: #fee2e2;
    border-color: #fecaca;
}

.mt-auth-head {
    max-width: 780px;
}

.mt-auth-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(280px, .75fr);
    gap: 24px;
    align-items: start;
}

.mt-auth-narrow {
    width: min(560px, calc(100% - 32px));
}

.mt-auth-card,
.mt-auth-side {
    padding: 24px;
}

.mt-auth-card label,
.mt-contact-form label {
    display: block;
    color: #334155;
    font-weight: 800;
    margin-bottom: 14px;
}

.mt-auth-card input,
.mt-auth-card textarea,
.mt-contact-form input,
.mt-contact-form textarea {
    width: 100%;
    margin-top: 7px;
    padding: 14px 15px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, .14);
    background: white;
    color: var(--mt-ink);
    font: inherit;
    outline: none;
}

.mt-auth-card input:focus,
.mt-auth-card textarea:focus,
.mt-contact-form input:focus,
.mt-contact-form textarea:focus {
    border-color: rgba(11, 47, 107, .55);
    box-shadow: 0 0 0 4px rgba(11, 47, 107, .08);
}

.mt-auth-card input:disabled {
    background: #f1f5f9;
    color: #64748b;
}

.mt-btn-wide {
    width: 100%;
}

.mt-auth-note,
.mt-auth-links,
.mt-resend {
    margin-top: 16px;
    color: var(--mt-muted);
    text-align: center;
}

.mt-auth-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mt-auth-links a,
.mt-resend button {
    color: var(--mt-blue);
    font-weight: 800;
    text-decoration: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.mt-code-input {
    text-align: center;
    font-size: 1.35rem !important;
    font-weight: 900;
    letter-spacing: .35em;
}

.mt-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.mt-label-full {
    display: block;
    margin-top: 16px;
}

.mt-panel-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.mt-panel-card {
    padding: 20px;
}

.mt-panel-card span {
    color: var(--mt-muted);
    font-weight: 800;
}

.mt-panel-card strong {
    display: block;
    margin: 10px 0;
    color: var(--mt-blue);
    font-size: 2rem;
    letter-spacing: -.04em;
}

.mt-panel-card p {
    margin: 0;
    color: var(--mt-muted);
    line-height: 1.55;
}

.mt-panel-block {
    margin-top: 18px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.mt-panel-block h2 {
    margin: 0 0 8px;
}

.mt-panel-block p {
    margin: 0;
    color: var(--mt-muted);
    line-height: 1.65;
}

@media (max-width: 900px) {
    .mt-auth-grid,
    .mt-panel-grid {
        grid-template-columns: 1fr;
    }

    .mt-panel-block {
        align-items: flex-start;
        flex-direction: column;
    }
}

.mt-auth-card select,
.mt-contact-form select {
    width: 100%;
    margin-top: 7px;
    padding: 14px 15px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, .14);
    background: white;
    color: var(--mt-ink);
    font: inherit;
    outline: none;
}

.mt-auth-card select:focus,
.mt-contact-form select:focus {
    border-color: rgba(11, 47, 107, .55);
    box-shadow: 0 0 0 4px rgba(11, 47, 107, .08);
}

.mt-form-grid-2,
.mt-form-grid-3 {
    display: grid;
    gap: 14px;
}

.mt-form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mt-form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mt-admin-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.mt-admin-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0 0;
}

.mt-admin-nav a {
    text-decoration: none;
    color: var(--mt-blue);
    background: white;
    border: 1px solid var(--mt-line);
    padding: 10px 13px;
    border-radius: 999px;
    font-weight: 800;
}

.mt-table-wrap {
    overflow-x: auto;
    border-radius: 22px;
    border: 1px solid var(--mt-line);
    background: white;
    box-shadow: var(--mt-shadow);
}

.mt-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

.mt-table th,
.mt-table td {
    padding: 14px 15px;
    border-bottom: 1px solid var(--mt-line);
    text-align: left;
    vertical-align: top;
}

.mt-table th {
    color: #334155;
    background: #f8fafc;
    font-size: .86rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.mt-table td {
    color: #334155;
}

.mt-table strong {
    color: var(--mt-ink);
}

.mt-inline-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.mt-inline-actions form {
    margin: 0;
}

.mt-btn-small {
    min-height: 36px;
    padding: 8px 12px;
    font-size: .86rem;
}

.mt-btn-danger {
    color: white;
    background: linear-gradient(135deg, #991b1b, var(--mt-red));
}

.mt-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: .78rem;
    background: #eef4ff;
    color: var(--mt-blue);
}

.mt-badge-warn {
    background: #fef3c7;
    color: #713f12;
}

.mt-badge-ok {
    background: #dcfce7;
    color: #14532d;
}

.mt-badge-off {
    background: #fee2e2;
    color: #7f1d1d;
}

.mt-admin-form {
    padding: 24px;
}

.mt-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mt-check-item {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin: 0 !important;
    padding: 12px;
    border: 1px solid var(--mt-line);
    border-radius: 16px;
    background: #f8fafc;
}

.mt-check-item input {
    width: auto !important;
    margin: 4px 0 0 !important;
}

.mt-mini-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.mt-mini-list span {
    padding: 12px 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid var(--mt-line);
    font-weight: 800;
    color: #334155;
}

@media (max-width: 860px) {
    .mt-form-grid-2,
    .mt-form-grid-3,
    .mt-check-grid {
        grid-template-columns: 1fr;
    }

    .mt-admin-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

.mt-inline-form {
    display: grid;
    gap: 8px;
    min-width: 220px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid var(--mt-line);
    background: #ffffff;
    margin-top: 8px !important;
}

.mt-inline-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--mt-line);
    border-radius: 12px;
    font: inherit;
}

details summary {
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

.mt-mt-18 { margin-top: 18px; }
.mt-mt-24 { margin-top: 24px; }
.mt-muted { color: var(--mt-muted); }

.mt-admin-nav a.is-active,
.mt-sub-nav a.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--mt-blue), #0f55bd);
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(11, 47, 107, .18);
}

.mt-panel-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.mt-panel-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mt-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.mt-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.mt-card-title-row h2 {
    margin: 0;
    letter-spacing: -.03em;
}

.mt-card-title-row a {
    color: var(--mt-blue);
    font-weight: 900;
    text-decoration: none;
}

.mt-mini-table {
    display: grid;
    gap: 10px;
}

.mt-mini-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--mt-line);
}

.mt-mini-row:last-child {
    border-bottom: 0;
}

.mt-mini-row strong,
.mt-mini-row small {
    display: block;
}

.mt-mini-row small {
    margin-top: 4px;
    color: var(--mt-muted);
}

.mt-filter-card {
    padding: 18px;
}

.mt-filter-card summary,
.mt-admin-form summary {
    cursor: pointer;
    font-weight: 900;
    color: var(--mt-blue);
}

.mt-filter-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 220px 220px auto;
    gap: 14px;
    align-items: end;
}

.mt-filter-grid label,
.mt-admin-form label,
.mt-inline-form label {
    display: block;
    color: #334155;
    font-weight: 800;
}

.mt-filter-grid input,
.mt-filter-grid select,
.mt-admin-form input,
.mt-admin-form textarea,
.mt-admin-form select,
.mt-inline-form select,
.mt-inline-form textarea {
    width: 100%;
    margin-top: 7px;
    padding: 12px 13px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, .14);
    background: white;
    color: var(--mt-ink);
    font: inherit;
    outline: none;
}

.mt-admin-form small {
    display: block;
    color: var(--mt-muted);
    margin-top: 6px;
    font-weight: 700;
}

.mt-filter-actions,
.mt-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mt-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
    color: var(--mt-muted);
    font-weight: 800;
}

.mt-check-line,
.mt-switch-line {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.mt-check-line input,
.mt-switch-line input {
    width: auto !important;
    margin: 0 !important;
}

.mt-accordion-list {
    display: grid;
    gap: 16px;
}

.mt-inline-form select {
    min-width: 170px;
}

@media (max-width: 1040px) {
    .mt-panel-grid-4,
    .mt-dashboard-grid,
    .mt-filter-grid {
        grid-template-columns: 1fr;
    }
}

.mt-business-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 42px;
    background:
        radial-gradient(circle at top left, rgba(215, 25, 32, .12), transparent 30%),
        radial-gradient(circle at 82% 12%, rgba(11, 47, 107, .16), transparent 36%),
        linear-gradient(135deg, #f8fbff, #eef4ff);
}

.mt-business-hero.has-cover {
    background-image:
        linear-gradient(90deg, rgba(11, 47, 107, .82), rgba(11, 47, 107, .38)),
        var(--profile-cover);
    background-size: cover;
    background-position: center;
}

.mt-business-hero-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.76)),
        radial-gradient(circle at 16% 20%, rgba(255,255,255,.34), transparent 18%);
}

.mt-business-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    align-items: stretch;
}

.mt-business-main-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding: 30px;
    border-radius: 32px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(255,255,255,.68);
    box-shadow: 0 28px 80px rgba(15, 23, 42, .16);
    backdrop-filter: blur(18px);
}

.mt-business-main-card h1 {
    margin: 16px 0 10px;
    font-size: clamp(2.15rem, 4vw, 4.2rem);
    line-height: .96;
    letter-spacing: -.06em;
}

.mt-business-logo-wrap {
    position: sticky;
    top: 96px;
}

.mt-business-logo,
.mt-business-logo-fallback {
    width: 132px;
    height: 132px;
    border-radius: 30px;
    display: grid;
    place-items: center;
    object-fit: cover;
    background: white;
    border: 1px solid var(--mt-line);
    box-shadow: 0 20px 44px rgba(15, 23, 42, .14);
}

.mt-business-logo-fallback {
    color: white;
    font-size: 3.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--mt-blue), var(--mt-red));
}

.mt-business-slogan {
    color: var(--mt-blue);
    font-weight: 900;
    font-size: 1.16rem;
    margin: 0 0 8px;
}

.mt-business-summary,
.mt-profile-text {
    color: #475569;
    line-height: 1.75;
    font-size: 1.04rem;
}

.mt-business-info-card {
    padding: 24px;
}

.mt-business-info-card h2,
.mt-profile-section h2 {
    margin: 0 0 16px;
    letter-spacing: -.03em;
}

.mt-business-info-list {
    display: grid;
    gap: 12px;
}

.mt-business-info-list div,
.mt-hours-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--mt-line);
}

.mt-business-info-list span,
.mt-hours-list span {
    color: var(--mt-muted);
    font-weight: 800;
}

.mt-business-info-list strong,
.mt-hours-list strong {
    text-align: right;
}

.mt-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.mt-social-row a,
.mt-contact-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--mt-blue);
    background: #f8fafc;
    border: 1px solid var(--mt-line);
    text-decoration: none;
    font-weight: 900;
}

.mt-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    align-items: start;
}

.mt-profile-main,
.mt-profile-side {
    display: grid;
    gap: 22px;
}

.mt-profile-section {
    padding: 24px;
}

.mt-section-title.compact {
    margin-bottom: 16px;
}

.mt-profile-block {
    display: grid;
    gap: 16px;
}

.mt-profile-feed {
    display: grid;
    gap: 14px;
}

.mt-profile-post {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    overflow: hidden;
    padding: 14px;
}

.mt-profile-post img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 20px;
    background: #eef4ff;
}

.mt-profile-post h3,
.mt-public-item h3 {
    margin: 8px 0;
    letter-spacing: -.025em;
}

.mt-profile-post p,
.mt-public-item p,
.mt-coupon-card p,
.mt-profile-section p {
    color: var(--mt-muted);
    line-height: 1.65;
}

.mt-mini-label {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--mt-red);
    background: rgba(215, 25, 32, .08);
    border: 1px solid rgba(215, 25, 32, .14);
    font-weight: 900;
    font-size: .78rem;
}

.mt-reactions.compact {
    margin-top: 10px;
}

.mt-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mt-public-item {
    overflow: hidden;
}

.mt-public-item-image {
    height: 190px;
    background:
        radial-gradient(circle at 24% 20%, rgba(215,25,32,.18), transparent 34%),
        linear-gradient(135deg, #eef4ff, #ffffff);
    display: grid;
    place-items: center;
    color: var(--mt-blue);
    font-size: 3rem;
    font-weight: 900;
}

.mt-public-item-image.service {
    background:
        radial-gradient(circle at 78% 20%, rgba(11,47,107,.18), transparent 34%),
        linear-gradient(135deg, #ffffff, #f8fafc);
}

.mt-public-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mt-public-item-body {
    padding: 18px;
}

.mt-price {
    display: inline-flex;
    margin-top: 8px;
    color: var(--mt-blue);
    font-size: 1.08rem;
}

.mt-coupon-list,
.mt-contact-list,
.mt-hours-list {
    display: grid;
    gap: 10px;
}

.mt-coupon-card {
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(215,25,32,.08), rgba(11,47,107,.06));
    border: 1px solid var(--mt-line);
}

.mt-coupon-card strong {
    display: block;
    color: var(--mt-blue);
    margin-bottom: 6px;
}

.mt-coupon-card span {
    display: inline-flex;
    border-radius: 999px;
    padding: 7px 11px;
    color: white;
    background: var(--mt-red);
    font-weight: 900;
    letter-spacing: .04em;
}

.mt-contact-list a {
    justify-content: flex-start;
    width: 100%;
}

.mt-btn.full {
    width: 100%;
    margin-top: 10px;
}

@media (max-width: 980px) {
    .mt-business-hero-grid,
    .mt-profile-layout {
        grid-template-columns: 1fr;
    }

    .mt-business-main-card {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .mt-business-logo,
    .mt-business-logo-fallback {
        width: 104px;
        height: 104px;
        border-radius: 24px;
    }
}

@media (max-width: 720px) {
    .mt-business-hero {
        padding: 34px 0 28px;
    }

    .mt-business-main-card,
    .mt-profile-post {
        grid-template-columns: 1fr;
    }

    .mt-business-logo-wrap {
        position: static;
    }

    .mt-product-grid {
        grid-template-columns: 1fr;
    }

    .mt-business-info-list div,
    .mt-hours-list div {
        align-items: flex-start;
        flex-direction: column;
    }

    .mt-business-info-list strong,
    .mt-hours-list strong {
        text-align: left;
    }
}

/* Fase 5: feed comercial */
.mt-feed-hero {
    padding: 72px 0 42px;
    background:
        radial-gradient(circle at 12% 20%, rgba(215,25,32,.12), transparent 30%),
        radial-gradient(circle at 88% 12%, rgba(11,47,107,.16), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
}

.mt-feed-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 28px;
    align-items: center;
}

.mt-feed-hero h1 {
    max-width: 780px;
    margin: 10px 0 14px;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: .98;
    letter-spacing: -.07em;
}

.mt-feed-hero p {
    max-width: 720px;
    color: var(--mt-muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.mt-feed-panel {
    padding: 28px;
    background: linear-gradient(135deg, rgba(11,47,107,.96), rgba(215,25,32,.9));
    color: white;
}

.mt-feed-panel p {
    color: rgba(255,255,255,.82);
}

.mt-feed-filter {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
}

.mt-feed-filter label,
.mt-form-card label {
    display: grid;
    gap: 8px;
    color: var(--mt-blue);
    font-weight: 900;
}

.mt-feed-filter input,
.mt-feed-filter select,
.mt-form-card input,
.mt-form-card select,
.mt-form-card textarea,
.mt-comment-form input,
.mt-feed-actions select,
.mt-inline-form input {
    width: 100%;
    border: 1px solid var(--mt-line);
    border-radius: 16px;
    padding: 12px 14px;
    background: #fff;
    color: var(--mt-text);
    outline: none;
}

.mt-feed-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.mt-feed-list {
    display: grid;
    gap: 18px;
}

.mt-feed-card {
    overflow: hidden;
}

.mt-feed-business {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 18px 18px 12px;
}

.mt-feed-logo {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--mt-blue), var(--mt-red));
    font-weight: 900;
    text-decoration: none;
}

.mt-feed-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mt-feed-business-name {
    display: inline-flex;
    color: var(--mt-blue);
    font-weight: 900;
    text-decoration: none;
}

.mt-feed-business small,
.mt-table small {
    display: block;
    margin-top: 4px;
    color: var(--mt-muted);
    line-height: 1.45;
}

.mt-feed-type {
    display: inline-flex;
    border-radius: 999px;
    padding: 8px 11px;
    color: var(--mt-red);
    background: rgba(215,25,32,.08);
    border: 1px solid rgba(215,25,32,.14);
    font-weight: 900;
    font-size: .82rem;
}

.mt-feed-image {
    width: calc(100% - 36px);
    max-height: 480px;
    object-fit: cover;
    margin: 0 18px;
    border-radius: 24px;
    border: 1px solid var(--mt-line);
    background: #eef4ff;
}

.mt-feed-content {
    padding: 18px;
}

.mt-feed-content h2 {
    margin: 0 0 8px;
    color: var(--mt-blue);
    letter-spacing: -.035em;
}

.mt-feed-content p {
    color: var(--mt-muted);
    line-height: 1.7;
}

.mt-feed-summary {
    font-weight: 800;
    color: var(--mt-text) !important;
}

.mt-feed-links,
.mt-feed-metrics,
.mt-feed-actions,
.mt-form-actions,
.mt-actions-cell,
.mt-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.mt-feed-links a {
    color: var(--mt-blue);
    font-weight: 900;
}

.mt-feed-metrics {
    padding: 0 18px 14px;
    color: var(--mt-muted);
    font-size: .92rem;
}

.mt-feed-metrics span {
    padding: 7px 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--mt-line);
}

.mt-feed-actions {
    padding: 0 18px 18px;
    border-bottom: 1px solid var(--mt-line);
}

.mt-feed-actions form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mt-comment-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 16px 18px 18px;
    background: #fbfcff;
}

.mt-feed-sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 16px;
}

.mt-side-card {
    padding: 22px;
}

.mt-side-card p,
.mt-empty-state p {
    color: var(--mt-muted);
    line-height: 1.65;
}

.mt-empty-state {
    padding: 34px;
    text-align: center;
}

.mt-form-card {
    padding: 24px;
    display: grid;
    gap: 18px;
}

.mt-form-grid.two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mt-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mt-check-grid label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--mt-line);
    border-radius: 16px;
    background: #fbfcff;
}

.mt-check-grid input {
    width: auto;
}

.mt-current-image {
    display: grid;
    gap: 10px;
}

.mt-current-image span {
    color: var(--mt-blue);
    font-weight: 900;
}

.mt-current-image img {
    max-width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--mt-line);
}

.mt-btn-small {
    padding: 8px 11px;
    font-size: .84rem;
}

.mt-inline-form input {
    width: 140px;
    padding: 9px 11px;
}

.mt-muted {
    color: var(--mt-muted);
}

@media (max-width: 1040px) {
    .mt-feed-filter,
    .mt-feed-layout,
    .mt-feed-hero-grid {
        grid-template-columns: 1fr;
    }

    .mt-feed-sidebar {
        position: static;
    }
}

@media (max-width: 720px) {
    .mt-feed-business,
    .mt-comment-form,
    .mt-form-grid.two,
    .mt-check-grid {
        grid-template-columns: 1fr;
    }

    .mt-feed-type {
        width: fit-content;
    }

    .mt-feed-actions form {
        width: 100%;
    }
}

.mt-panel-grid-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mt-visitor-nav {
    margin-bottom: 22px;
}

.mt-panel-block.stacked {
    display: block;
    padding: 24px;
    margin-bottom: 22px;
}

.mt-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mt-form-grid label {
    display: grid;
    gap: 8px;
    color: var(--mt-dark);
    font-weight: 800;
}

.mt-form-grid input[type="text"],
.mt-form-grid input[type="email"],
.mt-form-grid input[type="number"] {
    width: 100%;
    border: 1px solid var(--mt-line);
    border-radius: 16px;
    padding: 13px 14px;
    font: inherit;
    background: #fff;
    color: var(--mt-dark);
}

.mt-form-grid .span-2 {
    grid-column: 1 / -1;
}

.mt-check-row {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 10px !important;
    font-weight: 700 !important;
}

.mt-check-row input {
    width: 18px;
    height: 18px;
}

.mt-participation-list {
    display: grid;
    gap: 12px;
    margin: 12px 0 20px;
}

.mt-participation-list div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--mt-line);
    border-radius: 16px;
    padding: 13px 14px;
    background: #f8fbff;
}

.mt-participation-list span {
    color: var(--mt-muted);
    font-weight: 800;
}

.mt-participation-list strong {
    color: var(--mt-blue);
    font-size: 1.25rem;
}

.mt-benefit-grid,
.mt-business-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.mt-benefit-card,
.mt-business-mini-card {
    border: 1px solid var(--mt-line);
    border-radius: 22px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    display: grid;
    gap: 10px;
    align-content: start;
}

.mt-benefit-card span,
.mt-business-mini-card span {
    color: var(--mt-red);
    font-weight: 900;
    font-size: .84rem;
}

.mt-benefit-card h3,
.mt-business-mini-card h3 {
    margin: 0;
    color: var(--mt-dark);
}

.mt-benefit-card p,
.mt-business-mini-card p,
.mt-muted {
    color: var(--mt-muted);
}

.mt-benefit-card strong {
    display: inline-flex;
    width: max-content;
    border-radius: 999px;
    background: rgba(11, 47, 107, .08);
    color: var(--mt-blue);
    padding: 8px 12px;
    font-size: .95rem;
}

.mt-benefit-card small {
    color: var(--mt-muted);
    font-weight: 800;
}

.mt-business-mini-card {
    grid-template-columns: 70px 1fr;
    align-items: start;
}

.mt-business-mini-logo {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    overflow: hidden;
    background: #edf3ff;
    display: grid;
    place-items: center;
    color: var(--mt-blue);
    font-weight: 900;
    font-size: 1.4rem;
}

.mt-business-mini-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mt-status.valido,
.mt-status.activa,
.mt-status.reclamado {
    background: rgba(18, 138, 72, .1);
    color: #0a7a3f;
}

.mt-status.usado,
.mt-status.ganadora {
    background: rgba(11, 47, 107, .1);
    color: var(--mt-blue);
}

.mt-status.anulado,
.mt-status.vencido {
    background: rgba(215, 25, 32, .1);
    color: var(--mt-red);
}

.mt-coupon-action,
.mt-inline-form {
    margin: 0;
}

.mt-coupon-action .mt-btn,
.mt-inline-form .mt-btn {
    width: 100%;
}

@media (max-width: 980px) {
    .mt-panel-grid-5,
    .mt-benefit-grid,
    .mt-business-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .mt-panel-grid-5,
    .mt-benefit-grid,
    .mt-business-mini-grid,
    .mt-form-grid {
        grid-template-columns: 1fr;
    }

    .mt-form-grid .span-2 {
        grid-column: auto;
    }

    .mt-business-mini-card {
        grid-template-columns: 1fr;
    }
}

.mt-tools-body {
    background: linear-gradient(135deg, #f8fbff 0%, #eef4fb 45%, #fff 100%);
}

.mt-tools-topbar {
    border-bottom: 1px solid rgba(11, 47, 107, .08);
}

.mt-tools-login .mt-auth-copy h1 {
    max-width: 720px;
}

.mt-tools-panel .mt-admin-nav {
    margin-bottom: 1.4rem;
}

.mt-panel-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem;
    margin-bottom: 1.2rem;
    background: rgba(255,255,255,.9);
}

.mt-panel-hero h1 {
    margin: .2rem 0 .3rem;
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.mt-panel-actions {
    display: flex;
    gap: .7rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.mt-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .9rem;
    margin: 1rem 0 1.2rem;
}

.mt-stat-card {
    background: #fff;
    border: 1px solid rgba(11,47,107,.08);
    border-radius: 22px;
    padding: 1rem;
    box-shadow: 0 18px 45px rgba(11,47,107,.06);
}

.mt-stat-card span {
    display: block;
    color: #64748b;
    font-weight: 700;
    font-size: .82rem;
}

.mt-stat-card strong {
    display: block;
    font-size: 2rem;
    margin-top: .2rem;
    color: #0b2f6b;
}

.mt-tools-grid {
    align-items: start;
}

.mt-tool-list,
.mt-log-list {
    display: grid;
    gap: .75rem;
}

.mt-tool-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    border: 1px solid rgba(11,47,107,.08);
    border-radius: 18px;
    padding: .9rem 1rem;
    background: #fff;
}

.mt-tool-row strong,
.mt-log-list strong {
    display: block;
    color: #0f172a;
}

.mt-tool-row span,
.mt-log-list span {
    display: block;
    color: #64748b;
    font-size: .86rem;
    margin-top: .15rem;
}

.mt-status-pill {
    font-style: normal;
    white-space: nowrap;
    padding: .42rem .7rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: .76rem;
    background: #fff7ed;
    color: #9a3412;
}

.mt-status-pill.is-ok {
    background: #ecfdf5;
    color: #047857;
}

.mt-status-pill.is-waiting {
    background: #fff7ed;
    color: #9a3412;
}

.mt-log-list article {
    padding: .9rem 0;
    border-bottom: 1px solid rgba(11,47,107,.08);
}

.mt-log-list article:last-child {
    border-bottom: 0;
}

.mt-log-list p {
    margin: .2rem 0;
    color: #475569;
}

.mt-empty {
    color: #64748b;
    margin: 0;
}

.mt-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.2rem;
}

.mt-form-full,
.mt-form-actions {
    grid-column: 1 / -1;
}

.mt-check-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 700;
}

.mt-check-row input {
    width: auto;
}

@media (max-width: 960px) {
    .mt-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .mt-panel-hero {
        align-items: flex-start;
        flex-direction: column;
    }
    .mt-panel-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .mt-stats-grid,
    .mt-form-grid {
        grid-template-columns: 1fr;
    }
    .mt-tool-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Fase 8 - Mercado de herramientas */
.mt-market-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.1rem;margin-top:1rem}.mt-market-card{display:flex;flex-direction:column;gap:.85rem;min-height:310px}.mt-market-card.is-featured{border-color:rgba(11,47,107,.24);box-shadow:0 24px 60px rgba(11,47,107,.12)}.mt-market-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.mt-market-card h2{margin:.2rem 0 0;font-size:1.25rem}.mt-market-card p{margin:0;color:var(--mt-muted);line-height:1.55}.mt-market-meta{display:flex;flex-wrap:wrap;gap:.45rem}.mt-market-meta span{font-size:.78rem;font-weight:800;border-radius:999px;padding:.35rem .55rem;background:rgba(11,47,107,.08);color:var(--mt-primary)}.mt-market-price{font-weight:900;font-size:1rem;color:var(--mt-ink)}.mt-market-request{margin-top:auto;border-top:1px solid var(--mt-line);padding-top:.7rem}.mt-market-request summary{cursor:pointer;font-weight:900;color:var(--mt-primary)}.mt-market-request form{margin-top:.8rem;display:grid;gap:.7rem}.mt-market-action-note{margin-top:auto;padding:.8rem;border-radius:1rem;background:rgba(15,23,42,.05);font-weight:800;color:var(--mt-muted)}.mt-market-context{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.mt-market-context strong{display:block;font-size:1.1rem}.mt-market-context span,.mt-market-context p{color:var(--mt-muted);margin:.15rem 0}.mt-market-history{margin-top:1rem}.mt-market-admin-grid{align-items:start}.mt-inline-filter select{border:1px solid var(--mt-line);border-radius:.9rem;padding:.65rem .8rem;background:#fff}.mt-inline-details{position:relative}.mt-inline-details summary{list-style:none;cursor:pointer}.mt-inline-details summary::-webkit-details-marker{display:none}.mt-inline-details form{position:absolute;right:0;top:2.4rem;z-index:20;width:250px;background:#fff;border:1px solid var(--mt-line);border-radius:1rem;box-shadow:0 24px 50px rgba(15,23,42,.16);padding:.8rem;display:grid;gap:.55rem}.mt-inline-details textarea{width:100%;border:1px solid var(--mt-line);border-radius:.8rem;padding:.55rem}.mt-soft-line{border:0;border-top:1px solid var(--mt-line);margin:1.25rem 0}.mt-market-config-form{display:grid;gap:1.2rem}.mt-check-grid{display:grid;gap:.65rem;margin-top:1rem}.mt-check-grid label,.mt-category-tool-list label{font-weight:800;color:var(--mt-muted);display:flex;align-items:center;gap:.45rem}.mt-category-tool-list{display:grid;gap:.75rem}.mt-category-tool-list article{border:1px solid var(--mt-line);border-radius:1rem;padding:.85rem;display:grid;gap:.5rem;background:rgba(255,255,255,.72)}.mt-category-tool-list strong{color:var(--mt-ink)}.mt-status-pill.is-soft{background:rgba(15,23,42,.06);color:var(--mt-muted)}.mt-status-pill.is-off{background:rgba(127,29,29,.08);color:#991b1b}.mt-empty-card{padding:2rem;text-align:center}.mt-empty-card h2{margin-top:0}.mt-form-grid.single{grid-template-columns:1fr}.mt-form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}@media (max-width:760px){.mt-market-context,.mt-market-card-head{flex-direction:column}.mt-inline-details form{position:static;width:100%;margin-top:.6rem}.mt-form-grid.two{grid-template-columns:1fr}}

.mt-operation-form textarea,
.mt-operation-form select,
.mt-operation-form input[type="file"],
.mt-inline-edit-form textarea,
.mt-inline-edit-form select,
.mt-inline-edit-form input[type="file"],
.mt-inline-edit-form input[type="text"],
.mt-inline-edit-form input[type="email"],
.mt-inline-edit-form input[type="number"],
.mt-inline-edit-form input[type="datetime-local"],
.mt-row-form select,
.mt-order-items input,
.mt-inline-filter input {
    width: 100%;
    border: 1px solid var(--mt-line);
    border-radius: .9rem;
    padding: .65rem .8rem;
    background: #fff;
    color: var(--mt-ink);
}
.mt-accordion summary {
    cursor: pointer;
    font-weight: 900;
    color: var(--mt-primary);
    list-style: none;
}
.mt-accordion summary::-webkit-details-marker { display: none; }
.mt-accordion[open] summary { margin-bottom: 1rem; }
.mt-check { display: flex; align-items: center; gap: .45rem; font-weight: 800; color: var(--mt-muted); }
.mt-edit-table .mt-inline-details form.mt-inline-edit-form {
    width: min(360px, 86vw);
    max-height: 76vh;
    overflow: auto;
}
.mt-inline-edit-form { display: grid; gap: .55rem; }
.mt-product-mini { display: flex; align-items: center; gap: .75rem; }
.mt-product-mini img { width: 52px; height: 52px; object-fit: cover; border-radius: .9rem; border: 1px solid var(--mt-line); }
.mt-product-mini small,
.mt-table small { display: block; color: var(--mt-muted); margin-top: .25rem; }
.mt-order-items { display: grid; gap: .65rem; margin: 1rem 0; }
.mt-order-items h3 { margin: .8rem 0 .2rem; font-size: 1rem; color: var(--mt-ink); }
.mt-order-items label { display: grid; grid-template-columns: 1fr 110px; align-items: center; gap: .75rem; border: 1px solid var(--mt-line); border-radius: 1rem; padding: .75rem; background: rgba(255,255,255,.68); }
.mt-order-items span { font-weight: 800; }
.mt-order-items small { display: block; color: var(--mt-muted); font-weight: 700; margin-top: .2rem; }
.mt-row-form { display: flex; align-items: center; gap: .45rem; min-width: 230px; }
.mt-row-form select { min-width: 130px; }
@media (max-width: 780px) {
    .mt-order-items label { grid-template-columns: 1fr; }
    .mt-row-form { flex-direction: column; align-items: stretch; }
}

.mt-promoted-box {
    display: grid;
    gap: 12px;
}

.mt-promoted-ad {
    display: grid;
    gap: 8px;
    text-decoration: none;
    color: var(--mt-ink);
    border: 1px solid var(--mt-line);
    border-radius: 18px;
    padding: 10px;
    background: #fff;
}

.mt-promoted-ad:hover {
    border-color: rgba(11, 47, 107, .28);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.mt-promoted-ad img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
    background: #f8fafc;
}

.mt-promoted-ad span {
    font-weight: 900;
}

.mt-promoted-ad small {
    color: var(--mt-muted);
    font-weight: 700;
}

.mt-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.mt-hero-slim {
    padding: 56px 0 34px;
}

.mt-directory-card {
    padding: 22px;
}

.mt-directory-card h3 {
    margin: 12px 0 8px;
    font-size: 1.15rem;
}

.mt-directory-card p {
    color: var(--mt-muted);
    line-height: 1.6;
}

.mt-link {
    display: inline-flex;
    margin-top: .8rem;
    font-weight: 900;
    color: var(--mt-blue);
    text-decoration: none;
}

.mt-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mt-gap-lg { gap: 1.2rem; }
.mt-mt-lg { margin-top: 1.2rem; }
.mt-justify-end { justify-content: flex-end; }
.mt-actions-inline { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.mt-btn-sm { min-height: 34px; padding: .45rem .75rem; font-size: .85rem; }

.mt-form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.mt-span-2 { grid-column: span 2; }
.mt-span-3 { grid-column: span 3; }
.mt-span-4 { grid-column: span 4; }

.mt-cms-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.2rem;
    align-items: start;
}

.mt-cms-article {
    padding: 2rem;
}

.mt-cms-hero-img,
.mt-cms-block img {
    width: 100%;
    border-radius: 1.2rem;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 1px solid var(--mt-line);
}

.mt-cms-hero-img { max-height: 380px; }

.mt-rich-content {
    color: #334155;
    line-height: 1.85;
    font-size: 1.03rem;
}

.mt-cms-blocks {
    display: grid;
    gap: 1rem;
}

.mt-cms-block h2 {
    margin: 0 0 .5rem;
    font-size: 1.2rem;
}

.mt-cms-block strong {
    display: block;
    color: var(--mt-primary);
    margin-bottom: .5rem;
}

.mt-cms-block p {
    color: var(--mt-muted);
    line-height: 1.65;
}

.mt-table-limited {
    max-height: 520px;
    overflow: auto;
}

.mt-card > .mt-form-grid,
.mt-accordion > .mt-form-grid {
    margin-top: 1rem;
}

@media (max-width: 960px) {
    .mt-grid-2,
    .mt-cms-layout {
        grid-template-columns: 1fr;
    }
    .mt-form-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .mt-span-3,
    .mt-span-4 {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .mt-form-grid-2,
    .mt-form-grid-3,
    .mt-form-grid-4 {
        grid-template-columns: 1fr;
    }
    .mt-span-2,
    .mt-span-3,
    .mt-span-4 {
        grid-column: span 1;
    }
    .mt-cms-article {
        padding: 1.2rem;
    }
}

.mt-responsive-table {
    overflow-x: auto;
    border: 1px solid var(--mt-line);
    border-radius: 22px;
    background: #fff;
}

.mt-form-actions-inline {
    display: flex;
    align-items: end;
    gap: .65rem;
    flex-wrap: wrap;
}

.mt-form-grid input[type="date"],
.mt-form-grid select {
    width: 100%;
    border: 1px solid var(--mt-line);
    border-radius: 14px;
    padding: 12px 13px;
    background: #fff;
    color: var(--mt-ink);
    font: inherit;
}

.mt-panel-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 760px) {
    .mt-form-actions-inline { align-items: stretch; }
    .mt-form-actions-inline .mt-btn { width: 100%; }
    .mt-panel-grid-2 { grid-template-columns: 1fr; }
}


:root {
    --mt-primary: var(--mt-blue);
    --mt-secondary: var(--mt-red);
    --mt-danger: #b91c1c;
    --mt-success: #047857;
    --mt-warning: #b45309;
    --mt-card-bg: #ffffff;
}

.mt-auth-section {
    min-height: calc(100vh - 76px);
    display: grid;
    place-items: center;
    padding: 3rem 1rem;
}

.mt-narrow {
    width: min(760px, calc(100% - 32px));
    margin-inline: auto;
}

.mt-grid,
.mt-grid-2,
.mt-grid-4,
.mt-panel-grid-3,
.mt-card-grid,
.mt-mini-grid {
    display: grid;
    gap: 1rem;
}

.mt-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mt-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mt-panel-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mt-card-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.mt-mini-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.mt-gap-lg { gap: 1.35rem; }
.mt-justify-end { justify-content: end; }
.mt-span-2 { grid-column: span 2; }
.mt-span-3 { grid-column: span 3; }
.mt-span-4 { grid-column: span 4; }

.mt-mt-16 { margin-top: 1rem; }
.mt-mt-20 { margin-top: 1.25rem; }
.mt-mt-24 { margin-top: 1.5rem; }
.mt-mt-32 { margin-top: 2rem; }
.mt-mt-lg { margin-top: 1.35rem; }

.mt-card-body {
    padding: 1rem 0 0;
}

.mt-mini-card,
.mt-stat {
    display: grid;
    gap: .35rem;
    min-height: 118px;
}

.mt-stat span,
.mt-mini-card span {
    color: var(--mt-muted);
    font-size: .88rem;
    font-weight: 800;
}

.mt-stat strong,
.mt-mini-card strong {
    color: var(--mt-ink);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    line-height: 1;
}

.mt-section-head,
.mt-hero-content {
    display: grid;
    gap: .75rem;
    margin-bottom: 1.35rem;
}

.mt-section-head p,
.mt-hero-content p {
    color: var(--mt-muted);
    line-height: 1.65;
    margin: 0;
}

.mt-eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: .4rem;
    padding: .38rem .7rem;
    border-radius: 999px;
    background: rgba(11, 47, 107, .08);
    color: var(--mt-primary);
    font-weight: 900;
    font-size: .76rem;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.mt-hero-actions,
.mt-actions-inline {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex-wrap: wrap;
}

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

.mt-btn-sm {
    min-height: 34px;
    padding: .45rem .75rem;
    border-radius: 12px;
    font-size: .86rem;
}

.mt-form-note {
    color: var(--mt-muted);
    font-size: .9rem;
    line-height: 1.5;
    margin: .35rem 0 0;
}

.mt-field {
    display: grid;
    gap: .42rem;
    font-weight: 800;
    color: var(--mt-ink);
}

.mt-field span {
    color: var(--mt-muted);
    font-size: .86rem;
}

.mt-field input,
.mt-field select,
.mt-field textarea,
.mt-form-grid input,
.mt-form-grid select,
.mt-form-grid textarea {
    width: 100%;
    border: 1px solid var(--mt-line);
    border-radius: 14px;
    padding: 12px 13px;
    background: #fff;
    color: var(--mt-ink);
    font: inherit;
    outline: none;
}

.mt-field input:focus,
.mt-field select:focus,
.mt-field textarea:focus,
.mt-form-grid input:focus,
.mt-form-grid select:focus,
.mt-form-grid textarea:focus {
    border-color: rgba(11, 47, 107, .45);
    box-shadow: 0 0 0 4px rgba(11, 47, 107, .09);
}

.mt-table-responsive,
.mt-table-card,
.mt-responsive-table {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--mt-line);
    border-radius: 22px;
    background: #fff;
}

.mt-table-responsive table,
.mt-table-card table,
.mt-responsive-table table {
    min-width: 780px;
    width: 100%;
    border-collapse: collapse;
}

.mt-table-responsive th,
.mt-table-responsive td,
.mt-table-card th,
.mt-table-card td,
.mt-responsive-table th,
.mt-responsive-table td {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--mt-line);
    text-align: left;
    vertical-align: top;
}

.mt-table-responsive th,
.mt-table-card th,
.mt-responsive-table th {
    color: #334155;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    background: rgba(15, 23, 42, .035);
}

.mt-table-limited {
    max-height: 520px;
    overflow: auto;
}

.mt-hero-slim {
    padding-block: 2.4rem 1.2rem;
}

.mt-link {
    color: var(--mt-primary);
    font-weight: 900;
    text-decoration: none;
}

.mt-link:hover {
    text-decoration: underline;
}

.mt-cms-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 1.2rem;
    align-items: start;
}

.mt-cms-article {
    padding: 2rem;
}

.mt-cms-hero-img,
.mt-cms-block img {
    width: 100%;
    border-radius: 1.2rem;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 1px solid var(--mt-line);
}

.mt-cms-hero-img { max-height: 380px; }
.mt-rich-content { color: #334155; line-height: 1.85; font-size: 1.03rem; }
.mt-cms-blocks { display: grid; gap: 1rem; }
.mt-cms-block h2 { margin: 0 0 .5rem; font-size: 1.2rem; }
.mt-cms-block strong { display: block; color: var(--mt-primary); margin-bottom: .5rem; }
.mt-cms-block p { color: var(--mt-muted); line-height: 1.65; }

@media (max-width: 960px) {
    .mt-grid-2,
    .mt-grid-4,
    .mt-panel-grid-3,
    .mt-cms-layout {
        grid-template-columns: 1fr;
    }
    .mt-span-2,
    .mt-span-3,
    .mt-span-4 {
        grid-column: span 1;
    }
}

@media (max-width: 640px) {
    .mt-auth-section { padding: 1.5rem 1rem; }
    .mt-hero-actions,
    .mt-actions-inline { align-items: stretch; }
    .mt-hero-actions .mt-btn,
    .mt-actions-inline .mt-btn { width: 100%; justify-content: center; }
    .mt-cms-article { padding: 1.2rem; }
}
