/* ==========================================================================
   EduHub — Academic writing, editing & proofreading services
   ========================================================================== */

:root {
    --brand: #1a3a6b;
    --brand-dark: #0f2544;
    --brand-light: #2c5691;
    --accent: #f5a623;
    --accent-dark: #d98c0c;
    --ink: #16202f;
    --ink-soft: #4a5a70;
    --muted: #6b7c93;
    --line: #e3e9f1;
    --bg: #ffffff;
    --bg-soft: #f6f9fc;
    --bg-tint: #eef4fb;
    --white: #ffffff;
    --green: #1e8e5a;
    --red: #d64545;
    --gold: #d98c0c;
    --blue: #2c5691;
    --grey: #6b7c93;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 2px 8px rgba(22, 32, 47, .06);
    --shadow: 0 8px 26px rgba(22, 32, 47, .09);
    --shadow-lg: 0 18px 48px rgba(22, 32, 47, .14);
    --container: 1200px;
    --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-serif: "Georgia", "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- Top strip ---------- */
.topstrip {
    background: var(--brand-dark);
    color: #cfdcec;
    font-size: 13px;
    padding: 8px 0;
}
.topstrip .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topstrip a { color: #fff; font-weight: 600; }
.topstrip .ts-links { display: flex; gap: 20px; align-items: center; }
.topstrip .ts-left { display: flex; gap: 18px; align-items: center; }
.topstrip .ts-left span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Header ---------- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 60;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -.4px; }
.brand-logo {
    height: 46px; width: auto; max-width: 190px; object-fit: contain; display: block;
}
.brand-mark {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
    color: #fff; display: grid; place-items: center; font-size: 17px;
    box-shadow: var(--shadow-sm);
}
.brand-text small { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: 1.4px; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > a {
    padding: 9px 13px; border-radius: 9px; font-weight: 600; font-size: 14.5px; color: var(--ink-soft);
    transition: .18s; display: inline-flex; align-items: center;
}
.main-nav > a:hover, .main-nav > a.active { color: var(--brand); background: var(--bg-tint); }

/* ---------- Mega menu (Services) ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown > a { padding: 9px 13px; border-radius: 9px; font-weight: 600; font-size: 14.5px; color: var(--ink-soft); display: inline-flex; align-items: center; }
.nav-dropdown > a:hover, .nav-dropdown > a.active { color: var(--brand); background: var(--bg-tint); }
.nav-dropdown > a .caret { font-size: 10px; margin-left: 7px; opacity: .55; transition: transform .2s; }
.nav-dropdown.open > a .caret { transform: rotate(180deg); }

/* The menu is absolutely positioned relative to .site-header so it can span
   the full viewport width. A transparent ::before bridge covers the 10px gap
   between the trigger and the panel so the panel never closes on hover. */
.site-header { position: sticky; top: 0; z-index: 60; }
.site-header .has-mega { position: static; }

.mega-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 18px 48px rgba(22, 32, 47, .16);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 55;
}
.nav-dropdown.open .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.mega-inner {
    max-width: var(--container); margin: 0 auto; padding: 22px 20px 18px;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px;
    max-height: min(70vh, 620px); overflow-y: auto; overscroll-behavior: contain;
}

.mega-col { min-width: 0; display: flex; flex-direction: column; }
.mega-head {
    font-size: 11px; text-transform: uppercase; letter-spacing: 1.1px; color: var(--brand);
    font-weight: 800; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 7px;
    /* Fixed min-height keeps every column's first link on the same baseline,
       even when a heading wraps onto two lines. */
    min-height: 29px; line-height: 1.25;
}
.mega-head-alt {
    visibility: hidden; border-bottom-color: transparent; padding: 0; margin-bottom: 10px;
}
.mega-head i { color: var(--accent-dark); font-size: 12px; flex-shrink: 0; }
.mega-count {
    margin-left: auto; background: var(--bg-tint); color: var(--brand);
    font-size: 10px; padding: 2px 7px; border-radius: 100px; letter-spacing: 0; flex-shrink: 0;
}

.mega-list { display: grid; gap: 1px; }
.mega-list li { margin: 0; }
.mega-list a {
    display: flex; align-items: center; gap: 9px;
    padding: 6px 9px; border-radius: 7px; font-size: 13px;
    color: var(--ink-soft); font-weight: 500; transition: .14s;
}
.mega-list a i {
    width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center;
    background: var(--bg-soft); color: var(--brand); font-size: 11px; flex-shrink: 0; transition: .14s;
}
.mega-list a:hover { background: var(--bg-tint); color: var(--brand); padding-left: 12px; }
.mega-list a:hover i { background: var(--brand); color: #fff; }
.mega-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mega-price { font-size: 11px; color: var(--muted); font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.mega-list a:hover .mega-price { color: var(--brand); }

/* ---------- CTA band below the columns ---------- */
.mega-footer { border-top: 1px solid var(--line); background: var(--bg-soft); }
.mega-footer-inner {
    max-width: var(--container); margin: 0 auto; padding: 14px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
}
.mega-footer-copy { min-width: 0; }
.mega-footer-copy h5 {
    font-size: 13px; font-weight: 800; color: var(--ink); margin: 0 0 3px;
    display: flex; align-items: center; gap: 8px;
}
.mega-footer-copy h5 i { color: var(--accent-dark); }
.mega-footer-copy p { font-size: 12.5px; color: var(--ink-soft); margin: 0; }
.mega-footer-actions { display: flex; gap: 9px; flex-wrap: wrap; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--ink); padding: 6px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 10px; font-weight: 700; font-size: 14.5px;
    border: 1.5px solid transparent; cursor: pointer; transition: .18s; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(26, 58, 107, .22); }
.btn-primary:hover { background: var(--brand-light); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #2b1d05; box-shadow: 0 4px 14px rgba(245, 166, 35, .3); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); background: var(--bg-tint); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: #fff; color: var(--brand); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(900px 420px at 12% 0%, rgba(44, 86, 145, .45), transparent 60%),
        linear-gradient(125deg, var(--brand-dark) 0%, var(--brand) 55%, #234f8c 100%);
    color: #fff; padding: 68px 0 84px; position: relative; overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 26px 26px; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 52px; align-items: center; }
.hero h1 { font-size: 42px; line-height: 1.14; font-weight: 800; letter-spacing: -1px; margin-bottom: 18px; }
.hero h1 .hl { color: var(--accent); }
.hero-lead { font-size: 16.5px; color: #c9d8ec; margin-bottom: 26px; max-width: 560px; }
.hero-lead strong { color: #fff; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 26px; color: var(--accent); font-weight: 800; line-height: 1.1; }
.hero-stats div span { font-size: 13px; color: #a9bed6; }

.auth-card {
    background: rgba(255, 255, 255, .97); border-radius: var(--radius-lg); padding: 26px;
    box-shadow: var(--shadow-lg); color: var(--ink);
}
.auth-card h4 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.auth-card .auth-sub { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.auth-tabs { display: flex; gap: 4px; background: var(--bg-soft); padding: 4px; border-radius: 10px; margin-bottom: 18px; }
.auth-tabs button {
    flex: 1; padding: 9px; border: 0; background: transparent; border-radius: 8px;
    font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; transition: .16s;
}
.auth-tabs button.active { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }

/* ---------- Forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink-soft); }
.field label .req { color: var(--red); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.input, .select, .textarea {
    width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px;
    background: #fff; color: var(--ink); transition: .16s; font-size: 14.5px;
}
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(44, 86, 145, .12); }
.textarea { resize: vertical; min-height: 110px; }
.input.is-invalid, .textarea.is-invalid, .select.is-invalid { border-color: var(--red); }
.err { color: var(--red); font-size: 12.5px; margin-top: 5px; font-weight: 600; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.file-drop {
    border: 2px dashed var(--line); border-radius: var(--radius); padding: 24px; text-align: center;
    background: var(--bg-soft); cursor: pointer; transition: .18s;
}
.file-drop:hover { border-color: var(--brand); background: var(--bg-tint); }
.file-drop i { font-size: 26px; color: var(--brand); margin-bottom: 8px; }
.file-drop strong { display: block; font-size: 14px; margin-bottom: 4px; }
.file-drop span { font-size: 12.5px; color: var(--muted); }
.file-list { margin-top: 12px; display: grid; gap: 8px; }
.file-list .fi { display: flex; align-items: center; gap: 10px; background: var(--bg-soft); padding: 9px 12px; border-radius: 9px; font-size: 13.5px; }
.file-list .fi i { color: var(--brand); }

/* ---------- Sections ---------- */
.section { padding: 74px 0; }
.section-tight { padding: 52px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.eyebrow {
    display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
    color: var(--accent-dark); background: #fff6e6; padding: 6px 13px; border-radius: 100px; margin-bottom: 14px;
}
.section-head h2 { font-size: 32px; font-weight: 800; letter-spacing: -.7px; line-height: 1.22; margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); font-size: 16px; }

/* ---------- Service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px;
    display: flex; flex-direction: column; transition: .22s; position: relative; overflow: hidden;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cddcee; }
.svc-icon {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 21px;
    background: linear-gradient(135deg, var(--bg-tint), #dce9f7); color: var(--brand); margin-bottom: 16px;
}
.svc-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; line-height: 1.35; }
.svc-card p { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; flex: 1; }
.svc-price { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.svc-price strong { color: var(--brand); font-size: 19px; font-weight: 800; }
.svc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.svc-card .btn { flex: 1; }
.badge-popular {
    position: absolute; top: 16px; right: 16px; font-size: 10.5px; font-weight: 800; letter-spacing: 1px;
    text-transform: uppercase; padding: 5px 11px; border-radius: 100px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #2b1d05;
}
.badge-group {
    display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    color: var(--brand); background: var(--bg-tint); padding: 4px 10px; border-radius: 6px; margin-bottom: 10px;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { position: relative; padding: 26px 24px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.step-num {
    width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff;
    display: grid; place-items: center; font-weight: 800; font-size: 18px; margin-bottom: 15px;
}
.step h4 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--ink-soft); }

/* ---------- Why / features ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-item { text-align: center; padding: 24px 18px; }
.why-item i { font-size: 32px; color: var(--accent); margin-bottom: 14px; }
.why-item h5 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.why-item p { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-q {
    width: 100%; text-align: left; background: none; border: 0; padding: 18px 22px; cursor: pointer;
    font-weight: 700; font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-q i { color: var(--brand); transition: .22s; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(125deg, var(--brand-dark), var(--brand) 60%, #234f8c);
    color: #fff; padding: 56px 0; text-align: center;
}
.cta-band h3 { font-size: 27px; font-weight: 800; margin-bottom: 12px; }
.cta-band p { color: #b9cce2; margin-bottom: 24px; max-width: 600px; margin-inline: auto; }
.cta-band .hero-cta { justify-content: center; margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: #9db3cd; padding: 58px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.site-footer h5 { color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 16px; }
.site-footer a { color: #9db3cd; display: block; padding: 4px 0; transition: .16s; }
.site-footer a:hover { color: var(--accent); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 19px; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.08); display: grid; place-items: center; padding: 0; }
.social-row a:hover { background: var(--accent); color: #2b1d05; }

/* ---------- Page head ---------- */
.page-head { background: linear-gradient(125deg, var(--brand-dark), var(--brand)); color: #fff; padding: 54px 0; }
.page-head h1 { font-size: 34px; font-weight: 800; letter-spacing: -.7px; margin-bottom: 8px; }
.page-head p { color: #b9cce2; max-width: 640px; }
.breadcrumb { font-size: 13px; color: #9db3cd; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Service detail ---------- */
.svc-detail { display: grid; grid-template-columns: 1.45fr .85fr; gap: 44px; align-items: start; }
.svc-detail h1 { font-size: 34px; font-weight: 800; letter-spacing: -.8px; line-height: 1.2; margin-bottom: 14px; }
.svc-lead { font-size: 16.5px; color: var(--ink-soft); margin-bottom: 26px; }
.svc-desc { font-size: 15px; color: var(--ink-soft); margin-bottom: 28px; }
.svc-desc p { margin-bottom: 14px; }
.svc-desc h2 { font-size: 21px; font-weight: 800; color: var(--ink); margin: 24px 0 10px; }
.svc-desc ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.svc-desc li { margin-bottom: 6px; }
.svc-desc table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 14px; }
.svc-desc th, .svc-desc td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; }
.svc-desc th { background: var(--bg-soft); font-weight: 700; }
.svc-desc blockquote {
    border-left: 3px solid var(--accent); padding: 10px 16px; background: var(--bg-soft);
    margin: 0 0 16px; font-style: italic; color: var(--ink-soft);
}

/* ---------- Rich text editor (TinyMCE) ---------- */
.rt-source {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
    background: #fff; color: var(--ink); font-family: ui-monospace, monospace; font-size: 13px;
    line-height: 1.6; resize: vertical; overflow-y: auto; display: block;
}
.rt-source:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(44, 86, 145, .12); }
.rt-status {
    margin-top: 8px; font-size: 12.5px; font-weight: 600;
    color: var(--green); display: flex; align-items: center; gap: 6px;
}
.tox-tinymce { border: 1.5px solid var(--line) !important; border-radius: 10px !important; }
/* Fixed height + internal vertical scrolling inside the editor body. */
.tox .tox-edit-area { overflow: hidden; }
.tox .tox-edit-area__iframe { background: #fff; }
.tox .tox-edit-area__iframe iframe { display: block; }
.tox .tox-toolbar-overlord { background: var(--bg-soft) !important; border-bottom: 1px solid var(--line) !important; }
.tox .tox-toolbar__primary { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.tox .tox-tbtn { color: var(--ink-soft) !important; }
.tox .tox-tbtn:hover { background: var(--bg-tint) !important; color: var(--brand) !important; }
.tox .tox-tbtn--enabled { background: var(--brand) !important; color: #fff !important; }
.tox .tox-statusbar { border-top: 1px solid var(--line) !important; font-size: 12px; }
.tox .tox-statusbar__text-container { color: var(--muted); }
.rt-status .fa-circle-info { color: var(--gold); }

.feature-list { display: grid; gap: 11px; margin-bottom: 28px; }
.feature-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); }
.feature-list i { color: var(--green); margin-top: 4px; flex-shrink: 0; }

.order-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 26px; box-shadow: var(--shadow); position: sticky; top: 92px;
}
.order-card h4 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.order-card .oc-sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.price-tiers { display: grid; gap: 10px; margin-bottom: 18px; }
.tier {
    border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; transition: .16s;
    display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff;
}
.tier:hover { border-color: var(--brand); }
.tier.selected { border-color: var(--brand); background: var(--bg-tint); }
.tier .t-label { font-weight: 700; font-size: 13.5px; }
.tier .t-meta { font-size: 12px; color: var(--muted); }
.tier .t-price { font-weight: 800; color: var(--brand); font-size: 15px; white-space: nowrap; }

.deadline-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
    font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 100px;
    background: var(--bg-soft); color: var(--ink-soft); border: 1px solid var(--line);
}
.trust-list { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; display: grid; gap: 10px; }
.trust-list li { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-soft); }
.trust-list i { color: var(--brand); }

/* ---------- Order page ---------- */
.order-layout { display: grid; grid-template-columns: 1.5fr .85fr; gap: 34px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 22px; }
.panel > h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.panel > h3 i { color: var(--brand); }
.panel .panel-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.summary-box { background: var(--bg-soft); border-radius: var(--radius); padding: 18px; position: sticky; top: 92px; }
.summary-box h4 { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; color: var(--ink-soft); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 13px; font-size: 19px; font-weight: 800; color: var(--ink); }
.sum-row .disc { color: var(--green); }

/* ---------- Order list / tracking ---------- */
.order-cards { display: grid; gap: 16px; }
.order-card-row {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
    display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; transition: .18s;
}
.order-card-row:hover { box-shadow: var(--shadow-sm); border-color: #cddcee; }
.ocr-left { flex: 1; min-width: 240px; }
.ocr-left h4 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.ocr-meta { font-size: 13px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.ocr-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 100px;
    font-size: 11.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-green { background: #e6f6ee; color: var(--green); }
.pill-gold { background: #fff3dc; color: var(--gold); }
.pill-blue { background: #e6effa; color: var(--blue); }
.pill-red { background: #fdeaea; color: var(--red); }
.pill-grey { background: #eef1f5; color: var(--grey); }

.progress { height: 7px; background: var(--line); border-radius: 100px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-light)); border-radius: 100px; transition: width .4s; }
.progress-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 7px; }

.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 24px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
    position: absolute; left: -34px; top: 2px; width: 24px; height: 24px; border-radius: 50%;
    background: #fff; border: 2.5px solid var(--line); display: grid; place-items: center; font-size: 10px; color: #fff;
}
.tl-item.done .tl-dot { background: var(--green); border-color: var(--green); }
.tl-item.current .tl-dot { background: var(--accent); border-color: var(--accent); }
.tl-item h5 { font-size: 15px; font-weight: 800; margin-bottom: 3px; }
.tl-item .tl-time { font-size: 12.5px; color: var(--muted); }
.tl-item p { font-size: 13.5px; color: var(--ink-soft); margin-top: 5px; }

.file-rows { display: grid; gap: 10px; }
.file-row {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--bg-soft);
    border-radius: 10px; border: 1px solid var(--line);
}
.file-row i.fr-icon { font-size: 20px; color: var(--brand); width: 38px; height: 38px; background: #fff; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.file-row .fr-main { flex: 1; min-width: 0; }
.file-row .fr-name { font-weight: 700; font-size: 14.5px; word-break: break-word; }
.file-row .fr-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------- Dashboard ---------- */
.dash-layout { display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: start; }
.side-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; position: sticky; top: 92px; }
.side-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 9px; font-weight: 600; font-size: 14.5px; color: var(--ink-soft); margin-bottom: 3px; }
.side-nav a:hover { background: var(--bg-tint); color: var(--brand); }
.side-nav a.active { background: var(--brand); color: #fff; }
.side-nav a i { width: 18px; text-align: center; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.kpi i { font-size: 20px; color: var(--brand); margin-bottom: 10px; display: block; }
.kpi strong { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; }
.kpi span { font-size: 13px; color: var(--muted); }

/* ---------- Admin ---------- */
.admin-layout { display: grid; grid-template-columns: 244px 1fr; gap: 0; min-height: 100vh; background: var(--bg-soft); }
.admin-side { background: var(--brand-dark); color: #9db3cd; padding: 22px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 70; }
.admin-side .brand { color: #fff; margin-bottom: 26px; padding: 0 8px; }
.admin-side .brand-logo { height: 38px; width: auto; max-width: 150px; object-fit: contain; }
.admin-side .brand-text small { color: #7e97b6; }
.admin-side h6 { font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: #61809f; margin: 20px 10px 8px; font-weight: 800; }
.admin-side a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; font-weight: 600; font-size: 14px; color: #9db3cd; margin-bottom: 2px; }
.admin-side a:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-side a.active { background: var(--brand-light); color: #fff; }
.admin-side a i { width: 17px; text-align: center; }
.admin-main { padding: 26px 30px 50px; min-width: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }

/* ---------- Admin sidebar drawer (mobile only) ---------- */
/* Desktop: the sidebar is a normal fixed column, always visible.
   Mobile (<=1024px): it becomes an off-canvas drawer with a toggle in the
   topbar, a backdrop and a close button. */
.admin-topbar { display: none; }
.admin-drawer-btn {
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
    background: #fff; color: var(--ink); cursor: pointer; font-size: 15px;
    display: grid; place-items: center; transition: .16s; flex: 0 0 auto;
}
.admin-drawer-btn:hover { border-color: var(--brand); color: var(--brand); }
.admin-drawer-close {
    position: absolute; top: 16px; right: 14px; width: 32px; height: 32px;
    border-radius: 9px; border: 0; background: rgba(255,255,255,.08); color: #fff;
    cursor: pointer; font-size: 14px; display: none; place-items: center;
}
.admin-drawer-close:hover { background: rgba(255,255,255,.16); }
.admin-backdrop {
    position: fixed; inset: 0; background: rgba(11, 24, 44, .5);
    z-index: 65; backdrop-filter: blur(2px);
}
.admin-backdrop[hidden] { display: none; }

@media (max-width: 1024px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-topbar {
        display: flex; align-items: center; gap: 12px;
        position: sticky; top: 0; z-index: 60;
        background: var(--brand-dark); color: #fff;
        padding: 10px 16px;
    }
    .admin-topbar-title { font-size: 14px; font-weight: 800; letter-spacing: .2px; }
    .admin-topbar .admin-drawer-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: #fff; }
    .admin-topbar .admin-drawer-btn:hover { background: rgba(255,255,255,.2); color: #fff; }

    .admin-side {
        position: fixed; top: 0; left: 0; bottom: 0; height: 100vh; width: 264px;
        transform: translateX(-100%); transition: transform .24s ease;
        box-shadow: 4px 0 26px rgba(0,0,0,.28);
    }
    body.admin-drawer-open .admin-side { transform: translateX(0); }
    .admin-drawer-close { display: grid; }
    .admin-main { padding: 20px 18px 40px; }
}

table.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
table.tbl th { background: #f9fbfd; text-align: left; padding: 12px 16px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 800; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover { background: #fbfdff; }
.tbl-wrap { overflow-x: auto; }
.t-empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.t-empty i { font-size: 34px; margin-bottom: 12px; display: block; color: var(--line); }

.ic-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; font-size: 13px; color: var(--ink-soft); transition: .16s; }
.ic-btn:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Admin datatable ---------- */
.dt-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap; margin-bottom: 16px;
}
.dt-search-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dt-search { position: relative; display: flex; align-items: center; }
.dt-search > i {
    position: absolute; left: 13px; font-size: 13px; color: var(--muted);
    pointer-events: none; z-index: 1;
}
.dt-search input[type="search"] {
    width: 260px; max-width: 100%; padding: 10px 34px 10px 36px;
    border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
    font-size: 14px; color: var(--ink); font-family: inherit;
}
.dt-search input[type="search"]:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(44, 86, 145, .12); }
.dt-search input[type="search"]::-webkit-search-cancel-button { display: none; }
.dt-search-clear {
    position: absolute; right: 10px; width: 20px; height: 20px; border-radius: 50%;
    display: grid; place-items: center; background: var(--bg-soft); color: var(--muted);
    font-size: 11px;
}
.dt-search-clear:hover { background: var(--line); color: var(--ink); }
.dt-per { display: flex; align-items: center; gap: 7px; }
.dt-per label { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.dt-per .select { padding: 9px 30px 9px 11px; font-size: 13.5px; width: auto; }
.dt-filter { display: flex; align-items: center; gap: 7px; }
.dt-filter label { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.dt-filter .select { padding: 9px 30px 9px 11px; font-size: 13.5px; width: auto; min-width: 165px; }
.dt-toolbar-actions { display: flex; align-items: center; gap: 10px; }

/* Sortable header links */
.dt-sort {
    display: inline-flex; align-items: center; gap: 6px;
    color: inherit; text-transform: inherit; letter-spacing: inherit;
    font-size: inherit; font-weight: inherit; white-space: nowrap;
}
.dt-sort > i { font-size: 11px; color: #c3cedd; transition: .15s; }
.dt-sort:hover > i { color: var(--brand); }
.dt-sort:hover { color: var(--brand); }
.dt-sort-active { color: var(--brand); }
.dt-sort-active > i { color: var(--brand); }

/* Datatable table tweaks */
.dt-table th { padding: 0; }
.dt-table th > .dt-sort { padding: 12px 16px; display: flex; }
.dt-table th:empty { padding: 0; }
.dt-table td { font-size: 13.8px; }

/* Pagination */
.dt-foot { margin-top: 18px; }
.dt-pager {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
}
.dt-pager-info { font-size: 13px; color: var(--muted); }
.dt-pager-info strong { color: var(--ink); font-weight: 800; }
.dt-pager-list { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.dt-pager-list li { margin: 0; }
.dt-page {
    min-width: 34px; height: 34px; padding: 0 9px; border-radius: 9px;
    border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
    display: inline-grid; place-items: center; font-size: 13.5px; font-weight: 700;
    transition: .15s; text-decoration: none; line-height: 1;
}
.dt-page:hover { border-color: var(--brand); color: var(--brand); background: var(--bg-tint); }
.dt-page i { font-size: 11px; }
.dt-page-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.dt-page-active:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.dt-page-disabled { opacity: .42; cursor: not-allowed; background: var(--bg-soft); }
.dt-page-disabled:hover { border-color: var(--line); color: var(--ink-soft); background: var(--bg-soft); }
.dt-page-dots { border-color: transparent; background: transparent; cursor: default; }
.dt-page-dots:hover { border-color: transparent; background: transparent; color: var(--ink-soft); }
.ic-delete:hover { border-color: var(--red); color: var(--red); }
.ic-edit:hover { border-color: var(--blue); color: var(--blue); }

.price-rows { display: grid; gap: 12px; }
.price-row { display: grid; grid-template-columns: 1.1fr 90px 1fr 110px 100px 100px 40px; gap: 9px; align-items: end; background: var(--bg-soft); padding: 13px; border-radius: 11px; border: 1px solid var(--line); }
.price-row .field { margin-bottom: 0; }
.price-row .field label { font-size: 11px; }
.price-row .input, .price-row .select { padding: 8px 10px; font-size: 13.5px; }
.row-del { width: 32px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--red); cursor: pointer; }

.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.admin-panel h3 { font-size: 17px; font-weight: 800; margin-bottom: 18px; display: flex; align-items: center; gap: 9px; }
.admin-panel h3 i { color: var(--brand); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ---------- Admin single-column form stack ---------- */
.form-stack { display: flex; flex-direction: column; gap: 20px; }
.form-stack > .admin-panel { margin-bottom: 0; }
.admin-panel h3 .panel-step {
    display: inline-grid; place-items: center; flex: 0 0 auto;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--brand); color: #fff;
    font-size: 12.5px; font-weight: 800; line-height: 1;
}
.form-actions { display: flex; gap: 12px; align-items: center; justify-content: flex-start; }
.form-actions .btn { min-width: 200px; justify-content: center; }

/* ---------- Alerts ---------- */
.alert { padding: 13px 18px; border-radius: 10px; font-size: 14px; font-weight: 600; margin-bottom: 18px; display: flex; gap: 10px; align-items: center; }
.alert-success { background: #e6f6ee; color: #14663f; }
.alert-error { background: #fdeaea; color: #a52f2f; }
.alert-info { background: #e6effa; color: var(--blue); }

/* ---------- Auth pages ---------- */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; background: linear-gradient(135deg, var(--brand-dark), var(--brand) 55%, #234f8c); }
.auth-panel { width: 100%; max-width: 480px; background: #fff; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-lg); }
.auth-panel .brand { justify-content: center; margin-bottom: 8px; }
.auth-panel > p.sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.auth-foot { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
.auth-foot a { color: var(--brand); font-weight: 700; }
.tabs-group { display: flex; gap: 6px; margin-bottom: 22px; background: var(--bg-soft); padding: 5px; border-radius: 11px; }
.tabs-group button { flex: 1; padding: 10px; border: 0; background: transparent; border-radius: 8px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; }
.tabs-group button.active { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }

/* ---------- Float WhatsApp ---------- */
.float-wa {
    position: fixed; right: 22px; bottom: 22px; width: 54px; height: 54px; border-radius: 50%;
    background: #25d366; color: #fff; display: grid; place-items: center; font-size: 24px; z-index: 70;
    box-shadow: 0 8px 22px rgba(37, 211, 102, .42); transition: .2s;
}
.float-wa:hover { transform: scale(1.08); }

/* ---------- Misc ---------- */
.prose h2 { font-size: 21px; font-weight: 800; margin: 26px 0 10px; color: var(--ink); }
.prose h3 { font-size: 17px; font-weight: 800; margin: 20px 0 8px; }
.prose p { margin-bottom: 13px; color: var(--ink-soft); font-size: 15px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 14px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; color: var(--ink-soft); font-size: 15px; }
.prose a { color: var(--brand); font-weight: 600; }
.prose strong { color: var(--ink); }
.table-wrap { overflow-x: auto; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mini-table th, .mini-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.mini-table th { background: var(--bg-soft); font-size: 11.5px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); font-weight: 800; }
.mini-table tbody tr:hover { background: #fbfdff; }

@media (max-width: 1024px) {
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .hero .container { grid-template-columns: 1fr; }
    .svc-detail, .order-layout { grid-template-columns: 1fr; }
    .order-card, .summary-box { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-layout { grid-template-columns: 1fr; }
    .side-nav { position: static; }
    .price-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
    .main-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
        flex-direction: column; align-items: stretch; padding: 12px; border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow); max-height: 80vh; overflow-y: auto;
    }
    .main-nav.open { display: flex; }
    .nav-toggle { display: block; }
    .site-header .has-mega { position: relative; }
    .mega-menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; border-radius: var(--radius); background: var(--bg-soft);
        display: none; margin-top: 6px;
    }
    .nav-dropdown.open .mega-menu { display: block; }
    .mega-inner { grid-template-columns: 1fr; gap: 18px; padding: 14px; }
    .mega-list a { font-size: 13.5px; }
    .mega-head-alt { display: none; }
    .mega-footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px; }
    .mega-footer-actions { width: 100%; }
    .mega-footer-actions .btn { flex: 1; }
    .brand-logo { height: 38px; }
    .steps { grid-template-columns: 1fr; }
    .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
    .section { padding: 54px 0; }
    .hero h1 { font-size: 32px; }
}

@media (max-width: 620px) {
    .svc-grid, .why-grid, .row-2, .row-3, .grid-2, .grid-3, .grid-4, .kpi-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 27px; }
    .section-head h2 { font-size: 25px; }
    .page-head h1 { font-size: 26px; }
    .auth-panel { padding: 26px 20px; }
    .price-row { grid-template-columns: 1fr; }
    .topstrip .ts-links { display: none; }
}
