/* ==========================================================================
   SureSMM — "modern" template design system
   Tokens & components recreated from the hifi redesign handoff.
   Font: Inter (Google Fonts) · Icons: Line Awesome (global assets)
   ========================================================================== */

:root {
    /* Surfaces */
    --bg: #f7f7fb;
    --surface: #ffffff;
    --surface-2: #fcfcfe;
    --surface-violet: #faf8ff;

    /* Ink / text */
    --ink: #17171d;
    --body: #37373f;
    --secondary: #55555f;
    --muted: #8a8a96;
    --faint: #a5a5b1;

    /* Lines */
    --hairline: #e7e7ef;
    --input-border: #d9d9e3;
    --divider: #f1f1f6;

    /* Primary violet (from logo) */
    --primary: #7a3bf0;
    --primary-hover: #6a2ee0;
    --primary-deep: #5b21b6;
    --primary-tint: #f2edfd;
    --primary-tint-border: #e2d9f9;

    /* Teal accent (logo dot) */
    --teal: #33b8a5;
    --teal-deep: #0e7c6d;
    --teal-tint: #e4f6f3;
    --teal-tint-border: #c2ebe4;

    /* Charcoal (logo "SMM") */
    --charcoal: #232329;
    --charcoal-2: #1d1d24;
    --charcoal-border: #2e2e36;

    /* Status */
    --st-pending: #b45309;       --st-pending-bg: #fdf1e3;
    --st-processing: #2563eb;    --st-processing-bg: #e8effd;
    --st-completed: #0f8a62;     --st-completed-bg: #e3f5ee;
    --st-cancelled: #dc2626;     --st-cancelled-bg: #fdeaea;
    --st-refunded: #55555f;      --st-refunded-bg: #f1f1f6;
    --st-partial: #7c5e10;       --st-partial-bg: #faf3d8;

    /* Geometry */
    --r-card: 16px;
    --r-input: 12px;
    --r-pill: 999px;
    --container: 1200px;
    --gutter: 32px;

    /* Shadows */
    --sh-card: 0 1px 2px rgba(23, 23, 29, .05);
    --sh-pop: 0 8px 30px rgba(23, 23, 29, .08);
    --sh-primary: 0 8px 24px rgba(122, 59, 240, .25);
    --sh-float: 0 12px 32px rgba(23, 23, 29, .10);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }

body.modern {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.modern img { max-width: 100%; }
/* Base link color uses :where() so it has ZERO specificity — every component
   class (.m-btn, .m-pill, .m-chip, .m-side-link, .m-badge…) keeps its own color
   even when rendered on an <a>, without per-page overrides. */
.modern a { text-decoration: none; }
:where(.modern a) { color: var(--primary); transition: color .15s ease; }
:where(.modern a:hover) { color: var(--primary-deep); }
.modern h1, .modern h2, .modern h3, .modern h4, .modern h5, .modern h6 { margin: 0; }
.modern p { margin: 0; }
.modern table { font-variant-numeric: tabular-nums; }
.tabular { font-variant-numeric: tabular-nums; }

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

/* --------------------------------------------------------------- layout */
.m-container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.m-section { padding: 88px 0; }
.m-section--tight { padding: 64px 0; }
.m-divide-top { border-top: 1px solid var(--hairline); }

.m-eyebrow {
    font-size: 13px; font-weight: 700; color: var(--primary);
    letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px;
}
.m-h1 { font-size: 40px; font-weight: 800; letter-spacing: -.025em; line-height: 1.12; }
.m-h2 { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.m-lede { font-size: 15.5px; line-height: 1.65; color: var(--secondary); }
.m-section-head { text-align: center; max-width: 600px; margin: 0 auto 52px; }
.m-section-head .m-eyebrow { margin-bottom: 10px; }

/* --------------------------------------------------------------- buttons */
.m-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1;
    padding: 12px 18px; border-radius: var(--r-input); border: 1px solid transparent;
    cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
    white-space: nowrap; text-align: center;
}
.m-btn--lg { padding: 14px 26px; font-size: 15px; }
.m-btn--sm { padding: 9px 14px; font-size: 13px; }
.m-btn--block { display: flex; width: 100%; }

.m-btn--primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(23, 23, 29, .1); }
.m-btn--primary:hover { background: var(--primary-hover); color: #fff; }
.m-btn--primary.m-btn--lg { box-shadow: var(--sh-primary); }

.m-btn--dark { background: var(--charcoal); color: #fff; }
.m-btn--dark:hover { background: var(--ink); color: #fff; }

.m-btn--outline { background: var(--surface); border-color: var(--input-border); color: var(--ink); }
.m-btn--outline:hover { border-color: var(--primary); color: var(--primary); }

.m-btn--ghost { background: transparent; color: var(--body); }
.m-btn--ghost:hover { background: var(--divider); color: var(--ink); }

.m-btn--white { background: #fff; color: var(--primary-deep); box-shadow: var(--sh-float); }
.m-btn--white:hover { background: var(--primary-tint); color: var(--primary-deep); }

.m-btn[disabled], .m-btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* ----------------------------------------------------------- chips/badges */
.m-chip {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--hairline); border-radius: var(--r-pill);
    padding: 8px 16px; font-size: 13.5px; font-weight: 600; color: var(--body);
    background: var(--surface); transition: border-color .15s, color .15s, background .15s;
}
.m-chip--teal { background: var(--teal-tint); border-color: var(--teal-tint-border); color: var(--teal-deep); }
.m-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

.m-pill {
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
    border: 1px solid var(--hairline); border-radius: var(--r-pill);
    padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--body);
    background: var(--surface); transition: all .15s ease;
}
.m-pill:hover { border-color: var(--primary-tint-border); color: var(--primary); }
.m-pill.is-active { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.m-pill .count { font-size: 12px; color: var(--muted); }
.m-pill.is-active .count { color: rgba(255, 255, 255, .7); }
.m-pill__ico { font-size: 15px; line-height: 1; }
.m-pill.is-active .m-pill__ico { color: #fff; }

.m-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 10.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
    padding: 4px 9px; border-radius: var(--r-pill);
}
.m-badge--soft { background: var(--divider); color: var(--secondary); }
.m-badge--violet { background: var(--primary-tint); color: var(--primary-deep); border: 1px solid var(--primary-tint-border); }
.m-badge--teal { background: var(--teal-tint); color: var(--teal-deep); border: 1px solid var(--teal-tint-border); }

/* status pills */
.m-status { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); }
.m-status--pending    { color: var(--st-pending);    background: var(--st-pending-bg); }
.m-status--processing { color: var(--st-processing); background: var(--st-processing-bg); }
.m-status--completed  { color: var(--st-completed);  background: var(--st-completed-bg); }
.m-status--cancelled  { color: var(--st-cancelled);  background: var(--st-cancelled-bg); }
.m-status--refunded   { color: var(--st-refunded);   background: var(--st-refunded-bg); }
.m-status--partial    { color: var(--st-partial);    background: var(--st-partial-bg); }

/* ----------------------------------------------------------------- cards */
.m-card {
    background: var(--surface); border: 1px solid var(--hairline);
    border-radius: var(--r-card); box-shadow: var(--sh-card);
}
.m-card--pad { padding: 24px; }
.m-card--pop { box-shadow: var(--sh-pop); }
.m-card--hover { transition: border-color .15s ease, box-shadow .15s ease; }
.m-card--hover:hover { border-color: var(--primary-tint-border); }

/* icon squares */
.m-isq { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; flex: none; }
.m-isq--violet { background: var(--primary-tint); color: var(--primary); }
.m-isq--teal { background: var(--teal-tint); color: var(--teal-deep); }

/* platform tints */
.pf-youtube   { color: #ff0033; } .pf-youtube-bg   { background: #ffe9ed; color: #ff0033; }
.pf-instagram { color: #d62976; } .pf-instagram-bg { background: #fdeef5; color: #d62976; }
.pf-telegram  { color: #2aa4dd; } .pf-telegram-bg  { background: #e8f4fb; color: #2aa4dd; }
.pf-tiktok    { color: #17171d; } .pf-tiktok-bg    { background: #ededf2; color: #17171d; }
.pf-facebook  { color: #1877f2; } .pf-facebook-bg  { background: #e8f0fd; color: #1877f2; }
.pf-generic   { color: var(--primary); } .pf-generic-bg { background: var(--primary-tint); color: var(--primary); }

/* ---------------------------------------------------------------- forms */
.m-field { margin-bottom: 16px; }
.m-label { display: block; font-size: 13px; font-weight: 600; color: var(--body); margin-bottom: 7px; }
.m-input, .m-select, .m-textarea {
    width: 100%; box-sizing: border-box; font-family: inherit; font-size: 14px; color: var(--ink);
    background: var(--surface); border: 1px solid var(--input-border); border-radius: var(--r-input);
    padding: 12px 14px; outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.m-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.m-input:focus, .m-select:focus, .m-textarea:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(122, 59, 240, .15);
}
.m-input::placeholder, .m-textarea::placeholder { color: var(--faint); }
.m-input-group { position: relative; }

/* ---------------------------------------------------------------- tables */
.m-table { width: 100%; border-collapse: collapse; }
.m-table thead th {
    text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .05em; color: var(--muted); padding: 12px 20px; border-bottom: 1px solid var(--hairline);
    white-space: nowrap;
}
.m-table tbody td { padding: 14px 20px; font-size: 13px; color: var(--body); border-bottom: 1px solid var(--divider); vertical-align: middle; }
.m-table tbody tr:last-child td { border-bottom: none; }
.m-table tbody tr { transition: background .15s ease; }
.m-table tbody tr:hover { background: var(--surface-violet); }
.m-table .num { text-align: right; }

/* ============================================================ HEADER ==== */
.m-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--hairline);
}
.m-header__inner {
    max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
    height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.m-header__logo { display: flex; align-items: center; }

/* ---- Text wordmark (replaces the PNG logo) ------------------------------ */
.m-logo {
    display: inline-flex; align-items: flex-end; gap: 1px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 800; font-size: 30px; line-height: .95;
    letter-spacing: -.035em; white-space: nowrap; user-select: none;
}
.m-logo__sure { color: var(--primary); transition: color .15s ease; }
.m-logo__smm  { color: var(--ink); }
.m-logo__dot  { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none; margin: 0 0 4px 3px; }
.m-header__logo:hover .m-logo__sure { color: var(--primary-hover); }
.m-logo--sm { font-size: 25px; }
.m-logo--sm .m-logo__dot { width: 7px; height: 7px; }
.m-logo--lg { font-size: 38px; }
.m-logo--lg .m-logo__dot { width: 11px; height: 11px; margin-bottom: 5px; }
/* On dark surfaces (auth brand panel) */
.m-logo--on-dark .m-logo__sure { color: #fff; }
.m-logo--on-dark .m-logo__smm  { color: rgba(255, 255, 255, .68); }
.m-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; }
.m-nav a { color: var(--body); }
.m-nav a:hover, .m-nav a.active { color: var(--primary); }
.m-header__actions { display: flex; align-items: center; gap: 10px; }
.m-nav-toggle { display: none; background: none; border: 1px solid var(--hairline); border-radius: 10px; width: 40px; height: 40px; font-size: 20px; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.m-mobile-nav { display: none; }

/* Language switcher (multi-language dropdown) */
.modern .custom--dropdown { position: relative; }
.modern .custom--dropdown__selected { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 12px; border: 1px solid var(--hairline); border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--body); white-space: nowrap; }
.modern .custom--dropdown__selected:hover { border-color: var(--primary-tint-border); color: var(--primary); }
.modern .custom--dropdown .dropdown-list { position: absolute; top: calc(100% + 6px); right: 0; min-width: 150px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; box-shadow: var(--sh-float); list-style: none; padding: 6px; margin: 0; display: none; z-index: 60; }
.modern .custom--dropdown.open .dropdown-list { display: block; }
.modern .custom--dropdown .dropdown-list__item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--body); }
.modern .custom--dropdown .dropdown-list__item:hover { background: var(--surface-violet); color: var(--primary); }
.modern .custom--dropdown .flag { width: 20px; height: 14px; object-fit: cover; border-radius: 3px; display: block; }
.modern .custom--dropdown .thumb { display: flex; align-items: center; }

/* dropdown (account) */
.m-has-drop { position: relative; }
.m-drop { position: absolute; top: 140%; right: 0; min-width: 180px; background: #fff; border: 1px solid var(--hairline); border-radius: 12px; box-shadow: var(--sh-float); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .15s ease; z-index: 60; }
.m-has-drop:hover .m-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.m-drop a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--body); }
.m-drop a:hover { background: var(--surface-violet); color: var(--primary); }

/* ============================================================ HERO ====== */
.m-hero { position: relative; overflow: hidden; background: var(--surface); }
.m-hero__blob { position: absolute; border-radius: 50%; }
.m-hero__blob--1 { top: -180px; right: -140px; width: 560px; height: 560px; background: radial-gradient(closest-side, #efe7ff, #ffffff00); }
.m-hero__blob--2 { bottom: -220px; left: -160px; width: 520px; height: 520px; background: radial-gradient(closest-side, var(--teal-tint), #ffffff00); }
.m-hero__dots { position: absolute; inset: 0; background-image: radial-gradient(var(--input-border) 1px, transparent 1px); background-size: 26px 26px; opacity: .35; -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.m-hero__grid { position: relative; max-width: var(--container); margin: 0 auto; padding: 84px var(--gutter) 96px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.m-hero h1 { font-size: 56px; line-height: 1.08; font-weight: 800; letter-spacing: -.03em; margin: 22px 0 0; text-wrap: pretty; }
.m-hero__hl { position: relative; color: var(--primary); }
.m-hero__hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 12px; background: rgba(122, 59, 240, .13); border-radius: 6px; z-index: -1; }
.m-hero p { font-size: 17px; line-height: 1.65; color: var(--secondary); margin: 20px 0 0; max-width: 520px; text-wrap: pretty; }
.m-hero__cta { display: flex; align-items: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.m-hero__stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.m-hero__stat .n { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.m-hero__stat .n span { color: var(--primary); }
.m-hero__stat .l { font-size: 13px; color: var(--muted); margin-top: 2px; }
.m-hero__sep { width: 1px; background: var(--hairline); }

/* live order card */
.m-hero__cardwrap { position: relative; justify-self: end; width: 420px; max-width: 100%; }
.m-order-card { background: #fff; border: 1px solid var(--hairline); border-radius: 18px; box-shadow: 0 24px 60px rgba(23, 23, 29, .12); padding: 26px; }
.m-order-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.m-order-card__top .t { font-size: 15px; font-weight: 700; }
.m-minilabel { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.m-service-pick { border: 1px solid var(--primary-tint-border); background: var(--surface-violet); border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.m-service-pick .m-isq { width: 34px; height: 34px; font-size: 19px; }
.m-service-pick .nm { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-service-pick .mt { font-size: 12px; color: var(--muted); }
.m-paybar { display: flex; justify-content: space-between; align-items: center; background: var(--bg); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.m-paybar .k { font-size: 13px; color: var(--secondary); }
.m-paybar .v { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.m-toast { position: absolute; background: #fff; border: 1px solid var(--hairline); border-radius: 12px; box-shadow: var(--sh-float); padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; z-index: 2; }
.m-toast .m-isq { width: 28px; height: 28px; font-size: 14px; }
.m-toast .muted { color: var(--muted); font-weight: 500; }
.m-toast--1 { top: -26px; right: -18px; animation: floaty 5s ease-in-out infinite; }
.m-toast--2 { bottom: -22px; left: -30px; animation: floaty 6s ease-in-out infinite; }

/* ===================================================== PLATFORM RAIL ==== */
.m-platform-rail { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--surface); }
.m-platform-rail__inner { max-width: var(--container); margin: 0 auto; padding: 22px var(--gutter); display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.m-platform-rail__label { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .06em; white-space: nowrap; }
.m-platform-rail__chips { display: flex; gap: 10px; flex-wrap: wrap; }

/* ======================================================= LIVE PRICES ==== */
.m-priceblock-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.m-arrow-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--primary); white-space: nowrap; }
.m-price-table { background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-card); box-shadow: var(--sh-card); overflow: hidden; }
.m-price-row { display: grid; grid-template-columns: 64px 1fr 150px 170px 130px; padding: 15px 24px; border-bottom: 1px solid var(--divider); align-items: center; font-variant-numeric: tabular-nums; }
.m-price-row:last-child { border-bottom: none; }
.m-price-row--head { padding: 14px 24px; border-bottom: 1px solid var(--hairline); font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.m-price-row--body { transition: background .15s; }
.m-price-row--body:hover { background: var(--surface-violet); }
.m-price-row .id { font-size: 13px; color: var(--muted); }
.m-price-row .svc { display: flex; align-items: center; gap: 12px; min-width: 0; }
.m-price-row .svc .m-isq { width: 32px; height: 32px; border-radius: 9px; font-size: 17px; }
.m-price-row .svc .nm { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-price-row .rate { text-align: right; font-size: 14.5px; font-weight: 700; }
.m-price-row .mm { text-align: right; font-size: 13px; color: var(--secondary); }
.m-price-row .act { text-align: right; }
.m-order-pill {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    font-size: 13px; font-weight: 600; line-height: 1; color: var(--primary);
    border: 1px solid var(--primary-tint-border); background: var(--surface-violet);
    padding: 8px 15px; border-radius: var(--r-pill);
    transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.m-order-pill i { font-size: 14px; }
.m-order-pill:hover { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(122, 59, 240, .30); transform: translateY(-1px); }

/* ======================================================== HOW IT WORKS === */
.m-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.m-step { position: relative; background: var(--bg); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 30px 26px; transition: border-color .15s; }
.m-step:hover { border-color: var(--primary-tint-border); }
.m-step__n { font-size: 44px; font-weight: 800; color: var(--primary-tint-border); line-height: 1; letter-spacing: -.03em; }
.m-step .m-isq { width: 44px; height: 44px; border-radius: 12px; font-size: 22px; margin: 18px 0 14px; }
.m-step h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.m-step p { font-size: 14px; line-height: 1.65; color: var(--secondary); }
.m-feature-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.m-feature-tile { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 20px; }
.m-feature-tile .m-isq { width: 38px; height: 38px; font-size: 19px; }
.m-feature-tile .t { font-size: 14.5px; font-weight: 700; }
.m-feature-tile .d { font-size: 13px; color: var(--secondary); margin-top: 3px; line-height: 1.5; }

/* ====================================================== TESTIMONIALS ==== */
.m-cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.m-testimonial { background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 28px 26px; box-shadow: var(--sh-card); }
.m-testimonial__stars { display: flex; gap: 3px; color: #f59e0b; font-size: 15px; }
.m-testimonial p { font-size: 14px; line-height: 1.75; color: var(--body); margin: 16px 0 22px; }
.m-testimonial__who { display: flex; align-items: center; gap: 12px; }
.m-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex: none; overflow: hidden; }
.m-testimonial__who .nm { font-size: 14px; font-weight: 700; }
.m-testimonial__who .rl { font-size: 12.5px; color: var(--muted); }

/* ============================================================== FAQ ===== */
.m-faq-grid { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.m-faq-intro { position: sticky; top: 96px; }
.m-faq-intro h2 { margin: 0 0 14px; }
.m-faq-intro p { font-size: 15px; line-height: 1.65; color: var(--secondary); margin: 0 0 24px; }
.m-faq-list { display: flex; flex-direction: column; gap: 12px; }
.m-faq-item { border: 1px solid var(--hairline); background: #fff; border-radius: 14px; padding: 20px 22px; cursor: pointer; transition: border-color .15s, background .15s; }
.m-faq-item.is-open { border-color: var(--primary-tint-border); background: var(--surface-violet); }
.m-faq-item__q { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 15px; font-weight: 600; }
.m-faq-item__q i { color: var(--muted); flex: none; }
.m-faq-item__a { font-size: 14px; line-height: 1.7; color: var(--secondary); margin: 12px 0 0; max-width: 560px; display: none; }
.m-faq-item.is-open .m-faq-item__a { display: block; }

/* ============================================================== CTA ===== */
.m-cta { position: relative; overflow: hidden; background: linear-gradient(120deg, #6a2ee0, #8b5cf6 55%, #7a3bf0); border-radius: 24px; padding: 72px 64px; text-align: center; }
.m-cta__c1 { position: absolute; top: -90px; left: -60px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.m-cta__c2 { position: absolute; bottom: -120px; right: -40px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.m-cta__dot { position: absolute; top: 38px; right: 120px; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); }
.m-cta__inner { position: relative; }
.m-cta .eyebrow { font-size: 13px; font-weight: 700; color: var(--primary-tint-border); letter-spacing: .1em; margin-bottom: 14px; text-transform: uppercase; }
.m-cta h2 { font-size: 40px; font-weight: 800; letter-spacing: -.02em; color: #fff; margin: 0 0 30px; text-wrap: pretty; }
.m-cta .note { font-size: 13px; color: var(--primary-tint-border); margin-top: 14px; }

/* ====================================================== SUBSCRIBE ======= */
.m-subscribe { max-width: 620px; margin: 0 auto; text-align: center; }
.m-subscribe form { display: flex; gap: 10px; margin-top: 22px; }
.m-subscribe .m-input { flex: 1; }

/* ============================================================ FOOTER ==== */
.m-footer { background: var(--surface); border-top: 1px solid var(--hairline); }
.m-footer__inner { max-width: var(--container); margin: 0 auto; padding: 64px var(--gutter) 0; }
.m-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 48px; }
.m-footer__logo { display: inline-flex; margin: 0 0 16px; }
.m-footer__about { font-size: 13.5px; line-height: 1.7; color: var(--secondary); margin: 0 0 18px; max-width: 300px; }
.m-footer__social { display: flex; gap: 8px; }
.m-social-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--hairline); color: var(--body); display: flex; align-items: center; justify-content: center; font-size: 17px; transition: all .15s; }
.m-social-btn:hover { border-color: var(--primary); color: var(--primary); }
.m-footer__col-title { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--ink); margin-bottom: 16px; text-transform: uppercase; }
.m-footer__links { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.m-footer__links a, .m-footer__contact span, .m-footer__contact a { color: var(--secondary); }
.m-footer__links a:hover, .m-footer__contact a:hover { color: var(--primary); }
.m-footer__contact { display: flex; flex-direction: column; gap: 11px; font-size: 14px; color: var(--secondary); }
.m-footer__contact span, .m-footer__contact a { display: flex; align-items: center; gap: 10px; }
.m-footer__contact i { color: var(--primary); }
.m-footer__bar { border-top: 1px solid var(--hairline); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 10px; }
.m-footer__status { display: flex; align-items: center; gap: 8px; }
.m-footer__status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

/* ============================================== breadcrumb (inner pages) = */
.m-breadcrumb { background: var(--surface); border-bottom: 1px solid var(--hairline); }
.m-breadcrumb__inner { max-width: var(--container); margin: 0 auto; padding: 40px var(--gutter); }
.m-breadcrumb h1 { font-size: 40px; font-weight: 800; letter-spacing: -.025em; }
.m-breadcrumb__trail { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.m-breadcrumb__trail a { color: var(--secondary); }

/* floating action buttons: WhatsApp (bottom-LEFT corner) + scroll-to-top stacked above it — right side kept free for Tawk.to live chat */
.modern .scrollToTop { position: fixed; left: 24px; bottom: 92px; width: 44px; height: 44px; border-radius: 12px; background: var(--charcoal); color: #fff; display: none; align-items: center; justify-content: center; z-index: 90; }

/* WhatsApp floating button */
.m-wa-float { position: fixed; left: 24px; bottom: 24px; z-index: 94; width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(37, 211, 102, .4), 0 2px 6px rgba(0, 0, 0, .16); transition: transform .22s ease, box-shadow .22s ease; }
.m-wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 30px rgba(37, 211, 102, .5), 0 4px 12px rgba(0, 0, 0, .22); }
.m-wa-float__icon { position: relative; z-index: 2; width: 30px; height: 30px; }
.m-wa-float__pulse { position: absolute; inset: 0; z-index: 1; border-radius: 50%; background: #25d366; animation: m-wa-pulse 2.2s ease-out infinite; }
@keyframes m-wa-pulse { 0% { transform: scale(1); opacity: .5; } 70% { transform: scale(1.75); opacity: 0; } 100% { transform: scale(1.75); opacity: 0; } }
.m-wa-float__label { position: absolute; left: 68px; top: 50%; transform: translateY(-50%) translateX(-8px); background: var(--charcoal); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; padding: 8px 14px; border-radius: 10px; opacity: 0; visibility: hidden; pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); transition: opacity .2s ease, transform .2s ease; }
.m-wa-float__label::after { content: ''; position: absolute; left: -4px; top: 50%; width: 10px; height: 10px; transform: translateY(-50%) rotate(45deg); background: inherit; border-radius: 2px; }
.m-wa-float:hover .m-wa-float__label { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
@media (max-width: 560px) {
    .m-wa-float { left: 16px; bottom: 16px; width: 52px; height: 52px; }
    .m-wa-float__icon { width: 28px; height: 28px; }
    .m-wa-float__label { display: none; }
    .modern .scrollToTop { left: 16px; bottom: 80px; }
}

/* ================================================== ABOUT / MEDIA SPLIT === */
.m-about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.m-about--reverse .m-about__media { order: 2; }
.m-about--reverse .m-about__body { order: 1; }
.m-about__media { position: relative; }
.m-about__media img { width: 100%; border-radius: var(--r-card); box-shadow: var(--sh-pop); display: block; }
.m-about__badge { position: absolute; bottom: -18px; right: -18px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--hairline); border-radius: 14px; box-shadow: var(--sh-float); padding: 12px 16px; max-width: 240px; }
.m-about__badge .m-isq { width: 36px; height: 36px; font-size: 18px; border-radius: 10px; }
.m-about__badge .t { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.m-about__badge .d { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.m-about__body .m-isq { width: 46px; height: 46px; font-size: 22px; border-radius: 12px; margin-bottom: 18px; }
.m-about__body h2 { margin-bottom: 16px; text-wrap: pretty; }
.m-about__desc { font-size: 15px; line-height: 1.75; color: var(--secondary); }
.m-about__desc p { margin: 0 0 14px; }
.m-about__desc p:last-child { margin-bottom: 0; }
.m-about__desc ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.m-about__desc ul li { position: relative; padding-left: 30px; font-size: 14.5px; color: var(--body); }
.m-about__desc ul li::before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; background: var(--teal-tint); color: var(--teal-deep); font-size: 10px; font-weight: 700; line-height: 19px; text-align: center; }
.m-about__desc strong { color: var(--ink); }

/* ======================================================= STAT COUNTER ==== */
.m-counter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.m-counter-card { text-align: center; background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 30px 20px; box-shadow: var(--sh-card); }
.m-counter-card .m-isq { width: 48px; height: 48px; font-size: 23px; border-radius: 12px; margin: 0 auto 16px; }
.m-counter-card .n { font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.m-counter-card .l { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

/* =================================================== SERVICE FEATURE CARDS */
.m-svc-feature { background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 28px 26px; box-shadow: var(--sh-card); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.m-svc-feature:hover { border-color: var(--primary-tint-border); box-shadow: var(--sh-pop); transform: translateY(-2px); }
.m-svc-feature .m-isq { width: 48px; height: 48px; font-size: 23px; border-radius: 12px; margin-bottom: 18px; }
.m-svc-feature h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.m-svc-feature p { font-size: 14px; line-height: 1.7; color: var(--secondary); margin: 0; }

/* =========================================================== RESPONSIVE = */
@media (max-width: 1080px) {
    .m-hero__grid { grid-template-columns: 1fr; gap: 44px; }
    .m-hero__cardwrap { justify-self: start; }
    .m-faq-grid { grid-template-columns: 1fr; gap: 36px; }
    .m-faq-intro { position: static; }
    .m-about__grid { grid-template-columns: 1fr; gap: 60px 0; }
    .m-about--reverse .m-about__media, .m-about--reverse .m-about__body { order: initial; }
    .m-about__media { max-width: 480px; }
}
@media (max-width: 900px) {
    .m-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .m-feature-tiles { grid-template-columns: repeat(2, 1fr); }
    .m-steps { grid-template-columns: 1fr; }
    .m-cards-3 { grid-template-columns: 1fr; }
    .m-counter-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
    .m-nav, .m-header__actions .m-btn { display: none; }
    .m-nav-toggle { display: inline-flex; }
    .m-mobile-nav.is-open { display: block; background: #fff; border-bottom: 1px solid var(--hairline); }
    .m-mobile-nav__inner { max-width: var(--container); margin: 0 auto; padding: 8px var(--gutter) 20px; display: flex; flex-direction: column; gap: 4px; }
    .m-mobile-nav a { padding: 11px 0; font-size: 15px; font-weight: 500; color: var(--body); border-bottom: 1px solid var(--divider); }
    .m-mobile-nav .m-btn { margin-top: 12px; }
    .m-hero h1 { font-size: 40px; }
    .m-h1, .m-breadcrumb h1 { font-size: 30px; }
    .m-h2 { font-size: 27px; }
    .m-section { padding: 60px 0; }
    .m-cta { padding: 48px 28px; }
    .m-cta h2 { font-size: 28px; }
    .m-price-row, .m-price-row--head { grid-template-columns: 1fr auto; row-gap: 6px; }
    .m-price-row .id, .m-price-row--head span:nth-child(1),
    .m-price-row .mm, .m-price-row--head span:nth-child(4) { display: none; }
    .m-price-row .rate { text-align: left; }
    .m-subscribe form { flex-direction: column; }
    .m-about__badge { padding: 10px 12px; bottom: -14px; right: -8px; }
}
@media (max-width: 560px) {
    .m-footer__grid { grid-template-columns: 1fr; }
    .m-hero__stats { gap: 20px; }
    .m-hero__sep { display: none; }
    .m-counter-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .m-counter-card { padding: 20px 14px; }
    .m-counter-card .n { font-size: 24px; }
    .m-about__badge { display: none; }
}

/* ==========================================================================
   USER PANEL — app shell (sidebar + topbar) & dashboard components
   ========================================================================== */
.m-app { display: flex; min-height: 100vh; background: var(--bg); }

/* ---- Sidebar ---- */
.m-sidebar { width: 246px; flex: none; background: var(--surface); border-right: 1px solid var(--hairline); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 20px 16px; }
.m-sidebar__logo { display: inline-flex; padding: 2px 8px 16px; }
.m-sidebar__new { margin-bottom: 18px; }
.m-nav-group { margin-bottom: 16px; }
.m-nav-group__label { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--faint); text-transform: uppercase; padding: 0 10px; margin-bottom: 6px; }
.m-side-link { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; font-size: 13.5px; font-weight: 500; color: var(--body); margin-bottom: 2px; transition: background .15s, color .15s; }
.m-side-link:hover { background: var(--surface-violet); color: var(--primary); }
.m-side-link.is-active, .m-side-link.active { background: var(--primary-tint); color: var(--primary-deep); font-weight: 600; }
.m-side-link > i { font-size: 18px; width: 20px; text-align: center; flex: none; }
.m-side-badge { margin-left: auto; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-pill); background: var(--st-cancelled-bg); color: var(--st-cancelled); }
.m-side-badge--warn { background: var(--st-pending-bg); color: var(--st-pending); }
.m-sidebar__user { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hairline); display: flex; align-items: center; gap: 10px; }
.m-sidebar__user .nm { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-sidebar__user .ml { font-size: 11.5px; color: var(--muted); }

/* ---- Main + topbar ---- */
.m-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.m-topbar { height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 28px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hairline); position: sticky; top: 0; z-index: 30; }
.m-topbar__title { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.m-topbar__spacer { margin-left: auto; }
.m-topbar__search { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--hairline); border-radius: 10px; padding: 8px 12px; color: var(--muted); font-size: 13px; min-width: 200px; }
.m-topbar__search input { border: none; background: none; outline: none; font-family: inherit; font-size: 13px; color: var(--ink); flex: 1; min-width: 0; }
.m-topbar__search kbd { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--hairline); border-radius: 5px; padding: 1px 6px; }
.m-balance-chip { display: inline-flex; align-items: center; gap: 10px; background: var(--teal-tint); border: 1px solid var(--teal-tint-border); border-radius: var(--r-pill); padding: 5px 5px 5px 14px; font-size: 13.5px; font-weight: 700; color: var(--teal-deep); }
.m-balance-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.m-balance-chip .add { display: inline-flex; align-items: center; gap: 4px; background: var(--teal-deep); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: var(--r-pill); }
.m-icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--hairline); background: var(--surface); color: var(--body); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; position: relative; cursor: pointer; }
.m-icon-btn:hover { border-color: var(--primary-tint-border); color: var(--primary); }
.m-icon-btn .badge-dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--st-cancelled); border: 2px solid #fff; }
.m-sidebar-toggle { display: none; }
.m-main__body { padding: 28px; max-width: 1200px; width: 100%; }

/* page title/head inside body */
.m-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.m-page-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.m-page-head p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* ---- Dashboard building blocks (reused across user pages) ---- */
.m-grid { display: grid; gap: 18px; }
.m-grid--2 { grid-template-columns: repeat(2, 1fr); }
.m-grid--3 { grid-template-columns: repeat(3, 1fr); }
.m-grid--4 { grid-template-columns: repeat(4, 1fr); }

.m-balance-card { position: relative; overflow: hidden; background: linear-gradient(120deg, #6a2ee0, #8b5cf6 55%, #7a3bf0); border-radius: var(--r-card); padding: 26px; color: #fff; }
.m-balance-card .c1 { position: absolute; top: -60px; right: -30px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.08); }
.m-balance-card .lbl { font-size: 12.5px; font-weight: 600; color: var(--primary-tint-border); position: relative; }
.m-balance-card .amt { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 16px; position: relative; }

.m-stat-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 20px 22px; box-shadow: var(--sh-card); }
.m-stat-card .m-isq { width: 40px; height: 40px; font-size: 20px; margin-bottom: 14px; }
.m-stat-card .lbl { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.m-stat-card .val { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.m-stat-card .delta { font-size: 12px; font-weight: 600; }
.m-stat-card .delta.up { color: var(--st-completed); }
.m-stat-card .delta.down { color: var(--st-cancelled); }

.m-status-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--sh-card); }
.m-status-strip__item { padding: 16px 18px; border-right: 1px solid var(--hairline); }
.m-status-strip__item:last-child { border-right: none; }
.m-status-strip__item .n { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.m-status-strip__item .l { font-size: 12px; color: var(--muted); margin-top: 2px; }

.m-panel { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); box-shadow: var(--sh-card); }
.m-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--hairline); }
.m-panel__head h3 { font-size: 15px; font-weight: 700; }
.m-panel__body { padding: 8px 22px 18px; }
.m-panel__body--flush { padding: 0; }

.m-line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--divider); }
.m-line:last-child { border-bottom: none; }
.m-line .m-isq { width: 36px; height: 36px; font-size: 18px; border-radius: 9px; }
.m-line .grow { flex: 1; min-width: 0; }
.m-line .t { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-line .s { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.m-progress { height: 6px; border-radius: 999px; background: var(--divider); overflow: hidden; }
.m-progress > span { display: block; height: 100%; border-radius: 999px; background: var(--primary); }
.m-progress--teal > span { background: var(--teal); }

.m-bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; }
.m-bars__bar { flex: 1; background: var(--primary-tint); border-radius: 6px 6px 0 0; min-height: 4px; }
.m-bars__bar.is-hi { background: var(--primary); }

/* ---- Order-flow (New order) summary + steps ---- */
.m-order-layout { display: grid; grid-template-columns: 1fr 380px; gap: 22px; align-items: start; }
.m-step-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 22px; box-shadow: var(--sh-card); margin-bottom: 18px; }
.m-step-card__num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; }
.m-step-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.m-step-card__head .t { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.m-radio-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.m-radio-item { display: flex; align-items: center; gap: 12px; border: 1px solid var(--input-border); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.m-radio-item:hover { border-color: var(--primary-tint-border); background: var(--surface-violet); }
.m-radio-item.is-active, .m-radio-item:has(input:checked) { border-color: var(--primary); background: var(--surface-violet); }
.m-radio-item input { accent-color: var(--primary); }
.m-stepper-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.m-stepper { font-size: 12.5px; font-weight: 600; color: var(--body); background: var(--bg); border: 1px solid var(--hairline); border-radius: 8px; padding: 7px 12px; cursor: pointer; }
.m-stepper:hover { border-color: var(--primary); color: var(--primary); }
.m-summary { position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); box-shadow: var(--sh-pop); overflow: hidden; }
.m-summary__head { background: linear-gradient(120deg, #6a2ee0, #7a3bf0); color: #fff; padding: 18px 22px; }
.m-summary__body { padding: 20px 22px; }
.m-summary__row { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; padding: 7px 0; }
.m-summary__row .k { color: var(--secondary); }
.m-summary__row .v { font-weight: 600; }
.m-summary__divider { border-top: 1px dashed var(--input-border); margin: 12px 0; }
.m-summary__total { display: flex; justify-content: space-between; align-items: baseline; }
.m-summary__total .big { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.is-negative { color: var(--st-cancelled) !important; }

/* ---- Gateway cards (add funds) ---- */
.m-gateways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.m-gateway { border: 1px solid var(--input-border); border-radius: 14px; padding: 18px; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.m-gateway:hover, .m-gateway.is-active, .m-gateway:has(input:checked) { border-color: var(--primary); background: var(--surface-violet); }
.m-gateway .m-isq { width: 44px; height: 44px; font-size: 22px; margin: 0 auto 10px; }
.m-amount-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.m-amount-chip { font-size: 13px; font-weight: 600; border: 1px solid var(--input-border); border-radius: 10px; padding: 8px 14px; cursor: pointer; background: var(--surface); }
.m-amount-chip:hover, .m-amount-chip.is-active { border-color: var(--primary); background: var(--surface-violet); color: var(--primary); }

/* ---- Segmented control (priority, toggles) ---- */
.m-segment { display: inline-flex; background: var(--bg); border: 1px solid var(--hairline); border-radius: 10px; padding: 3px; gap: 3px; }
.m-segment label, .m-segment .seg { font-size: 12.5px; font-weight: 600; color: var(--secondary); padding: 7px 14px; border-radius: 8px; cursor: pointer; }
.m-segment input { display: none; }
.m-segment label:has(input:checked), .m-segment .seg.is-active { background: var(--surface); color: var(--primary); box-shadow: var(--sh-card); }

/* toggle switch */
.m-toggle { position: relative; display: inline-block; width: 34px; height: 19px; }
.m-toggle input { display: none; }
.m-toggle .track { position: absolute; inset: 0; background: var(--input-border); border-radius: 999px; transition: background .15s; }
.m-toggle .track::before { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform .15s; }
.m-toggle input:checked + .track { background: var(--teal); }
.m-toggle input:checked + .track::before { transform: translateX(15px); }

/* tab pills row with counts (orders/deposits) */
.m-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }

/* copy field */
.m-copy-field { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--input-border); border-radius: 10px; padding: 6px 6px 6px 14px; }
.m-copy-field input { flex: 1; min-width: 0; border: none; background: none; outline: none; font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: var(--ink); }

/* dark code block (api) */
.m-code { background: var(--charcoal); color: #e6e6ee; border-radius: 12px; padding: 18px 20px; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; line-height: 1.8; overflow-x: auto; }
.m-code .tok-param { color: #b79cf7; }
.m-code .tok-val { color: #7fd8c9; }

/* Map ViserLab model statusBadge (`badge badge--*`) to design status pills so every
   orders/deposits/tickets/refills table renders consistent pills. */
.modern .badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); line-height: 1.4; }
.modern .badge--warning { color: var(--st-pending); background: var(--st-pending-bg); }
.modern .badge--primary, .modern .badge--info { color: var(--st-processing); background: var(--st-processing-bg); }
.modern .badge--success { color: var(--st-completed); background: var(--st-completed-bg); }
.modern .badge--danger { color: var(--st-cancelled); background: var(--st-cancelled-bg); }
.modern .badge--dark, .modern .badge--secondary { color: var(--st-refunded); background: var(--st-refunded-bg); }

/* Bootstrap modals used in the dashboard, restyled to the design system */
.modern .modal-content { border: 1px solid var(--hairline); border-radius: var(--r-card); box-shadow: var(--sh-float); }
.modern .modal-header { border-bottom: 1px solid var(--hairline); padding: 18px 22px; }
.modern .modal-title { font-size: 16px; font-weight: 700; }
.modern .modal-body { padding: 20px 22px; }
.modern .modal-footer { border-top: 1px solid var(--hairline); padding: 14px 22px; gap: 8px; }
.modern .modal-header .close, .modern .modal-header .btn-close { background: none; border: none; font-size: 18px; color: var(--muted); cursor: pointer; }
.modern .list-group-item { border: none; border-bottom: 1px solid var(--divider); padding: 12px 0; }
.modern .action-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--hairline); background: var(--surface); color: var(--body); cursor: pointer; font-size: 15px; transition: all .15s; }
.modern .action-btn:hover { border-color: var(--primary); color: var(--primary); }

@media (max-width: 1080px) {
    .m-order-layout { grid-template-columns: 1fr; }
    .m-summary { position: static; }
    .m-gateways { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
    .m-sidebar { position: fixed; left: 0; top: 0; z-index: 60; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--sh-float); }
    .m-sidebar.is-open { transform: translateX(0); }
    .m-sidebar-toggle { display: inline-flex; }
    .m-sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(23,23,29,.4); z-index: 55; }
    .m-sidebar-overlay.is-open { display: block; }
}
@media (max-width: 900px) {
    .m-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .m-grid--3 { grid-template-columns: 1fr; }
    .m-status-strip { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, 1fr); }
    .m-status-strip__item:nth-child(2n) { border-right: none; }
}
@media (max-width: 620px) {
    .m-main__body { padding: 18px; }
    .m-topbar { padding: 0 16px; gap: 10px; }
    .m-topbar__search { display: none; }
    .m-grid--2, .m-grid--4 { grid-template-columns: 1fr; }
    .m-gateways { grid-template-columns: 1fr; }
}

/* =====================================================================
   MOBILE REFINEMENTS — phone polish layered on top of the breakpoints
   above, so every page reads consistently and professionally on phones.
   ===================================================================== */

/* Safety net: never let a stray wide element create a horizontal scrollbar.
   `clip` (not `hidden`) is used so the sticky header/topbar keep working. */
html { overflow-x: clip; }
body.modern { overflow-x: clip; }
.modern img, .modern video, .modern iframe { max-width: 100%; }

/* Mobile dropdown menu: full-width, stacked auth buttons + tidy header/topbar */
@media (max-width: 820px) {
    .m-header__inner { gap: 12px; }
    .m-mobile-nav .m-btn { display: flex; width: 100%; margin-top: 8px; }
    .m-topbar__title { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
}

/* Phones: tighter side gutters + trimmed vertical rhythm + smaller big type */
@media (max-width: 600px) {
    :root { --gutter: 18px; }
    .m-section { padding: 48px 0; }
    .m-section--tight { padding: 40px 0; }
    .m-section-head { margin-bottom: 36px; }
    .m-hero__grid { padding-top: 44px; padding-bottom: 56px; }
    .m-hero h1 { font-size: 34px; line-height: 1.12; }
    .m-hero p { font-size: 15.5px; }
    .m-hero__cta { gap: 10px; }
    .m-hero__cta .m-btn { flex: 1 1 auto; }
    .m-h1, .m-breadcrumb h1 { font-size: 27px; }
    .m-h2, .m-cta h2 { font-size: 24px; }
    .m-breadcrumb__inner { padding-top: 28px; padding-bottom: 28px; }
    .m-cta { padding: 40px 22px; border-radius: 18px; }
    .m-feature-tiles { grid-template-columns: 1fr; }
    .m-platform-rail__inner { justify-content: center; }
    .m-priceblock-head { gap: 12px; }
    .m-page-head h1 { font-size: 21px; }
    /* Dashboard topbar stays compact so the balance chip + icons never wrap */
    .m-topbar { gap: 8px; }
    .m-balance-chip { font-size: 12.5px; padding: 4px 4px 4px 12px; }
}

/* Small phones: stack hero CTAs full-width and scale headings down once more */
@media (max-width: 430px) {
    .m-hero h1 { font-size: 30px; }
    .m-hero__cta { flex-direction: column; align-items: stretch; }
    .m-hero__cta .m-btn { width: 100%; }
    .m-h1, .m-breadcrumb h1 { font-size: 25px; }
    .m-counter-grid { grid-template-columns: 1fr; }
    .m-footer__bar { flex-direction: column; align-items: flex-start; gap: 6px; }
}
