:root {
    color-scheme: light;
    --navy: #0D1B3A;
    --navy-dark: #081427;
    --emerald: #0F7A4D;
    --emerald-hover: #0d6a43;
    --emerald-dark: #0c5f3c;
    --emerald-soft: #e8f5ee;
    --emerald-ring: rgba(15, 122, 77, 0.22);
    --gold: #D4AF37;
    --gold-dark: #9a7720;
    --gold-soft: #F6EFE1;
    --cream-hover: #FBF6EE;
    --warm-white: #FAF7F2;
    --white: #FFFFFF;
    --ink: #10233F;
    --muted: #64748B;
    --line: #E7E1D5;
    --line-strong: #d9d2c4;
    --danger: #DC2626;
    --danger-soft: #fef2f2;
    --success: #16A34A;
    --success-soft: #ecfdf3;
    --warning: #b45309;
    --warning-soft: #fff7ed;
    --slate-soft: #f4f1eb;
    --navy-soft: #eef1f6;
    --shadow: 0 8px 24px rgba(13, 27, 58, 0.06);
    --shadow-lg: 0 18px 50px rgba(13, 27, 58, 0.1);
    --sidebar: 272px;
}

* {
    box-sizing: border-box;
    letter-spacing: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background: var(--warm-white);
    color: var(--ink);
    font-family: Inter, Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

body.app-active {
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    line-height: 1.18;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(15, 122, 77, 0.22);
    outline-offset: 2px;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page-loader {
    min-height: 100vh;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 16px;
    color: var(--muted);
}

.loader-logo {
    width: 120px;
    height: auto;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: var(--navy);
    color: var(--white);
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(13, 27, 58, 0.18);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-lockup picture {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-lockup img {
    width: auto;
    max-width: 280px;
    height: auto;
    max-height: 60px;
    flex: 0 0 auto;
    object-fit: contain;
    object-position: left center;
}

.sidebar-brand .brand-lockup img {
    width: 100%;
    max-width: 240px;
    max-height: 56px;
}

.brand-lockup.light img {
    max-height: 64px;
    max-width: 300px;
}

.public-nav > a:first-child {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.public-header .brand-lockup {
    --public-logo-height: 92px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    max-width: min(400px, 42vw);
}

.public-nav .brand-lockup img,
.mobile-app-header .brand-lockup img {
    display: block;
    max-height: var(--public-logo-height, 92px);
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    object-fit: contain;
    object-position: left center;
}

.brand-lockup strong {
    display: block;
    font-size: 19px;
    line-height: 1.15;
}

.brand-lockup small {
    display: block;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.2;
}

.button,
button.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--emerald);
    color: var(--white);
    cursor: pointer;
    font-weight: 750;
    line-height: 1.2;
    padding: 12px 19px;
    text-decoration: none;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.button:hover,
button.button:hover {
    background: var(--emerald-hover);
    color: var(--white);
    box-shadow: 0 7px 18px rgba(15, 122, 77, 0.18);
    transform: translateY(-1px);
}

.button.secondary {
    background: var(--white);
    border-color: var(--gold);
    color: var(--navy);
}

.button.secondary:hover {
    background: var(--gold-soft);
    border-color: var(--gold);
    color: var(--navy);
    box-shadow: 0 4px 14px rgba(13, 27, 58, 0.06);
}

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

.button.gold:hover {
    background: #c4a030;
    color: var(--navy);
}

.button.danger {
    background: var(--danger-soft);
    border-color: #fecaca;
    color: var(--danger);
}

.button.ghost {
    min-height: 42px;
    background: transparent;
    border-color: transparent;
    color: var(--muted);
    padding: 9px 12px;
}

.button.ghost:hover {
    background: var(--slate-soft);
    color: var(--ink);
    box-shadow: none;
}

.button.small {
    min-height: 40px;
    padding: 9px 13px;
    font-size: 14px;
}

.button svg,
.nav-item svg,
.action-tile svg,
.feature-icon svg,
.icon-button svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    stroke-width: 2;
}

.icon-button {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--muted);
    cursor: pointer;
}

.icon-button:hover {
    border-color: var(--line-strong);
    color: var(--ink);
}

.icon-button.is-spinning svg {
    animation: spin 0.8s linear infinite;
}

.icon-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--gold);
}

.section-heading {
    max-width: 700px;
    margin-bottom: 38px;
}

.section-heading.center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-heading h2 {
    margin-bottom: 14px;
    color: var(--navy);
    font-size: clamp(30px, 4vw, 46px);
}

.section-heading p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 18px;
}

.public-header {
    z-index: 50;
    padding: 12px 0;
    background: rgba(250, 247, 242, 0.98);
    border-bottom: 1px solid var(--line);
}

.public-nav {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.public-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
}

.public-links a {
    color: #475569;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.public-links a:hover {
    color: var(--navy);
}

.public-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.public-menu-toggle,
.public-mobile-menu {
    display: none;
}

.public-actions .button {
    min-height: 42px;
    padding: 9px 15px;
    font-size: 14px;
}

.public-hero {
    min-height: min(88svh, 820px);
    position: relative;
    display: grid;
    align-items: start;
    overflow: hidden;
    background: var(--warm-white);
    padding: 12px 0 36px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 68% center;
    transform: scale(1.03);
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(250, 247, 242, 0.96) 0%, rgba(250, 247, 242, 0.88) 34%, rgba(250, 247, 242, 0.42) 58%, rgba(250, 247, 242, 0.12) 100%),
        linear-gradient(180deg, rgba(250, 247, 242, 0.15) 0%, rgba(250, 247, 242, 0) 38%);
}

.hero-inner {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
}

.hero-copy {
    width: auto;
    max-width: 560px;
    padding: 0;
}

.section-dedicated-offer {
    background: linear-gradient(180deg, #f8faf9 0%, #eef6f1 100%);
}

.dedicated-offer-lead {
    color: var(--navy);
    font-size: clamp(17px, 2.1vw, 20px);
    line-height: 1.6;
    max-width: 56ch;
}

.dedicated-offer-points {
    margin: 22px 0 26px;
}

.dedicated-offer-actions {
    margin-top: 0;
}

.dedicated-offer-card {
    position: relative;
    padding: 22px;
    border: 1px solid rgba(15, 122, 77, 0.14);
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f4fbf7 100%);
    box-shadow: var(--shadow-lg);
}

.dedicated-offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 800;
}

.dedicated-offer-avatar {
    background: linear-gradient(135deg, #0f7a4d 0%, #14532d 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.dedicated-offer-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.dedicated-offer-stats div {
    padding: 14px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
}

.dedicated-offer-stats strong {
    display: block;
    margin-bottom: 4px;
    color: var(--navy);
    font-size: 14px;
}

.dedicated-offer-stats span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.dedicated-offer-pricing {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.95) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.dedicated-offer-pricing--inline {
    margin: 20px 0 0;
    max-width: 56ch;
}

.dedicated-offer-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
}

.dedicated-offer-price-amount {
    color: var(--navy);
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    line-height: 1;
}

.dedicated-offer-price-label {
    color: var(--gold-dark);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.dedicated-offer-pricing p {
    margin: 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.55;
}

.chat-bubble--guest {
    margin-left: auto;
    max-width: 88%;
    background: #e7f7ef;
    border-color: rgba(15, 122, 77, 0.12);
}

.brand-identity-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(24px, 4vw, 40px);
    align-items: start;
    padding: clamp(28px, 4vw, 40px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(180deg, #fff 0%, #fbf8f2 100%);
    box-shadow: var(--shadow-lg);
}

.brand-identity-mark img {
    display: block;
    width: min(280px, 100%);
    max-width: 280px;
    height: auto;
    max-height: 72px;
    object-fit: contain;
    object-position: left center;
}

.brand-identity-lead {
    color: var(--navy);
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 700;
    line-height: 1.45;
}

.brand-identity-points {
    margin-top: 18px;
}

.brand-identity-points strong {
    color: var(--navy);
}

.hero-copy .hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 122, 77, 0.14);
    color: var(--emerald-dark);
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(13, 27, 58, 0.05);
}

.hero-copy .hero-kicker svg {
    width: 18px;
    height: 18px;
}

.hero-copy h1 {
    max-width: 12ch;
    margin-bottom: 20px;
    color: var(--navy);
    font-size: clamp(42px, 4.8vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.hero-copy p {
    max-width: 540px;
    margin-bottom: 28px;
    color: #334155;
    font-size: clamp(17px, 1.8vw, 20px);
    font-weight: 500;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions .button {
    min-height: 48px;
    padding: 12px 20px;
    font-size: 15px;
}

.hero-trust {
    max-width: 560px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
    margin-top: 24px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(231, 225, 213, 0.9);
}

.hero-trust svg {
    width: 16px;
    height: 16px;
    color: var(--emerald);
}

.hero-media {
    position: relative;
    min-height: 520px;
    display: grid;
    place-items: center;
}

.hero-media-glow {
    position: absolute;
    inset: 8% 4% 10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 122, 77, 0.14) 0%, rgba(212, 175, 55, 0.08) 42%, rgba(255, 255, 255, 0) 72%);
    filter: blur(8px);
}

.hero-phone-stack {
    position: relative;
    width: min(420px, 100%);
    margin: 0 auto;
}

.hero-phone {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(231, 225, 213, 0.95);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 28px 60px rgba(13, 27, 58, 0.14),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset;
    backdrop-filter: blur(10px);
    animation: heroFloat 7s ease-in-out infinite;
    overflow: hidden;
}

.hero-chat {
    min-height: 320px;
    display: grid;
    align-content: end;
    gap: 12px;
    padding: 18px 14px 20px;
}

.hero-chat .chat-bubble {
    max-width: 92%;
    animation: heroBubbleIn 0.8s ease both;
}

.hero-chat .chat-bubble--accent {
    animation-delay: 0.18s;
}

.chat-label {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(15, 122, 77, 0.1);
    color: var(--emerald-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.chat-bubble-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(17, 27, 33, 0.08);
}

.chat-bubble-brand strong {
    color: var(--navy);
    font-size: 13px;
    line-height: 1.2;
}

.chat-brand-avatar,
.phone-avatar-initials {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--gold-dark);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.chat-brand-avatar {
    width: 24px;
    height: 24px;
    font-size: 10px;
}

.chat-brand-avatar--logo,
.phone-avatar-image {
    padding: 0;
    background: transparent;
    object-fit: cover;
}

.chat-brand-avatar--logo {
    width: 24px;
    height: 24px;
    border-radius: 999px;
}

.phone-avatar-image {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
}

.phone-avatar-initials {
    width: 100%;
    height: 100%;
    font-size: 14px;
}

.phone-avatar--restaurant {
    background: rgba(255, 255, 255, 0.14);
    border: 2px solid rgba(255, 255, 255, 0.96);
    overflow: hidden;
}

.chat-bubble--accent .chat-bubble-brand {
    border-bottom-color: rgba(17, 27, 33, 0.06);
}

.chat-bubble--accent .chat-bubble-brand strong {
    color: #111b21;
}

.chat-bubble--accent {
    background: #d9fdd3;
    border: 1px solid rgba(17, 27, 33, 0.04);
}

.hero-float-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(231, 225, 213, 0.95);
    box-shadow: 0 16px 36px rgba(13, 27, 58, 0.12);
    backdrop-filter: blur(12px);
}

.hero-float-card svg {
    width: 22px;
    height: 22px;
    color: var(--emerald);
    flex-shrink: 0;
}

.hero-float-card strong {
    display: block;
    color: var(--navy);
    font-size: 22px;
    line-height: 1.1;
}

.hero-float-card span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.hero-float-card--stats {
    top: 6%;
    left: -4%;
    animation: heroFloat 6s ease-in-out infinite;
}

.hero-float-card--messages {
    right: -6%;
    bottom: 24%;
    animation: heroFloat 6.5s ease-in-out infinite reverse;
}

.hero-float-card--messages svg {
    color: var(--gold-dark);
}

.hero-automation-strip {
    position: absolute;
    left: 50%;
    bottom: -8px;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: calc(100% + 24px);
    transform: translateX(-50%);
}

.hero-automation-strip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(13, 27, 58, 0.18);
}

.hero-automation-strip svg {
    width: 14px;
    height: 14px;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes heroBubbleIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-phone,
    .hero-float-card,
    .hero-chat .chat-bubble {
        animation: none;
    }
}

.public-section {
    padding: clamp(72px, 8vw, 104px) 0;
    background: var(--warm-white);
    position: relative;
}

.public-section.white {
    background: var(--white);
}

.public-section.green-band {
    background: linear-gradient(135deg, var(--navy) 0%, #132847 100%);
    color: var(--white);
}

.public-section.gold-band {
    background: linear-gradient(180deg, #F8F1E3 0%, var(--gold-soft) 100%);
}

.section-inner {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.section-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.92fr);
    align-items: center;
    gap: clamp(32px, 5vw, 64px);
    margin-bottom: 42px;
}

.section-split--reverse {
    direction: rtl;
}

.section-split--reverse > * {
    direction: ltr;
}

.section-copy h2,
.story-content h2 {
    margin-bottom: 16px;
    color: var(--navy);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.08;
}

.section-copy > p,
.story-content > p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.section-visual {
    position: relative;
    min-height: 360px;
}

.visual-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}

.visual-card svg {
    width: 22px;
    height: 22px;
    color: var(--emerald);
    flex-shrink: 0;
}

.visual-card strong {
    display: block;
    color: var(--navy);
    font-size: 14px;
}

.visual-card span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.visual-card--alert {
    top: 8%;
    left: 0;
}

.visual-card--calendar {
    top: 34%;
    right: 0;
}

.visual-card--calendar svg {
    color: var(--gold-dark);
}

.visual-card--float {
    right: -4%;
    bottom: 18%;
}

.visual-card--whatsapp svg {
    color: var(--emerald);
}

.visual-stat {
    position: absolute;
    left: 8%;
    bottom: 10%;
    z-index: 2;
    max-width: 180px;
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--navy);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.visual-stat-value {
    display: block;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    color: var(--gold);
}

.visual-stat-label {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
}

.visual-scene {
    position: absolute;
    inset: 8% 4% 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}

.visual-scene img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.problem-grid,
.feature-grid,
.pricing-grid,
.testimonial-grid,
.how-grid {
    display: grid;
    gap: 20px;
}

.problem-grid {
    grid-template-columns: repeat(3, 1fr);
}

.feature-grid {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    min-width: 0;
}

.feature-grid--bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.feature-card {
    min-width: 0;
}

.feature-card--wide {
    grid-column: span 6;
}

.feature-card:not(.feature-card--wide) {
    grid-column: span 3;
}

.feature-grid--bento > .feature-card:last-child {
    grid-column: span 6;
}

.how-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 28px;
    align-items: stretch;
}

.how-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

.pricing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
}

.testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
}

.public-card,
.feature-card,
.pricing-card,
.testimonial-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.public-card:hover,
.feature-card:hover,
.pricing-card:hover,
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.public-card,
.feature-card,
.testimonial-card {
    padding: 28px;
}

.public-card--accent {
    border-top: 3px solid var(--emerald);
}

.public-card--gold {
    border-top: 3px solid var(--gold);
}

.public-card h3,
.feature-card h3 {
    margin: 18px 0 9px;
    font-size: 20px;
    color: var(--navy);
}

.public-card p,
.feature-card p,
.testimonial-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.feature-card--highlight {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
    border-color: rgba(15, 122, 77, 0.18);
}

.feature-card--gold {
    background: linear-gradient(180deg, #ffffff 0%, #fcf8ef 100%);
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--emerald-soft);
    color: var(--emerald);
}

.feature-icon.gold {
    background: var(--gold-soft);
    color: var(--gold-dark);
}

.how-step-card {
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow);
}

.how-step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.how-step-number {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
}

.how-step-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--emerald-soft);
    color: var(--emerald);
}

.how-step-icon svg {
    width: 22px;
    height: 22px;
}

.how-step-card h3 {
    margin-bottom: 8px;
    font-size: 20px;
    color: var(--navy);
}

.how-step-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.how-preview {
    border-radius: 22px;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.how-preview-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: var(--navy);
    color: var(--white);
}

.how-preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
}

.how-preview-header strong {
    margin-left: auto;
    font-size: 13px;
}

.how-preview-body {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.how-preview-field {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--warm-white);
    border: 1px solid var(--line);
}

.how-preview-field span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.how-preview-field strong {
    color: var(--navy);
    font-size: 14px;
}

.how-preview-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--emerald-soft);
    color: var(--emerald-dark);
    font-size: 14px;
    font-weight: 800;
}

.how-preview-action svg {
    width: 18px;
    height: 18px;
}

.split-story {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 70px;
}

.story-content h2 {
    margin-bottom: 18px;
    font-size: clamp(32px, 4vw, 48px);
}

.story-content > p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.check-list {
    display: grid;
    gap: 14px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.check-list--cards li {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: #334155;
    font-weight: 650;
}

.check-list svg {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex: 0 0 auto;
    color: var(--emerald);
}

.message-preview {
    padding: 34px;
    border-radius: 24px;
    background: linear-gradient(180deg, #f7f3ec 0%, #eef6f0 100%);
    border: 1px solid #e6ded0;
}

.message-preview--elevated {
    position: relative;
    box-shadow: var(--shadow-lg);
}

.section-phone {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.section-chat {
    min-height: 300px;
    display: grid;
    align-content: end;
    gap: 12px;
}

.whatsapp-visual {
    min-height: 420px;
    display: grid;
    place-items: center;
}

.phone-shell {
    width: min(380px, 100%);
    margin: 0 auto;
    padding: 14px;
    border: 1px solid var(--line-strong);
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.phone-shell--wa {
    padding: 0;
    overflow: hidden;
}

.phone-shell--wa .chat-area {
    padding: 18px 14px 20px;
}

.phone-top {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
}

.phone-top--wa {
    gap: 12px;
    padding: 12px 14px 13px;
    border-bottom: none;
    background: linear-gradient(180deg, #008069 0%, #005c4b 100%);
    color: #fff;
}

.phone-top-copy {
    min-width: 0;
}

.phone-top--wa strong,
.phone-top--wa small {
    color: #fff;
}

.phone-top-meta {
    display: block;
    margin-top: 1px;
    font-size: 13px;
    line-height: 1.35;
}

.phone-restaurant-name {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.phone-top-meta-divider {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
}

.phone-top-meta-label {
    color: rgba(255, 255, 255, 0.94);
    font-weight: 600;
}

.phone-top--wa small {
    color: rgba(255, 255, 255, 0.94);
    font-size: 13px;
}

.phone-top--wa strong {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
}

.phone-verified {
    display: inline-flex;
    align-items: center;
    color: #53bdeb;
}

.phone-verified svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.4;
}

.phone-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--emerald);
    color: var(--white);
    font-weight: 800;
    flex-shrink: 0;
}

.phone-avatar--profile {
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 2px solid rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.phone-avatar--profile img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
}

.chat-area--wa {
    background:
        linear-gradient(180deg, rgba(229, 221, 213, 0.35) 0%, rgba(229, 221, 213, 0.15) 100%),
        #ece5dd;
}

.phone-top strong,
.phone-top small {
    display: block;
    line-height: 1.25;
}

.phone-top small {
    color: var(--muted);
    font-size: 13px;
}

.chat-area {
    min-height: 280px;
    display: grid;
    align-content: center;
    padding: 22px 16px;
    background: #f6f4ef;
}

.chat-bubble {
    max-width: 88%;
    margin-left: auto;
    padding: 15px 16px;
    border-radius: 14px 14px 4px 14px;
    background: #d9fdd3;
    color: #111b21;
    box-shadow: 0 1px 2px rgba(11, 20, 26, 0.08);
}

.chat-bubble small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    text-align: right;
}

.revenue-showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    align-items: center;
    gap: clamp(32px, 5vw, 54px);
}

.revenue-highlight {
    display: flex;
    align-items: end;
    gap: 14px;
    margin: 10px 0 18px;
}

.revenue-number {
    display: inline-block;
    color: var(--gold-dark);
    font-size: clamp(48px, 8vw, 86px);
    font-weight: 800;
    line-height: 1;
}

.revenue-caption {
    display: block;
    margin-bottom: 10px;
    color: var(--gold-dark);
    font-size: 15px;
    font-weight: 800;
}

.revenue-dashboard {
    padding: 24px;
    border-radius: 24px;
    border: 1px solid #e3d5b6;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(8px);
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.dashboard-header strong {
    color: var(--navy);
    font-size: 18px;
}

.dashboard-header span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.dashboard-stat {
    padding: 14px;
    border-radius: 14px;
    background: var(--white);
    border: 1px solid var(--line);
}

.dashboard-stat span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.dashboard-stat strong {
    display: block;
    margin-top: 6px;
    color: var(--navy);
    font-size: 22px;
}

.revenue-bars {
    display: grid;
    gap: 20px;
    padding: 28px;
    border: 1px solid #e3d5b6;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
}

.revenue-bars--dashboard {
    padding: 18px;
    border: 0;
    background: transparent;
}

.bar-row {
    display: grid;
    gap: 8px;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-weight: 700;
}

.bar-track {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7e2d7;
}

.bar-fill {
    height: 100%;
    border-radius: inherit;
    background: var(--emerald);
}

.pricing-card {
    position: relative;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    padding: 30px;
}

.pricing-card-top {
    position: relative;
}

.pricing-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 16px;
    background: var(--navy-soft);
    color: var(--navy);
}

.pricing-icon svg {
    width: 24px;
    height: 24px;
}

.pricing-card.featured .pricing-icon {
    background: var(--gold-soft);
    color: var(--gold-dark);
}

.pricing-card.featured {
    border-color: var(--gold);
    box-shadow: 0 18px 40px rgba(128, 101, 47, 0.14);
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-4px);
}

.plan-label {
    display: inline-flex;
    width: max-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 800;
}

.plan-sender-badge {
    display: inline-flex;
    margin-top: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--navy-soft);
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.pricing-card h3 {
    margin: 16px 0 4px;
    font-size: 23px;
}

.price {
    margin: 10px 0 22px;
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
}

.price small {
    color: var(--muted);
    font-size: 15px;
    font-weight: 650;
}

.plan-list {
    display: grid;
    align-content: start;
    gap: 12px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
    color: #475569;
}

.plan-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.plan-list svg {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    color: var(--emerald);
}

.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: "“";
    position: absolute;
    top: 12px;
    right: 22px;
    color: rgba(212, 175, 55, 0.22);
    font-size: 84px;
    line-height: 1;
    font-weight: 800;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    color: var(--gold);
}

.testimonial-stars svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.testimonial-tag {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--emerald-soft);
    color: var(--emerald-dark);
    font-size: 12px;
    font-weight: 800;
}

.testimonial-card blockquote {
    margin: 0 0 24px;
    color: #334155;
    font-size: 18px;
    line-height: 1.65;
}

.testimonial-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-person .avatar {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold-dark);
    font-weight: 800;
}

.testimonial-person strong,
.testimonial-person small {
    display: block;
    line-height: 1.3;
}

.testimonial-person small {
    color: var(--muted);
}

.section-partners {
    overflow: hidden;
    padding-bottom: clamp(56px, 7vw, 96px);
}

.section-partners .section-heading {
    margin-bottom: clamp(28px, 4vw, 40px);
}

.partners-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.partners-marquee-track {
    display: flex;
    align-items: stretch;
    gap: clamp(14px, 2vw, 24px);
    width: max-content;
    padding: 8px max(20px, calc((100% - 1120px) / 2)) 12px;
    animation: partnersMarquee 42s linear infinite;
    will-change: transform;
}

.partners-marquee-track--static {
    width: auto;
    max-width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    animation: none;
}

.partners-marquee:hover .partners-marquee-track:not(.partners-marquee-track--static),
.partners-marquee:focus-within .partners-marquee-track:not(.partners-marquee-track--static) {
    animation-play-state: paused;
}

.partner-slide {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.6vw, 16px);
    min-width: clamp(220px, 24vw, 300px);
    max-width: 320px;
    padding: clamp(14px, 1.8vw, 18px) clamp(16px, 2vw, 20px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.partner-slide:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 107, 79, 0.18);
}

.partner-slide-logo {
    flex: 0 0 auto;
    width: clamp(52px, 6vw, 64px);
    height: clamp(52px, 6vw, 64px);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--warm-white);
    border: 1px solid var(--line);
    overflow: hidden;
}

.partner-slide-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.partner-slide-initials {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: var(--gold-soft);
    color: var(--gold-dark);
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 800;
}

.partner-slide-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.partner-slide-copy strong {
    display: block;
    color: var(--navy);
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.partner-slide-copy span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: clamp(13px, 1.4vw, 14px);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes partnersMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 767px) {
    .partners-marquee {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .partners-marquee::-webkit-scrollbar {
        display: none;
    }

    .partners-marquee-track {
        animation: none;
        padding-inline: 20px;
        gap: 12px;
    }

    .partner-slide {
        min-width: min(78vw, 280px);
        scroll-snap-align: start;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .partner-slide {
        min-width: 260px;
    }

    .partners-marquee-track {
        animation-duration: 48s;
    }
}

@media (min-width: 1024px) {
    .partners-marquee-track:not(.partners-marquee-track--static) {
        animation-duration: 54s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .partners-marquee {
        overflow-x: auto;
        mask-image: none;
        -webkit-mask-image: none;
        scrollbar-width: thin;
    }

    .partners-marquee-track {
        animation: none;
        padding-inline: max(20px, calc((100% - 1120px) / 2));
    }
}

.cta-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: clamp(28px, 4vw, 42px);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cta-copy h2,
.cta-band h2 {
    max-width: 680px;
    margin-bottom: 10px;
    color: var(--white);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.08;
}

.cta-copy p,
.cta-band p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.6;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.16);
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
}

.cta-badge svg {
    width: 16px;
    height: 16px;
}

.cta-actions {
    display: grid;
    gap: 12px;
    min-width: 220px;
}

.cta-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.28);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    align-items: start;
    gap: clamp(32px, 5vw, 54px);
}

.contact-copy h2 {
    margin-bottom: 16px;
    font-size: clamp(32px, 4vw, 46px);
}

.contact-copy p {
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.contact-cards {
    display: grid;
    gap: 14px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--warm-white);
    border: 1px solid var(--line);
}

.contact-card svg {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: var(--emerald);
    flex-shrink: 0;
}

.contact-card strong {
    display: block;
    color: var(--navy);
    font-size: 14px;
}

.contact-card span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.contact-form {
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
}

.contact-details {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.contact-details span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-weight: 650;
}

.contact-details svg {
    width: 20px;
    height: 20px;
    color: var(--emerald);
}

.public-footer {
    padding: 50px 0 24px;
    background: var(--navy-dark);
    color: var(--white);
}

.whatsapp-help-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 80;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 54px;
    padding: 0 18px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(13, 27, 58, 0.28);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.whatsapp-help-button:hover {
    background: #1fbd5a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(13, 27, 58, 0.34);
}

.whatsapp-help-button:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.35);
    outline-offset: 3px;
}

.whatsapp-help-button svg {
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
}

@media (max-width: 560px) {
    .whatsapp-help-button {
        right: 16px;
        bottom: 16px;
        width: 56px;
        min-height: 56px;
        justify-content: center;
        padding: 0;
    }

    .whatsapp-help-button span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.75fr) repeat(4, minmax(0, 1fr));
    gap: 32px;
    padding-bottom: 38px;
}

.footer-brand-lockup {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-brand-mark {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border-radius: 18px;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.footer-brand-text {
    min-width: 0;
}

.footer-brand-name {
    display: block;
    color: #fff;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.footer-brand-tagline {
    margin: 6px 0 0;
    color: #d4af37;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.35;
}

.footer-grid .brand-lockup {
    color: var(--white);
}

.footer-grid .brand-lockup img {
    display: block;
    width: auto;
    max-width: 320px;
    height: auto;
    max-height: 68px;
    object-fit: contain;
    object-position: left center;
}

.footer-grid .brand-lockup small,
.footer-copy,
.footer-links a {
    color: #b8c5c0;
}

.footer-copy {
    max-width: 42ch;
    margin: 14px 0 0;
    font-size: clamp(13px, 1.5vw, 15px);
    line-height: 1.55;
    color: #b8c5c0;
}

.footer-copy-site {
    display: block;
    margin-top: 6px;
    color: #d4af37;
    font-size: clamp(12px, 1.4vw, 14px);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.footer-copy-site:hover {
    text-decoration: underline;
}

.footer-brand {
    min-width: 0;
}

.footer-links {
    display: grid;
    align-content: start;
    gap: 9px;
}

.footer-links strong {
    margin-bottom: 4px;
}

.footer-links a {
    text-decoration: none;
}

.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #9dafaa;
    font-size: 14px;
    display: grid;
    gap: 12px;
    justify-items: center;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

.footer-isa-credit {
    color: #c5d4cf;
    font-size: 15px;
}

.footer-bottom a,
.footer-isa-credit a {
    color: #d4af37;
    font-weight: 700;
    text-decoration: none;
}

.footer-bottom a:hover,
.footer-isa-credit a:hover {
    text-decoration: underline;
}

.footer-links a:hover {
    color: #fff;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(400px, 0.92fr) minmax(520px, 1.08fr);
    background: var(--warm-white);
}

.auth-visual {
    min-height: 100vh;
    position: relative;
    display: grid;
    align-content: end;
    padding: 48px;
    overflow: hidden;
    background: #0D1B3A url('/images/rplus-restaurant-hero.svg') 69% center / cover no-repeat;
    color: var(--white);
}

.auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(13, 27, 58, 0.62);
}

.auth-visual-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.auth-visual .brand-lockup {
    position: absolute;
    top: 36px;
    left: 42px;
    z-index: 2;
    color: var(--white);
}

.auth-visual .brand-lockup img {
    max-height: 72px;
    max-width: 320px;
}

.auth-visual .brand-lockup small {
    color: rgba(255, 255, 255, 0.78);
}

.auth-visual-content h1 {
    margin-bottom: 16px;
    font-size: clamp(38px, 5vw, 58px);
}

.auth-visual-content p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.auth-main {
    min-width: 0;
    display: grid;
    align-content: center;
    padding: 46px clamp(34px, 7vw, 96px);
}

.auth-back {
    position: absolute;
    top: 26px;
    right: 30px;
}

.auth-panel {
    width: min(560px, 100%);
    margin: 0 auto;
}

.auth-panel h2 {
    margin-bottom: 8px;
    font-size: 34px;
}

.auth-subtitle {
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 17px;
}

.segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 26px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--slate-soft);
}

.segmented button {
    min-height: 42px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-weight: 750;
}

.segmented button.active {
    background: var(--navy);
    color: var(--white);
    box-shadow: inset 0 -2px 0 var(--gold), 0 2px 8px rgba(13, 27, 58, 0.08);
}

.filter-row > .button:not(.secondary):not(.small):not(.ghost):not(.danger):not(.gold) {
    background: var(--gold-soft);
    color: var(--navy);
    border-color: var(--gold);
    box-shadow: inset 0 -2px 0 var(--gold);
}

.filter-row > .button:not(.secondary):not(.small):not(.ghost):not(.danger):not(.gold):hover {
    background: #f3ebda;
    color: var(--navy);
}

.form-stack {
    display: grid;
    gap: 18px;
}

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

.field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.field > span,
.field-label {
    color: #334155;
    font-size: 15px;
    font-weight: 750;
    min-width: 0;
}

.field small,
.helper {
    color: var(--muted);
    font-size: 14px;
}

input,
select,
textarea {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--white);
    color: var(--ink);
    padding: 11px 13px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.logo-preview {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.logo-preview img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--white);
    padding: 8px;
}

.auth-links {
    display: flex;
    justify-content: flex-end;
    margin-top: -4px;
}

.auth-links a {
    color: var(--navy);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.rating-fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

.rating-fieldset legend {
    font-weight: 700;
    margin-bottom: 10px;
}

.rating-options {
    display: grid;
    gap: 8px;
}

.rating-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    cursor: pointer;
}

.rating-option:has(input:checked) {
    border-color: var(--gold);
    background: var(--gold-soft);
}

.rating-option input {
    width: auto;
    min-height: auto;
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #b9c1ca;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--navy);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 27, 58, 0.08);
}

textarea {
    min-height: 112px;
    resize: vertical;
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.password-toggle svg {
    width: 19px;
    height: 19px;
}

.demo-box {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid #eadbbd;
    border-radius: 14px;
    background: var(--gold-soft);
}

.demo-box > strong {
    display: block;
    margin-bottom: 10px;
    color: var(--navy);
}

.demo-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.demo-actions .button {
    min-height: 42px;
    padding: 9px 8px;
    background: var(--white);
    border-color: var(--gold);
    color: var(--navy);
    font-size: 14px;
}

.notice {
    position: relative;
    margin: 0 0 18px;
    padding: 13px 15px 13px 44px;
    border: 1px solid #c7ded5;
    border-radius: 12px;
    background: var(--emerald-soft);
    color: var(--emerald-dark);
    font-weight: 650;
}

.notice::before {
    content: "";
    position: absolute;
    top: 17px;
    left: 18px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--emerald);
}

.notice.error {
    border-color: #fecaca;
    background: var(--danger-soft);
    color: #991b1b;
}

.notice.error::before {
    background: var(--danger);
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar) minmax(0, 1fr);
    background: var(--warm-white);
}

.sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 100vh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border-right: 1px solid var(--line);
    background: var(--white);
}

.sidebar-backdrop {
    display: none;
}

.sidebar-close {
    display: none;
}

.app-shell-main {
    min-width: 0;
}

.mobile-header-start,
.mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-toggle {
    flex-shrink: 0;
}

.sidebar-brand {
    padding: 28px 22px 24px;
    border-bottom: 1px solid var(--line);
}

.sidebar-brand .restaurant-name {
    margin: 22px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-nav {
    min-height: 0;
    overflow-y: auto;
    padding: 22px 14px;
}

.nav-group + .nav-group {
    margin-top: 20px;
}

.nav-group-label {
    display: block;
    margin: 0 10px 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.nav-item {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 3px;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
}

.nav-item svg {
    color: var(--muted);
}

.nav-item:hover {
    background: var(--cream-hover);
    color: var(--ink);
}

.nav-item:hover svg {
    color: var(--ink);
}

.nav-item.active {
    background: var(--gold-soft);
    color: var(--navy);
}

.nav-item.active svg {
    color: var(--gold);
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--line);
}

.account-mini {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold-dark);
    font-size: 14px;
    font-weight: 850;
}

.account-copy {
    min-width: 0;
}

.account-copy strong,
.account-copy small {
    display: block;
    overflow: hidden;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-copy strong {
    font-size: 14px;
}

.account-copy small {
    color: var(--muted);
    font-size: 13px;
}

.signout-button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.signout-button:hover {
    background: var(--danger-soft);
    color: var(--danger);
}

.signout-button svg {
    width: 19px;
    height: 19px;
}

.app-main {
    min-width: 0;
    padding: 0 32px 50px;
}

.app-topbar {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    border-bottom: 1px solid var(--line);
    min-width: 0;
}

.app-topbar-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.app-topbar h1 {
    margin-bottom: 4px;
    font-size: clamp(28px, 3vw, 34px);
    color: var(--navy);
}

.app-topbar p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 15px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

.branch-chip,
.role-chip {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    color: #475569;
    font-size: 14px;
    font-weight: 700;
}

.branch-chip svg,
.role-chip svg {
    width: 18px;
    height: 18px;
    color: var(--gold-dark);
}

.content-area {
    width: min(1360px, 100%);
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding-top: 28px;
}

.content-loading {
    min-height: 260px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 14px;
    color: var(--muted);
}

.spinner {
    width: 34px;
    height: 34px;
    border: 3px solid #e8e2d6;
    border-top-color: var(--emerald);
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}

.spinner-sm {
    width: 24px;
    height: 24px;
    border-width: 2px;
}

.content-loading-compact {
    min-height: 120px;
}

html {
    -webkit-text-size-adjust: 100%;
}

.app-active button,
.app-active .button,
.app-active .action-tile,
.app-active .activity-tile,
.app-active .mobile-nav-item,
.app-active .nav-item,
.app-active .table-action,
.app-active .link-button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.dashboard-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.dashboard-smart-entry-compact .smart-search-form {
    gap: 10px;
    padding: 12px;
}

.dashboard-quick-actions .panel-body {
    padding-top: 18px;
}

.dashboard-welcome h2 {
    margin-bottom: 6px;
    font-size: 24px;
    color: var(--navy);
}

.dashboard-welcome p,
.dashboard-subtitle {
    margin-bottom: 0;
    color: var(--muted);
}

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

.stat-card {
    min-height: 148px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    align-items: start;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.stat-card.gold-accent {
    border-color: #eadbbd;
    border-top: 3px solid var(--gold);
    background: linear-gradient(180deg, #fffdf9 0%, #ffffff 100%);
}

.stat-label {
    display: block;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}

.stat-value {
    display: block;
    color: var(--navy);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.stat-card.gold-accent .stat-value {
    color: var(--navy);
}

.stat-note {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
}

.stat-card.whatsapp-accent {
    border-color: rgba(15, 122, 77, 0.18);
    background: var(--white);
}

.stat-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--navy-soft);
    color: var(--navy);
}

.stat-card.gold-accent .stat-icon {
    background: var(--gold-soft);
    color: var(--gold-dark);
}

.stat-card.whatsapp-accent .stat-icon {
    background: var(--emerald-soft);
    color: var(--emerald);
}

.stat-card.whatsapp-accent .stat-value {
    color: var(--navy);
}

.stat-icon svg {
    width: 22px;
    height: 22px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(310px, 0.7fr);
    gap: 18px;
    margin-top: 18px;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
    min-width: 0;
    max-width: 100%;
}

.panel + .panel {
    margin-top: 18px;
}

.panel-header {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}

.panel-header h2,
.panel-header h3 {
    margin-bottom: 4px;
    font-size: 20px;
    color: var(--navy);
}

.panel-header p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
}

.panel-body {
    padding: 22px;
}

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

.action-tile {
    min-height: 98px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
    text-align: left;
}

.action-tile:hover {
    border-color: var(--gold);
    background: var(--cream-hover);
}

.action-tile > span:first-child {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--gold-soft);
    color: var(--navy);
}

.action-grid-prominent .action-tile.prominent {
    grid-column: 1 / -1;
    min-height: 112px;
    border: 1px solid var(--emerald-ring);
    background: linear-gradient(180deg, #fffefb 0%, var(--white) 100%);
    box-shadow: var(--shadow);
}

.action-grid-prominent .action-tile.prominent > span:first-child {
    background: var(--gold-soft);
    color: var(--gold-dark);
}

.action-grid-prominent .action-tile.prominent:hover {
    border-color: rgba(15, 122, 77, 0.34);
    background: var(--white);
}

.smart-entry-hero {
    border: 1px solid var(--emerald-ring);
    background: linear-gradient(180deg, #fffefb 0%, var(--white) 100%);
    box-shadow: var(--shadow);
}

.smart-search-actions .button.secondary {
    background: var(--white);
    border-color: var(--gold);
    color: var(--navy);
}

.smart-search-actions .button.secondary:hover {
    background: var(--gold-soft);
    border-color: var(--gold);
    color: var(--navy);
}

.dashboard-smart-entry {
    margin-bottom: 18px;
}

.smart-search-form {
    display: grid;
    gap: 14px;
    padding: 18px 22px 22px;
}

.smart-entry-form-head h3 {
    margin: 0 0 6px;
    font-size: 20px;
    color: var(--navy);
}

.smart-entry-form-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.smart-search-form .field {
    gap: 8px;
}

.smart-search-form .smart-phone-field {
    margin: 0;
}

.smart-search-form .smart-search-button {
    width: 100%;
}

.smart-search-form-compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
    padding: 10px 12px;
}

.smart-search-form-compact .smart-phone-field {
    margin: 0;
    min-width: 0;
}

.smart-search-form-compact .smart-search-button {
    width: auto;
    min-width: 88px;
    min-height: 48px;
    padding-inline: 14px;
    white-space: nowrap;
}

.smart-search-form-compact .smart-phone-field input {
    min-height: 48px;
    font-size: 16px;
}

.smart-search-form-compact .smart-recent-numbers {
    grid-column: 1 / -1;
}

.smart-search-form-compact .smart-recent-list {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
}

.smart-entry-mobile-toolbar {
    display: grid;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 0;
    border-color: var(--emerald-ring);
    background: var(--white);
}

.smart-entry-compact {
    display: grid;
    gap: 12px;
}

.smart-entry-compact .smart-entry-mobile-toolbar {
    position: sticky;
    top: 0;
    z-index: 28;
}

.smart-entry-compact .smart-search-form-compact {
    padding: 0;
    gap: 10px;
}

.smart-entry-empty-state {
    display: grid;
    gap: 10px;
    justify-items: center;
    text-align: center;
    padding: 28px 20px;
    border: 1px dashed var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.smart-entry-empty-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--gold-soft);
    color: var(--gold-dark);
}

.smart-entry-empty-icon svg {
    width: 28px;
    height: 28px;
}

.smart-entry-empty-state h3 {
    margin: 0;
    font-size: 18px;
    color: var(--navy);
}

.smart-entry-empty-state p {
    margin: 0;
    max-width: 32ch;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.smart-entry-empty-tips {
    display: grid;
    gap: 8px;
    width: 100%;
    max-width: 360px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.smart-entry-empty-tips li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--cream);
    color: #334155;
    font-size: 13px;
    line-height: 1.45;
}

.smart-entry-empty-tips li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--emerald);
}

.smart-entry-mobile-rush--active {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: calc(100dvh - 168px);
}

.smart-entry-mobile-rush--active .smart-rush-body {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    gap: 10px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.smart-entry-mobile-rush--active .smart-rush-actions-wrap {
    position: static;
    flex-shrink: 0;
    margin-top: auto;
    padding: 8px 0 0;
    background: var(--cream);
    border-top: 1px solid var(--line);
}

.smart-entry-mobile-rush--active .smart-rush-customer-head {
    flex-direction: column;
    align-items: stretch;
}

.smart-entry-mobile-rush--active .smart-rush-labels {
    justify-content: flex-start;
}

.smart-entry-mobile-rush--active .smart-rush-customer-compact {
    padding: 12px 14px;
}

.smart-entry-mobile-rush--active .smart-rush-customer-compact .smart-rush-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

.smart-entry-mobile-rush--active .smart-rush-edit-actions {
    margin-bottom: 8px;
}

.smart-entry-mobile-rush--active .smart-rush-action {
    min-height: 52px;
    padding: 12px 14px;
}

.smart-entry-compact .smart-birthday-prompt {
    margin-bottom: 0;
}

.smart-search-actions {
    display: grid;
    gap: 10px;
}

.smart-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    padding: 0 22px 22px;
}

.smart-phone-field {
    flex: 1 1 280px;
    min-width: 0;
}

.smart-entry-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 18px;
    margin-top: 18px;
}

.smart-customer-card .filter-row {
    justify-content: flex-end;
}

.smart-insights,
.smart-suggestions {
    padding: 0 22px 18px;
}

.smart-insights p,
.smart-suggestions p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

.smart-suggestions p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--ink);
}

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

.activity-tile {
    min-height: 88px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
    text-align: left;
}

.activity-tile:hover {
    border-color: var(--gold);
    background: var(--cream-hover);
}

.activity-tile > svg,
.activity-tile > i {
    color: var(--navy);
}

.timeline-list {
    display: grid;
    gap: 14px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--gold);
}

.timeline-content small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.smart-duplicate-panel {
    margin-top: 18px;
    border-color: var(--gold);
}

.smart-timeline-panel {
    margin-top: 18px;
}

.smart-activity-modal {
    margin-top: 18px;
    border-color: var(--line);
}

/* Smart Entry — Rush Mode */
.smart-entry-page {
    display: grid;
    gap: 14px;
}

.smart-entry-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.smart-entry-mobile-head {
    margin-bottom: 4px;
}

.smart-mode-toggle {
    display: inline-flex;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--cream);
    gap: 4px;
}

.smart-mode-btn {
    border: 0;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
}

.smart-mode-btn.active {
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.smart-recent-numbers {
    display: grid;
    gap: 8px;
}

.smart-recent-numbers > span {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.smart-recent-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.smart-recent-chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
}

.smart-recent-chip:hover {
    border-color: var(--gold);
    background: var(--cream-hover);
}

.smart-rush-customer {
    border: 1px solid var(--emerald-ring);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 16px 18px;
}

.smart-rush-customer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.smart-rush-customer-identity {
    min-width: 0;
    flex: 1 1 auto;
}

.smart-rush-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    max-width: 100%;
}

.smart-rush-labels .badge {
    white-space: nowrap;
}

.smart-rush-customer-head h3 {
    margin: 0 0 4px;
    font-size: 20px;
    color: var(--navy);
}

.smart-rush-customer-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.smart-rush-metrics,
.smart-full-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    margin: 0;
}

.smart-metric {
    display: grid;
    gap: 2px;
}

.smart-metric span {
    font-size: 12px;
    color: var(--muted);
}

.smart-metric strong {
    font-size: 14px;
    color: var(--ink);
    font-weight: 600;
}

.smart-rush-reward-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #eadbbd;
    background: var(--gold-soft);
}

.smart-rush-reward-banner strong {
    display: block;
    color: var(--navy);
}

.smart-rush-reward-banner span {
    display: block;
    font-size: 13px;
    color: var(--muted);
}

.smart-rush-actions-wrap {
    position: relative;
}

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

.smart-rush-action {
    min-height: 72px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    color: var(--navy);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.smart-rush-action:hover,
.smart-rush-action:focus-visible {
    border-color: var(--emerald);
    background: #f6fffb;
}

.smart-rush-action svg,
.smart-rush-action i {
    color: var(--emerald);
}

.smart-rush-new .smart-rush-save-new {
    min-height: 54px;
    width: 100%;
}

.smart-history-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.smart-history-toggle:hover {
    background: var(--cream-hover);
}

.smart-details-drawer {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    align-items: end;
    background: rgba(15, 23, 42, 0.42);
    padding: 16px;
}

.smart-details-drawer-inner {
    width: min(100%, 520px);
    margin: 0 auto;
    border-radius: 16px 16px 0 0;
    background: var(--white);
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.16);
    padding: 18px 18px 22px;
}

.smart-details-drawer-head strong {
    display: block;
    font-size: 18px;
    color: var(--navy);
}

.smart-details-drawer-head p {
    margin: 4px 0 14px;
    color: var(--muted);
}

.smart-details-actions {
    display: grid;
    gap: 10px;
}

.smart-entry-full .smart-entry-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 18px;
}

.smart-duplicate-rush .filter-row {
    display: grid;
    gap: 10px;
}

.smart-rush-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.smart-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    background: var(--cream);
    cursor: pointer;
}

.smart-edit-link:hover {
    border-color: var(--gold);
    background: var(--gold-soft);
}

.smart-birthday-prompt {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #eadbbd;
    border-radius: 12px;
    background: var(--gold-soft);
}

.smart-birthday-prompt strong {
    display: block;
    color: var(--navy);
}

.smart-birthday-prompt span {
    display: block;
    font-size: 13px;
    color: var(--muted);
}

.smart-birthday-prompt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.smart-customer-drawer .smart-details-drawer-inner {
    max-height: min(88vh, 720px);
    overflow: auto;
}

.filter-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #eadbbd;
    border-radius: 12px;
    background: var(--gold-soft);
    color: var(--navy);
}

.link-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--navy);
    cursor: pointer;
    text-align: left;
}

.link-button.whatsapp,
.link-button.emerald {
    color: var(--emerald);
}

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

.badge.gold {
    background: var(--gold-soft);
    color: var(--navy);
}

.action-tile:hover > span:first-child {
    background: var(--white);
}

.action-tile strong,
.action-tile small {
    display: block;
    line-height: 1.3;
}

.action-tile strong {
    font-size: 15px;
}

.action-tile small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.activity-list,
.record-list {
    display: grid;
    gap: 0;
}

.activity-row,
.record-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.activity-row:first-child,
.record-row:first-child {
    padding-top: 0;
}

.activity-row:last-child,
.record-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.record-main {
    min-width: 0;
}

.record-main strong,
.record-main small {
    display: block;
}

.record-main strong {
    color: var(--navy);
    font-size: 16px;
}

.record-main small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.admin-plans-editor {
    overflow-x: auto;
}

.admin-plans-head,
.admin-plan-row {
    display: grid;
    grid-template-columns: minmax(150px, 1.15fr) minmax(120px, 0.9fr) minmax(100px, 0.75fr) minmax(110px, 0.8fr) minmax(110px, 0.8fr) minmax(95px, 0.7fr) minmax(170px, 1fr) minmax(150px, auto);
    gap: 12px;
    align-items: center;
}

.admin-plans-head {
    min-width: 980px;
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-plans-list .admin-plan-row {
    min-width: 980px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.admin-plans-list .admin-plan-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.admin-plan-summary strong {
    display: block;
    color: var(--navy);
    font-size: 16px;
}

.admin-plan-summary small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 14px;
}

.admin-plan-field {
    margin: 0;
}

.admin-plan-field input,
.admin-plan-field select {
    width: 100%;
    min-width: 0;
}

.admin-plan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-plan-actions .button.small svg {
    width: 14px;
    height: 14px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.page-intro h2 {
    margin-bottom: 5px;
    font-size: 24px;
    color: var(--navy);
}

.page-intro p {
    margin-bottom: 0;
    color: var(--muted);
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.search-field {
    width: min(380px, 100%);
    position: relative;
}

.search-field svg {
    position: absolute;
    top: 14px;
    left: 13px;
    width: 20px;
    height: 20px;
    color: #94a3b8;
    pointer-events: none;
}

.search-field input {
    padding-left: 43px;
}

.filter-row {
    display: flex;
    gap: 10px;
}

.filter-row select {
    min-width: 170px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

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

th,
td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

th {
    background: #fdfbf7;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

tbody tr:hover {
    background: #fcfaf6;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.customer-cell {
    min-width: 180px;
}

.customer-cell strong,
.customer-cell small {
    display: block;
}

.customer-cell small {
    color: var(--muted);
    font-size: 13px;
}

.badge {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--slate-soft);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.badge.inactive,
.badge.suspended {
    background: var(--slate-soft);
    color: var(--muted);
}

.badge.trial,
.badge.premium,
.badge.birthday,
.badge.vip,
.badge.gold {
    background: var(--gold-soft);
    color: var(--navy);
}

.badge.past_due {
    background: var(--gold-soft);
    color: var(--gold-dark);
}

.badge.active,
.badge.sent,
.badge.delivered,
.badge.read,
.badge.positive,
.badge.enabled,
.badge.operational {
    background: var(--emerald-soft);
    color: var(--emerald);
}

.badge.opted_out,
.badge.failed,
.badge.complaint,
.badge.disabled {
    background: var(--danger-soft);
    color: var(--danger);
}

.badge.pending,
.badge.processing,
.badge.accepted,
.badge.scheduled,
.badge.draft {
    background: var(--slate-soft);
    color: var(--muted);
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.pagination-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pagination-actions .button {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 14px;
}

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

.table-action {
    min-width: 40px;
    min-height: 40px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
}

.table-action:hover {
    background: var(--gold-soft);
    border-color: var(--gold);
    color: var(--navy);
}

.table-action.danger:hover {
    background: var(--danger-soft);
    border-color: var(--danger);
    color: var(--danger);
}

.table-action svg {
    width: 18px;
    height: 18px;
}

.form-panel {
    width: min(880px, 100%);
    max-width: 100%;
    min-width: 0;
}

.form-section {
    padding: 22px;
}

.form-section + .form-section {
    border-top: 1px solid var(--line);
}

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

.form-section-title h3 {
    margin-bottom: 4px;
    font-size: 18px;
    color: var(--navy);
}

.form-section-title p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.checkbox-field {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    font-weight: 650;
}

.checkbox-field input {
    width: 20px;
    height: 20px;
    min-height: 20px;
    accent-color: var(--emerald);
}

details.optional-fields {
    border-top: 1px solid var(--line);
}

details.optional-fields summary {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 22px;
    color: var(--emerald);
    cursor: pointer;
    font-weight: 750;
    list-style: none;
}

details.optional-fields summary::-webkit-details-marker {
    display: none;
}

details.optional-fields summary svg {
    width: 19px;
    height: 19px;
}

.empty-state {
    min-height: 260px;
    display: grid;
    place-content: center;
    justify-items: center;
    padding: 42px 24px;
    text-align: center;
}

.empty-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 16px;
    background: var(--gold-soft);
    color: var(--navy);
}

.empty-icon svg {
    width: 27px;
    height: 27px;
}

.empty-state h3 {
    margin-bottom: 8px;
    font-size: 20px;
    color: var(--navy);
}

.empty-state p {
    max-width: 460px;
    margin-bottom: 20px;
    color: var(--muted);
}

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

.automation-card,
.branch-card,
.plan-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.automation-card-header,
.branch-card-header,
.plan-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.automation-card h3,
.branch-card h3,
.plan-card h3 {
    margin-bottom: 5px;
    font-size: 19px;
}

.automation-card p,
.branch-card p,
.plan-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
}

.toggle {
    position: relative;
    width: 48px;
    height: 28px;
    flex: 0 0 auto;
}

.toggle input {
    position: absolute;
    opacity: 0;
}

.toggle span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: background 150ms ease;
}

.toggle span::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
    transition: transform 150ms ease;
}

.toggle input:checked + span {
    background: var(--emerald);
}

.toggle input:checked + span::after {
    transform: translateX(20px);
}

.toggle input:focus-visible + span {
    outline: 3px solid rgba(15, 122, 77, 0.22);
    outline-offset: 2px;
}

/* Automation Center */
.automation-center {
    display: grid;
    gap: 18px;
}

.automation-overview-header {
    display: grid;
    gap: 16px;
}

.automation-overview-copy h2 {
    margin-bottom: 6px;
    color: var(--navy);
    font-size: clamp(24px, 3vw, 30px);
}

.automation-overview-copy p {
    margin: 0;
    color: var(--muted);
    max-width: 720px;
}

.stats-grid--automation {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stats-grid--automation .stat-card {
    min-height: 118px;
    padding: 16px;
}

.stats-grid--automation .stat-value {
    font-size: 24px;
}

@media (max-width: 1200px) {
    .stats-grid--automation {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .automation-panel-grid,
    .automation-panel-grid--logs,
    .automation-drawer-body {
        grid-template-columns: 1fr;
    }

    .automation-builder-preview {
        position: static;
    }

    .automation-recipe-grid {
        grid-template-columns: 1fr;
    }

    .automation-drawer {
        width: 100vw;
    }

    .automation-drawer-footer {
        position: sticky;
        bottom: 0;
        z-index: 2;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(8px);
    }

    .automation-drawer-footer .button {
        flex: 1 1 auto;
        justify-content: center;
    }

    .builder-step-label {
        font-size: 12px;
    }
}

.automation-tab-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 180px;
    color: var(--muted);
    font-weight: 650;
}

.automation-tab-loading svg {
    width: 20px;
    height: 20px;
    animation: spin 900ms linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.automation-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.automation-tab {
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
    cursor: pointer;
}

.automation-tab.active {
    background: var(--navy);
    color: var(--white);
    box-shadow: inset 0 -2px 0 var(--gold);
}

.automation-panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 16px;
}

.automation-panel-grid--logs {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr);
}

.automation-recipe-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.automation-recipe-grid--compact {
    grid-template-columns: 1fr;
}

.automation-recipe-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.automation-recipe-card--compact {
    padding: 14px;
}

.automation-recipe-card--locked {
    opacity: 0.92;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.automation-recipe-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.automation-recipe-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--gold-soft);
    color: var(--gold-dark);
    flex: 0 0 auto;
}

.automation-recipe-copy {
    flex: 1;
    min-width: 0;
}

.automation-recipe-copy h3 {
    margin: 0 0 4px;
    color: var(--navy);
    font-size: 16px;
}

.automation-recipe-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.automation-recipe-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    margin: 0;
}

.automation-recipe-meta dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.automation-recipe-meta dd {
    margin: 2px 0 0;
    color: var(--navy);
    font-size: 13px;
    font-weight: 650;
}

.automation-recipe-warnings {
    display: grid;
    gap: 6px;
}

.automation-recipe-warnings small {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #9a7720;
    font-size: 12px;
}

.automation-recipe-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.automation-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.automation-status-badge--active {
    background: rgba(15, 122, 77, 0.12);
    color: var(--emerald);
}

.automation-status-badge--paused,
.automation-status-badge--draft {
    background: var(--navy-soft);
    color: var(--navy);
}

.automation-status-badge--needs_wallet,
.automation-status-badge--needs_credits,
.automation-status-badge--template_missing,
.automation-status-badge--failed {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.automation-status-badge--locked {
    background: var(--gold-soft);
    color: var(--gold-dark);
}

.automation-attention-row,
.automation-analytics-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.automation-attention-row:last-child,
.automation-analytics-row:last-child {
    border-bottom: 0;
}

.automation-ok-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(15, 122, 77, 0.08);
    color: var(--emerald);
    font-weight: 650;
}

.automation-wallet-strip {
    display: grid;
    gap: 6px;
    border-top: 1px solid var(--line);
}

.automation-warning {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #9a7720;
}

.automation-plan-grid {
    display: grid;
    gap: 10px;
}

.automation-plan-lock {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px dashed #eadbbd;
    border-radius: 12px;
    background: #fffdf9;
}

.automation-log-table-wrap {
    overflow-x: auto;
}

.automation-log-table {
    min-width: 640px;
}

.automation-metric-pill {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--navy-soft);
    color: var(--navy);
    font-size: 12px;
    font-weight: 750;
}

.automation-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 20, 39, 0.42);
    z-index: 80;
}

.automation-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(980px, 100vw);
    height: 100vh;
    z-index: 90;
    background: var(--white);
    box-shadow: -12px 0 40px rgba(8, 20, 39, 0.18);
    overflow: auto;
}

body.automation-drawer-open {
    overflow: hidden;
}

.automation-drawer-inner {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    min-height: 100%;
}

.automation-drawer-header,
.automation-drawer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.automation-drawer-footer {
    border-bottom: 0;
    border-top: 1px solid var(--line);
}

.automation-drawer-header h3 {
    margin: 0 0 4px;
    color: var(--navy);
}

.automation-drawer-title {
    min-width: 0;
    flex: 1 1 auto;
}

.automation-drawer-header p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.builder-progress {
    display: grid;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    background: #faf8f4;
}

.builder-progress-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.builder-progress-count {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.builder-progress-current {
    color: var(--navy);
    font-size: 15px;
}

.builder-progress-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(13, 27, 58, 0.08);
    overflow: hidden;
}

.builder-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--emerald) 0%, #0d6b4f 100%);
    transition: width 0.24s ease;
}

.builder-step-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.builder-step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--muted);
}

.builder-step-item.active {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}

.builder-step-item.complete {
    border-color: rgba(15, 122, 77, 0.22);
    background: rgba(15, 122, 77, 0.08);
    color: var(--emerald);
}

.builder-step-dot {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 999px;
    background: rgba(13, 27, 58, 0.06);
    font-size: 12px;
    font-weight: 800;
}

.builder-step-item.active .builder-step-dot {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
}

.builder-step-item.complete .builder-step-dot {
    background: rgba(15, 122, 77, 0.14);
    color: var(--emerald);
}

.builder-step-dot svg {
    width: 14px;
    height: 14px;
}

.builder-step-label {
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.automation-drawer-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 18px;
    padding: 18px 20px;
    align-items: start;
}

.automation-drawer-body--no-preview {
    grid-template-columns: 1fr;
}

.automation-builder-form {
    min-width: 0;
}

.automation-builder-preview {
    min-width: 0;
    position: sticky;
    top: 12px;
}

.automation-step-subtitle {
    margin: 18px 0 8px;
    font-size: 15px;
    color: var(--navy);
}

.automation-builder-form h4 {
    margin: 0 0 8px;
    color: var(--navy);
}

.automation-step-copy {
    color: var(--muted);
    font-size: 14px;
}

.automation-step-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--navy-soft);
}

.automation-variables {
    display: grid;
    gap: 8px;
}

.automation-variable-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.automation-variable-chips span {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 650;
}

.automation-preview-layout {
    display: grid;
    gap: 12px;
}

.automation-phone-preview {
    max-width: 100%;
}

.automation-preview-offer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(17, 27, 33, 0.08);
}

.automation-preview-offer strong {
    display: block;
    color: var(--navy);
}

.automation-preview-offer span {
    display: block;
    margin-top: 4px;
    font-size: 13px;
}

.automation-preview-footer {
    display: block;
    margin-top: 10px;
    color: var(--muted) !important;
    text-align: left !important;
    font-size: 11px !important;
}

.automation-cost-card {
    padding: 12px 14px;
    border: 1px solid #eadbbd;
    border-radius: 12px;
    background: #fffdf9;
}

.automation-cost-card p {
    margin: 4px 0 0;
    color: var(--navy);
    font-weight: 700;
}

.automation-cost-card small {
    color: var(--muted);
}

.automation-validation-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.automation-validation-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.automation-validation-row.passed {
    color: var(--emerald);
}

.automation-validation-row.failed {
    color: #b91c1c;
}

.automation-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: grid;
    place-items: center;
    padding: 20px;
}

.automation-preview-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 20, 39, 0.45);
}

.automation-preview-modal-card {
    position: relative;
    width: min(420px, 100%);
    padding: 18px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.automation-preview-modal-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.app-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
}

.app-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 20, 39, 0.5);
    backdrop-filter: blur(2px);
}

.app-confirm-card {
    position: relative;
    width: min(460px, 100%);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
    overflow: hidden;
}

.app-confirm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 0;
}

.app-confirm-header h3 {
    margin: 0;
    color: var(--navy);
    font-size: 20px;
    font-weight: 800;
}

.app-confirm-body {
    padding: 14px 20px 6px;
}

.app-confirm-message {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
}

.app-confirm-detail {
    margin-top: 14px;
}

.app-confirm-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.app-confirm-stats li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fafbfc;
}

.app-confirm-stats span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.app-confirm-stats strong {
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
    text-align: right;
}

.app-confirm-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(234, 179, 8, 0.12);
    color: var(--text);
    font-size: 13px;
    line-height: 1.45;
}

.app-confirm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px 20px;
}

.app-confirm-footer .button {
    min-height: 44px;
    min-width: 120px;
}

@media (max-width: 767px) {
    .app-confirm-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .app-confirm-footer .button {
        width: 100%;
        min-width: 0;
    }
}

.campaign-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 18px;
    align-items: start;
}

.campaign-preview-toggle {
    display: none;
}

.campaign-center .campaign-preview-aside {
    min-width: 0;
}

.campaign-send-section {
    display: grid;
    gap: 12px;
}

.campaign-send-section-label {
    color: var(--navy);
    font-size: 15px;
    font-weight: 750;
}

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

.campaign-send-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 16px 18px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.campaign-send-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.campaign-send-card.is-selected {
    border-color: var(--navy);
    background: linear-gradient(180deg, #fffdf9 0%, var(--gold-soft) 100%);
    box-shadow: 0 8px 22px rgba(13, 27, 58, 0.08);
}

.campaign-send-card-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--navy);
    color: var(--white);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.campaign-send-card-check svg {
    width: 14px;
    height: 14px;
}

.campaign-send-card.is-selected .campaign-send-card-check {
    opacity: 1;
    transform: scale(1);
}

.campaign-send-card-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.campaign-send-card-icon svg {
    width: 20px;
    height: 20px;
}

.campaign-send-card-icon--now {
    background: rgba(13, 27, 58, 0.08);
    color: var(--navy);
}

.campaign-send-card-icon--scheduled {
    background: rgba(212, 175, 55, 0.16);
    color: var(--gold-dark);
}

.campaign-send-card.is-selected .campaign-send-card-icon--now {
    background: var(--navy);
    color: var(--white);
}

.campaign-send-card.is-selected .campaign-send-card-icon--scheduled {
    background: var(--navy);
    color: var(--gold);
}

.campaign-send-card-body {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding-right: 18px;
}

.campaign-send-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.campaign-send-card-head strong {
    color: var(--navy);
    font-size: 16px;
    font-weight: 800;
}

.campaign-send-card-body small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.campaign-send-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--navy-soft);
    color: var(--navy);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.campaign-send-badge--recommended {
    background: var(--gold-soft);
    color: var(--gold-dark);
}

.campaign-send-card.is-selected .campaign-send-badge {
    background: rgba(13, 27, 58, 0.12);
}

.campaign-send-card.is-selected .campaign-send-badge--recommended {
    background: rgba(212, 175, 55, 0.22);
}

.campaign-schedule-fields {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--warm-white);
}

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

.campaign-estimate-section {
    display: grid;
    gap: 10px;
}

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

.campaign-estimate-item {
    padding: 14px 16px;
    border: 1px solid #eadbbd;
    border-radius: 12px;
    background: linear-gradient(180deg, #fffdf9 0%, #faf6ee 100%);
}

.campaign-estimate-label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.campaign-estimate-item strong {
    display: block;
    margin-top: 6px;
    color: var(--navy);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.campaign-estimate-note {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.campaign-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.campaign-form-actions .campaign-action-primary {
    margin-left: auto;
}

.campaign-action-primary.button.gold {
    color: var(--navy);
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.28);
}

.campaign-action-primary.button.gold:hover {
    background: #e0c04a;
    box-shadow: 0 10px 24px rgba(212, 175, 55, 0.34);
}

.campaign-failure-note {
    display: block;
    margin-top: 6px;
    color: var(--danger);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.campaign-error-modal {
    position: fixed;
    inset: 24px;
    z-index: 80;
    max-width: 720px;
    max-height: calc(100vh - 48px);
    margin: auto;
    overflow: auto;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
}

.badge.partially_sent {
    background: #fff4e5;
    color: #9a6700;
    border: 1px solid #f0d098;
}

.campaign-action-primary:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.campaign-action-secondary {
    min-height: 44px;
}

.campaign-table-wrap {
    overflow-x: auto;
}

.campaign-table {
    min-width: 1000px;
}

.campaign-media-cell {
    width: 72px;
}

.campaign-media-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
    display: block;
    background: var(--surface-muted, #f4f4f5);
}

.campaign-media-thumb--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.85rem;
}

.campaign-media-section {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, #fffdf9 0%, #faf8f4 100%);
}

.campaign-media-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.campaign-media-section-head .form-section-title {
    margin: 0 0 4px;
}

.campaign-media-hint {
    margin: 0;
    max-width: 52ch;
}

.campaign-media-format-pill {
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #eadbbd;
    background: var(--white);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.campaign-media-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.campaign-media-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-height: 88px;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.campaign-media-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.campaign-media-card.is-selected {
    border-color: var(--navy);
    background: linear-gradient(180deg, #fffdf9 0%, var(--gold-soft) 100%);
    box-shadow: 0 8px 22px rgba(13, 27, 58, 0.08);
}

.campaign-media-card-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--navy);
    color: var(--white);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.campaign-media-card-check svg {
    width: 12px;
    height: 12px;
}

.campaign-media-card.is-selected .campaign-media-card-check {
    opacity: 1;
    transform: scale(1);
}

.campaign-media-card-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #f4f6fb;
    color: var(--navy);
}

.campaign-media-card-icon svg {
    width: 20px;
    height: 20px;
}

.campaign-media-card-icon--upload {
    background: #eef6ff;
    color: #1d4ed8;
}

.campaign-media-card-icon--library {
    background: #f3efff;
    color: #6d28d9;
}

.campaign-media-card-icon--default {
    background: #fff7ed;
    color: #c2410c;
}

.campaign-media-card-icon--none {
    background: #f4f4f5;
    color: #52525b;
}

.campaign-media-card.is-selected .campaign-media-card-icon--upload {
    background: #dbeafe;
}

.campaign-media-card.is-selected .campaign-media-card-icon--library {
    background: #ede9fe;
}

.campaign-media-card.is-selected .campaign-media-card-icon--default {
    background: #ffedd5;
}

.campaign-media-card-body {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding-right: 18px;
}

.campaign-media-card-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.campaign-media-card-head strong {
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.campaign-media-card-body small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.campaign-media-badge {
    padding: 2px 8px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #15803d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.campaign-media-panel {
    margin-top: 2px;
}

.campaign-media-panel-card {
    padding: 14px;
    border: 1px dashed #d8dee8;
    border-radius: 14px;
    background: var(--white);
}

.campaign-media-dropzone {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.campaign-media-dropzone:hover {
    background: #f8fafc;
}

.campaign-media-dropzone-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eef6ff;
    color: #1d4ed8;
    flex-shrink: 0;
}

.campaign-media-dropzone-icon svg {
    width: 22px;
    height: 22px;
}

.campaign-media-dropzone-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.campaign-media-dropzone-copy strong {
    color: var(--navy);
    font-size: 14px;
    font-weight: 750;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.campaign-media-dropzone-copy small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.campaign-media-dropzone-btn {
    flex-shrink: 0;
    pointer-events: none;
}

.campaign-media-info-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-style: solid;
}

.campaign-media-info-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #ecfdf3;
    color: #15803d;
    flex-shrink: 0;
}

.campaign-media-info-icon svg {
    width: 20px;
    height: 20px;
}

.campaign-media-info-card strong {
    display: block;
    color: var(--navy);
    font-size: 14px;
    margin-bottom: 4px;
}

.campaign-media-info-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.campaign-media-thumb-preview {
    margin-top: 12px;
}

.campaign-media-preview-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fafbfc;
}

.campaign-media-thumb-image {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    border: 1px solid var(--line);
    object-fit: cover;
    flex-shrink: 0;
}

.campaign-media-preview-meta {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.campaign-media-preview-meta strong {
    color: var(--navy);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.campaign-media-preview-meta small {
    color: var(--muted);
    font-size: 12px;
}

.campaign-media-warning {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(234, 179, 8, 0.12);
    color: var(--text);
    font-size: 0.92rem;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.campaign-media-warning.hidden {
    display: none;
}

.chat-bubble-header-image {
    margin: -10px -12px 10px;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.chat-bubble-header-image img {
    display: block;
    width: 100%;
    max-height: 180px;
    object-fit: cover;
}

.campaign-preview-media-warning {
    margin-bottom: 12px;
}

.campaign-row-actions {
    flex-wrap: wrap;
}

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

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

.chart-card h3 {
    margin-bottom: 6px;
    font-size: 19px;
}

.chart-card > p {
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 14px;
}

.metric-bars {
    display: grid;
    gap: 18px;
}

.metric-row {
    display: grid;
    gap: 7px;
}

.metric-label {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.metric-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--slate-soft);
}

.metric-fill {
    height: 100%;
    border-radius: inherit;
    background: var(--navy);
}

.metric-fill.gold {
    background: var(--gold);
}

.metric-fill.whatsapp {
    background: var(--emerald);
}

.settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 18px;
}

.billing-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 28px;
    border: 1px solid #e3d5b6;
    border-radius: 16px;
    background: var(--gold-soft);
}

.billing-hero h2 {
    margin-bottom: 7px;
    font-size: 26px;
}

.billing-hero p {
    margin-bottom: 0;
    color: #6f6044;
}

.limit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.subscription-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
}

.subscription-banner p {
    margin: 4px 0 0;
    font-size: 14px;
}

.subscription-banner--trial {
    background: #fff8e8;
    border-color: #e3d5b6;
}

.subscription-banner--warning {
    background: #fff4e8;
    border-color: #f0c899;
}

.subscription-banner--locked {
    background: #fff1f1;
    border-color: #efb8b8;
}

.subscription-lock-card {
    margin-bottom: 18px;
    border-color: #efb8b8;
}

.billing-plan-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.limit-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
}

.limit-card strong,
.limit-card span {
    display: block;
}

.limit-card strong {
    margin-bottom: 5px;
    font-size: 24px;
}

.limit-card span {
    color: var(--muted);
    font-size: 14px;
}

.mobile-bottom-nav {
    display: none;
}

.mobile-app-header {
    display: none;
}

.mobile-header-bell {
    flex-shrink: 0;
}

.topbar-bell-desktop {
    display: block;
}

@media (min-width: 1025px) {
    .mobile-header-bell {
        display: none;
    }
}

@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 24px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-grid .brand-lockup {
        align-items: center;
    }

    .footer-brand-lockup {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }

    .footer-brand-mark {
        width: 84px;
        height: 84px;
        border-radius: 20px;
    }

    .footer-brand-text,
    .footer-brand-tagline {
        text-align: center;
    }

    .footer-copy {
        max-width: 36ch;
        margin-top: 12px;
        text-align: center;
    }

    .footer-copy-site {
        margin-top: 4px;
    }

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

    .feature-grid--bento > .feature-card:last-child,
    .feature-card--wide,
    .feature-card:not(.feature-card--wide) {
        grid-column: auto;
    }
}

@media (max-width: 1080px) {
    :root {
        --sidebar: 240px;
    }

    .public-links {
        gap: 16px;
    }

    .public-links a:nth-child(5),
    .public-links a:nth-child(6) {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero-copy {
        max-width: none;
        text-align: center;
        margin: 0 auto;
    }

    .hero-copy h1 {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-copy p,
    .hero-trust,
    .hero-actions {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-copy .hero-kicker {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-media {
        min-height: 470px;
        max-width: 460px;
        margin: 0 auto;
    }

    .hero-float-card--stats {
        left: 0;
    }

    .hero-float-card--messages {
        right: 0;
    }

    .section-split,
    .section-split--reverse,
    .how-layout,
    .revenue-showcase,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .section-split--reverse {
        direction: ltr;
    }

    .problem-visual {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        min-height: 0;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .problem-visual .visual-card,
    .problem-visual .visual-stat {
        position: static;
        width: 100%;
        max-width: none;
    }

    .problem-visual .visual-stat {
        order: 1;
    }

    .problem-visual .visual-card--alert {
        order: 2;
    }

    .problem-visual .visual-card--calendar {
        order: 3;
    }

    .visual-scene--problem-art {
        display: none;
    }

    .section-visual.problem-visual {
        min-height: 0;
    }

    .section-visual {
        min-height: 320px;
        max-width: 520px;
        margin: 0 auto;
    }

    .how-layout {
        gap: 22px;
    }

    .feature-grid--bento > .feature-card:last-child,
    .feature-card--wide,
    .feature-card:not(.feature-card--wide) {
        grid-column: auto;
    }

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

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }

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

    .content-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 60;
        width: min(300px, 88vw);
        height: 100vh;
        transform: translateX(-105%);
        transition: transform 0.28s ease;
        box-shadow: var(--shadow-lg);
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 55;
        background: rgba(13, 27, 58, 0.42);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.24s ease;
    }

    body.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar-close {
        display: grid;
        place-items: center;
        position: absolute;
        top: 16px;
        right: 14px;
        width: 40px;
        height: 40px;
    }

    .mobile-app-header {
        min-height: 70px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 18px;
        border-bottom: 1px solid var(--line);
        background: var(--white);
    }

    .mobile-app-header .brand-lockup small {
        display: none;
    }

    .mobile-app-header .brand-lockup img {
        width: clamp(120px, 28vw, 168px);
    }

    .mobile-header-start {
        min-width: 0;
        flex: 1 1 auto;
    }

    .app-main {
        padding: 0 18px 104px;
    }

    .topbar-actions .branch-chip {
        display: none;
    }

    .mobile-bottom-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 45;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 4px;
        padding: 8px 8px max(8px, env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.07);
        backdrop-filter: blur(12px);
    }

    .mobile-nav-item {
        min-width: 0;
        min-height: 56px;
        display: grid;
        place-items: center;
        align-content: center;
        gap: 4px;
        border: 0;
        border-radius: 12px;
        background: transparent;
        color: var(--muted);
        cursor: pointer;
        font-size: 11px;
        font-weight: 750;
        padding: 6px 4px;
    }

    .mobile-nav-item svg {
        width: 22px;
        height: 22px;
    }

    .mobile-nav-item.active {
        background: var(--gold-soft);
        color: var(--navy);
    }

    .mobile-nav-item.active svg {
        color: var(--gold);
    }

    .mobile-nav-item.prominent {
        min-height: 62px;
        margin-top: -14px;
        border-radius: 16px;
        background: var(--emerald);
        color: var(--white);
        box-shadow: 0 10px 24px rgba(15, 122, 77, 0.24);
    }

    .mobile-nav-item.prominent svg {
        width: 26px;
        height: 26px;
        color: var(--white);
    }

    .mobile-nav-item.prominent span {
        color: var(--white);
        font-size: 11px;
    }

    .mobile-nav-item.prominent.active {
        background: var(--emerald-hover);
    }

    .campaign-layout {
        grid-template-columns: 1fr;
    }

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

    .content-grid,
    .settings-grid,
    .report-grid {
        grid-template-columns: 1fr;
    }
}

body.sidebar-open {
    overflow: hidden;
}

@media (max-width: 860px) {
    .public-links {
        display: none;
    }

    html {
        scroll-padding-top: 20px;
    }

    .public-header {
        padding: 0;
    }

    .public-nav {
        position: relative;
        width: min(100% - 24px, 1120px);
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
    }

    .public-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: var(--white);
        color: var(--navy);
        box-shadow: var(--shadow);
        cursor: pointer;
    }

    .public-menu-toggle svg {
        width: 22px;
        height: 22px;
    }

    .public-mobile-menu:not([hidden]) {
        display: grid;
        gap: 4px;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        z-index: 70;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: var(--white);
        box-shadow: var(--shadow-lg);
    }

    .public-mobile-menu a {
        padding: 13px 14px;
        border-radius: 10px;
        color: var(--navy);
        font-size: 16px;
        font-weight: 700;
        text-decoration: none;
    }

    .public-mobile-menu a:hover {
        background: var(--cream-hover);
    }

    .public-mobile-menu a.button {
        margin-top: 4px;
        color: var(--white);
        text-align: center;
        justify-content: center;
    }

    .public-nav > a:first-child {
        flex: 1 1 auto;
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 0;
    }

    .public-nav .brand-lockup {
        --public-logo-height: clamp(56px, 16vw, 80px);
        display: inline-flex;
        justify-content: center;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .public-nav .brand-lockup img {
        display: block;
        width: min(320px, 88vw);
        max-width: min(320px, 88vw);
        max-height: var(--public-logo-height);
        height: auto;
        margin: 0 auto;
        padding: 0;
        object-fit: contain;
        object-position: center center;
    }

    .brand-identity-card,
    .dedicated-offer-stats {
        grid-template-columns: 1fr;
    }

    .brand-identity-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .brand-identity-mark img {
        margin: 0 auto;
        object-position: center center;
    }

    .brand-identity-copy .check-list {
        text-align: left;
    }

    .public-actions {
        display: none;
    }

    .public-hero {
        min-height: auto;
        padding-top: 8px;
        padding-bottom: 48px;
    }

    .hero-copy {
        padding-top: 0;
    }

    .hero-bg-image {
        object-position: 72% center;
    }

    .hero-bg-gradient {
        background:
            linear-gradient(180deg, rgba(250, 247, 242, 0.94) 0%, rgba(250, 247, 242, 0.82) 42%, rgba(250, 247, 242, 0.72) 100%);
    }

    .hero-copy h1 {
        font-size: clamp(38px, 9vw, 52px);
    }

    .hero-media {
        min-height: 430px;
    }

    .hero-float-card {
        padding: 10px 12px;
    }

    .hero-float-card strong {
        font-size: 18px;
    }

    .problem-grid,
    .pricing-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .feature-grid--bento {
        grid-template-columns: 1fr;
    }

    .how-grid,
    .split-story,
    .revenue-showcase,
    .contact-grid,
    .section-split,
    .how-layout {
        grid-template-columns: 1fr;
    }

    .visual-scene--problem-art {
        display: none;
    }

    .problem-visual {
        min-height: 0;
    }

    .section-visual.problem-visual {
        min-height: 0;
        max-width: none;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-grid .brand-lockup {
        align-items: center;
    }

    .footer-brand-lockup {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }

    .footer-brand-mark {
        width: 84px;
        height: 84px;
        border-radius: 20px;
    }

    .footer-brand-text {
        text-align: center;
    }

    .footer-brand-tagline {
        text-align: center;
    }

    .footer-copy {
        max-width: 36ch;
        margin-top: 12px;
        text-align: center;
    }

    .footer-copy-site {
        margin-top: 4px;
    }

    .footer-bottom {
        text-align: center;
    }

    .auth-page {
        grid-template-columns: minmax(290px, 0.7fr) minmax(450px, 1.3fr);
    }

    .auth-visual {
        padding: 32px;
    }

    .auth-visual .brand-lockup {
        left: 28px;
    }

    .app-shell {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 60;
        width: min(300px, 88vw);
        height: 100vh;
        transform: translateX(-105%);
        transition: transform 0.28s ease;
        box-shadow: var(--shadow-lg);
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 55;
        background: rgba(13, 27, 58, 0.42);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.24s ease;
    }

    body.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar-close {
        display: grid;
        place-items: center;
        position: absolute;
        top: 16px;
        right: 14px;
        width: 40px;
        height: 40px;
    }

    .mobile-app-header {
        min-height: 70px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 12px 18px;
        border-bottom: 1px solid var(--line);
        background: var(--white);
    }

    .mobile-app-header .brand-lockup small {
        display: none;
    }

    .mobile-app-header .brand-lockup img {
        width: 168px;
    }

    .app-main {
        padding: 0 18px 104px;
    }

    .app-topbar {
        min-height: 84px;
    }

    .topbar-actions .branch-chip {
        display: none;
    }

    .mobile-bottom-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 45;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 4px;
        padding: 8px 8px max(8px, env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.07);
        backdrop-filter: blur(12px);
    }

    .mobile-nav-item {
        min-width: 0;
        min-height: 56px;
        display: grid;
        place-items: center;
        align-content: center;
        gap: 4px;
        border: 0;
        border-radius: 12px;
        background: transparent;
        color: var(--muted);
        cursor: pointer;
        font-size: 11px;
        font-weight: 750;
        padding: 6px 4px;
    }

    .mobile-nav-item svg {
        width: 22px;
        height: 22px;
    }

    .mobile-nav-item.active {
        background: var(--gold-soft);
        color: var(--navy);
    }

    .mobile-nav-item.active svg {
        color: var(--gold);
    }

    .mobile-nav-item.prominent {
        min-height: 62px;
        margin-top: -14px;
        border-radius: 16px;
        background: var(--emerald);
        color: var(--white);
        box-shadow: 0 10px 24px rgba(15, 122, 77, 0.24);
    }

    .mobile-nav-item.prominent svg {
        width: 26px;
        height: 26px;
        color: var(--white);
    }

    .mobile-nav-item.prominent span {
        color: var(--white);
        font-size: 11px;
    }

    .mobile-nav-item.prominent.active {
        background: var(--emerald-hover);
    }

    body.tab-smart-entry .app-topbar,
    body.tab-dashboard.compact-ui .app-topbar,
    body.compact-ui .app-topbar {
        display: none;
    }

    body.tab-smart-entry .app-main,
    body.tab-dashboard.compact-ui .app-main,
    body.compact-ui .app-main {
        padding-top: 8px;
    }

    body.tab-smart-entry .content-area,
    body.tab-dashboard.compact-ui .content-area,
    body.compact-ui .content-area {
        padding-top: 8px;
    }

    body.tab-smart-entry .smart-entry-compact {
        gap: 10px;
    }

    .smart-entry-compact .smart-entry-mobile-toolbar {
        position: sticky;
        top: 0;
        z-index: 28;
        padding: 12px 14px;
        background: var(--white);
    }

    .smart-entry-empty-state {
        padding: 22px 16px;
    }

    .mobile-header-bell {
        flex-shrink: 0;
    }

    .mobile-header-bell .notification-dropdown {
        left: 0;
        right: auto;
    }

    .topbar-bell-desktop {
        display: none;
    }

    .dashboard-welcome {
        margin-bottom: 10px;
    }

    .dashboard-welcome h2 {
        margin: 0;
        font-size: 20px;
    }

    .dashboard-smart-entry {
        margin-bottom: 12px;
    }

    .dashboard-quick-actions .panel-body {
        padding: 12px;
    }

    .dashboard-quick-actions {
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .dashboard-quick-actions .action-grid {
        gap: 10px;
    }

    .stats-grid {
        margin-bottom: 12px;
    }

    .content-grid {
        margin-top: 0;
        gap: 12px;
    }

    .sticky-smart-search {
        position: sticky;
        top: 0;
        z-index: 25;
        margin-bottom: 12px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    }

    .smart-entry-compact .smart-search-form-compact {
        padding: 0;
    }

    .smart-search-form {
        gap: 10px;
        padding: 12px;
    }

    .smart-entry-hero {
        border-color: var(--emerald-ring);
        background: var(--white);
    }

    .smart-entry-form-head p {
        font-size: 14px;
    }

    .smart-phone-field {
        flex: none;
        width: 100%;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }

    .smart-phone-field input {
        min-height: 54px;
        font-size: 18px;
        letter-spacing: 0.02em;
    }

    .smart-search-form .smart-search-button {
        min-height: 54px;
    }

    .smart-search-row {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .smart-search-row .smart-search-button {
        width: 100%;
        min-height: 54px;
    }

    .activity-tile {
        min-height: 64px;
        padding: 16px;
    }

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

    .dashboard-smart-entry .smart-search-actions .button.secondary {
        display: none;
    }

    .page-intro .button,
    .page-intro .filter-row,
    .filter-banner .button {
        width: 100%;
    }

    .table-action {
        min-width: 48px;
        min-height: 48px;
    }

    .mobile-app-header {
        min-height: 58px;
        padding: 10px 14px;
    }

    .mobile-app-header .brand-lockup img {
        width: 140px;
    }

    .app-main {
        padding: 0 14px 108px;
    }

    .smart-entry-grid .panel-header,
    .smart-customer-card .panel-header,
    .smart-timeline-panel .panel-header {
        min-height: auto;
        padding: 14px 16px;
    }

    .smart-entry-grid .panel-body,
    .smart-customer-card .panel-body,
    .smart-timeline-panel .panel-body {
        padding: 14px 16px;
    }

    .smart-insights,
    .smart-suggestions {
        padding: 0 16px 14px;
    }

    .smart-entry-mobile-head {
        padding: 0 0 4px;
        background: transparent;
    }

    .smart-mode-toggle {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .smart-mode-btn {
        padding: 10px 12px;
        font-size: 14px;
    }

    .smart-entry-mobile-rush--active .smart-rush-actions {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-bottom: 0;
    }

    .smart-rush-actions {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-bottom: 8px;
    }

    .smart-rush-action {
        min-height: 58px;
        font-size: 16px;
    }

    .smart-entry-mobile-rush--active .smart-rush-actions-wrap {
        position: static;
        bottom: auto;
        z-index: auto;
        padding-top: 8px;
        background: var(--cream);
    }

    .smart-rush-actions-wrap {
        position: static;
        bottom: auto;
        z-index: auto;
        padding-top: 4px;
        background: transparent;
    }

    .smart-rush-metrics,
    .smart-full-metrics {
        grid-template-columns: 1fr;
    }

    .smart-rush-reward-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .smart-rush-reward-banner .button {
        width: 100%;
    }

    .smart-birthday-prompt {
        flex-direction: column;
        align-items: stretch;
    }

    .smart-birthday-prompt-actions {
        width: 100%;
    }

    .smart-birthday-prompt-actions .button {
        flex: 1 1 auto;
    }

    .smart-details-drawer {
        padding: 0;
    }

    .smart-details-drawer-inner {
        width: 100%;
        border-radius: 16px 16px 0 0;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 16px;
    }

    .public-header {
        padding: 0;
    }

    .public-nav .brand-lockup {
        --public-logo-height: clamp(52px, 15vw, 72px);
    }

    .public-nav .brand-lockup img {
        width: min(300px, 92vw);
        max-width: min(300px, 92vw);
    }

    .public-actions {
        display: none;
    }

    .brand-lockup small {
        display: none;
    }

    .hero-inner,
    .section-inner {
        width: min(100% - 28px, 1120px);
    }

    .public-actions .button.secondary {
        display: none;
    }

    .mobile-app-header .brand-lockup img {
        max-height: 48px;
        max-width: min(220px, 58vw);
        width: auto;
    }

    .public-nav {
        width: min(100% - 20px, 1120px);
        justify-content: center;
    }

    .public-hero {
        padding-top: 4px;
        padding-bottom: 40px;
    }

    .hero-copy h1 {
        font-size: clamp(34px, 11vw, 46px);
    }

    .hero-copy p {
        margin-bottom: 20px;
        font-size: 16px;
        line-height: 1.55;
    }

    .hero-actions .button {
        flex: 1 1 150px;
        padding-right: 10px;
        padding-left: 10px;
        font-size: 14px;
    }

    .hero-trust {
        display: none;
    }

    .hero-media {
        min-height: 390px;
    }

    .hero-float-card--stats {
        top: 0;
        left: -2%;
    }

    .hero-float-card--messages {
        right: -2%;
        bottom: 18%;
    }

    .hero-automation-strip span:nth-child(4) {
        display: none;
    }

    .public-section {
        padding: 68px 0;
    }

    .section-heading {
        margin-bottom: 28px;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .section-heading p {
        font-size: 17px;
    }

    .problem-grid,
    .feature-grid,
    .feature-grid--bento,
    .pricing-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .feature-grid--bento > .feature-card:last-child,
    .feature-card--wide,
    .feature-card:not(.feature-card--wide) {
        grid-column: auto;
    }

    .pricing-card.featured {
        transform: none;
    }

    .public-card,
    .feature-card,
    .testimonial-card,
    .pricing-card {
        padding: 22px;
    }

    .split-story,
    .revenue-showcase,
    .contact-grid,
    .section-split,
    .how-layout {
        gap: 36px;
    }

    .cta-band {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        width: 100%;
    }

    .cta-band .button,
    .cta-actions .button {
        width: 100%;
    }

    .message-preview {
        padding: 18px;
    }

    .cta-band {
        grid-template-columns: 1fr;
    }

    .cta-band .button {
        width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .auth-page {
        display: block;
    }

    .auth-visual {
        min-height: 220px;
        align-content: end;
        padding: 24px;
        background-position: 66% 38%;
    }

    .auth-visual .brand-lockup {
        top: 20px;
        left: 20px;
    }

    .auth-visual-content h1 {
        margin-bottom: 0;
        font-size: 30px;
    }

    .auth-visual-content p {
        display: none;
    }

    .auth-main {
        padding: 32px 18px 50px;
    }

    .auth-back {
        position: static;
        margin-bottom: 22px;
    }

    .auth-panel h2 {
        font-size: 30px;
    }

    .form-grid,
    .demo-actions {
        grid-template-columns: 1fr;
    }

    .demo-actions {
        gap: 7px;
    }

    .app-main {
        padding-right: 14px;
        padding-left: 14px;
    }

    .app-topbar {
        min-height: 0;
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
        gap: 12px;
        padding: 14px 0;
    }

    .app-topbar-copy {
        min-width: 0;
        flex: 1 1 auto;
    }

    .app-topbar h1 {
        font-size: clamp(24px, 6.5vw, 28px);
        margin-bottom: 0;
        line-height: 1.15;
    }

    .app-topbar p,
    .topbar-actions .role-chip {
        display: none;
    }

    .topbar-actions {
        flex-shrink: 0;
        margin-left: auto;
    }

    .content-area {
        padding-top: 20px;
    }

    .dashboard-welcome {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 8px;
    }

    .dashboard-welcome .button {
        width: 100%;
    }

    .dashboard-welcome p {
        display: none;
    }

    .stats-grid,
    .stats-grid--automation,
    .automation-grid,
    .automation-recipe-grid,
    .automation-panel-grid,
    .automation-panel-grid--logs,
    .automation-drawer-body,
    .branch-grid,
    .plan-grid,
    .report-grid,
    .limit-grid {
        grid-template-columns: 1fr;
    }

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

    .automation-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .automation-drawer {
        width: 100vw;
    }

    .builder-progress {
        padding: 12px 14px;
    }

    .builder-step-item {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 8px 6px;
        text-align: center;
    }

    .builder-step-label {
        font-size: 11px;
        white-space: normal;
        line-height: 1.2;
    }

    .automation-drawer-header,
    .automation-drawer-footer {
        padding: 14px 16px;
    }

    .automation-drawer-body {
        padding: 14px 16px 18px;
    }

    .automation-drawer-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .automation-drawer-footer .button {
        width: 100%;
        min-height: 44px;
    }


    .content-grid {
        gap: 14px;
        margin-top: 14px;
    }

    .panel-header,
    .page-intro,
    .billing-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .panel-header,
    .panel-body,
    .form-section {
        padding-right: 17px;
        padding-left: 17px;
    }

    .action-grid {
        grid-template-columns: 1fr;
    }

    .smart-entry-grid,
    .activity-grid {
        grid-template-columns: 1fr;
    }

    .smart-search-form {
        padding: 14px;
        gap: 10px;
    }

    .action-tile {
        min-height: 84px;
    }

    .toolbar,
    .filter-row {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-row select,
    .search-field {
        width: 100%;
    }

    table.responsive-table thead {
        display: none;
    }

    table.responsive-table,
    table.responsive-table tbody,
    table.responsive-table tr,
    table.responsive-table td {
        display: block;
        width: 100%;
    }

    table.responsive-table tr {
        padding: 14px 17px;
        border-bottom: 1px solid var(--line);
    }

    table.responsive-table tr:last-child {
        border-bottom: 0;
    }

    table.responsive-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 6px 0;
        border: 0;
        text-align: right;
    }

    table.responsive-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 13px;
        font-weight: 800;
        text-align: left;
    }

    table.responsive-table td.customer-cell {
        display: block;
        padding-bottom: 10px;
        text-align: left;
    }

    table.responsive-table td.customer-cell::before {
        display: none;
    }

    .record-row,
    .activity-row {
        grid-template-columns: 1fr;
    }

    .form-actions .button {
        width: 100%;
    }
}

@media (min-width: 681px) and (max-width: 1080px) {
    .activity-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .smart-entry-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

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

    .app-main {
        padding-bottom: 112px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .button:hover,
    .action-tile:hover,
    .activity-tile:hover,
    .mobile-nav-item:hover {
        transform: none;
        box-shadow: none;
    }

    .activity-tile:active,
    .action-tile:active,
    .button:active:not(.ghost),
    .mobile-nav-item:active {
        transform: scale(0.98);
        opacity: 0.94;
    }

    .mobile-nav-item.prominent:active {
        transform: translateY(-12px) scale(0.98);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.legal-page-body {
    background: var(--warm-white);
    color: var(--ink);
}

.public-static {
    min-height: 100vh;
    background: var(--warm-white);
    color: var(--ink);
}

.public-static-header {
    z-index: 40;
    background: rgba(250, 247, 242, 0.98);
    border-bottom: 1px solid var(--line);
}

.public-static-header-inner,
.public-static-footer-inner,
.public-static-inner {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.public-static-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
}

.public-static-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.public-static-brand img {
    display: block;
    width: auto;
    max-width: min(280px, 46vw);
    max-height: 64px;
    height: auto;
    object-fit: contain;
}

.public-static-nav,
.public-static-footer-nav,
.public-static-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 18px;
}

.public-static-nav a,
.public-static-footer-nav a,
.public-static-footer-legal a {
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.public-static-nav a:hover,
.public-static-nav a[aria-current="page"],
.public-static-footer-nav a:hover,
.public-static-footer-legal a:hover {
    color: var(--emerald);
}

.public-static-footer-legal {
    justify-content: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.public-static-footer-legal strong {
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 14px;
}

.public-static-main {
    display: block;
}

.public-static-hero {
    padding: clamp(40px, 8vw, 72px) 0 clamp(28px, 5vw, 48px);
}

.public-static-hero h1 {
    margin: 0 0 18px;
    color: var(--navy);
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.public-static-lead {
    margin: 0 0 16px;
    color: var(--navy);
    font-size: clamp(18px, 2.4vw, 22px);
    font-weight: 700;
    line-height: 1.5;
    max-width: 62ch;
}

.public-static-hero p,
.public-static-section p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
    max-width: 68ch;
}

.public-static-points,
.public-static-contact-list,
.public-static-legal-links {
    margin: 18px 0 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.7;
}

.public-static-contact-line {
    margin-top: 20px;
    font-weight: 700;
    color: var(--navy);
}

.public-static-section {
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.public-static-section--alt {
    background: rgba(255, 255, 255, 0.72);
}

.public-static-section h2 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: clamp(24px, 3vw, 32px);
}

.public-static-footer {
    margin-top: 24px;
    padding: 28px 0 36px;
    border-top: 1px solid var(--line);
    background: var(--navy-dark);
    color: #dce5e1;
}

.public-static-footer-brand,
.public-static-footer-copy,
.public-static-footer-contact {
    margin: 0 0 8px;
    text-align: center;
}

.public-static-footer-brand {
    color: #fff;
    font-size: 18px;
}

.public-static-footer-nav {
    justify-content: center;
    margin-top: 14px;
}

.public-static-footer-nav a {
    color: #b7c7c2;
}

.public-static-footer a {
    color: #fff;
}

@media (max-width: 860px) {
    .public-static-header-inner {
        flex-direction: column;
        align-items: center;
        padding: 12px 0;
    }

    .public-static-nav {
        justify-content: center;
    }

    .public-static-brand img {
        max-width: min(300px, 88vw);
        max-height: 56px;
    }

    .public-static-hero h1,
    .public-static-lead,
    .public-static-hero p,
    .public-static-section p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .public-static-points,
    .public-static-contact-list,
    .public-static-legal-links {
        text-align: left;
        max-width: 36rem;
        margin-left: auto;
        margin-right: auto;
    }
}

.legal-header {
    z-index: 40;
    background: rgba(250, 247, 242, 0.98);
    border-bottom: 1px solid var(--line);
}

.legal-header-inner {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.legal-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--navy);
}

.legal-brand img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(13, 27, 58, 0.12);
}

.legal-brand strong {
    display: block;
    font-size: 17px;
    line-height: 1.2;
}

.legal-brand small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.legal-header-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 18px;
}

.legal-header-nav a {
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.legal-header-nav a:hover,
.legal-header-nav a[aria-current="page"] {
    color: var(--emerald);
}

.legal-page {
    padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 88px);
}

.legal-card {
    width: min(860px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(28px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.legal-eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-card h1 {
    margin-bottom: 10px;
    color: var(--navy);
    font-size: clamp(34px, 5vw, 44px);
    line-height: 1.12;
}

.legal-updated {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.legal-intro {
    margin-bottom: 14px;
    color: #334155;
    font-size: 18px;
    line-height: 1.65;
}

.legal-note {
    margin-bottom: 28px;
    padding: 14px 16px;
    border-left: 3px solid var(--gold);
    border-radius: 12px;
    background: var(--gold-soft);
    color: #5f5138;
    font-size: 14px;
    line-height: 1.6;
}

.legal-section {
    padding-top: 28px;
    margin-top: 28px;
    border-top: 1px solid var(--line);
}

.legal-section--highlight {
    padding: 22px 20px;
    border: 1px solid #e3d5b6;
    border-radius: 16px;
    background: linear-gradient(180deg, #fffdf8 0%, #faf7f2 100%);
}

.legal-section h2 {
    margin-bottom: 12px;
    color: var(--navy);
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.25;
}

.legal-section p,
.legal-section li {
    color: #475569;
    font-size: 16px;
    line-height: 1.7;
}

.legal-section p + p,
.legal-section p + ul,
.legal-section ul + p {
    margin-top: 12px;
}

.legal-section ul {
    padding-left: 22px;
}

.legal-section li + li {
    margin-top: 8px;
}

.legal-section a,
.legal-contact-list a,
.legal-footer-links a,
.legal-inline-links a {
    color: var(--emerald);
    font-weight: 700;
    text-decoration: none;
}

.legal-section a:hover,
.legal-contact-list a:hover,
.legal-footer-links a:hover,
.legal-inline-links a:hover {
    color: var(--emerald-hover);
    text-decoration: underline;
}

.legal-contact-list {
    list-style: none;
    padding-left: 0;
}

.legal-contact-list li + li {
    margin-top: 10px;
}

.legal-disclaimer {
    margin-top: 34px;
    padding: 18px 20px;
    border: 1px solid rgba(13, 27, 58, 0.1);
    border-radius: 16px;
    background: #f8fafc;
}

.legal-disclaimer p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.65;
}

.legal-site-footer {
    padding: 24px 0 34px;
    background: var(--navy-dark);
    color: #b8c5c0;
}

.legal-site-footer-inner {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.legal-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
}

.legal-footer-links a {
    color: #d7e3de;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.legal-footer-links a:hover {
    color: var(--white);
}

.legal-footer-meta {
    margin: 0;
    font-size: 13px;
}

.legal-inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 14px;
}

.auth-legal-footer,
.app-legal-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.auth-legal-footer .legal-footer-links,
.app-legal-footer .legal-footer-links,
.public-footer-legal .legal-footer-links {
    justify-content: flex-start;
}

.auth-legal-footer .legal-footer-links a,
.app-legal-footer .legal-footer-links a,
.public-footer-legal .legal-footer-links a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.auth-legal-footer .legal-footer-links a:hover,
.app-legal-footer .legal-footer-links a:hover,
.public-footer-legal .legal-footer-links a:hover {
    color: var(--emerald);
}

.public-footer-legal {
    padding-top: 18px;
    margin-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.public-footer-legal .legal-footer-links a {
    color: #b8c5c0;
}

.public-footer-legal .legal-footer-links a:hover {
    color: var(--white);
}

.sidebar-legal-links {
    display: none !important;
}

.sidebar-legal-links a {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.sidebar-legal-links a:hover {
    color: var(--emerald);
}

@media (max-width: 680px) {
    .legal-header-inner {
        width: min(100% - 28px, 1120px);
        flex-direction: column;
        align-items: flex-start;
    }

    .legal-header-nav {
        justify-content: flex-start;
    }

    .legal-card {
        width: min(100% - 28px, 860px);
        padding: 24px 20px;
    }

    .legal-intro {
        font-size: 16px;
    }

    .auth-legal-footer .legal-footer-links,
    .app-legal-footer .legal-footer-links,
    .public-footer-legal .legal-footer-links {
        justify-content: center;
    }
}

.smart-customer-stack {
    display: grid;
    gap: 16px;
}

.loyalty-panel .panel-body {
    display: grid;
    gap: 14px;
}

.loyalty-progress {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: var(--slate-soft);
    overflow: hidden;
}

.loyalty-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--emerald), #16a34a);
}

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

.loyalty-summary-grid strong {
    display: block;
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}

.loyalty-summary-grid small {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    color: var(--ink);
    font-weight: 700;
}

.loyalty-helper {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.loyalty-example-card {
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--emerald-soft);
    border: 1px solid rgba(15, 122, 77, 0.12);
}

.loyalty-example-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.loyalty-page {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.loyalty-program-panel {
    width: 100%;
}

.loyalty-program-header {
    align-items: flex-start;
}

.loyalty-program-form {
    width: 100%;
}

.loyalty-form-grid {
    gap: 16px 20px;
}

.loyalty-toggle-row {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--slate-soft);
}

.loyalty-options-stack {
    display: grid;
    gap: 12px;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    color: #334155;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.45;
    cursor: pointer;
}

.checkbox-row input {
    width: 20px;
    min-width: 20px;
    height: 20px;
    min-height: 20px;
    margin-top: 2px;
    padding: 0;
    accent-color: var(--emerald);
    cursor: pointer;
}

.loyalty-form-actions {
    display: flex;
    justify-content: flex-start;
    padding-top: 4px;
}

.loyalty-form-actions .button {
    min-width: 220px;
}

.loyalty-program-form textarea {
    min-height: 110px;
    resize: vertical;
}

@media (max-width: 1200px) {
    .loyalty-page {
        max-width: 100%;
    }
}

@media (max-width: 860px) {
    body.tab-loyalty .app-topbar p {
        display: block;
        font-size: 14px;
        line-height: 1.45;
    }

    .loyalty-program-header,
    .loyalty-program-panel .panel-body {
        padding-right: 16px;
        padding-left: 16px;
    }

    .loyalty-form-grid {
        grid-template-columns: 1fr;
    }

    .loyalty-form-actions {
        justify-content: stretch;
    }

    .loyalty-form-actions .button {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 680px) {
    .loyalty-summary-grid {
        grid-template-columns: 1fr;
    }

    .loyalty-toggle-row,
    .loyalty-example-card {
        padding: 12px 14px;
    }

    .checkbox-row {
        font-size: 14px;
    }

    .loyalty-program-header h3 {
        font-size: 18px;
    }
}

.template-mapping-list {
    gap: 16px;
}

.template-mapping-row {
    display: grid;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
}

.template-mapping-main {
    flex-wrap: wrap;
    gap: 10px;
}

.template-mapping-meta-input {
    max-width: 240px;
}

.template-mapping-status-input {
    max-width: 130px;
}

.template-mapping-actions {
    display: grid;
    gap: 10px;
    padding-top: 4px;
    border-top: 1px dashed var(--line);
}

.template-mapping-url-row {
    display: grid;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--slate-soft);
}

.template-mapping-url-grid {
    margin-top: 2px;
}

.template-mapping-toggle {
    font-size: 14px;
    font-weight: 600;
}

.template-mapping-actions .field-hint code {
    font-size: 12px;
}

.payment-details-card {
    margin: 8px 0 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--gold-soft);
}

.payment-details-list {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
}

.payment-details-list div {
    display: grid;
    grid-template-columns: minmax(110px, 130px) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.payment-details-list dt {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.payment-details-list dd {
    margin: 0;
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.payment-details-note,
.payment-details-empty {
    color: var(--muted);
    font-size: 0.92rem;
}

.message-credits-card .panel-body {
    display: grid;
    gap: 14px;
}

.message-credits-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.message-credits-stats div {
    display: grid;
    gap: 4px;
}

.message-credits-stats span {
    color: var(--muted);
    font-size: 0.85rem;
}

.message-credits-stats strong {
    font-size: 1.15rem;
}

.message-credits-progress {
    height: 10px;
    border-radius: 999px;
    background: var(--navy-soft);
    overflow: hidden;
}

.message-credits-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold), var(--emerald));
    transition: width 0.25s ease;
}

.message-credits-reset {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.extra-message-packages {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 720px) {
    .message-credits-stats {
        grid-template-columns: 1fr;
    }
}

.billing-wallet-note {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.billing-intro .panel-body p {
    margin: 0 0 10px;
}

.billing-intro .panel-body p:last-child {
    margin-bottom: 0;
}

.billing-proof-status .panel-body {
    background: rgba(15, 122, 77, 0.08);
}

.billing-proof-status--pending .panel-body {
    background: rgba(234, 179, 8, 0.12);
}

.billing-proof-status--approved .panel-body {
    background: rgba(15, 122, 77, 0.1);
}

.billing-proof-status--rejected .panel-body {
    background: rgba(220, 38, 38, 0.08);
}

.notification-bell-wrap {
    position: relative;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

.notification-bell {
    position: relative;
}

.notification-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 40;
    width: min(360px, calc(100vw - 28px));
    max-height: 420px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 18px 40px rgba(13, 27, 58, 0.12);
}

.notification-dropdown-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.notification-list {
    display: grid;
}

.notification-item {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.notification-item:last-child {
    border-bottom: 0;
}

.notification-item strong {
    color: var(--navy);
    font-size: 14px;
}

.notification-item span {
    color: var(--ink);
    font-size: 13px;
    line-height: 1.45;
}

.notification-item small {
    color: var(--muted);
    font-size: 12px;
}

.notification-item.unread {
    background: rgba(212, 175, 55, 0.12);
}

.notification-empty {
    padding: 18px 16px;
    color: var(--muted);
    font-size: 14px;
}

.subscription-banner--danger {
    border-color: rgba(185, 28, 28, 0.18);
    background: rgba(254, 226, 226, 0.72);
}

.billing-tab-loading .panel-body {
    color: var(--muted);
}

.billing-admin-tabs {
    margin-top: 18px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.billing-plan-grid .button.is-selected {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.admin-payment-method-create {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--slate-soft);
}

.admin-payment-method-list {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.admin-payment-method-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
}

.admin-payment-method-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.admin-payment-method-title strong {
    display: block;
    color: var(--navy);
    font-size: 17px;
}

.admin-payment-method-title small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.admin-payment-method-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-homepage-partner-create {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--slate-soft);
}

.admin-homepage-partner-list {
    display: grid;
    gap: 16px;
}

.admin-homepage-partner-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
}

.admin-homepage-partner-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.admin-homepage-partner-title {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.admin-homepage-partner-title strong {
    display: block;
    color: var(--navy);
    font-size: 17px;
}

.admin-homepage-partner-title small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
}

.admin-homepage-partner-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
    background: var(--warm-white);
    flex: 0 0 auto;
}

.admin-homepage-partner-logo--initials {
    display: grid;
    place-items: center;
    color: var(--gold-dark);
    background: var(--gold-soft);
    font-weight: 800;
}

.admin-homepage-partner-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-homepage-partner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 767px) {
    .admin-homepage-partner-fields {
        grid-template-columns: 1fr;
    }
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.payment-method-summary-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    cursor: pointer;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.payment-method-summary-card:hover,
.payment-method-summary-card.is-selected {
    border-color: var(--gold);
    box-shadow: 0 8px 24px rgba(13, 27, 58, 0.06);
}

.payment-method-summary-card:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.payment-method-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.payment-method-summary-head strong {
    color: var(--navy);
    font-size: 16px;
}

.payment-method-summary-meta {
    display: grid;
    gap: 6px;
    font-size: 13px;
}

.payment-method-summary-meta span {
    display: block;
    color: var(--muted);
}

.payment-method-summary-meta b {
    color: var(--navy);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.billing-checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 20px;
    align-items: start;
}

.billing-checkout-side,
.billing-checkout-fields {
    min-width: 0;
}

.payment-details-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.payment-details-head strong {
    color: var(--navy);
    font-size: 16px;
}

.payment-details-row {
    display: grid;
    grid-template-columns: minmax(110px, 130px) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.payment-details-row dd {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    min-width: 0;
}

.payment-details-value {
    flex: 1;
    min-width: 0;
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.payment-copy-btn {
    flex-shrink: 0;
    min-height: 34px;
    padding: 6px 10px;
}

.empty-state.compact {
    padding: 18px 0;
}

@media (max-width: 900px) {
    .billing-checkout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .payment-details-list div,
    .payment-details-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .admin-payment-method-actions .button {
        width: 100%;
    }

    .billing-admin-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .billing-admin-tabs {
        grid-template-columns: 1fr;
    }
}

/* Skeleton loading placeholders */
@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-line,
.skeleton-block {
    display: block;
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #ece7dc 0%, #f7f3ec 45%, #ece7dc 90%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.skeleton-block {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.skeleton-card {
    pointer-events: none;
}

.skeleton-card .stat-value,
.skeleton-card .stat-note {
    visibility: hidden;
}

.skeleton-card .skeleton-line {
    height: 12px;
    margin-bottom: 8px;
}

.skeleton-card .skeleton-line:nth-child(2) {
    height: 22px;
    width: 45% !important;
    margin-bottom: 10px;
}

.skeleton-panel .panel-body .skeleton-line + .skeleton-line {
    margin-top: 10px;
}

.section-loading-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.92rem;
}

.section-loading-note svg {
    width: 16px;
    height: 16px;
    animation: spin 700ms linear infinite;
}

.automation-tab-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px;
    color: var(--muted);
}

/* Mobile-first responsive dashboard (767px and below) */
@media (max-width: 767px) {
    .form-grid,
    .demo-actions,
    .campaign-estimate-cards,
    .campaign-send-cards,
    .campaign-media-cards,
    .campaign-schedule-grid,
    .stats-grid,
    .stats-grid--automation,
    .action-grid-prominent {
        grid-template-columns: 1fr;
    }

    .page-intro {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .page-intro .button {
        width: 100%;
        min-height: 44px;
    }

    .campaign-preview-toggle {
        display: flex;
        width: 100%;
        min-height: 44px;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }

    .campaign-center .campaign-preview-aside {
        display: none;
    }

    .campaign-center.preview-open .campaign-preview-aside {
        display: block;
    }

    .campaign-form-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .campaign-media-section {
        padding: 14px;
    }

    .campaign-media-section-head {
        flex-direction: column;
        align-items: stretch;
    }

    .campaign-media-format-pill {
        align-self: flex-start;
        white-space: normal;
        text-align: center;
    }

    .campaign-media-card {
        min-height: 0;
        padding: 12px 14px;
    }

    .campaign-media-card-body {
        padding-right: 12px;
    }

    .campaign-media-dropzone {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .campaign-media-dropzone-copy strong {
        white-space: normal;
    }

    .campaign-media-dropzone-btn {
        width: 100%;
    }

    .campaign-media-preview-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .campaign-media-thumb-image {
        width: 100%;
        height: auto;
        max-height: 180px;
    }

    .campaign-form-actions .campaign-action-primary {
        margin-left: 0;
        order: 3;
    }

    .campaign-form-actions .campaign-action-secondary:first-of-type {
        order: 1;
    }

    .campaign-form-actions .campaign-action-secondary:last-of-type {
        order: 2;
    }

    .campaign-form-actions .button,
    .campaign-row-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .campaign-row-actions .button,
    .campaign-row-actions .table-action {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }

    .campaign-table,
    .automation-log-table {
        min-width: 0;
    }

    .campaign-table-wrap,
    .table-wrap {
        overflow-x: visible;
    }

    table.responsive-table thead {
        display: none;
    }

    table.responsive-table,
    table.responsive-table tbody,
    table.responsive-table tr,
    table.responsive-table td {
        display: block;
        width: 100%;
    }

    table.responsive-table tr {
        padding: 14px 16px;
        border-bottom: 1px solid var(--line);
    }

    table.responsive-table tr:last-child {
        border-bottom: 0;
    }

    table.responsive-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 7px 0;
        border: 0;
        text-align: right;
    }

    table.responsive-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 13px;
        font-weight: 800;
        text-align: left;
        flex-shrink: 0;
    }

    table.responsive-table td.customer-cell,
    table.responsive-table td.campaign-name-cell {
        display: block;
        padding-bottom: 10px;
        text-align: left;
    }

    table.responsive-table td.customer-cell::before,
    table.responsive-table td.campaign-name-cell::before {
        display: none;
    }

    table.responsive-table td.actions-cell {
        flex-direction: column;
        align-items: stretch;
        padding-top: 10px;
    }

    table.responsive-table td.actions-cell::before {
        margin-bottom: 4px;
    }

    .panel-header.toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .filter-row {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-row select,
    .search-field,
    .field input,
    .field select,
    .field textarea {
        width: 100%;
    }

    .field input,
    .field select,
    .field textarea,
    .button:not(.table-action):not(.icon-button):not(.link-button) {
        min-height: 44px;
    }

    .form-actions .button {
        width: 100%;
    }

    .record-row,
    .activity-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .record-row .table-actions,
    .record-row .badge {
        justify-self: start;
    }

    .automation-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .automation-tabs::-webkit-scrollbar {
        display: none;
    }

    .automation-tab {
        flex-shrink: 0;
        min-height: 44px;
    }

    .app-topbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 0;
        padding: 12px 0;
    }

    .app-topbar-copy {
        min-width: 0;
        flex: 1 1 auto;
    }

    .app-topbar-copy h1 {
        margin-bottom: 0;
        font-size: clamp(24px, 6.5vw, 28px);
        line-height: 1.15;
    }

    .topbar-actions {
        flex-shrink: 0;
        margin-left: auto;
    }

    .topbar-actions .role-chip {
        display: none;
    }

    .billing-checkout-grid {
        grid-template-columns: 1fr;
    }

    .payment-details-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* Tablet refinements (768px–1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .campaign-form-actions {
        flex-wrap: wrap;
    }

    .campaign-form-actions .button {
        min-height: 44px;
    }

    .app-main {
        padding-bottom: 112px;
    }
}

/* WhatsApp Sender Detail — tabbed admin UX */
.sender-detail-page {
    display: grid;
    gap: 18px;
}

.sender-detail-sticky {
    position: sticky;
    top: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(8, 20, 39, 0.06);
}

.sender-detail-sticky-main {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.sender-detail-sticky-main h2 {
    margin: 0;
    font-size: 20px;
    color: var(--navy);
}

.sender-detail-sticky-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.sender-detail-sticky-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sender-detail-tabs {
    margin-top: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.sender-detail-tabs button {
    white-space: nowrap;
}

.sender-detail-panel {
    margin-top: 0;
}

.sender-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.sender-overview-card {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
}

.sender-overview-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sender-overview-card strong {
    color: var(--navy);
    font-size: 15px;
    min-width: 0;
    overflow: hidden;
    word-break: break-word;
}

.sender-mapping-toolbar {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.sender-mapping-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sender-mapping-group {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--white);
}

.sender-mapping-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    background: var(--slate-soft);
    color: var(--navy);
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.sender-mapping-group-body {
    padding: 0;
}

.sender-mapping-table {
    width: 100%;
    border-collapse: collapse;
}

.sender-mapping-table th,
.sender-mapping-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
    font-size: 13px;
}

.sender-mapping-table th {
    background: #faf8f4;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sender-mapping-table tr:last-child td {
    border-bottom: 0;
}

.sender-mapping-key {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.sender-mapping-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sender-mapping-card {
    display: none;
}

.sender-readiness-grid {
    display: grid;
    gap: 10px;
}

.sender-readiness-row {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
}

.sender-readiness-row strong {
    color: var(--navy);
}

.sender-readiness-row small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.sender-logs-subtabs {
    margin-bottom: 14px;
}

.sender-log-payload {
    margin-top: 8px;
    padding: 10px;
    border-radius: 10px;
    background: #f6f8fb;
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-word;
}

.sender-actions-grid {
    display: grid;
    gap: 16px;
}

.sender-actions-section {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
}

.sender-actions-section.danger {
    border-color: rgba(185, 28, 28, 0.22);
    background: rgba(254, 242, 242, 0.55);
}

.sender-actions-section h4 {
    margin: 0 0 10px;
    color: var(--navy);
}

.sender-test-result {
    margin-top: 14px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--slate-soft);
}

.sender-test-result.is-simulated {
    border-color: rgba(217, 119, 6, 0.28);
    background: rgba(255, 251, 235, 0.9);
}

.sender-test-result.is-live {
    border-color: rgba(22, 163, 74, 0.28);
    background: rgba(240, 253, 244, 0.9);
}

.sender-mapping-drawer .template-mapping-actions {
    margin-top: 12px;
}

@media (max-width: 900px) {
    .sender-mapping-table {
        display: none;
    }

    .sender-mapping-card {
        display: grid;
        gap: 10px;
        padding: 12px 14px;
        border-bottom: 1px solid var(--line);
    }

    .sender-mapping-card:last-child {
        border-bottom: 0;
    }

    .sender-readiness-row {
        grid-template-columns: 1fr;
    }

    .sender-detail-sticky-actions .button {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }
}

/* Utilities */
.min-w-0 {
    min-width: 0;
}

.w-full {
    width: 100%;
}

.max-w-full {
    max-width: 100%;
}

.overflow-hidden {
    overflow: hidden;
}

/* Sensitive / secret field display */
.sensitive-saved-box {
    display: grid;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
}

.sensitive-saved-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sensitive-saved-value {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    color: #334155;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sensitive-saved-value--inline {
    display: inline-block;
    vertical-align: middle;
}

.field-label-note {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
}

.field-helper {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.field--secret {
    min-width: 0;
}

.field-span-full {
    grid-column: 1 / -1;
}

.form-subsection-title {
    margin: 4px 0 0;
    font-size: 16px;
    color: var(--navy);
}

.font-mono-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 14px;
}

/* WhatsApp Sender form — responsive layout */
.whatsapp-sender-form-panel {
    width: min(920px, 100%);
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.whatsapp-sender-form {
    min-width: 0;
}

.whatsapp-sender-form-intro {
    min-width: 0;
}

.whatsapp-sender-form .form-section {
    min-width: 0;
}

.whatsapp-sender-form .field {
    min-width: 0;
}

.whatsapp-sender-form .field > span,
.whatsapp-sender-form .field-label {
    min-width: 0;
}

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

.form-actions--responsive {
    flex-wrap: wrap;
}

.whatsapp-sender-form-actions {
    gap: 10px;
}

@media (max-width: 1024px) {
    .whatsapp-sender-form .form-grid--responsive {
        grid-template-columns: 1fr;
    }

    .whatsapp-sender-form-panel {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .whatsapp-sender-form-actions {
        position: sticky;
        bottom: 0;
        z-index: 20;
        flex-direction: column;
        align-items: stretch;
        margin-top: 0;
        padding-top: 16px;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(8px);
    }

    .whatsapp-sender-form-actions .button {
        width: 100%;
        justify-content: center;
    }

    .whatsapp-sender-form-intro {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .whatsapp-sender-form-intro .button {
        width: 100%;
        justify-content: center;
    }
}

/* Usage Guide / How to Use */
.public-usage-main {
    padding: clamp(24px, 4vw, 48px) 20px clamp(40px, 6vw, 72px);
    background: var(--warm-white);
}

.usage-guide-page {
    display: grid;
    gap: 18px;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.usage-hero,
.usage-support {
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(212, 175, 55, 0.12), transparent 42%),
        linear-gradient(180deg, #fff, var(--warm-white));
    box-shadow: var(--shadow);
}

.usage-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.usage-eyebrow svg {
    width: 16px;
    height: 16px;
}

.usage-hero h2,
.usage-support h3,
.usage-module h3,
.usage-section h3,
.usage-step-card h3,
.usage-benefit-card h3 {
    color: var(--navy);
}

.usage-hero h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.15;
}

.usage-subtitle {
    margin: 0 0 14px;
    color: var(--navy);
    font-size: clamp(17px, 2.4vw, 20px);
    font-weight: 700;
    line-height: 1.4;
}

.usage-hero p,
.usage-support p,
.usage-module p,
.usage-section .panel-header p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
}

.usage-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.usage-workflow-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #eadfbf;
    border-radius: 14px;
    background: var(--gold-soft);
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
}

.usage-workflow-line span[aria-hidden="true"] {
    color: var(--gold-dark);
}

.usage-step-grid,
.usage-benefit-grid,
.usage-report-grid {
    display: grid;
    gap: 12px;
}

.usage-step-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.usage-step-card,
.usage-benefit-card,
.usage-report-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}

.usage-step-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 16px;
}

.usage-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--emerald);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.usage-step-card h3,
.usage-benefit-card h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.usage-step-card p,
.usage-benefit-card p,
.usage-report-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
}

.usage-module-title {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.usage-module-icon,
.usage-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--emerald-soft);
    color: var(--emerald-dark);
}

.usage-module-icon svg,
.usage-benefit-icon svg,
.usage-check svg {
    width: 20px;
    height: 20px;
}

.usage-steps-list {
    margin: 0 0 16px;
    padding-left: 1.2rem;
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.5;
}

.usage-steps-list li::marker {
    color: var(--emerald);
    font-weight: 800;
}

.usage-note {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-left: 4px solid var(--gold);
    border-radius: 10px;
    background: var(--gold-soft);
    color: var(--navy);
    font-size: 15px;
}

.usage-benefit {
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--emerald-soft);
}

.usage-benefit strong {
    display: block;
    margin-bottom: 4px;
    color: var(--emerald-dark);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.usage-benefit p {
    margin: 0;
    color: var(--navy);
    font-size: 15px;
}

.usage-report-grid,
.usage-benefit-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.usage-report-card,
.usage-benefit-card {
    padding: 16px;
}

.usage-report-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--navy);
    font-size: 16px;
}

.usage-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.usage-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--navy);
    font-size: 15px;
    font-weight: 650;
}

.usage-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--emerald-soft);
    color: var(--emerald);
}

.usage-faq-list {
    display: grid;
    gap: 10px;
}

.usage-faq-item {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.usage-faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 16px;
    color: var(--navy);
    font-size: 16px;
    font-weight: 750;
}

.usage-faq-item summary::-webkit-details-marker {
    display: none;
}

.usage-faq-item summary::after {
    content: '+';
    float: right;
    color: var(--gold-dark);
    font-weight: 800;
}

.usage-faq-item[open] summary::after {
    content: '–';
}

.usage-faq-item p {
    margin: 0;
    padding: 0 16px 16px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .usage-guide-page {
        gap: 14px;
    }

    .usage-hero h2 {
        font-size: 28px;
    }

    .usage-subtitle,
    .usage-hero p,
    .usage-support p,
    .usage-steps-list,
    .usage-faq-item summary,
    .usage-faq-item p,
    .usage-checklist li {
        font-size: 16px;
    }

    .usage-cta-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .usage-cta-row .button,
    .usage-cta-row a.button {
        width: 100%;
        justify-content: center;
    }

    .usage-workflow-line {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 6px 8px;
    }

    .usage-workflow-line span[aria-hidden="true"]:nth-child(even) {
        justify-self: end;
    }

    .usage-module-title {
        flex-direction: column;
    }

    .usage-step-grid,
    .usage-benefit-grid,
    .usage-report-grid {
        grid-template-columns: 1fr;
    }
}

/* Keep the centered public logo clear of the mobile menu button */
@media (max-width: 860px) {
    .public-nav .brand-lockup img {
        width: min(280px, calc(100vw - 140px));
        max-width: min(280px, calc(100vw - 140px));
    }
}
