/* ============================================================
   SMS Platform - Global Design System v4 (Comprehensive Rewrite)
   Full responsive: Mobile / Tablet / Desktop
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-soft: #eff6ff;
    --primary-ring: rgba(37, 99, 235, 0.15);
    --accent: #0ea5e9;
    --success: #059669;
    --success-soft: #ecfdf5;
    --danger: #dc2626;
    --danger-soft: #fef2f2;
    --warning: #d97706;
    --warning-soft: #fffbeb;
    --info-soft: #ecfeff;
    --ink: #0f172a;
    --ink-soft: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --gray-2: #cbd5e1;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --bg: #f8fafc;
    --bg-deep: #eef2f7;
    --white: #ffffff;
    --navy: #0b1e3a;
    --navy-soft: #12294d;
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 9999px;
    --radius-full: 9999px;
    --shadow-xs: 0 1px 2px rgba(15,23,42,0.04);
    --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
    --shadow: 0 4px 12px rgba(15,23,42,0.07);
    --shadow-md: 0 8px 24px rgba(15,23,42,0.08);
    --shadow-lg: 0 16px 48px rgba(15,23,42,0.1);
    --shadow-xl: 0 24px 64px rgba(15,23,42,0.14);
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    --transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
    --transition-slow: all 0.35s cubic-bezier(0.4,0,0.2,1);
    --gap-xs: 4px;
    --gap-sm: 8px;
    --gap-md: 16px;
    --gap-lg: 24px;
    --gap-xl: 32px;
    --glass-bg: rgba(255,255,255,0.62);
    --glass-border: rgba(255,255,255,0.45);
    --glass-shadow: 0 8px 32px rgba(15,23,42,0.08);
    --blur: 18px;
    --gutter: 28px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    height: 100%;
}
body {
    font-family: var(--font);
    color: var(--ink);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(37,99,235,0.08) 0%, transparent 60%),
        radial-gradient(900px 500px at -10% 30%, rgba(14,165,233,0.06) 0%, transparent 60%),
        linear-gradient(160deg, #f4f7fb 0%, #eef3f9 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100%;
}
a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--primary-dark);
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--gutter, 28px);
    box-sizing: border-box;
}

/* ---- Focus States ---- */
*:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}
input:focus, textarea:focus, select:focus {
    outline: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-sm);
    padding: 0 24px;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    height: 44px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.btn:active:not(:disabled) {
    transform: scale(0.97);
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    color: var(--white);
}
.btn-primary:active {
    transform: translateY(0) scale(0.98);
}
.btn-success {
    background: var(--success);
    color: var(--white);
    box-shadow: 0 1px 3px rgba(5, 150, 105, 0.3);
}
.btn-success:hover {
    background: #047857;
    transform: translateY(-1px);
    color: var(--white);
}
.btn-danger {
    background: var(--danger);
    color: var(--white);
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.3);
}
.btn-danger:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    color: var(--white);
}
.btn-warning {
    background: var(--warning);
    color: var(--white);
    box-shadow: 0 1px 3px rgba(217, 119, 6, 0.3);
}
.btn-warning:hover {
    background: #b45309;
    transform: translateY(-1px);
    color: var(--white);
}
.btn-outline {
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--ink-soft);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}
.btn-ghost-light {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}
.btn-sm {
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    border-radius: var(--radius-pill);
}
.btn-lg {
    height: 52px;
    padding: 0 36px;
    font-size: 16px;
    border-radius: var(--radius-pill);
}
.btn-block {
    display: flex;
    width: 100%;
    height: 48px;
    font-size: 16px;
    border-radius: var(--radius-pill);
}
.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p {
    margin: 0 0 var(--gap-md, 16px);
}
.text-primary { color: var(--primary); }
.text-gray { color: var(--gray); }
.text-gray-light { color: var(--gray-light); }
.text-ink { color: var(--ink); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

/* ---- Section Padding ---- */
.section {
    padding: 72px 0;
}
.section .container {
    padding: 0 var(--gutter, 28px);
}
.section-alt {
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
}

/* ========================================
   LAYOUT - 基础布局系统
   ======================================== */

/* ---- Wrapper - 页面包装器 ---- */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---- Main Content - 主内容区 ---- */
.main-content {
    flex: 1;
    width: 100%;
    padding: var(--gap-lg, 24px) 0;
}

/* ---- Container with Sidebar Layout ---- */
.layout-with-sidebar {
    display: flex;
    flex-wrap: wrap;
}
.layout-with-sidebar > .sidebar {
    flex: 0 0 260px;
    flex-shrink: 0;
}
.layout-with-sidebar > .main {
    flex: 1;
    padding: var(--gap-md, 16px) var(--gap-lg, 24px);
    width: 100%;
}

/* ---- Auth Split Layout ---- */
.auth-split {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
}
.auth-left {
    flex: 1;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f2847 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--gap-lg, 40px);
    position: relative;
    overflow: hidden;
}
.auth-left::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
}
.auth-left::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
}
.auth-left-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 420px;
}
.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--gap-lg, 40px);
    background: var(--bg);
}

/* ========================================
   RESPONSIVE - 断点系统
   ======================================== */

/* ---- Mobile First - 移动优先策略 ---- */
/* 移动端（≤479px）样式已在各组件中通过@media包含 */

/* ---- Tablet - 平板 (480px - 1024px) ---- */
@media (min-width: 480px) and (max-width: 1024px) {
    .container {
        padding: 0 var(--gutter, 28px);
    }

    /* 响应式调整 */
    .auth-left { padding: var(--gap-lg, 32px); }
    .auth-right { padding: var(--gap-lg, 32px); }

    .navbar .container {
        padding: 0 var(--gutter, 28px);
    }

    .main-content {
        padding: var(--gap-md, 24px) 0 var(--gap-lg, 48px);
    }
}

/* ---- Desktop - 桌面 (≥1025px) ---- */
@media (min-width: 1025px) {
    .container {
        padding: 0 var(--gutter, 28px);
    }

    .auth-left { padding: var(--gap-lg, 40px); }
    .auth-right { padding: var(--gap-lg, 40px); }

    .main-content {
        padding: var(--gap-lg, 32px) 0 var(--gap-xl, 48px);
    }
}

/* ========================================
   COMPONENTS - 基础组件
   ======================================== */

/* ---- Cards ---- */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    padding: var(--gap-lg, 24px);
    margin-bottom: var(--gap-md, 16px);
    transition: var(--transition);
}
.card:hover {
    box-shadow: 0 12px 40px rgba(15,23,42,0.12);
    border-color: rgba(255,255,255,0.7);
}
.card-hover:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--gap-md, 16px);
    padding-bottom: var(--gap-sm, 8px);
    border-bottom: 1px solid var(--border-light);
}
.card-header h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}
.card-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

/* ---- Buttons (comprehensive) ---- */
.button {
    display: inline-block;
    padding: var(--gap-sm, 8px) 24px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: var(--primary);
    color: var(--white);
    text-align: center;
}
.button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}
.button:active {
    transform: translateY(0) scale(0.98);
}

/* ---- Forms ---- */
.form-group {
    margin-bottom: var(--gap-md, 16px);
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--gap-sm, 6px);
}
.form-group.required label::after {
    content: '*';
    color: var(--danger);
    margin-left: 2px;
}

.input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-pill);
    height: 50px;
    padding: 0 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
    transition: var(--transition);
}
.input-wrap:hover {
    border-color: var(--primary-light);
    background: rgba(255,255,255,0.75);
}
.input-wrap:focus-within {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--primary-ring);
}
.input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: var(--font);
    color: var(--ink);
    background: transparent;
    height: 100%;
}
.input-wrap input::placeholder {
    color: var(--gray-light);
}
.input-wrap .toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray);
    font-size: 13px;
    font-weight: 500;
    padding: var(--gap-sm, 6px) 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    flex-shrink: 0;
}
.input-wrap .toggle-btn:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.textarea-wrap {
    display: block;
}
.textarea-wrap textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px 20px;
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-family: var(--font);
    color: var(--ink);
    resize: vertical;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    transition: var(--transition);
}
.textarea-wrap textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-ring);
}

/* ---- Navigation ---- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    height: 54px;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    max-width: 1200px;
    margin: 0 auto;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.3px;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
}
.nav-link:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.nav-link.active {
    background: #eff6ff;
    color: #2563eb;
}
.nav-link svg {
    opacity: 0.7;
}
.nav-link.active svg {
    opacity: 1;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-right .nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 14px;
}
.balance-label {
    color: #64748b;
}
.balance-amount {
    font-weight: 700;
    color: #2563eb;
}
.btn-recharge {
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-recharge:hover {
    background: #1d4ed8;
}
.nav-user-menu {
    position: relative;
}
.nav-avatar-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
}
.nav-avatar-link:hover {
    background: #f1f5f9;
}
.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    object-fit: cover;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #0f172a;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.nav-toggle:hover {
    background: #f1f5f9;
}

/* ---- Mobile Bottom Nav (base = hidden, shown on mobile) ---- */
.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    display: none;
    width: 100%;
    height: 56px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 16px rgba(15,23,42,0.06);
    padding-bottom: env(safe-area-inset-bottom);
    border-radius: 100px;
    max-width: 360px;
    margin: 0 auto 12px auto;
}
.mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
}
.mobile-bottom-nav a.active { color: #2563eb; }

@media (min-width: 768px) {
    .nav-label { display: inline; }
}
@media (max-width: 1024px) {
    .nav-toggle {
        display: none;
    }
}
@media (max-width: 767px) {
    .navbar {
        height: 54px;
    }
    .navbar .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .logo-subtitle {
        display: none;
    }
    .nav-right .nav-menu {
        display: none;
    }
    .nav-right {
        gap: 8px;
    }
    .nav-balance {
        padding: 6px 10px;
        font-size: 13px;
    }
    .btn-recharge {
        height: 32px;
        padding: 0 12px;
        font-size: 12px;
    }
    .nav-avatar {
        width: 32px;
        height: 32px;
    }
    .main-content {
        padding-bottom: 80px;
    }
    .mobile-bottom-nav {
        display: flex;
    }
}

/* ============================================================
   Product polish — shared by login, user console and admin pages
   ============================================================ */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: #eff6ff;
    --bg: #f6f8fc;
    --bg-deep: #eef2f7;
    --ink: #13213a;
    --ink-soft: #4b5b73;
    --border: #dbe3ef;
    --border-light: #e9eef5;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow: 0 8px 28px rgba(15, 35, 64, .06);
    --shadow-md: 0 16px 40px rgba(15, 35, 64, .10);
}

html { background: var(--bg); }
body { color: var(--ink); -webkit-font-smoothing: antialiased; }
::selection { background: #bfdbfe; color: #172554; }

.navbar { box-shadow: 0 1px 0 rgba(15, 35, 64, .06), 0 8px 30px rgba(15, 35, 64, .03); }
.card, .admin-card, .project-card, .feature-card, .step-card {
    box-shadow: var(--shadow);
    border-color: var(--border-light);
}
.card:hover, .admin-card:hover, .project-card:hover { box-shadow: var(--shadow-md); }

.page-header { margin-bottom: 24px; }
.page-header h1, .admin-header h1 { letter-spacing: -.035em; }
.form-control, input:not([type="checkbox"]):not([type="radio"]), select, textarea {
    border-color: var(--border);
    border-radius: 10px;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.form-control:focus, input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.btn { border-radius: 10px; font-weight: 650; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.btn-primary { box-shadow: 0 6px 14px rgba(37, 99, 235, .18); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 9px 20px rgba(37, 99, 235, .24); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(37, 99, 235, .32); outline-offset: 2px; }
.btn:disabled { transform: none; box-shadow: none; }

.table-wrapper { border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow-x: auto; background: #fff; }
.table-wrapper table { width: 100%; border-collapse: collapse; text-align: center; table-layout: fixed; }
.table-wrapper th, .table-wrapper td { text-align: center; }
.user-main .table-wrapper th, .user-main .table-wrapper td,
.orders-card .table-wrapper th, .orders-card .table-wrapper td { text-align: center; }
table th { background: #f8fafc; color: var(--ink-soft); white-space: nowrap; font-size: 13px; padding: 10px 6px; }
table td, .admin-table td { vertical-align: middle; white-space: nowrap; font-size: 13px; padding: 10px 6px; }
.badge { border-radius: 999px; font-weight: 650; padding: 5px 10px; }

.auth-right { background: radial-gradient(circle at 85% 10%, #e0f2fe 0, transparent 27%), var(--bg) !important; }
.auth-form-card { background: rgba(255,255,255,.86); border: 1px solid rgba(219,227,239,.9); border-radius: 22px; padding: 34px; box-shadow: 0 22px 60px rgba(15,35,64,.10); backdrop-filter: blur(12px); }
.auth-left { background: radial-gradient(circle at 20% 15%, rgba(56,189,248,.25), transparent 28%), linear-gradient(140deg, #0b1930 0%, #123b69 55%, #1d4ed8 135%) !important; }
.auth-left-content h2 { max-width: 420px; }
.auth-form-card .btn-submit { background: linear-gradient(135deg, #2563eb, #1d4ed8); box-shadow: 0 10px 20px rgba(37,99,235,.22); }
.auth-form-card .btn-submit:hover { background: linear-gradient(135deg, #1d4ed8, #1e40af); }

@media (max-width: 767px) {
    .auth-form-card { padding: 26px 20px; border-radius: 18px; }
    .page-header { margin-bottom: 18px; }
    .card, .admin-card { border-radius: 16px; }
    .table-wrapper { border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ============================================================
   User console — calm frosted-glass system
   ============================================================ */
body[data-page] {
  background:
    radial-gradient(#c9c9c97a 1.2px, transparent 1.2px),
    radial-gradient(circle at 8% 6%, rgba(167, 139, 250, 0.22), transparent 30rem),
    radial-gradient(circle at 94% 12%, rgba(56, 189, 248, 0.26), transparent 34rem),
    radial-gradient(circle at 45% 92%, rgba(45, 212, 191, 0.18), transparent 38rem),
    #f5f7fa;
  background-size:
    24px 24px,   /* 点阵网格大小 */
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.main-content.has-sidebar-layout { max-width: 1260px; margin: 0 auto; padding: 30px 24px 44px; }
.user-layout { display: block !important; max-width: 1200px; margin: 0 auto; }
.user-layout > .page-header { margin: 0; padding: 20px 0; }
.user-layout > .page-header h1 { margin: 0; font-size: clamp(22px, 2.2vw, 30px); color: #173b3d; }
.user-layout > .page-header p { margin: 7px 0 0; color: #678182; font-size: 14px; }
.user-sidebar { display: none !important; }
.user-main { display: grid; gap: 16px; min-width: 0; }
.user-main > .card { margin: 0 !important; padding: 20px; border: 1px solid rgba(255,255,255,.82); border-radius: 16px; background: rgba(255,255,255,.64); box-shadow: 0 4px 16px rgba(38,75,78,.06); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.user-main .card-header { padding-bottom: 12px; margin-bottom: 16px; border-color: rgba(129,166,166,.18); }
.user-main .card-header h2, .user-main .card-header h3 { color: #173b3d; font-size: 16px; }
.user-main .form-group label { color: #365759; font-weight: 700; }
.user-main .form-control { min-height: 44px; border-color: rgba(117, 155, 155, .28); background: rgba(255,255,255,.72); }
.user-main textarea.form-control { min-height: auto; }
.btn, .auth-form-card .btn-submit { border-radius: 999px !important; padding-left: 20px; padding-right: 20px; }
.btn-primary { background: linear-gradient(135deg, #2563eb, #1d4ed8); border-color: transparent; box-shadow: 0 7px 16px rgba(37,99,235,.22); }
.btn-primary:hover { background: linear-gradient(135deg, #1d4ed8, #1e40af); box-shadow: 0 10px 22px rgba(37,99,235,.27); }
.btn-outline { border-color: rgba(37, 99, 235, .36); color: #2563eb; background: rgba(255,255,255,.52); }
.btn-outline:hover { background: #eff6ff; color: #1d4ed8; }
.btn-danger { border-radius: 999px; }
.stats-grid { gap: 16px; }
.stat-card { border: 1px solid rgba(255,255,255,.82); border-radius: 22px; background: rgba(255,255,255,.62); box-shadow: 0 14px 36px rgba(38,75,78,.07); backdrop-filter: blur(16px); }
.stat-card .stat-icon { color: #2563eb; background: #eff6ff; }
.stat-card .stat-value { color: #0f172a; }
.table-wrapper { border: 1px solid rgba(129,166,166,.18); background: rgba(255,255,255,.56); }
.user-main table th { background: rgba(230,250,242,.55); color: #557275; }
.user-main table tr:hover td { background: rgba(240,253,248,.62); }
.filter-bar { gap: 10px; padding: 0; background: transparent; }
.filter-bar .form-control { border-radius: 999px; }
.payment-options { display: flex; flex-wrap: wrap; gap: 10px; }
.payment-option { padding: 10px 18px; border: 1px solid rgba(37,99,235,.25); border-radius: 999px; cursor: pointer; color: #64748b; background: rgba(255,255,255,.54); }
.payment-option:has(input:checked) { color: #2563eb; border-color: #2563eb; background: #eff6ff; }
.notification-card { padding-top: 8px !important; padding-bottom: 8px !important; }
.notification-item { padding: 20px 4px; border-bottom: 1px solid rgba(129,166,166,.18); }
.notification-item:last-child { border-bottom: 0; }
.notification-item-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.notification-item-head strong { color: #0f172a; font-size: 15px; }
.notification-item-head span { flex: 0 0 auto; color: #64748b; font-size: 12px; }
.notification-item p { margin: 9px 0 0; color: #64748b; font-size: 14px; line-height: 1.7; }
.field-required { margin-left: 4px; color: #dc2626; font-size: 11px; font-weight: 700; }
.nav-badge { background: #dc2626 !important; box-shadow: 0 2px 7px rgba(220,38,38,.34); }
.navbar { border-bottom: 1px solid rgba(226,232,240,0.7); background: rgba(255,255,255,0.8); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.nav-menu { gap: 8px; }
.nav-menu .nav-link { border-radius: 999px; }
.nav-avatar { width: 36px; height: 36px; border: 2px solid #e2e8f0; border-radius: 50%; object-fit: cover; background: #f1f5f9; }
.fixed-avatar-row { display: flex; align-items: center; gap: 16px; min-height: 74px; padding: 14px 16px; border: 1px solid rgba(117,155,155,.2); border-radius: 18px; background: rgba(255,255,255,.48); }
.fixed-avatar-row .avatar-large { flex: 0 0 auto; }
.fixed-avatar-row .form-hint { margin: 0; line-height: 1.65; }
.receive-notice { display: flex; align-items: flex-start; gap: 9px; margin: -4px 0 20px; padding: 12px 14px; border: 1px solid rgba(251,191,36,.3); border-radius: 12px; background: rgba(255,251,235,.74); color: #826319; font-size: 13px; line-height: 1.65; }
.receive-notice strong { flex: 0 0 auto; color: #a16207; }

/* ---- Logo subtitle ---- */
.logo-text-group { display: flex; flex-direction: column; gap: 0; }
.logo-text { font-size: 18px; font-weight: 700; color: #0f172a; line-height: 1.2; }
.logo-subtitle { font-size: 11px; color: #94a3b8; line-height: 1.2; }

/* ---- Spinner ---- */
.spinner {
    display: inline-block;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Config section (admin) ---- */
.config-section .card-header p { margin: 5px 0 0; color: var(--gray); font-size: 13px; }
.config-section .form-group { margin-bottom: 17px; }
.config-test-row { display: flex; gap: 10px; max-width: 560px; }
.config-test-row .form-control { flex: 1; }
.form-hint { min-height: 20px; margin-top: 10px; color: var(--gray); font-size: 13px; }
.form-hint.is-error { color: var(--danger); }
.form-hint.is-success { color: var(--success); }

/* ========================================
   RECEIVE PAGE STYLES
   ======================================== */
.hero-banner {
    background: rgba(255, 255, 255, .8);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    overflow: hidden;
}
.hero-content { flex: 1; }
.hero-content h1 { font-size: 28px; font-weight: 800; color: #0f172a; margin-bottom: 8px; line-height: 1.3; }
.hero-content h1 .highlight { color: #2563eb; }
.hero-content p { font-size: 14px; color: #64748b; margin-bottom: 16px; }
.hero-features { display: flex; gap: 20px; flex-wrap: wrap; }
.hero-feature { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #334155; }
.hero-feature svg { color: #2563eb; flex-shrink: 0; }
.hero-illustration { flex-shrink: 0; width: 160px; }
.hero-illustration svg { width: 100%; height: auto; }

.receive-card {
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
    margin-bottom: 16px;
}
.country-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.country-selector { display: flex; align-items: center; gap: 10px; }
.country-selector .flag-icon { font-size: 24px; line-height: 1; }
.country-selector .country-name { font-size: 16px; font-weight: 600; color: #0f172a; }
.btn-refresh { display: flex; align-items: center; gap: 4px; padding: 6px 12px; background: transparent; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 13px; color: #2563eb; cursor: pointer; }
.btn-refresh:hover { background: #eff6ff; }
.project-selector { margin-bottom: 16px; }
.project-selector .form-control {
    height: 48px;
    border-radius: 12px;
    border: 1.5px solid rgba(37, 99, 235, 0.2);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 15px;
    font-weight: 500;
    color: #0f172a;
    padding: 0 44px 0 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
}
.project-selector .form-control:hover {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}
.project-selector .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), 0 4px 12px rgba(37, 99, 235, 0.1);
    outline: none;
}

.sms-panel { margin-bottom: 0; }
.info-row {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}
.info-row:last-child { border-bottom: none; }
.info-label { font-size: 13px; color: #64748b; width: 90px; flex-shrink: 0; }
.info-value { flex: 1; font-size: 20px; font-weight: 700; color: #0f172a; }
.info-value.mono { font-family: 'SF Mono', Consolas, monospace; letter-spacing: 1px; }
.info-value.countdown-text { color: #2563eb; font-size: 22px; }
.btn-copy { padding: 4px 12px; height: 28px; font-size: 12px; background: #f1f5f9; border: none; border-radius: 6px; color: #64748b; flex-shrink: 0; }
.btn-copy:hover { background: #e2e8f0; }
.btn-extend { padding: 6px 12px; height: 32px; font-size: 12px; background: #2563eb; border: none; border-radius: 8px; color: #fff; flex-shrink: 0; white-space: nowrap; }
.btn-extend:hover { background: #1d4ed8; }

.keyword-section { margin-top: 16px; padding-top: 16px; border-top: 1px solid #f1f5f9; }
.selector-label { display: block; font-size: 13px; font-weight: 600; color: #64748b; margin-bottom: 8px; }
.keyword-input-group { display: flex; gap: 8px; }
.keyword-input-group .form-control { flex: 1; height: 42px; }
.keyword-hint { display: block; font-size: 12px; color: #94a3b8; margin-top: 6px; }
.refresh-section { margin-top: 12px; }

.sms-list-section { margin-top: 16px; padding-top: 16px; border-top: 1px solid #f1f5f9; }
.sms-list-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sms-list-header h3 { font-size: 15px; font-weight: 600; color: #0f172a; display: flex; align-items: center; gap: 6px; margin: 0; }
.sms-list-header h3 svg { color: #2563eb; }
.auto-refresh-status { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #94a3b8; }
.auto-refresh-status.loading svg { animation: spin 1s linear infinite; }
.auto-refresh-status.success { color: #16a34a; }
.auto-refresh-status.expired { color: #dc2626; }

.sms-code-box {
    min-height: 140px;
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.empty-sms { text-align: center; padding: 20px; }
.empty-sms svg { margin-bottom: 8px; }
.empty-title { font-size: 15px; font-weight: 600; color: #0f172a; margin: 0 0 4px; }
.empty-desc { font-size: 13px; color: #94a3b8; margin: 0; }
.sms-code-display { text-align: center; padding: 20px; }
.sms-code-display .code-text { font-size: 28px; font-weight: 800; color: #16a34a; letter-spacing: 4px; font-family: 'SF Mono', Consolas, monospace; }
.sms-hint { font-size: 12px; color: #94a3b8; text-align: center; }

.sms-actions { display: flex; gap: 10px; margin-top: 16px; }
.sms-actions .btn { flex: 1; height: 42px; font-size: 13px; }

.get-number-btn { margin-top: 16px; height: 48px; font-size: 15px; }

.help-card {
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
    margin-bottom: 16px;
}
.help-card h3 { font-size: 16px; font-weight: 700; color: #0f172a; margin: 0 0 16px; }
.help-list { display: flex; flex-direction: column; gap: 12px; }
.help-item { display: flex; align-items: flex-start; gap: 12px; }
.help-num { width: 24px; height: 24px; border-radius: 50%; background: #eff6ff; color: #2563eb; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.help-item p { font-size: 14px; color: #334155; line-height: 1.6; margin: 0; }

.orders-card {
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
    margin-bottom: 16px;
}
.orders-card .card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #f1f5f9; }
.orders-card .card-header h2 { font-size: 16px; font-weight: 700; color: #0f172a; display: flex; align-items: center; gap: 6px; margin: 0; }
.orders-card .card-header h2 svg { color: #2563eb; }

/* ---- Modal ---- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 10000; display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.modal { background: #fff; border-radius: 20px; width: 90%; max-width: 420px; box-shadow: 0 24px 64px rgba(0,0,0,0.2); animation: slideUp 0.3s cubic-bezier(0.16,1,0.3,1); }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid #e2e8f0; }
.modal-header h3 { font-size: 18px; font-weight: 700; color: #0f172a; margin: 0; }
.btn-close { background: none; border: none; padding: 4px; cursor: pointer; color: #64748b; }
.modal-body { padding: 24px; }
.current-balance { text-align: center; margin-bottom: 20px; }
.current-balance .label { display: block; font-size: 13px; color: #64748b; margin-bottom: 4px; }
.current-balance .amount { font-size: 32px; font-weight: 800; color: #2563eb; }

@media (min-width: 768px) and (max-width: 1100px) {
    .main-content.has-sidebar-layout { padding: 24px 20px 38px; }
    .user-layout { max-width: 720px; }
    .user-main > .card { padding: 18px; }
}
@media (max-width: 767px) {
    .main-content.has-sidebar-layout { padding: 16px 14px 98px; }
    .user-layout { display: block !important; padding: 0 16px; padding-bottom: 24px; }
    .user-layout > .page-header { padding: 16px 0; }
    .user-layout > .page-header p { font-size: 13px; }
    .user-sidebar { display: none !important; }
    .user-main { display: grid; gap: 12px; margin-top: 12px; }
    .user-main > .card { padding: 16px; border-radius: 14px; }
    .stats-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px !important; }
    .stat-card { border-radius: 14px; }
    .filter-bar { display: block; }
    .notification-item { padding: 16px 0; }
    .notification-item-head { align-items: flex-start; flex-direction: column; gap: 4px; }
    .config-test-row { flex-direction: column; }
    .fixed-avatar-row { align-items: flex-start; flex-direction: column; gap: 10px; }
    .receive-notice { margin-top: -6px; }
}
.nav-logo .logo-badge {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.nav-menu {
    display: flex;
    gap: var(--gap-md, 16px);
}
.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--gap-sm, 8px);
    padding: var(--gap-sm, 8px) var(--gap-md, 12px);
    font-size: 14px;
    color: var(--gray);
    border-radius: var(--radius);
    transition: var(--transition);
    white-space: nowrap;
}
.nav-link:hover {
    background: var(--primary-soft);
    color: var(--primary);
}
.nav-link.active {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 500;
}

/* ---- Tables ---- */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.admin-table th {
    background: var(--bg);
    font-weight: 600;
    color: var(--ink-soft);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: var(--gap-md, 12px) var(--gap-lg, 14px);
    border-bottom: 2px solid var(--border);
    text-align: left;
    white-space: nowrap;
}
.admin-table td {
    padding: var(--gap-md, 12px) var(--gap-lg, 14px);
    border-bottom: 1px solid var(--border-light);
    color: var(--ink);
    transition: var(--transition);
}
.admin-table tr:last-child td {
    border-bottom: none;
}
.admin-table tr:hover td {
    background: var(--bg);
}

/* ---- Alerts/Toasts (Dynamic Island pill) ---- */
#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}
.toast {
    padding: 10px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #1a1a2e;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.2);
    animation: toastIn 0.35s cubic-bezier(0.22,1,0.36,1) forwards;
    pointer-events: auto;
    white-space: nowrap;
}
.toast.success {
    background: #1a1a2e;
}
.toast.error {
    background: #dc2626;
}
.toast.warning {
    background: #d97706;
}
.toast.info {
    background: #1a1a2e;
}
.toast.removing {
    animation: toastOut 0.3s cubic-bezier(0.55,0,1,0.45) forwards;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateY(-16px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-16px) scale(0.9); }
}

/* ========================================
   USER PAGES SPECIFIC
   ======================================== */

.user-layout {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    min-height: calc(100vh - 68px);
    padding-bottom: 100px;
}
.user-layout > .page-header {
    margin-bottom: 0;
}
.user-main {
    min-width: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}
.user-sidebar {
    position: sticky;
    top: 88px;
    padding: 0;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.user-sidebar::-webkit-scrollbar { display: none; width: 0; }
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--gap-sm, 8px);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: var(--gap-sm, 8px);
    padding: var(--gap-sm, 10px) var(--gap-md, 14px);
    border-radius: var(--radius-pill);
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    min-height: 44px;
}
.sidebar-nav a:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
}
.sidebar-nav a.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.sidebar-nav .nav-icon {
    font-size: 17px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.sidebar-nav .nav-icon svg {
    display: block;
}

/* ---- Page Header ---- */
.page-header {
    margin-bottom: var(--gap-md, 16px);
    padding: 20px 0 0;
}
.page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: var(--gap-sm, 6px);
    letter-spacing: -0.3px;
}
.page-header p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.5;
}

/* ---- Stats Grid ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--gap-md, 16px);
}
.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--gap-lg, 20px);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}
.stat-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.stat-icon {
    font-size: 24px;
    margin-bottom: var(--gap-sm, 12px);
}
.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.5px;
}
.stat-label {
    font-size: 12px;
    color: var(--gray);
    margin-top: var(--gap-xs, 4px);
}

/* ========================================
   AUTH PAGES SPECIFIC
   ======================================== */

.auth-page {
    padding: var(--gap-lg, 32px) var(--gap-lg, 16px);
    min-height: calc(100vh - 64px);
    min-height: calc(100dvh - 64px);
}
.auth-card {
    padding: var(--gap-lg, 32px) var(--gap-md, 24px);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    background: var(--white);
}
.auth-header {
    margin-bottom: var(--gap-md, 24px);
}
.auth-header .logo-badge {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm, 14px);
    font-size: 22px;
    font-weight: 800;
}
.auth-header h1 {
    font-size: 22px;
}

/* ========================================
   ADMIN PAGES SPECIFIC
   ======================================== */

.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
    overflow: hidden;
}
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    background: linear-gradient(180deg, #0a1628 0%, #0f2847 100%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}
.admin-sidebar::-webkit-scrollbar {
    width: 4px;
}
.admin-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
.sidebar-brand {
    padding: var(--gap-lg, 24px) var(--gap-lg, 20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: var(--gap-sm, 8px);
    flex-shrink: 0;
}
.sidebar-brand .brand-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg, 12px);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    flex-shrink: 0;
    overflow: hidden;
}
.sidebar-brand .brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg, 12px);
}
.sidebar-brand h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.3px;
    margin: 0;
}
.sidebar-brand small {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    display: block;
    margin-top: 1px;
}
.admin-nav {
    flex: 1;
    padding: var(--gap-md, 16px) var(--gap-sm, 12px);
    overflow-y: auto;
}
.admin-nav-group {
    margin-bottom: var(--gap-lg, 20px);
}
.admin-nav-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 var(--gap-sm, 12px);
    margin-bottom: var(--gap-sm, 6px);
}
.admin-nav a {
    display: flex;
    align-items: center;
    gap: var(--gap-sm, 8px);
    padding: var(--gap-sm, 8px) var(--gap-sm, 10px);
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 2px;
    text-decoration: none;
}
.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
}
.admin-nav a.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.admin-nav .nav-icon {
    font-size: 16px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.sidebar-footer {
    padding: var(--gap-md, 16px) var(--gap-sm, 12px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}
.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: var(--gap-sm, 8px);
    padding: var(--gap-sm, 8px) var(--gap-sm, 12px);
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.45);
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.sidebar-footer a:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #fca5a5;
}

.admin-main {
    width: 100%;
    margin-left: 260px;
    padding: var(--gap-lg, 32px) var(--gap-lg, 36px);
    min-height: 100vh;
    background: var(--bg);
    box-sizing: border-box;
}
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--gap-md, 24px);
    gap: var(--gap-sm, 12px);
}
.admin-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}
.admin-header .header-actions {
    display: flex;
    gap: var(--gap-sm, 8px);
    align-items: center;
    font-size: 13px;
    color: var(--gray);
    flex-shrink: 0;
}

/* ---- Admin Cards ---- */
.admin-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--gap-lg, 24px) var(--gap-lg, 28px);
    margin-bottom: var(--gap-md, 20px);
    transition: var(--transition);
    box-sizing: border-box;
}
.admin-card:hover {
    box-shadow: var(--shadow);
}
.admin-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--gap-md, 16px);
    padding-bottom: var(--gap-sm, 8px);
    border-bottom: 1px solid var(--border-light);
}
.admin-card .card-header h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

/* ---- Admin Stats ---- */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-md, 16px);
    margin-bottom: var(--gap-lg, 24px);
}
.admin-stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--gap-lg, 20px);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}
.admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}
.admin-stat-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.admin-stat-card:hover::before {
    opacity: 1;
}
.admin-stat-card .stat-icon {
    font-size: 24px;
    margin-bottom: var(--gap-sm, 12px);
}
.admin-stat-card .stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.5px;
}
.admin-stat-card .stat-label {
    font-size: 13px;
    color: var(--gray);
    margin-top: var(--gap-xs, 4px);
}

/* ---- Admin Tables ---- */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.admin-table th {
    background: var(--bg);
    font-weight: 600;
    color: var(--ink-soft);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: var(--gap-md, 12px) var(--gap-lg, 14px);
    border-bottom: 2px solid var(--border);
    text-align: left;
    white-space: nowrap;
}
.admin-table td {
    padding: var(--gap-md, 12px) var(--gap-lg, 14px);
    border-bottom: 1px solid var(--border-light);
    color: var(--ink);
    transition: var(--transition);
}
.admin-table tr:last-child td {
    border-bottom: none;
}
.admin-table tr:hover td {
    background: var(--bg);
}

/* ---- Quick Actions ---- */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-sm, 6px);
}

/* ---- Admin Filter ---- */
.admin-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-sm, 8px);
    margin-bottom: var(--gap-md, 16px);
    align-items: center;
}
.admin-filter .form-control,
.admin-filter select {
    height: var(--gap-md, 32px);
    padding: 0 10px;
    font-size: 13px;
    border-radius: var(--radius);
}

/* ---- Admin Toggle ---- */
.admin-toggle {
    display: none;
    position: fixed;
    top: var(--gap-sm, 12px);
    left: var(--gap-sm, 12px);
    z-index: 1001;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--gap-sm, 8px) var(--gap-sm, 10px);
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
}
.admin-toggle:hover {
    box-shadow: var(--shadow-md);
}

/* ---- Admin Overlay ---- */
.admin-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
.admin-overlay.show {
    display: block;
}

/* ---- Admin Login Page ---- */
.admin-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(145deg, #0a1628 0%, #0f2847 40%, #132f54 70%, #0d2137 100%);
    position: relative;
    overflow: hidden;
}
.admin-login-page::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 65%);
    pointer-events: none;
}
.admin-login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    margin: var(--gap-sm, 20px);
    padding: var(--gap-xl, 40px) var(--gap-lg, 40px);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl, 24px);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
    animation: adminLoginIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes adminLoginIn {
    from {
        opacity: 0;
        transform: translateY(var(--gap-md, 24px)) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.admin-login-card h1 {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--gap-sm, 6px);
    letter-spacing: -0.5px;
}
.admin-login-card .subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 14px;
    margin-bottom: var(--gap-lg, 32px);
}
.admin-login-card .form-group {
    margin-bottom: var(--gap-md, 16px);
}
.admin-login-card .form-group label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin-bottom: var(--gap-sm, 6px);
}
.admin-login-card .form-control {
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    height: 50px;
    border-radius: var(--radius-lg, 12px);
}
.admin-login-card .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.admin-login-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.2);
}
.admin-login-card .input-icon {
    color: rgba(255, 255, 255, 0.3);
}
.admin-login-card .input-icon-wrapper:focus-within .input-icon {
    color: var(--primary-light);
}
.admin-login-card .btn-primary {
    width: 100%;
    height: 50px;
    font-size: 16px;
    border-radius: var(--radius-lg, 12px);
    margin-top: var(--gap-sm, 8px);
}

/* ---- Admin Filter ---- */
.admin-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-sm, 8px);
    margin-bottom: var(--gap-md, 16px);
    align-items: center;
}
.admin-filter .form-control,
.admin-filter select {
    height: var(--gap-md, 32px);
    padding: 0 14px;
    font-size: 13px;
    border-radius: var(--radius);
}

/* ---- Responsive - Tablet ---- */
@media (max-width: 1024px) {
    .admin-layout {
        display: block;
    }
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    }
    .admin-sidebar.show {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
        padding: var(--gap-md, 28px) var(--gap-md, 28px);
        padding-top: 68px;
    }
    .admin-header h1 {
        font-size: 20px;
    }
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--gap-sm, 12px);
    }
    .admin-toggle {
        display: flex;
    }
    .admin-header h1 {
        font-size: 20px;
    }
}

/* ---- Responsive - Mobile ---- */
@media (max-width: 767px) {
    .admin-main {
        padding: var(--gap-sm, 16px) var(--gap-sm, 12px);
        padding-top: 56px;
    }
    .admin-stats {
        grid-template-columns: 1fr;
        gap: var(--gap-sm, 8px);
    }
    .admin-stat-card {
        padding: var(--gap-sm, 16px);
    }
    .admin-stat-card .stat-value {
        font-size: 20px;
    }
    .admin-stat-card .stat-label {
        font-size: 12px;
    }
    .admin-login-card {
        padding: var(--gap-md, 32px) var(--gap-sm, 24px);
        border-radius: var(--radius-lg, 16px);
    }
    .admin-login-card h1 {
        font-size: 22px;
    }
    .user-layout {
        padding: 0 16px;
        padding-bottom: 100px;
    }
}

/* ---- Responsive - Small Mobile ---- */
@media (max-width: 479px) {
    .admin-main {
        padding: var(--gap-xs, 12px) var(--gap-xs, 8px);
        padding-top: 48px;
    }
    .admin-header h1 {
        font-size: 16px;
    }
    .admin-card {
        padding: var(--gap-sm, 12px);
        border-radius: var(--radius);
    }
    .admin-stat-card {
        padding: var(--gap-sm, 12px);
    }
    .admin-stat-card .stat-value {
        font-size: 16px;
    }
    .admin-stat-card .stat-label {
        font-size: 10px;
    }
    .admin-login-card {
        padding: var(--gap-sm, 24px) var(--gap-sm, 16px);
        border-radius: var(--radius-sm, 12px);
    }
    .admin-login-card h1 {
        font-size: 18px;
    }
}

/* ---- Table Mobile Card Layout ---- */
@media (max-width: 767px) {
    .table-wrapper {
        border: none;
        overflow-x: auto;
        background: transparent;
        border-radius: 0;
    }
    .table-wrapper table,
    .table-wrapper thead,
    .table-wrapper tbody,
    .table-wrapper tr,
    .table-wrapper th,
    .table-wrapper td {
        display: block;
    }
    .table-wrapper thead {
        display: none;
    }
    .table-wrapper tr {
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: var(--gap-md, 12px);
        margin-bottom: var(--gap-sm, 8px);
        box-shadow: var(--shadow-xs);
    }
    .table-wrapper td {
        border-bottom: none;
        padding: var(--gap-sm, 4px) 0;
        white-space: normal;
        text-align: left;
        font-size: 13px;
        min-height: 24px;
    }
    .table-wrapper td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        color: var(--gray-light);
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: var(--gap-xs, 2px);
    }
    .table-wrapper td:last-child {
        margin-top: var(--gap-sm, 6px);
        padding-top: var(--gap-sm, 4px);
        border-top: 1px solid var(--border-light);
    }

    /* Keep orders tables horizontal on mobile */
    .orders-card .table-wrapper,
    .user-main .table-wrapper {
        border: 1px solid rgba(129,166,166,.18);
        background: rgba(255,255,255,.56);
        border-radius: 14px;
    }
    .orders-card .table-wrapper table,
    .user-main .table-wrapper table {
        display: table !important;
        width: 100% !important;
        table-layout: fixed !important;
    }
    .orders-card .table-wrapper thead,
    .user-main .table-wrapper thead {
        display: table-header-group !important;
    }
    .orders-card .table-wrapper tbody,
    .user-main .table-wrapper tbody {
        display: table-row-group !important;
    }
    .orders-card .table-wrapper tr,
    .user-main .table-wrapper tr {
        display: table-row !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
        box-shadow: none !important;
    }
    .orders-card .table-wrapper th,
    .user-main .table-wrapper th {
        display: table-cell !important;
        text-align: center !important;
        white-space: nowrap;
        font-size: 12px;
        padding: 8px 4px;
        background: rgba(230,250,242,.55);
        color: #557275;
    }
    .orders-card .table-wrapper td,
    .user-main .table-wrapper td {
        display: table-cell !important;
        border-bottom: none !important;
        padding: 8px 4px !important;
        white-space: nowrap !important;
        text-align: center !important;
        font-size: 12px !important;
        min-height: auto !important;
    }
    .orders-card .table-wrapper td::before,
    .user-main .table-wrapper td::before {
        display: none !important;
    }
}

/* ---- Responsive - CTA ---- */
@media (max-width: 767px) {
    .cta-section {
        padding: var(--gap-md, 24px) var(--gap-sm, 20px);
        border-radius: var(--radius);
    }
    .cta-section h2 {
        font-size: 22px;
    }
}

/* ============================================================
   GLASS MORPHISM + PILL UI + UNIFIED GUTTER
   ============================================================ */

/* ---- Unified horizontal white-space (never touch edges) ----
   Horizontal gutter is handled by each page container
   (.container / .user-layout), so .main-content stays full-width
   to avoid double indentation on full-width sections. */
.main-content.has-sidebar-layout {
    padding: var(--gap-lg, 24px) 0 var(--gap-xl, 48px);
}
.page-header {
    padding-left: var(--gutter, 28px);
    padding-right: var(--gutter, 28px);
}

/* ---- Stat cards - glassmorphism ---- */
.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--gap-lg, 20px);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
}

/* ---- Pills / badges ---- */
.badge,
.badge-success,
.badge-warning,
.badge-danger,
.badge-secondary,
.badge-info {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger  { background: var(--danger-soft); color: var(--danger); }
.badge-secondary { background: var(--bg-deep); color: var(--gray); }
.badge-info    { background: var(--info-soft); color: var(--accent); }

/* ---- Form controls (select / input) - pill ---- */
.form-control,
select.form-control,
input.form-control {
    height: 48px;
    padding: 0 20px;
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-family: var(--font);
    background: var(--glass-bg);
    color: var(--ink);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    transition: var(--transition);
    width: 100%;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--primary-ring);
}
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
}

/* ---- Autocomplete dropdown / inputs on white bg ---- */
.input-wrap input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
}

/* ============================================================
   MARKETING / HOME PAGE COMPONENTS
   ============================================================ */

/* ---- Section head ---- */
.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}
.section-head .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.section-head h2 {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--ink);
    margin-bottom: 12px;
}
.section-head p {
    color: var(--gray);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

/* ---- Feature grid ---- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-lg, 24px);
}
.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(15,23,42,0.12);
    border-color: rgba(255,255,255,0.8);
}
.feature-card .f-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.f-icon.blue   { background: rgba(37,99,235,0.1);  color: #2563eb; }
.f-icon.green  { background: rgba(5,150,105,0.1);  color: #059669; }
.f-icon.orange { background: rgba(217,119,6,0.1);  color: #d97706; }
.f-icon.cyan   { background: rgba(14,165,233,0.1); color: #0ea5e9; }
.f-icon.pink   { background: rgba(219,39,119,0.1); color: #db2777; }
.f-icon.violet { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--ink);
}
.feature-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
    margin: 0;
}

/* ---- Steps ---- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-lg, 24px);
}
.step-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    text-align: center;
    transition: var(--transition);
}
.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(15,23,42,0.12);
}
.step-num {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(37,99,235,0.3);
}
.step-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--ink);
}
.step-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
    margin: 0;
}

/* ---- Project list ---- */
.project-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-lg, 24px);
}
.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(15,23,42,0.12);
    border-color: rgba(255,255,255,0.8);
}
.project-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}
.project-name .p-emoji {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.project-name .p-emoji svg {
    display: block;
}
.project-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}
.project-price small {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray);
}
.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

/* ---- Announcements ---- */
.announcement-list {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md, 16px);
}
.announcement-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    transition: var(--transition);
}
.announcement-item:hover {
    transform: translateX(4px);
    border-color: rgba(255,255,255,0.8);
}
.announcement-item .ann-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-pill);
    background: var(--warning-soft);
    color: var(--warning);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.announcement-item .ann-title {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.announcement-item .ann-time {
    font-size: 12px;
    color: var(--gray-light);
    flex-shrink: 0;
}

/* ---- CTA ---- */
.cta-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    border-radius: var(--radius-xl);
    padding: 56px 48px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(37,99,235,0.25);
}
.cta-section::before,
.cta-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.cta-section::before {
    top: -120px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, transparent 65%);
}
.cta-section::after {
    bottom: -140px;
    left: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(14,165,233,0.25) 0%, transparent 65%);
}
.cta-section h2 {
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.cta-section p {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}
.cta-section .btn {
    position: relative;
    z-index: 1;
}

/* ---- Empty state ---- */
.empty-state {
    background: var(--glass-bg);
    border: 1px dashed var(--gray-2);
    border-radius: var(--radius-xl);
    padding: 48px 24px;
    text-align: center;
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
}
.empty-state .empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: var(--radius-pill);
    background: var(--bg-deep);
    color: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.empty-state h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}
.empty-state p {
    font-size: 14px;
    color: var(--gray);
    margin: 0;
}

/* ---- Home page responsive ---- */
@media (max-width: 767px) {
    .feature-grid,
    .steps-grid,
    .project-list {
        grid-template-columns: 1fr;
        gap: var(--gap-md, 16px);
    }
    .section {
        padding: 48px 0;
    }
    .section-head {
        margin-bottom: 32px;
    }
    .cta-section {
        padding: 40px 24px;
    }
}
