@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+Bengali:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #0a0a12;
    --surface: #131320;
    --surface-2: #171826;
    --surface-3: #1e2032;
    --border: rgba(255,255,255,0.09);
    --border-strong: rgba(255,255,255,0.16);
    --text: #eceaf7;
    --text-dim: #9490ac;
    --text-faint: #5f5c74;
    --accent: #8b5cf6;
    --accent-2: #3b82f6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.22);
}

* { box-sizing: border-box; }

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    color-scheme: dark;
}

body {
    margin: 0;
    font-family: 'Inter', 'Noto Sans Bengali', system-ui, sans-serif;
    background:
        radial-gradient(ellipse 900px 500px at 15% -10%, rgba(139,92,246,.16), transparent 60%),
        radial-gradient(ellipse 700px 500px at 100% 10%, rgba(59,130,246,.12), transparent 60%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
h1, h2, h3 { font-family: 'Inter', 'Noto Sans Bengali', system-ui, sans-serif; letter-spacing: -0.01em; }

/* ---------- Generic clean card ---------- */
.card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: border-color .15s ease, transform .18s ease, box-shadow .18s ease;
}
.card:hover { border-color: var(--border-strong); }
.features .card:hover, .use-case-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0,0,0,.3), 0 16px 34px rgba(99,102,241,.16);
}
.card-pad { margin-bottom: 22px; }
.card-pad-inner { padding: 26px; }
.card-pad-inner h2 { margin-top: 0; font-size: 17px; font-weight: 700; }
.accent-top {
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: var(--radius) var(--radius) 0 0;
    margin: -1px -1px 0;
}

/* ---------- Buttons ---------- */
.btn-primary {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: filter .15s ease, transform .15s ease;
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }

.btn-secondary {
    background: var(--surface-3);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 11px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: border-color .15s ease;
}
.btn-secondary:hover { border-color: var(--border-strong); }

.btn-link { color: var(--accent-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.btn-large { padding: 15px 30px; font-size: 15px; border-radius: 12px; }
.btn-small-cta { padding: 9px 18px; font-size: 13px; }

.btn-small {
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-3);
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
}
.btn-small:hover { border-color: var(--border-strong); }
.btn-view { color: var(--accent-2); }
.btn-publish { color: var(--success); }
.btn-unpublish { color: var(--warning); }
.btn-danger { color: var(--danger); }
.btn-edit { color: #c084fc; }
.btn-analytics { color: var(--warning); }
.btn-small svg { width: 14px; height: 14px; }

/* ---------- Auth Page ---------- */
.auth-page { display: flex; align-items: center; justify-content: center; padding: 24px; min-height: 100vh; }
.auth-card { max-width: 400px; width: 100%; }
.auth-card-inner { padding: 44px 36px; text-align: center; }
.auth-logo {
    width: 56px; height: 56px; border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin: 0 auto 18px;
}
.auth-card h1 { margin: 0 0 8px; font-size: 24px; font-weight: 800; }
.subtitle { color: var(--text-dim); margin-bottom: 28px; font-size: 14px; line-height: 1.6; }
.btn-google {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: #fff; color: #1f1f1f; padding: 13px 24px; border-radius: 10px;
    text-decoration: none; font-weight: 600; width: 100%;
    transition: transform .15s ease; font-size: 14.5px;
}
.btn-google:hover { transform: translateY(-1px); }

/* ============================================
   APP SHELL — সাইডবার + মেইন কনটেন্ট
   ============================================ */
.app-layout { display: flex; min-height: 100vh; }

.sidebar {
    width: 250px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; bottom: 0; left: 0;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 200;
    overflow-y: auto;
}
.sidebar.sthoster-sidebar-open { transform: translateX(0); }

.sidebar-logo {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 10px 20px;
    font-weight: 800; font-size: 16.5px;
    text-decoration: none; color: var(--text);
}
.sidebar-logo-icon {
    width: 32px; height: 32px; border-radius: 9px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: flex; align-items: center; justify-content: center; font-size: 16px;
    flex-shrink: 0;
}

.sidebar-section-label {
    font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
    color: var(--text-faint); padding: 14px 12px 6px; font-weight: 700;
}

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 10px;
    color: var(--text-dim); text-decoration: none;
    font-size: 14px; font-weight: 500;
}
.sidebar-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-nav a:hover { background: rgba(255,255,255,.05); color: var(--text); }
.sidebar-nav a.active { background: rgba(99,102,241,.16); color: #fff; }

.sidebar-spacer { flex: 1; }

.sidebar-footer { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.sidebar-profile { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.sidebar-profile-info { min-width: 0; flex: 1; }
.sidebar-profile-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-logout { font-size: 12px; color: var(--text-faint); text-decoration: none; }
.sidebar-logout:hover { color: var(--danger); }

.sidebar-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.55);
    z-index: 150; display: none;
}
.sidebar-backdrop.sthoster-show { display: block; }

.mobile-topbar {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(11,13,20,.95);
    backdrop-filter: blur(10px);
    z-index: 220;
}
.hamburger-btn {
    background: none; border: 1px solid var(--border); border-radius: 8px;
    color: var(--text); font-size: 18px; cursor: pointer;
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.mobile-topbar .brand { font-size: 15px; }

.main-content { flex: 1; min-width: 0; }

@media (max-width: 959px) {
    .main-content { padding-top: 64px; }
}

@media (min-width: 960px) {
    .sidebar { position: sticky; transform: translateX(0); height: 100vh; }
    .sidebar-backdrop { display: none !important; }
    .mobile-topbar { display: none; }
}

/* ---------- Profile pic ---------- */
.profile-pic { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.profile-pic-fallback {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; color: #fff; flex-shrink: 0;
}
.brand {
    font-weight: 800; font-size: 17px; text-decoration: none; color: var(--text);
    display: flex; align-items: center; gap: 8px;
}

/* ---------- Container ---------- */
.container { max-width: 1000px; margin: 0 auto; padding: 30px 24px 60px; }

.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 14px; }
.flash-success { background: rgba(16, 185, 129, .1); border: 1px solid var(--success); color: #6ee7b7; }
.flash-error { background: rgba(239, 68, 68, .1); border: 1px solid var(--danger); color: #fca5a5; }
.flash-info { background: rgba(6, 182, 212, .1); border: 1px solid var(--accent-2); color: #a5f3fc; }

.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.page-header h1 { margin: 0; font-size: 21px; font-weight: 800; }

/* ---------- Stat cards ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat-box-inner { padding: 20px 18px; }
.stat-icon {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
}
.stat-icon svg { width: 19px; height: 19px; }
.stat-icon-violet { background: rgba(139,92,246,.15); color: #a78bfa; }
.stat-icon-green  { background: rgba(16,185,129,.15); color: #34d399; }
.stat-icon-amber  { background: rgba(245,158,11,.15); color: #fbbf24; }
.stat-icon-blue   { background: rgba(59,130,246,.15); color: #60a5fa; }
.stat-num { font-size: 26px; font-weight: 800; color: var(--text); }
.stat-label { color: var(--text-dim); font-size: 12px; margin-top: 4px; }

/* ---------- Tabs ---------- */
.tab-bar { display: flex; gap: 4px; margin-bottom: 22px; border-bottom: 1px solid var(--border); }
.tab-btn {
    padding: 10px 18px; background: none; border: none;
    color: var(--text-dim); font-size: 14px; font-weight: 600;
    cursor: pointer; border-bottom: 2px solid transparent; font-family: inherit;
}
.tab-btn.active { color: var(--text); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Forms ---------- */
.field-label { display: block; font-size: 13px; color: var(--text-dim); margin: 16px 0 6px; font-weight: 500; }
.field-input {
    width: 100%; background: var(--bg); border: 1px solid var(--border);
    border-radius: 10px; padding: 11px 14px; color: var(--text);
    font-size: 14px; font-family: inherit;
}
.field-input:focus { outline: none; border-color: var(--accent); }
.field-input:disabled { opacity: .55; cursor: not-allowed; }

/* Chrome/Android autofill এর সাদা ব্যাকগ্রাউন্ড পুরো সাইটেই ডার্ক থিমে ফিক্স করে রাখা হচ্ছে */
.field-input:-webkit-autofill,
.field-input:-webkit-autofill:hover,
.field-input:-webkit-autofill:focus,
.rename-input:-webkit-autofill,
.rename-input:-webkit-autofill:hover,
.rename-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text) !important;
    -webkit-box-shadow: 0 0 0 1000px var(--bg) inset !important;
    box-shadow: 0 0 0 1000px var(--bg) inset !important;
    caret-color: var(--text);
    transition: background-color 9999s ease-in-out 0s;
}
.field-textarea { resize: vertical; font-family: 'Fira Code', 'Courier New', monospace; font-size: 13px; line-height: 1.6; }
.code-editor {
    width: 100%; min-height: 420px; background: #0d0e16;
    border: 1px solid var(--border); border-radius: 12px; padding: 18px;
    color: #d6d9f5; font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 13px; line-height: 1.7; resize: vertical; tab-size: 2;
}
.code-editor:focus { outline: none; border-color: var(--accent); }

.upload-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.upload-form input[type="file"] {
    flex: 1; min-width: 200px; background: var(--bg);
    border: 1px dashed var(--border); border-radius: 10px; padding: 11px; color: var(--text);
}

/* ---------- Site Cards ---------- */
.empty-state { color: var(--text-dim); text-align: center; padding: 30px; }

/* ---------- Website Table (My Websites) ---------- */
.table-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.sites-table { width: 100%; border-collapse: collapse; }
.sites-table th {
    text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em;
    color: var(--text-faint); font-weight: 700; padding: 14px 16px;
    border-bottom: 1px solid var(--border); background: var(--surface);
}
.sites-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 13.5px; vertical-align: middle; }
.sites-table tbody tr:last-child td { border-bottom: none; }
.sites-table tbody tr:hover { background: rgba(255,255,255,.02); }
.site-url-cell { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.site-favicon-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-live { background: var(--success); box-shadow: 0 0 8px rgba(16,185,129,.7); }
.dot-draft { background: var(--warning); }
.text-dim-cell { color: var(--text-dim); }

.row-actions { display: flex; gap: 4px; align-items: center; justify-content: flex-end; position: relative; }
.row-icon-btn {
    width: 30px; height: 30px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dim); text-decoration: none; cursor: pointer;
    border: 1px solid transparent; background: none; list-style: none;
}
.row-icon-btn:hover { background: var(--surface-3); color: var(--text); border-color: var(--border); }
.row-icon-btn svg { width: 15px; height: 15px; }
.row-icon-btn::-webkit-details-marker { display: none; }

.row-menu { position: relative; }
.row-menu-content {
    position: absolute; right: 0; top: calc(100% + 6px);
    background: var(--surface-3); border: 1px solid var(--border-strong);
    border-radius: 12px; padding: 6px; min-width: 190px;
    box-shadow: 0 12px 30px rgba(0,0,0,.5);
    z-index: 40; display: flex; flex-direction: column; gap: 2px;
}
.row-menu-item {
    width: 100%; text-align: left; background: none; border: none;
    color: var(--text); font-size: 13px; padding: 9px 10px; border-radius: 8px;
    cursor: pointer; font-family: inherit;
}
.row-menu-item:hover { background: rgba(255,255,255,.06); }
.row-menu-item-success { color: var(--success); }
.row-menu-item-danger { color: var(--danger); }
.row-menu-form { display: flex; gap: 6px; padding: 4px; }
.row-menu-form .rename-input { width: auto; flex: 1; }
.lock-note { color: var(--text-faint); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.lock-note svg { width: 13px; height: 13px; }

@media (max-width: 700px) {
    .sites-table thead { display: none; }
    .sites-table, .sites-table tbody, .sites-table tr, .sites-table td { display: block; width: 100%; }
    .sites-table tr { padding: 14px 16px; border-bottom: 1px solid var(--border); }
    .sites-table td { border: none; padding: 4px 0; }
    .row-actions { justify-content: flex-start; margin-top: 8px; }
}

.badge { font-size: 11px; padding: 3px 9px; border-radius: 100px; margin-left: 8px; font-weight: 600; }
.badge-published { background: rgba(16, 185, 129, .15); color: #6ee7b7; }
.badge-draft { background: rgba(245, 158, 11, .15); color: #fcd34d; }

.site-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form { display: flex; gap: 6px; align-items: center; }
.rename-input {
    background: var(--bg); border: 1px solid var(--border); border-radius: 7px;
    padding: 7px 9px; color: var(--text); width: 130px; font-size: 13px;
}

/* ---------- Toggle switch ---------- */
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 25px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: var(--surface-3); border: 1px solid var(--border); border-radius: 999px; transition: background .2s ease; }
.toggle-slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; bottom: 2px; background: #fff; border-radius: 50%; transition: transform .2s ease; }
.toggle-switch input:checked + .toggle-slider { background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-color: transparent; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(19px); }

.settings-header { display: flex; justify-content: space-between; align-items: center; }
.settings-header h2 { margin: 0; }
.status-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.status-row:last-of-type { border-bottom: none; }

/* ---------- Analytics ---------- */
.chart-wrap { padding: 20px; margin-bottom: 18px; }
.chart-wrap canvas { max-width: 100% !important; }
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.chart-header-label { font-size: 14px; font-weight: 700; color: var(--text); }
.chart-header-total { font-size: 12px; color: var(--text-dim); background: var(--surface-3); padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.analytics-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.analytics-table th, .analytics-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.analytics-table th { color: var(--text-dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }

/* ---------- Site Created confirmation ---------- */
.success-hero { text-align: center; padding: 20px 10px 8px; }
.success-icon { font-size: 44px; margin-bottom: 10px; }
.url-suggest-box {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
    padding: 14px 16px; margin: 20px 0;
}
.url-suggest-box .url-text { font-family: 'Fira Code', monospace; font-size: 15px; font-weight: 600; color: var(--accent-2); flex: 1; min-width: 200px; word-break: break-all; }

/* ============================================
   LANDING PAGE
   ============================================ */
.landing-page { overflow-x: hidden; }
.landing-nav {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
    padding: 18px 5%;
}
.nav-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.hero { text-align: center; padding: 70px 6% 55px; max-width: 820px; margin: 0 auto; position: relative; }
.hero::before {
    content: "";
    position: absolute; inset: -20px -100vw 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at center, #000 30%, transparent 80%);
    mask-image: radial-gradient(ellipse 60% 70% at center, #000 30%, transparent 80%);
    z-index: -1;
}
.hero-badge {
    display: inline-block; padding: 6px 16px; border-radius: 999px;
    background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.3);
    color: var(--accent-2); font-size: 12.5px; font-weight: 600; margin-bottom: 22px;
}
.hero h1 { font-size: 38px; line-height: 1.3; margin-bottom: 18px; font-weight: 800; }
.gradient-text {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-subtitle { color: var(--text-dim); font-size: 16.5px; margin-bottom: 34px; line-height: 1.65; }
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.section-title { text-align: center; font-size: 26px; margin-bottom: 8px; font-weight: 800; }
.section-subtitle { text-align: center; color: var(--text-dim); font-size: 14.5px; margin-bottom: 36px; }

.features { padding: 40px 6% 20px; max-width: 1100px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.feature-card-inner { padding: 28px 22px; text-align: center; height: 100%; }
.feature-icon {
    width: 46px; height: 46px; border-radius: 12px;
    background: rgba(99,102,241,.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin: 0 auto 14px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 16px; }
.feature-card p { color: var(--text-dim); font-size: 13.5px; line-height: 1.55; margin: 0; }

.how-it-works { padding: 40px 6% 60px; max-width: 900px; margin: 0 auto; }
.steps-row { display: flex; justify-content: center; gap: 44px; flex-wrap: wrap; text-align: center; }
.step-item { max-width: 170px; }
.step-num {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 17px; margin: 0 auto 12px;
}
.step-item p { color: var(--text-dim); font-size: 14px; margin: 0; }

.cta-section { text-align: center; padding: 20px 6% 70px; }
.cta-box { max-width: 620px; margin: 0 auto; }
.cta-box-inner { padding: 44px 30px; }
.cta-box-inner h2 { margin: 0 0 12px; font-size: 22px; }
.cta-box-inner p { color: var(--text-dim); margin-bottom: 26px; font-size: 14.5px; }

.landing-footer { text-align: center; padding: 30px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 13px; }

.nav-only-desktop { display: none; }
@media (min-width: 760px) { .nav-only-desktop { display: inline; } }

/* ---------- Browser mockup (hero visual) ---------- */
.browser-mockup {
    max-width: 680px; margin: 44px auto 0;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
    text-align: left;
}
.browser-mockup-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 14px; background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.browser-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.browser-mockup-url {
    margin-left: 10px; background: var(--bg); border: 1px solid var(--border);
    border-radius: 6px; padding: 4px 12px; font-size: 12px; color: var(--text-dim);
    flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.browser-mockup-body { padding: 26px 24px 30px; }
.mockup-line { height: 10px; border-radius: 6px; background: var(--surface-3); margin-bottom: 10px; width: 100%; }
.mockup-line-title { width: 55%; height: 16px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); opacity: .55; }
.mockup-line-sub { width: 80%; margin-bottom: 20px; }
.mockup-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.mockup-block { height: 54px; border-radius: 8px; background: var(--surface-3); }

/* ---------- Stats bar ---------- */
.stats-bar {
    display: flex; justify-content: center; gap: 44px; flex-wrap: wrap;
    padding: 40px 6%; max-width: 900px; margin: 0 auto;
}
.stats-bar-item { text-align: center; }
.stats-num { font-size: 26px; font-weight: 800; color: var(--text); }
.stats-label { color: var(--text-dim); font-size: 12.5px; margin-top: 4px; }

/* ---------- Use cases ---------- */
.use-cases { padding: 30px 6% 20px; max-width: 1000px; margin: 0 auto; }
.use-cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.use-case-item {
    text-align: center; padding: 22px 16px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px;
}
.use-case-icon { font-size: 28px; margin-bottom: 10px; }
.use-case-item h4 { margin: 0 0 6px; font-size: 15px; }
.use-case-item p { margin: 0; color: var(--text-dim); font-size: 13px; line-height: 1.5; }

/* ---------- FAQ ---------- */
.faq { padding: 30px 6% 20px; max-width: 900px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 700px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-item {
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 12px; padding: 16px 18px;
}
.faq-item summary {
    cursor: pointer; font-weight: 600; font-size: 14.5px;
    list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 18px; color: var(--text-dim); margin-left: 12px; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 12px 0 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.6; }

/* ---------- Full footer ---------- */
.landing-footer-full { border-top: 1px solid var(--border); padding: 0 6% 24px; }
.trust-strip {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    padding: 26px 0; border-bottom: 1px solid var(--border); margin-bottom: 40px;
}
.trust-item {
    display: flex; align-items: center; gap: 7px;
    font-size: 12.5px; color: var(--text-dim); font-weight: 500;
    background: var(--surface-2); border: 1px solid var(--border);
    padding: 8px 14px; border-radius: 999px;
}
.trust-icon { font-size: 14px; }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px;
    max-width: 1000px; margin: 0 auto 30px;
}
.footer-brand p { color: var(--text-dim); font-size: 13px; line-height: 1.6; margin-top: 10px; max-width: 280px; }
.footer-col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); margin: 0 0 12px; }
.footer-col a { display: block; color: var(--text-dim); text-decoration: none; font-size: 13.5px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
    text-align: center; padding-top: 24px; border-top: 1px solid var(--border);
    color: var(--text-faint); font-size: 12.5px; max-width: 1000px; margin: 0 auto;
}
@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 600px) {
    .container { padding: 20px 16px 50px; }
    .card-pad-inner { padding: 18px; }
    .hero { padding: 40px 5% 40px; }
    .hero h1 { font-size: 26px; }
    .hero-subtitle { font-size: 14.5px; }
    .btn-large { padding: 13px 20px; font-size: 14px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions a { text-align: center; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-box-inner { padding: 30px 20px; }
    .features { padding: 30px 5% 10px; }
    .how-it-works { padding: 30px 5% 40px; }
    .steps-row { gap: 24px; }
    .site-actions { width: 100%; }
    .url-suggest-box { padding: 12px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 24px; }
    .landing-nav { padding: 14px 5%; }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
#sthoster-toast-container {
    position: fixed; top: 20px; right: 20px; z-index: 999999;
    display: flex; flex-direction: column; gap: 10px;
    max-width: calc(100vw - 32px);
    pointer-events: none;
}
.sthoster-toast {
    display: flex; align-items: flex-start; gap: 10px;
    background: var(--surface-2); border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 10px; padding: 13px 14px;
    box-shadow: var(--shadow);
    font-size: 13.5px; min-width: 240px; max-width: 360px;
    opacity: 0; transform: translateX(24px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: auto;
}
.sthoster-toast-show { opacity: 1; transform: translateX(0); }
.sthoster-toast-success { border-left-color: var(--success); }
.sthoster-toast-error { border-left-color: var(--danger); }
.sthoster-toast-info { border-left-color: var(--accent-2); }
.sthoster-toast-icon { font-size: 16px; flex-shrink: 0; line-height: 1.4; }
.sthoster-toast-msg { flex: 1; line-height: 1.55; color: var(--text); }
.sthoster-toast-close {
    background: none; border: none; color: var(--text-faint);
    cursor: pointer; font-size: 13px; padding: 2px; flex-shrink: 0;
}
.sthoster-toast-close:hover { color: var(--text); }

@media (max-width: 600px) {
    #sthoster-toast-container { top: auto; bottom: 16px; right: 16px; left: 16px; max-width: none; }
    .sthoster-toast { max-width: none; }
}

/* ============================================
   লোগো লোডিং ওভারলে (পেজ ট্রানজিশন + আপলোড প্রগ্রেস)
   ============================================ */
#sthoster-page-loading-overlay {
    position: fixed; inset: 0;
    background: rgba(10,11,20,.88);
    backdrop-filter: blur(4px);
    z-index: 999997;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease;
}
#sthoster-page-loading-overlay.sthoster-show { opacity: 1; pointer-events: auto; }
.sthoster-loading-content { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.sthoster-loading-logo {
    width: 58px; height: 58px; border-radius: 15px;
    box-shadow: 0 8px 30px rgba(99,102,241,.4);
    animation: sthoster-logo-pulse 1.1s ease-in-out infinite;
}
@keyframes sthoster-logo-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.16); opacity: .8; }
}
.sthoster-loading-bar-track {
    width: 220px; height: 5px; background: var(--surface-3);
    border-radius: 999px; overflow: hidden;
}
.sthoster-loading-bar-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 999px; transition: width .15s ease;
}
.sthoster-loading-percent { font-size: 13px; color: var(--text-dim); font-weight: 700; letter-spacing: .02em; }

/* ---------- Button spinner ---------- */
.sthoster-spinner {
    display: inline-block; width: 13px; height: 13px;
    border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
    border-radius: 50%; animation: sthoster-spin-anim .6s linear infinite;
    vertical-align: -2px; margin-right: 4px;
}
@keyframes sthoster-spin-anim { to { transform: rotate(360deg); } }

/* ---------- Generic loading skeleton (optional use) ---------- */
.skeleton {
    background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
    background-size: 200% 100%;
    animation: sthoster-shimmer 1.5s infinite;
    border-radius: 8px;
}
@keyframes sthoster-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- Filter bar (analytics) ---------- */
.filter-bar { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.filter-field { min-width: 150px; }
.filter-field .field-label { margin-top: 0; }
.range-summary { color: var(--text-dim); font-size: 13px; margin: 0 0 18px; }

/* ---------- Site list toolbar (search/sort) ---------- */
.list-toolbar { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.list-toolbar input { flex: 1; min-width: 180px; }
.list-toolbar select { min-width: 160px; }

/* ============================================
   ডিপ্লয় ফর্ম — drag&drop, subdomain check, visibility
   ============================================ */
.deploy-config { margin-bottom: 22px; }
.subdomain-input-row {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
    padding: 4px 4px 4px 14px;
}
.subdomain-input-row input {
    flex: 1; background: none; border: none; color: var(--text);
    font-family: 'Fira Code', monospace; font-size: 14.5px; font-weight: 600;
    padding: 10px 0; min-width: 0;
    color-scheme: dark;
}
.subdomain-input-row input:focus { outline: none; }

/* Chrome/Android যেকোনো অবস্থাতেই সাদা autofill ব্যাকগ্রাউন্ড বসিয়ে দেয় —
   এই ট্রিক দিয়ে জোর করে ডার্ক থিমের সাথে মিলিয়ে রাখা হচ্ছে */
.subdomain-input-row input:-webkit-autofill,
.subdomain-input-row input:-webkit-autofill:hover,
.subdomain-input-row input:-webkit-autofill:focus,
.subdomain-input-row input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text) !important;
    -webkit-box-shadow: 0 0 0 1000px var(--bg) inset !important;
    box-shadow: 0 0 0 1000px var(--bg) inset !important;
    caret-color: var(--text);
    transition: background-color 9999s ease-in-out 0s;
}
.subdomain-input-row .domain-suffix { color: var(--text-dim); font-size: 13px; white-space: nowrap; padding-right: 10px; }
.subdomain-status { font-size: 12.5px; margin-top: 8px; min-height: 16px; font-weight: 500; }
.subdomain-status-checking { color: var(--text-dim); }
.subdomain-status-available { color: var(--success); }
.subdomain-status-taken { color: var(--danger); }

.dropzone {
    border: 2px dashed var(--border); border-radius: 14px;
    padding: 40px 20px; text-align: center; cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover, .dropzone.sthoster-dragover { border-color: var(--accent); background: rgba(99,102,241,.06); }
.dropzone.sthoster-has-file { border-color: var(--success); background: rgba(16,185,129,.06); }
.dropzone-icon { font-size: 30px; margin-bottom: 10px; }
.dropzone-text { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.dropzone-subtext { font-size: 12.5px; color: var(--text-dim); }
#file-name-label { display: block; margin-top: 10px; font-size: 13.5px; color: var(--success); font-weight: 600; }

/* ---------- Wizard steps (new-site.php) ---------- */
.wizard-steps {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; margin-bottom: 22px; flex-wrap: wrap;
}
.wizard-step {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: var(--text-dim);
}
.wizard-step.active { color: var(--text); }
.wizard-step-num {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--surface-3); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
}
.wizard-step.active .wizard-step-num {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: transparent; color: #fff;
}
.wizard-step-line { width: 30px; height: 1px; background: var(--border); }

.wizard-section-label {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 700; margin-bottom: 16px;
}
.wizard-section-num {
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(139,92,246,.15); color: #a78bfa;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.wizard-divider { height: 1px; background: var(--border); margin: 26px 0; }
