/* ============================================
   销售数据管理系统 - 全局样式 (美化版)
   设计理念：现代渐变 + 玻璃态 + 微交互动效
   ============================================ */

:root {
    /* 主色调 — 靛蓝渐变系 */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-gradient-hover: linear-gradient(135deg, #5a6fd8 0%, #6a3f8f 100%);

    /* 语义色 */
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --info: #0ea5e9;
    --info-light: #e0f2fe;

    /* 背景色 */
    --bg: #f0f2f5;
    --bg-secondary: #f8fafc;
    --card-bg: #ffffff;
    --card-bg-hover: #fafbfc;

    /* 文字 */
    --text: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    /* 边框 */
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    /* 阴影 */
    --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -1px rgba(0,0,0,.04);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.03);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.08), 0 10px 10px -5px rgba(0,0,0,.03);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,.15);
    --shadow-primary: 0 4px 14px 0 rgba(99,102,241,.25);
    --shadow-success: 0 4px 14px 0 rgba(16,185,129,.25);
    --shadow-danger: 0 4px 14px 0 rgba(239,68,68,.25);

    /* 圆角 */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* 过渡 */
    --transition: all .25s cubic-bezier(.4, 0, .2, 1);
    --transition-fast: all .15s cubic-bezier(.4, 0, .2, 1);

    /* 渐变背景 */
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-blue: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-green: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-orange: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-pink: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-indigo: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #34475e 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 背景装饰（已统一为纯灰，移除紫色渐变层） */

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ========== Navbar ========== */
.navbar {
    background: var(--gradient-dark);
    color: #fff;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 64px;
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .6rem;
    letter-spacing: -.02em;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: translateY(-1px);
}

.navbar-brand i {
    background: var(--gradient-indigo);
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(99,102,241,.4);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: .2rem;
}

.nav-link {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    padding: .5rem .9rem;
    border-radius: var(--radius);
    font-size: .875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .4rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    border-radius: var(--radius-full);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.nav-link:hover::after {
    width: 60%;
}

.nav-link.active {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.nav-link.active::after {
    width: 60%;
}

.nav-link-primary {
    background: var(--gradient-indigo);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(99,102,241,.3);
}

.nav-link-primary:hover {
    box-shadow: 0 4px 12px rgba(99,102,241,.4);
    transform: translateY(-1px);
}

.nav-link-primary::after {
    display: none;
}

.nav-link-danger {
    background: rgba(239,68,68,.2);
    color: rgba(255,255,255,.9);
}

.nav-link-danger:hover {
    background: rgba(239,68,68,.35);
}

.nav-link-danger::after {
    display: none;
}

/* 移动端菜单按钮 */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: .5rem;
}

/* ========== Container ========== */
.container {
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 2rem;
    flex: 1;
    animation: fadeInUp .4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Alert ========== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .9rem;
    font-weight: 500;
    animation: slideInDown .3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #6ee7b7;
    box-shadow: 0 2px 8px rgba(16,185,129,.15);
}

.alert-error,
.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fca5a5;
    box-shadow: 0 2px 8px rgba(239,68,68,.15);
}

.alert-info {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #075985;
    border: 1px solid #7dd3fc;
    box-shadow: 0 2px 8px rgba(14,165,233,.15);
}

/* ========== Card ========== */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow);
}

.card-header {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(180deg, var(--bg-secondary) 0%, #fff 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2,
.card-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--text);
}

.card-header h3 i {
    color: var(--primary);
    font-size: 1.15rem;
}

.card-body {
    padding: 1.5rem;
}

/* ========== Table ========== */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    text-align: left;
    padding: .9rem 1.1rem;
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: .8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.table th:first-child {
    padding-left: 1.5rem;
}

.table th:last-child {
    padding-right: 1.5rem;
}

.table td {
    padding: .85rem 1.1rem;
    border-bottom: 1px solid var(--border-light);
    font-size: .875rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.table td:first-child {
    padding-left: 1.5rem;
}

.table td:last-child {
    padding-right: 1.5rem;
}

.table tbody tr {
    transition: var(--transition-fast);
}

.table tbody tr:hover {
    background: linear-gradient(90deg, rgba(99,102,241,.03) 0%, rgba(99,102,241,.06) 100%);
}

.table tbody tr:hover td {
    color: var(--text);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ========== Form ========== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: .4rem;
    font-size: .85rem;
    color: var(--text-secondary);
    letter-spacing: .01em;
}

.form-control {
    width: 100%;
    padding: .65rem .9rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: .9rem;
    transition: var(--transition);
    font-family: inherit;
    background: var(--bg-secondary);
    color: var(--text);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:hover {
    border-color: #cbd5e1;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99,102,241,.1);
    background: #fff;
}

textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .7rem center;
    background-size: 1.1rem;
    padding-right: 2.5rem;
}

/* 文件上传框 */
input[type="file"].form-control {
    padding: .5rem .9rem;
    cursor: pointer;
    background: #fff;
}

input[type="file"].form-control::file-selector-button {
    background: var(--gradient-indigo);
    color: #fff;
    border: none;
    padding: .4rem .9rem;
    border-radius: var(--radius-sm);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    margin-right: .8rem;
    transition: var(--transition);
}

input[type="file"].form-control::file-selector-button:hover {
    opacity: .9;
}

/* ========== Button ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .65rem 1.4rem;
    border: none;
    border-radius: var(--radius);
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    font-family: inherit;
    letter-spacing: .01em;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,.2);
    transform: translate(-50%, -50%);
    transition: width .4s, height .4s;
    pointer-events: none;
    z-index: 0;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-indigo);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,102,241,.35);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: var(--shadow-success);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16,185,129,.35);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: var(--shadow-danger);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239,68,68,.35);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
}

.btn-outline:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(245,158,11,.25);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,158,11,.35);
}

.btn-sm {
    padding: .4rem .8rem;
    font-size: .8rem;
}

.btn-block {
    width: 100%;
}

/* ========== Badge ========== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem .65rem;
    border-radius: var(--radius-full);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.badge-admin {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #9f1239;
    border: 1px solid #f9a8d4;
}

.badge-user {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.badge-amount {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.badge-payment-paid {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #6ee7b7;
    white-space: nowrap;
}

.badge-payment-pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fcd34d;
    white-space: nowrap;
}

/* ========== Auth (登录/注册) ========== */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 1.5rem;
    min-height: calc(100vh - 64px - 80px);
}

.auth-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 680px;
    padding: 2.5rem;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-indigo);
}

.auth-card h1 {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: .4rem;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    letter-spacing: -.02em;
}

.auth-card h1 i {
    color: var(--primary);
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: .9rem;
}

.auth-card .auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: .85rem;
    color: var(--text-muted);
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.auth-card .auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-card .auth-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ========== Stats Grid ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    opacity: .8;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .8rem;
    font-size: 1.4rem;
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #7c3aed;
}
.stat-card:has(.stat-icon.purple)::before { background: var(--gradient-indigo); }

.stat-icon.green {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}
.stat-card:has(.stat-icon.green)::before { background: var(--gradient-green); }

.stat-icon.blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}
.stat-card:has(.stat-icon.blue)::before { background: var(--gradient-blue); }

.stat-icon.orange {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    color: #ea580c;
}
.stat-card:has(.stat-icon.orange)::before { background: var(--gradient-orange); }

.stat-card .stat-value {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: .25rem;
    color: var(--text);
    letter-spacing: -.02em;
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-size: .8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ========== Link in table ========== */
.sales-url-link {
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    transition: var(--transition-fast);
}

.sales-url-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ========== Report Detail Card ========== */
.report-detail-card {
    background: var(--gradient-indigo);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-primary);
}

.report-detail-card .card-body h2 {
    color: #fff;
}

.report-detail-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    border: 2px solid rgba(255,255,255,.2);
}

.report-detail-icon-large {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #ede9fe 0%, #c7d2fe 100%);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.25rem;
    box-shadow: 0 4px 14px rgba(99,102,241,.2);
}

/* ========== Report Image Grid ========== */
.report-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.report-image-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    background: var(--card-bg);
}

.report-image-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.report-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-secondary);
}

.report-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.report-image-wrapper:hover img {
    transform: scale(1.08);
}

.report-image-info {
    padding: 1rem 1.1rem;
}

.report-image-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .3rem;
    color: var(--text);
}

.report-image-info p {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: .5rem;
}

.report-image-meta {
    display: flex;
    gap: 1rem;
    font-size: .75rem;
    color: var(--text-muted);
}

.report-image-meta span {
    display: flex;
    align-items: center;
    gap: .25rem;
}

/* ========== Empty State ========== */
.empty-state {
    padding: 3rem;
    text-align: center;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: .8rem;
    color: #cbd5e1;
}

.empty-state p {
    font-size: .95rem;
}

/* ========== Page Title ========== */
.page-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    letter-spacing: -.02em;
}

.page-title i {
    color: var(--primary);
}

/* ========== Filter Form ========== */
.filter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

/* ========== Two Column Grid ========== */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* ========== Footer ========== */
.footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: .85rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    background: var(--card-bg);
}

.footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
}

/* ========== Toast Notification ========== */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: #fff;
    padding: .75rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 99999;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    animation: slideInDown .3s ease-out;
}

/* ========== Image Preview Modal ========== */
.image-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn .2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-preview-modal img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    animation: scaleIn .3s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.image-preview-modal .preview-title {
    color: #fff;
    text-align: center;
    margin-top: .8rem;
    font-size: 1rem;
    font-weight: 500;
}

/* ========== Modal (通用模态框) ========== */
.collection-account-dialog {
    width: min(480px, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    background: var(--card-bg);
    color: var(--text);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
}

.collection-account-dialog::backdrop {
    background: rgba(16, 42, 38, .55);
    backdrop-filter: blur(4px);
}

.collection-account-dialog .modal-header {
    background: linear-gradient(180deg, #ecfdf5 0%, #fff 100%);
}

.collection-account-dialog .form-group:last-child {
    margin-bottom: 0;
}

.collection-account-section {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.collection-account-section + .collection-account-section {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
}

.collection-account-section legend {
    margin-bottom: 1rem;
    padding: 0;
    font-size: 1rem;
    font-weight: 600;
}

.collection-account-dialog .alert p {
    margin: 0;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn .2s ease-out;
}

.modal-dialog {
    width: 90%;
    max-width: 480px;
    animation: scaleIn .3s ease-out;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.modal-header {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(180deg, var(--danger-light) 0%, #fff 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--text);
}

.modal-header h3 i {
    font-size: 1.25rem;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--danger-light);
    color: var(--danger);
}

.modal-body {
    padding: 1.5rem;
}

.modal-warning-box {
    background: var(--danger-light);
    border: 1px solid #fca5a5;
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1.2rem;
}

.modal-warning-box > i {
    font-size: 1.8rem;
    color: var(--danger);
    flex-shrink: 0;
}

.modal-warning-box p {
    font-size: .95rem;
    color: #991b1b;
    font-weight: 500;
}

.modal-desc {
    font-size: .875rem;
    color: var(--text-secondary);
    margin-bottom: .8rem;
    line-height: 1.5;
}

.modal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2rem 0;
}

.modal-list li {
    padding: .5rem .8rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: .4rem;
    font-size: .85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.modal-list li i {
    color: var(--danger);
}

.modal-confirm-input {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}

.modal-confirm-input label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: .5rem;
}

.modal-confirm-input label strong {
    color: var(--danger);
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
    display: flex;
    justify-content: flex-end;
    gap: .6rem;
}

.modal-footer .btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none !important;
}

@media (max-width: 768px) {
    .modal-dialog {
        width: 95%;
    }

    .modal-header {
        padding: .9rem 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        padding: .8rem 1rem;
        flex-direction: column-reverse;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

/* =========================================================
   OliveBird Med · 2026 UI Refresh
   Calm clinical palette, stronger hierarchy and accessibility
   ========================================================= */
:root {
    --primary: #0f766e;
    --primary-dark: #115e59;
    --primary-light: #2dd4bf;
    --primary-gradient: linear-gradient(135deg, #0f766e 0%, #0d9488 55%, #14b8a6 100%);
    --primary-gradient-hover: linear-gradient(135deg, #115e59 0%, #0f766e 60%, #0d9488 100%);
    --success: #16a34a;
    --success-light: #dcfce7;
    --danger: #dc2626;
    --danger-light: #fef2f2;
    --warning: #d97706;
    --warning-light: #fffbeb;
    --info: #0284c7;
    --info-light: #f0f9ff;
    --bg: #f3f7f6;
    --bg-secondary: #f7faf9;
    --card-bg: rgba(255,255,255,.96);
    --card-bg-hover: #fff;
    --text: #16302d;
    --text-secondary: #4b635f;
    --text-muted: #839590;
    --border: #dce7e4;
    --border-light: #eaf1ef;
    --shadow-xs: 0 1px 2px rgba(23,48,45,.04);
    --shadow-sm: 0 1px 2px rgba(23,48,45,.04), 0 8px 24px rgba(23,48,45,.035);
    --shadow: 0 12px 32px rgba(23,48,45,.07);
    --shadow-md: 0 16px 40px rgba(23,48,45,.09);
    --shadow-lg: 0 22px 55px rgba(23,48,45,.12);
    --shadow-xl: 0 30px 70px rgba(16,42,38,.16);
    --shadow-primary: 0 10px 24px rgba(15,118,110,.2);
    --shadow-success: 0 10px 24px rgba(22,163,74,.18);
    --shadow-danger: 0 10px 24px rgba(220,38,38,.16);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --gradient-purple: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
    --gradient-blue: linear-gradient(135deg, #dbeafe 0%, #bae6fd 100%);
    --gradient-green: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    --gradient-orange: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    --gradient-pink: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    --gradient-indigo: var(--primary-gradient);
    --gradient-dark: linear-gradient(135deg, #102a26 0%, #153b35 100%);
}

body {
    background:
        radial-gradient(circle at 5% 0%, rgba(45,212,191,.10), transparent 28rem),
        radial-gradient(circle at 100% 20%, rgba(132,204,22,.055), transparent 24rem),
        var(--bg);
    letter-spacing: -.005em;
}

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

:focus-visible {
    outline: 3px solid rgba(45,212,191,.42);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: .75rem;
    left: .75rem;
    z-index: 99999;
    padding: .65rem 1rem;
    border-radius: var(--radius);
    background: #fff;
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transform: translateY(-160%);
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Top navigation */
.navbar {
    background: rgba(16,42,38,.96);
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 6px 24px rgba(16,42,38,.10);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    transition: box-shadow .25s ease, background .25s ease;
}

.navbar.is-scrolled {
    background: rgba(16,42,38,.985);
    box-shadow: 0 12px 30px rgba(16,42,38,.18);
}

.navbar-container {
    max-width: 1440px;
    height: 72px;
    padding: 0 2.5rem;
}

.navbar-brand {
    gap: .75rem;
    min-width: max-content;
}

.navbar-brand:hover {
    transform: none;
}

.navbar-brand .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #d9fff7;
    background: linear-gradient(145deg, rgba(45,212,191,.30), rgba(45,212,191,.10));
    border: 1px solid rgba(153,246,228,.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 8px 18px rgba(0,0,0,.16);
}

.navbar-brand .brand-mark i {
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    box-shadow: none;
    font-size: 1.1rem;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 1.02rem;
    font-weight: 750;
    letter-spacing: -.015em;
}

.brand-copy small {
    margin-top: .25rem;
    color: rgba(255,255,255,.46);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.navbar-nav {
    gap: .25rem;
}

.nav-link {
    min-height: 40px;
    padding: .55rem .78rem;
    color: rgba(239,255,251,.67);
    font-size: .82rem;
    border: 1px solid transparent;
}

.nav-link::after {
    display: none;
}

.nav-link:hover {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.07);
}

.nav-link.active {
    color: #ecfffb;
    background: rgba(45,212,191,.13);
    border-color: rgba(94,234,212,.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.nav-link.active i {
    color: #5eead4;
}

.nav-link-primary {
    background: rgba(45,212,191,.16);
    border-color: rgba(94,234,212,.18);
    box-shadow: none;
}

.nav-link-primary:hover {
    background: rgba(45,212,191,.24);
    box-shadow: none;
    transform: none;
}

.nav-user {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 36px;
    margin-left: .4rem;
    padding: .4rem .7rem;
    border-left: 1px solid rgba(255,255,255,.13);
    color: rgba(255,255,255,.78);
    font-size: .78rem;
    font-weight: 600;
}

.nav-user i {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    color: #99f6e4;
}

.nav-link-danger {
    background: transparent;
    color: rgba(255,255,255,.58);
}

.nav-link-danger:hover {
    background: rgba(248,113,113,.10);
    border-color: rgba(248,113,113,.12);
    color: #fecaca;
}

/* Page frame and intro */
.container {
    width: 100%;
    max-width: 1344px;
    margin: 2rem auto 3rem;
    padding: 0 2rem;
}

.page-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 180px;
    margin-bottom: 1.5rem;
    padding: 2.35rem 2.5rem;
    overflow: hidden;
    border-radius: var(--radius-xl);
    color: #fff;
    background:
        radial-gradient(circle at 85% 10%, rgba(94,234,212,.22), transparent 15rem),
        radial-gradient(circle at 10% 120%, rgba(132,204,22,.14), transparent 17rem),
        linear-gradient(120deg, #102a26 0%, #12554c 58%, #0f766e 100%);
    box-shadow: 0 18px 48px rgba(16,42,38,.18);
}

.page-hero::after {
    content: '';
    position: absolute;
    right: -72px;
    bottom: -130px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 50%;
    box-shadow: 0 0 0 36px rgba(255,255,255,.025), 0 0 0 76px rgba(255,255,255,.018);
}

.page-hero-copy,
.page-hero > .btn,
.hero-status {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .8rem;
    color: #99f6e4;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.page-hero h1 {
    margin-bottom: .45rem;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    line-height: 1.2;
    letter-spacing: -.035em;
}

.page-hero p {
    max-width: 620px;
    color: rgba(236,255,251,.66);
    font-size: .93rem;
}

.page-hero-compact {
    min-height: 160px;
}

.page-hero .btn-primary {
    flex-shrink: 0;
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 12px 24px rgba(0,0,0,.14);
}

.page-hero .btn-primary:hover {
    box-shadow: 0 16px 30px rgba(0,0,0,.18);
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .65rem .9rem;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: var(--radius-full);
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.76);
    font-size: .78rem;
    font-weight: 650;
    backdrop-filter: blur(10px);
}

.status-pulse,
.footer-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 4px rgba(74,222,128,.13);
}

.page-title {
    margin: .25rem 0 1.35rem;
    font-size: 1.55rem;
}

.page-title i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #dff7f2;
    color: var(--primary);
}

/* Cards and data surfaces */
.card {
    border-color: rgba(220,231,228,.88);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    box-shadow: var(--shadow);
}

.card-header {
    min-height: 62px;
    padding: 1rem 1.4rem;
    background: rgba(247,250,249,.72);
}

.card-header h2,
.card-header h3 {
    letter-spacing: -.015em;
}

.card-header h3 i {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #e3f7f3;
    color: var(--primary);
    font-size: .95rem;
}

.card-body {
    padding: 1.4rem;
}

.stats-grid {
    gap: 1rem;
}

.stat-card {
    min-height: 172px;
    padding: 1.35rem;
    text-align: left;
    border-color: rgba(220,231,228,.88);
    box-shadow: var(--shadow-sm);
}

.stat-card::before {
    width: 4px;
    height: 100%;
    opacity: .9;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: #c9ddd8;
    box-shadow: var(--shadow);
}

.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    margin: 0 0 1rem;
    border-radius: 13px;
    font-size: 1.12rem;
}

.stat-card:hover .stat-icon {
    transform: scale(1.04);
}

.stat-icon.purple {
    background: #e3f7f3;
    color: var(--primary);
}

.stat-card:has(.stat-icon.purple)::before { background: #14b8a6; }
.stat-card:has(.stat-icon.green)::before { background: #22c55e; }
.stat-card:has(.stat-icon.blue)::before { background: #38bdf8; }
.stat-card:has(.stat-icon.orange)::before { background: #fb923c; }

.stat-card .stat-value {
    margin-bottom: .15rem;
    font-size: 1.72rem;
    font-variant-numeric: tabular-nums;
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-size: .74rem;
    letter-spacing: .06em;
}

.table th {
    padding: .85rem 1rem;
    background: #f7faf9;
    border-bottom: 1px solid var(--border);
    color: #738783;
    font-size: .72rem;
    letter-spacing: .07em;
}

.table td {
    padding: .95rem 1rem;
    line-height: 1.45;
}

.table tbody tr:hover {
    background: #f4fbf9;
}

.table tbody tr:hover td {
    color: var(--text);
}

.badge {
    border-width: 0;
    padding: .3rem .65rem;
}

.badge-user {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-admin {
    background: #fce7f3;
    color: #be185d;
}

.badge-amount,
.badge-payment-paid {
    background: #dcfce7;
    color: #15803d;
}

.badge-payment-pending {
    background: #fef3c7;
    color: #b45309;
}

/* Forms and controls */
.form-group label {
    color: #49625e;
    font-size: .8rem;
}

.form-group label i {
    margin-right: .25rem;
    color: var(--primary);
}

.form-control {
    min-height: 45px;
    padding: .7rem .9rem;
    border-color: #d6e3e0;
    background: #f8fbfa;
}

.form-control:hover {
    border-color: #acc9c3;
}

.form-control:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 4px rgba(20,184,166,.11);
}

.btn {
    min-height: 42px;
    padding: .65rem 1.2rem;
    border-radius: 11px;
}

.btn-sm {
    min-height: 34px;
    padding: .38rem .75rem;
}

.btn-primary {
    background: var(--primary-gradient);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: var(--primary-gradient-hover);
    box-shadow: 0 12px 28px rgba(15,118,110,.28);
}

.btn-success {
    box-shadow: var(--shadow-success);
}

.btn-outline {
    background: #fff;
    border-color: #d3e1de;
}

.btn-outline:hover {
    background: #f0faf7;
    border-color: #72b6aa;
}

.filter-form {
    gap: .85rem;
}

.empty-state {
    padding: 3.5rem 2rem;
}

.empty-state i {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    border-radius: 18px;
    background: #eef5f3;
    color: #9aaca8;
    font-size: 1.65rem;
}

/* Branded feature cards */
.report-detail-card,
.invitation-card {
    background:
        radial-gradient(circle at 85% 15%, rgba(94,234,212,.20), transparent 15rem),
        linear-gradient(125deg, #102a26 0%, #0f766e 100%);
    box-shadow: 0 18px 42px rgba(15,118,110,.18);
}

.invitation-code-box {
    border-color: rgba(153,246,228,.32);
    background: rgba(255,255,255,.10);
}

.report-image-item:hover {
    border-color: #81cfc2;
}

/* Authentication pages */
.is-guest .container {
    max-width: 1180px;
}

.auth-wrapper.auth-layout {
    display: grid;
    grid-template-columns: minmax(300px, .9fr) minmax(390px, 1.1fr);
    align-items: stretch;
    width: 100%;
    min-height: 620px;
    padding: 1rem 0 2rem;
}

.auth-layout-register {
    min-height: 820px;
}

.auth-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 3rem;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    color: #fff;
    background:
        radial-gradient(circle at 20% 10%, rgba(94,234,212,.22), transparent 16rem),
        radial-gradient(circle at 100% 100%, rgba(132,204,22,.16), transparent 19rem),
        linear-gradient(145deg, #102a26 0%, #12554c 100%);
    box-shadow: 0 25px 70px rgba(16,42,38,.15);
}

.auth-visual::after {
    content: '';
    position: absolute;
    right: -115px;
    bottom: 45px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 50%;
    box-shadow: 0 0 0 38px rgba(255,255,255,.025), 0 0 0 78px rgba(255,255,255,.018);
}

.auth-visual > * {
    position: relative;
    z-index: 1;
}

.auth-visual-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .75rem;
    border: 1px solid rgba(153,246,228,.18);
    border-radius: var(--radius-full);
    background: rgba(255,255,255,.07);
    color: #ccfbf1;
    font-size: .72rem;
    font-weight: 700;
}

.auth-visual-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 1.35rem;
    border: 1px solid rgba(153,246,228,.18);
    border-radius: 17px;
    background: rgba(45,212,191,.12);
    color: #99f6e4;
    font-size: 1.4rem;
}

.auth-visual h2 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    line-height: 1.15;
    letter-spacing: -.05em;
}

.auth-visual p {
    max-width: 390px;
    color: rgba(236,255,251,.62);
    font-size: .92rem;
    line-height: 1.8;
}

.auth-proof {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    color: rgba(236,255,251,.72);
    font-size: .78rem;
}

.auth-proof span {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.auth-proof i {
    color: #5eead4;
}

.auth-layout .auth-card {
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem clamp(2rem, 5vw, 4.5rem);
    border: 1px solid var(--border-light);
    border-left: 0;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    box-shadow: var(--shadow-xl);
}

.auth-layout-register .auth-card {
    justify-content: flex-start;
}

.auth-layout .auth-card::before {
    display: none;
}

.auth-heading-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin: 0 auto .9rem;
    border-radius: 14px;
    background: #e3f7f3;
    color: var(--primary);
    font-size: 1.15rem;
}

.auth-layout .auth-card h1 {
    font-size: 1.7rem;
}

.auth-layout .auth-card .auth-subtitle {
    margin-bottom: 1.75rem;
}

/* Footer */
.footer {
    padding: 1.2rem 2rem;
    border-top-color: var(--border-light);
    background: rgba(255,255,255,.68);
    backdrop-filter: blur(12px);
}

.footer-inner {
    max-width: 1344px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-inner p {
    display: flex;
    align-items: center;
    gap: .55rem;
}

/* Responsive refinement */
@media (max-width: 1120px) {
    .navbar-container {
        padding: 0 1.25rem;
    }

    .nav-link {
        padding-inline: .58rem;
    }

    .nav-link span,
    .nav-user span {
        max-width: 88px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 900px) {
    .auth-wrapper.auth-layout {
        grid-template-columns: 1fr;
        max-width: 640px;
        margin-inline: auto;
    }

    .auth-visual {
        min-height: 320px;
        padding: 2.25rem;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

    .auth-proof {
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 2rem;
    }

    .auth-layout .auth-card {
        padding: 2.5rem;
        border-top: 0;
        border-left: 1px solid var(--border-light);
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    }
}

@media (max-width: 768px) {
    .navbar-container {
        height: 62px;
    }

    .navbar-toggle {
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255,255,255,.10);
        border-radius: 12px;
        background: rgba(255,255,255,.06);
    }

    .navbar-nav {
        max-height: calc(100vh - 62px);
        overflow-y: auto;
        padding: .75rem 1rem 1rem;
        background: rgba(16,42,38,.99);
    }

    .nav-link {
        min-height: 44px;
        padding-inline: .9rem;
    }

    .nav-user {
        width: 100%;
        margin: .35rem 0 0;
        padding: .6rem .9rem;
        border-top: 1px solid rgba(255,255,255,.10);
        border-left: 0;
    }

    .container {
        margin: 1rem auto 2rem;
        padding: 0 1rem;
    }

    .page-hero {
        min-height: 210px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 1.25rem;
        padding: 2rem 1.5rem;
        border-radius: var(--radius-lg);
    }

    .page-hero .btn {
        width: 100%;
    }

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

    .stat-card {
        min-height: 154px;
    }

    .card-header {
        align-items: flex-start;
        gap: .8rem;
    }

    .filter-form .form-group,
    .filter-form .btn {
        width: 100%;
        min-width: 0 !important;
    }

    .footer-inner {
        flex-direction: column;
        gap: .35rem;
    }
}

@media (max-width: 520px) {
    .brand-copy small {
        display: none;
    }

    .page-hero h1 {
        font-size: 1.65rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        min-height: 145px;
    }

    .auth-wrapper.auth-layout {
        padding-top: 0;
    }

    .auth-visual {
        min-height: 300px;
        padding: 1.6rem;
    }

    .auth-visual h2 {
        font-size: 1.85rem;
    }

    .auth-layout .auth-card {
        padding: 2rem 1.35rem;
    }

    .auth-proof {
        flex-direction: column;
    }
}

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

/* ========== Invitation Card ========== */
.invitation-card {
    background: var(--gradient-indigo);
    color: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-primary);
    overflow: hidden;
    position: relative;
}

.invitation-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}

.invitation-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,.03);
    border-radius: 50%;
}

.invitation-code-box {
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    border: 2px dashed rgba(255,255,255,.3);
    border-radius: var(--radius-md);
    padding: 1rem 2rem;
    display: inline-block;
}

.invitation-code-text {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: .15em;
    font-family: 'Courier New', monospace;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* ========== QR Share Section ========== */
.qr-share-section {
    margin-top: 1.5rem;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.qr-code-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
}

#qrcode {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .75rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

#qrcode img,
#qrcode canvas {
    display: block;
    border-radius: 6px;
}

.qr-code-label {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: rgba(255,255,255,.85);
    font-size: .85rem;
    font-weight: 500;
}

.qr-code-label i {
    font-size: 1rem;
}

/* ========== Back Button ========== */
.back-btn-wrapper {
    margin-bottom: 1rem;
}

/* ========== Quick Actions ========== */
.quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem;
        height: 56px;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-brand i {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .navbar-toggle {
        display: flex;
        align-items: center;
    }

    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--gradient-dark);
        flex-direction: column;
        padding: 1rem;
        gap: .25rem;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid rgba(255,255,255,.1);
    }

    .navbar-nav.show {
        display: flex;
        animation: slideInDown .2s ease-out;
    }

    .nav-link {
        width: 100%;
        padding: .7rem 1rem;
        font-size: .9rem;
    }

    .nav-link::after {
        display: none;
    }

    .container {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .8rem;
    }

    .stat-card {
        padding: 1.1rem;
    }

    .stat-card .stat-value {
        font-size: 1.4rem;
    }

    .stat-card .stat-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .two-col-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 1.8rem;
    }

    .auth-card h1 {
        font-size: 1.3rem;
    }

    .table {
        display: block;
        overflow-x: auto;
    }

    .filter-form {
        flex-direction: column;
    }

    .card-body {
        padding: 1rem;
    }

    .card-header {
        padding: .9rem 1rem;
    }

    .report-image-grid {
        grid-template-columns: 1fr;
    }

    .qr-share-section {
        padding: 1rem;
    }

    #qrcode {
        padding: .5rem;
    }

    #qrcode img,
    #qrcode canvas {
        width: 140px !important;
        height: 140px !important;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== Excel Preview Modal ========== */
.excel-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .75);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn .2s ease-out;
}

.excel-preview-container {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 92%;
    max-width: 1100px;
    height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: scaleIn .3s ease-out;
}

.excel-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(180deg, var(--bg-secondary) 0%, #fff 100%);
    flex-shrink: 0;
}

.excel-preview-header .title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.excel-preview-header .title i {
    color: var(--success);
    font-size: 1.2rem;
}

.excel-preview-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.excel-preview-close:hover {
    background: var(--danger-light);
    color: var(--danger);
}

.excel-preview-tabs {
    display: flex;
    gap: .3rem;
    padding: .6rem 1.5rem .6rem;
    border-bottom: 1px solid var(--border-light);
    overflow-x: auto;
    flex-shrink: 0;
    background: var(--bg-secondary);
}

.excel-tab {
    padding: .4rem .9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text-secondary);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.excel-tab:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.excel-tab.active {
    background: var(--gradient-indigo);
    color: #fff;
    border-color: transparent;
}

.excel-preview-body {
    flex: 1;
    overflow: auto;
    padding: 0;
}

.excel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}

.excel-table th,
.excel-table td {
    border: 1px solid var(--border);
    padding: .5rem .75rem;
    text-align: left;
    white-space: nowrap;
}

.excel-table thead th {
    background: var(--bg-secondary);
    font-weight: 700;
    color: var(--text);
    position: sticky;
    top: 0;
    z-index: 1;
}

.excel-table tbody tr:nth-child(even) {
    background: var(--bg-secondary);
}

.excel-table tbody tr:hover {
    background: var(--info-light);
}

/* 行号列 */
.excel-table .row-num {
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
    background: var(--bg-secondary);
    min-width: 48px;
}

.excel-preview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1rem;
    color: var(--text-muted);
}

.excel-preview-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.excel-preview-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: .8rem;
    color: var(--danger);
    font-size: .9rem;
}

.excel-preview-error i {
    font-size: 2.5rem;
}

.excel-preview-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .6rem 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
    flex-shrink: 0;
    font-size: .8rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .excel-preview-container {
        width: 96%;
        height: 92vh;
    }

    .excel-preview-header {
        padding: .8rem 1rem;
    }

    .excel-preview-header .title {
        font-size: .9rem;
    }

    .excel-preview-tabs {
        padding: .5rem 1rem;
    }

    .excel-table {
        font-size: .78rem;
    }

    .excel-table th,
    .excel-table td {
        padding: .35rem .5rem;
    }
}

/* OliveBird workspace: consistent surfaces, legible data and compact mobile layouts.
   This final section also takes precedence over the legacy responsive rules above. */
:root {
    --primary: #24715d;
    --primary-dark: #195541;
    --primary-light: #a8d5bd;
    --primary-gradient: linear-gradient(135deg, #24715d, #286d59);
    --primary-gradient-hover: linear-gradient(135deg, #195541, #24715d);
    --gradient-indigo: var(--primary-gradient);
    --bg: #f5f7f5;
    --bg-secondary: #f8faf8;
    --card-bg: #fff;
    --text: #213a31;
    --text-secondary: #52665d;
    --text-muted: #697b72;
    --border: #dce5df;
    --border-light: #e9eee9;
    --shadow-sm: 0 2px 6px rgba(27,57,40,.025);
    --shadow: 0 8px 24px rgba(27,57,40,.045);
    --shadow-primary: 0 4px 10px rgba(36,113,93,.12);
    --radius-lg: 16px;
}
body { background: var(--bg); }
.navbar, .navbar.is-scrolled {
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--border);
    box-shadow: none;
}
.navbar.is-scrolled { box-shadow: 0 4px 20px rgba(27,57,40,.05); }
.navbar-container { max-width: 1344px; padding-inline: 2rem; height: 76px; }
.navbar-brand { color: var(--text); }
.navbar-brand .brand-mark {
    background: var(--primary); color: #fff;
    box-shadow: none; border: 0; border-radius: 12px;
}
.brand-copy strong { font-size: 1.05rem; }
.brand-copy small { color: var(--text-muted); font-size: .56rem; letter-spacing: .17em; }
.nav-link { color: var(--text-secondary); font-size: .82rem; white-space: nowrap; }
.nav-link:hover { background: #f0f5f1; border-color: transparent; color: var(--primary-dark); }
.nav-link.active { background: #eaf3ec; border-color: transparent; color: var(--primary-dark); box-shadow: none; }
.nav-link.active i { color: var(--primary); }
.nav-link-primary { background: var(--primary); color: #fff; border-color: transparent; }
.nav-link-primary:hover { background: var(--primary-dark); color: #fff; border-color: transparent; }
.nav-link-danger { color: #7b6862; background: transparent; }
.nav-link-danger:hover { background: #fdf0ed; color: #b44530; }
.nav-user { color: var(--text-secondary); border-color: var(--border); max-width: 150px; }
.nav-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user i { background: #eaf3ec; color: var(--primary); }
.navbar-toggle { color: var(--text); background: #f5f7f5; border-color: var(--border); }
.container { margin-block: 2rem 3rem; animation: none; }
.page-hero {
    min-height: 128px; padding: .5rem 0 1.75rem; margin-bottom: 1.5rem;
    color: var(--text); background: none; box-shadow: none;
    border-radius: 0; border-bottom: 1px solid var(--border); overflow: visible;
}
.page-hero::after { display: none; }
.eyebrow { color: var(--primary); font-size: .65rem; letter-spacing: .15em; margin-bottom: .55rem; }
.page-hero h1 { font-size: clamp(1.65rem, 2.7vw, 2rem); font-weight: 750; line-height: 1.35; }
.page-hero p { color: var(--text-secondary); font-size: .875rem; line-height: 1.8; }
.page-hero .btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-primary); }
.page-hero .btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-primary); }
.card { border-color: var(--border); box-shadow: var(--shadow-sm); }
.card:hover { box-shadow: var(--shadow-sm); }
.card-header { padding: 1rem 1.5rem; background: #fff; }
.card-header h3 { font-size: .95rem; }
.card-header h3 i { background: #f0f5f1; color: var(--primary); }
.card-body { padding: 1.5rem; }
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 1rem; }
.stat-card {
    display: grid; grid-template-columns: minmax(0, 1fr) 38px; grid-template-rows: auto 1fr;
    align-items: center; gap: .5rem .75rem; min-height: 134px; padding: 1.25rem 1.4rem;
    border-color: var(--border); box-shadow: var(--shadow-sm);
}
.stat-card::before { display: none; }
.stat-card:hover { transform: none; box-shadow: var(--shadow); }
.stat-card .stat-icon { grid-column: 2; grid-row: 1; width: 38px; height: 38px; margin: 0; border-radius: 11px; font-size: 1rem; }
.stat-card .stat-label { grid-column: 1; grid-row: 1; color: var(--text-secondary); font-size: .8rem; letter-spacing: 0; }
.stat-card .stat-value { grid-column: 1 / -1; grid-row: 2; font-size: clamp(1.35rem, 2.2vw, 1.8rem); margin: 0; line-height: 1.4; overflow-wrap: anywhere; }
.stat-icon.purple { background: #eaf3ec; color: var(--primary); }
.stat-icon.green { background: #edf5e5; color: #527b32; }
.stat-icon.blue { background: #eaf2f8; color: #3a719d; }
.stat-icon.orange { background: #fcf1e4; color: #a8752f; }
.table th { color: var(--text-secondary); background: #f8faf8; letter-spacing: 0; font-size: .75rem; font-weight: 600; }
.table td { color: var(--text-secondary); padding-block: 1rem; font-variant-numeric: tabular-nums; }
.table tbody tr:hover { background: #f4f8f3; }
.table tbody td:first-child { color: var(--text); font-weight: 550; }
.form-control { background: #fff; border-color: var(--border); min-height: 46px; border-radius: 10px; font-size: .875rem; }
.form-control::placeholder { color: #7c8982; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(36,113,93,.1); background: #fff; }
.form-group label { color: var(--text-secondary); font-size: .8rem; }
.btn { border-radius: 10px; min-height: 44px; }
.btn::before { display: none; }
.btn:hover { transform: none; }
.btn-primary { background: var(--primary); box-shadow: var(--shadow-primary); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-primary); }
.btn-outline:hover { background: #f1f6ef; border-color: #94b5a2; }
.btn-sm { min-height: 34px; }
.empty-state { padding: 3rem 1.5rem; }
.empty-state i { background: #f0f5ee; color: #6f937a; border-radius: 50%; }
.empty-state h3 { font-size: 1rem; margin-bottom: .45rem; font-weight: 650; }
.empty-state p { font-size: .85rem; color: var(--text-muted); }
.trial-notice {
    display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem;
    margin-bottom: 1.5rem; background: #fff9ee; border: 1px solid #eee0c3;
    border-radius: 12px; color: #70562c;
}
.trial-notice-icon { width: 36px; height: 36px; display: grid; place-items: center; flex-shrink: 0; background: #f8eed7; border-radius: 10px; }
.trial-notice strong { font-size: .85rem; font-weight: 600; }
.trial-notice p { font-size: .78rem; margin-top: .15rem; color: #806438; }
.trial-notice-link { display: inline-flex; align-items: center; gap: .4rem; margin-left: auto; padding-block: .5rem; color: #70562c; font-size: .8rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.trial-notice-link:hover { text-decoration: underline; }
.report-detail-card:has(.report-summary) { color: var(--text); background: #edf4ea; border: 1px solid #dce7d6; box-shadow: none; }
.report-summary { display: flex; gap: 1.5rem; align-items: center; padding: 1.75rem; }
.report-summary .report-detail-icon { flex-shrink: 0; width: 64px; height: 64px; margin: 0; border: 1px solid #dce7d6; background: #fff; color: var(--primary); border-radius: 18px; font-size: 1.6rem; }
.report-summary-copy { flex: 1; }
.report-detail-card .report-summary h2 { color: var(--text); font-size: 1.15rem; margin-bottom: .4rem; }
.report-summary p { font-size: .85rem; color: var(--text-secondary); }
.report-summary .btn { flex-shrink: 0; }
.footer { background: transparent; border-top-color: var(--border); backdrop-filter: none; padding: 1.25rem 2rem; }
.footer-inner { max-width: 1280px; color: var(--text-muted); font-size: .75rem; }
.footer-caption { color: var(--text-secondary); }

/* Auth: one shared illustrated panel and a focused form. */
:is(.page-login, .page-register) .container { display: flex; align-items: center; max-width: 1180px; margin-block: 2.5rem; }
.auth-wrapper.auth-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 600px; padding: 0; gap: 0;
    border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 18px 60px rgba(27,57,40,.065);
    overflow: hidden;
}
.auth-visual {
    display: flex; min-height: 0; gap: 1rem; padding: 2.75rem; border-radius: 0;
    background: radial-gradient(ellipse at 100% 90%, #3c7351 0%, transparent 65%), #164e40;
    box-shadow: none;
}
.auth-visual::after { display: none; }
.auth-visual-badge { padding: 0; color: #c6ded1; background: none; border: 0; border-radius: 0; font-size: .6rem; font-weight: 500; letter-spacing: .12em; }
.brand-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #c5e7ac; margin-right: .25rem; }
.auth-visual-copy { margin-top: .75rem; }
.auth-visual h2 { font-size: clamp(1.7rem, 2.6vw, 2.35rem); line-height: 1.55; letter-spacing: -.035em; font-weight: 650; margin-bottom: 1rem; }
.headline-dot { color: #c5e7ac; }
.auth-visual p { color: #c1d9cc; font-size: .85rem; line-height: 1.9; }
.auth-art { width: calc(100% + 1.25rem); margin-inline: -.625rem; }
.auth-art svg { display: block; width: 100%; height: auto; max-height: 220px; }
.auth-proof { flex-direction: row; flex-wrap: wrap; gap: .6rem 1.2rem; color: #d0e2d7; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .72rem; }
.auth-proof i { color: #c5e7ac; }
.auth-layout .auth-card {
    padding: 2.75rem clamp(1.75rem, 4vw, 3.75rem); border: 0; border-radius: 0; box-shadow: none;
    justify-content: center; overflow: visible;
}
.auth-kicker { display: block; color: var(--primary); font-size: .65rem; letter-spacing: .1em; margin-bottom: .55rem; font-weight: 600; }
.auth-layout .auth-card h1 { display: block; text-align: left; font-size: 1.85rem; font-weight: 700; margin-bottom: .6rem; }
.auth-layout .auth-card .auth-subtitle { text-align: left; font-size: .8rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 2rem; }
.auth-card .form-group { margin-bottom: 1.25rem; }
.auth-card .form-control { min-height: 49px; }
.auth-card .btn-block { margin-top: .5rem; min-height: 49px; gap: .75rem; }
.auth-card .auth-footer { color: var(--text-muted); font-size: .8rem; padding-top: 1.35rem; }
.password-field { position: relative; }
.password-field .form-control { padding-right: 3rem; }
.password-toggle { position: absolute; right: 3px; top: 3px; bottom: 3px; width: 43px; display: grid; place-items: center; background: none; border: 0; border-radius: 8px; color: var(--text-muted); font-size: 1.05rem; cursor: pointer; }
.password-toggle[hidden] { display: none; }
.password-toggle:hover { background: #f1f6ef; color: var(--primary); }
.registration-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
.registration-form .form-group { min-width: 0; margin-bottom: 1rem; }
.registration-form .form-span-full, .registration-form .btn-block { grid-column: 1 / -1; }
.collection-account-dialog { border: 1px solid var(--border); border-radius: 20px; }
.collection-account-dialog::backdrop { background: rgba(20,42,33,.42); backdrop-filter: blur(4px); }

@media (max-width: 1120px) {
    .navbar-container { padding-inline: 1.25rem; }
    .is-authenticated .navbar-toggle { display: flex; align-items: center; justify-content: center; }
    .is-authenticated .navbar-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
    .is-authenticated .navbar-nav.show { display: flex; }
    .is-authenticated .navbar-nav { max-height: calc(100dvh - 76px); overflow-y: auto; }
    .is-authenticated .nav-link { min-height: 44px; }
    .is-authenticated .nav-user { max-width: none; margin: .5rem 0; border-left: 0; padding-inline: .75rem; }
    .auth-visual { padding: 2rem; }
}
@media (max-width: 900px) {
    .auth-wrapper.auth-layout { grid-template-columns: 1fr; max-width: 560px; min-height: 0; }
    .auth-visual { min-height: 0; gap: .8rem; padding: 1.75rem 2rem; }
    .auth-visual-copy { margin-top: .4rem; }
    .auth-visual h2 { font-size: 1.65rem; line-height: 1.5; margin-bottom: .5rem; }
    .auth-visual p { font-size: .8rem; }
    .auth-art { display: none; }
    .auth-proof { margin-top: .5rem; padding-top: .8rem; gap: .75rem 1rem; }
    .auth-layout .auth-card { padding: 2rem; }
}
@media (max-width: 768px) {
    .navbar-container { height: 66px; padding-inline: 1rem; }
    .navbar-nav { background: #fff; border-top: 1px solid var(--border-light); max-height: calc(100dvh - 66px); }
    .navbar-toggle { border: 1px solid var(--border); background: #f5f7f5; }
    .navbar-brand .brand-mark i { width: auto; height: auto; }
    .container { padding-inline: 1rem; margin-block: 1.25rem 2rem; }
    .page-hero { min-height: 0; padding: .5rem 0 1.25rem; gap: 1rem; align-items: stretch; }
    .page-hero p { font-size: .8rem; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .stat-card { min-height: 120px; padding: 1rem; gap: .75rem .3rem; }
    .stat-card .stat-icon { width: 34px; height: 34px; font-size: .95rem; }
    .stat-card .stat-value { font-size: 1.35rem; }
    .stat-card .stat-label { font-size: .73rem; }
    .card-header { padding: 1rem; flex-wrap: wrap; align-items: center; }
    .card-body { padding: 1.1rem; }
    .trial-notice { flex-wrap: wrap; gap: .6rem; padding: 1rem; }
    .trial-notice > div { flex: 1; flex-basis: calc(100% - 50px); min-width: 0; }
    .trial-notice-icon { align-self: flex-start; }
    .trial-notice-link { margin-left: 42px; }
    .report-summary { flex-wrap: wrap; gap: 1rem; }
    .report-summary .report-detail-icon { width: 48px; height: 48px; border-radius: 13px; font-size: 1.3rem; }
    .report-summary-copy { min-width: 180px; }
    .report-summary .btn { width: 100%; }
    .footer { padding-inline: 1rem; }
    .footer-inner { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: .3rem 1rem; }
    :is(.page-login, .page-register) .container { margin-block: 1.25rem 2rem; }
    .auth-visual { display: flex; }
    .auth-visual-badge { font-size: .52rem; letter-spacing: .07em; }
    .auth-layout .auth-card h1 { font-size: 1.6rem; }
    .auth-layout .auth-card .auth-subtitle { margin-bottom: 1.5rem; }
}
@media (max-width: 480px) {
    .auth-wrapper.auth-layout { border-radius: 18px; }
    .auth-visual, .auth-layout .auth-card { padding: 1.5rem; }
    .auth-visual h2 { font-size: 1.5rem; }
    .auth-visual p br { display: none; }
    .auth-proof { flex-direction: row; font-size: .65rem; gap: .8rem; }
    .registration-form { grid-template-columns: 1fr; }
    .registration-form .form-span-full, .registration-form .btn-block { grid-column: 1; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
