/* Seay-Board Theme - Main Styles */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

/* Loading Styles */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notification Styles */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    padding: 16px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateX(400px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.toast.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    opacity: 0.9;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -1;
}

.background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-content {
    width: 100%;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #64748b;
    font-size: 16px;
    margin: 0;
    font-weight: 400;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    letter-spacing: 0.025em;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    z-index: 2;
    color: #64748b;
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-group input {
    width: 100%;
    padding: 16px 16px 16px 56px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.input-group input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.input-group input:focus + .input-icon,
.input-group:focus-within .input-icon {
    color: #667eea;
}

.password-toggle {
    position: absolute;
    right: 16px;
    z-index: 2;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    font-size: 14px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: #475569;
    position: relative;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    background: white;
}

.checkbox-container input:checked ~ .checkmark {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
}

.checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark::after {
    display: block;
}

.checkbox-text {
    flex: 1;
    line-height: 1.5;
}

.terms-link,
.privacy-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.terms-link:hover,
.privacy-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.checkbox-container input:checked ~ .checkmark::after {
    display: block;
}

.checkbox-text {
    font-weight: 500;
    user-select: none;
}

.forgot-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.forgot-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.forgot-link:hover {
    color: #5a67d8;
}

.forgot-link:hover::after {
    width: 100%;
}

.login-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
    margin-bottom: 24px;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.loading-spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.divider {
    position: relative;
    text-align: center;
    margin: 32px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 16px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.social-login {
    margin-bottom: 32px;
}

.social-btn {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    background: white;
    color: #374151;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.social-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.login-footer p {
    color: #64748b;
    margin: 0;
}

.register-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.register-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.register-link:hover {
    color: #5a67d8;
}

.register-link:hover::after {
    width: 100%;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-spinner {
    text-align: center;
    color: #3b82f6;
}

.loading-text {
    margin-top: 16px;
    font-size: 14px;
    color: #6b7280;
}

/* App Container */
#app {
    min-height: 100vh;
}

/* Layout Styles */
.layout-sidebar {
    display: flex;
}

.layout-topbar {
    display: block;
}

/* Sidebar Layout */
.sidebar {
    width: 260px;
    min-height: 100vh;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.main-content {
    margin-left: 260px;
    min-height: 100vh;
    background: #f8fafc;
}

/* Topbar Layout */
.layout-topbar .sidebar {
    position: relative;
    width: 100%;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
}

.layout-topbar .main-content {
    margin-left: 0;
}

/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Navigation */
.nav-menu {
    list-style: none;
    padding: 16px 0;
}

.nav-item {
    margin: 4px 16px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: #f3f4f6;
    color: #374151;
}

.nav-link.active {
    background: #3b82f6;
    color: #fff;
}

.nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

/* Content Area */
.content {
    padding: 24px;
}

/* Cards */
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.card-body {
    padding: 24px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 40px;
}

.btn-primary {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

.btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.btn-secondary {
    background: #6b7280;
    color: #fff;
    border-color: #6b7280;
}

.btn-secondary:hover {
    background: #4b5563;
    border-color: #4b5563;
}

.btn-warning {
    background: #f59e0b;
    color: #fff;
    border-color: #f59e0b;
}

.btn-warning:hover {
    background: #d97706;
    border-color: #d97706;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }

.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar .logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-right: 3px solid transparent;
}

.nav-link:hover {
    background: #f1f5f9;
    color: #334155;
}

.nav-item.active .nav-link {
    background: #f1f5f9;
    color: #667eea;
    border-right-color: #667eea;
}

.nav-link svg {
    flex-shrink: 0;
}

/* Navigation Groups */
.nav-group {
    margin: 8px 0;
}

.nav-group-title {
    padding: 8px 24px 4px 24px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-sublist .nav-item {
    margin: 0;
}

.nav-sublist .nav-link {
    padding: 10px 24px 10px 48px;
    font-size: 14px;
}

.nav-sublist .nav-link:hover {
    background: #f1f5f9;
    color: #334155;
}

.nav-sublist .nav-item.active .nav-link {
    background: #f1f5f9;
    color: #667eea;
    border-right-color: #667eea;
}

/* Primary Navigation Styles */
.nav-primary {
    position: relative;
}

.nav-primary > .nav-link {
    font-weight: 600;
    font-size: 15px;
    padding: 14px 24px;
    text-align: left;
}

.nav-primary.active > .nav-link {
    background: #3b82f6;
    color: #fff;
}

.nav-expandable > .nav-link {
    justify-content: start;
}

/* Submenu Styles */
.nav-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f8fafc;
    display: block;
}

.nav-secondary {
    margin: 0;
}

.nav-secondary .nav-link {
    padding: 10px 24px 10px 56px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    border-right: none;
}

.nav-secondary .nav-link:hover {
    background: #e2e8f0;
    color: #334155;
}

.nav-secondary .nav-link.active {
    background: #e0e7ff;
    color: #667eea;
    border-right: 3px solid #667eea;
}

.nav-secondary .nav-link svg {
    width: 16px;
    height: 16px;
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.user-email {
    font-size: 12px;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-btn {
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
}

.main-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    flex: 1;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.page-subtitle {
    color: #64748b;
    font-size: 16px;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-btn {
    width: 44px;
    height: 44px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.action-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Dashboard Content */
.dashboard-content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    max-width: 1200px;
    margin: 0 auto;
    background: #f8fafc;
    min-height: 100vh;
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Stats Overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stats-overview .stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 88px;
    height: 88px;
}

.stats-overview .stat-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.stats-overview .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    flex-shrink: 0;
}

.stats-overview .stat-info {
    flex: 1;
}

.stats-overview .stat-label {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 500;
}

.stats-overview .stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.today-usage .stat-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.total-bandwidth .stat-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

.balance .stat-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.commission .stat-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.stat-trend {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.stat-trend.positive {
    background: #dcfce7;
    color: #16a34a;
}

.stat-trend.neutral {
    background: #f1f5f9;
    color: #64748b;
}

.stat-title {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    margin: 0 0 8px 0;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.stat-description {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

/* Widget Styles */
.widgets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.widget {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.widget:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0;
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.widget-action {
    color: #667eea;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.widget-action:hover {
    background: #f3f4f6;
    color: #4f46e5;
    border-color: #e5e7eb;
}

.widget-content {
    padding: 1.5rem;
}

/* Subscription Widget */
.subscription-card {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.subscription-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.subscription-status .status-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.active {
    background: #dcfce7;
    color: #166534;
}

.status-badge.inactive {
    background: #fef2f2;
    color: #991b1b;
}

.status-badge.expired {
    background: #fef3c7;
    color: #92400e;
}

.subscription-info {
    margin-bottom: 1.5rem;
}

.subscription-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem;
}

.subscription-desc {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.subscription-progress {
    margin-bottom: 1.5rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.progress-value {
    font-size: 0.875rem;
    color: #1f2937;
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.subscription-actions {
    display: flex;
    gap: 0.75rem;
}

/* Traffic Widget */
.traffic-widget .widget-tabs {
    display: flex;
    gap: 0.5rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: #667eea;
    color: white;
}

.tab-btn:hover:not(.active) {
    background: #f3f4f6;
    color: #374151;
}

.usage-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.usage-item {
    text-align: center;
}

.usage-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.usage-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.traffic-chart {
    margin-top: 1rem;
}

.chart-placeholder {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* Traffic Usage Widget */
.usage-progress {
    margin-bottom: 16px;
}

.usage-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.usage-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.usage-value {
    font-size: 14px;
    color: #1e293b;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.usage-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.usage-detail {
    text-align: center;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.usage-detail-value {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.usage-detail-label {
    font-size: 12px;
    color: #64748b;
}

/* Account Info Widget */
.account-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    color: #1e293b;
    font-weight: 600;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.active {
    background: #dcfce7;
    color: #16a34a;
}

.status-badge.expired {
    background: #fee2e2;
    color: #dc2626;
}

/* Dashboard Sections */
.subscription-section,
.notifications-section,
.subscription-import-section,
.clients-section {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 12px;
}

.section-desc {
    color: #64748b;
    margin: 0;
    font-size: 14px;
}

/* Subscription Card */
.subscription-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.subscription-plan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.plan-name {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.plan-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.plan-status.active .status-dot {
    width: 8px;
    height: 8px;
    background: #16a34a;
    border-radius: 50%;
}

.subscription-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.detail-value {
    font-size: 16px;
    color: #1e293b;
    font-weight: 600;
}

/* Notifications Section */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.notification-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.warning {
    background: #fef3c7;
    color: #d97706;
}

.notification-icon.info {
    background: #dbeafe;
    color: #2563eb;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.notification-message {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Subscription Import Section */
.import-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.import-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: white;
}

.import-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.import-btn.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.import-btn.secondary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.import-btn.surge {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.import-btn.shadowrocket {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.import-btn.stash {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.import-btn.quantumult {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.import-btn.clash {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Clients Section */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.client-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.client-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.client-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #64748b;
}

.client-name {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    text-align: center;
}

.btn-download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.link-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.link-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.link-details h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.link-details p {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
}

.link-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.btn-copy, .btn-qr, .btn-import {
    flex: 1;
    min-width: 120px;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    background: white;
    color: #1e293b;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-copy:hover, .btn-qr:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
}

.btn-import {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.btn-import:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    border-color: #5a67d8;
    transform: translateY(-1px);
}

.no-subscription-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.empty-icon {
    width: 64px;
    height: 64px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.empty-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.empty-desc {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
}

/* Platform Section Styles */
.platform-section {
    margin-bottom: 2rem;
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.platform-header i {
    font-size: 1.5rem;
    color: #667eea;
}

.platform-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

/* Clients Grid Styles */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.client-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.client-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: #667eea;
}

.clash-card::before {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.clashx-card::before {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.shadowrocket-card::before {
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.surge-card::before {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.v2ray-card::before {
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
}

.surfboard-card::before {
    background: linear-gradient(90deg, #fa709a 0%, #fee140 100%);
}

.quantumult-card::before {
    background: linear-gradient(90deg, #a8edea 0%, #fed6e3 100%);
}

.client-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.client-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 20px;
    flex-shrink: 0;
    margin-bottom: 8px;
    background: #f8fafc;
}

.client-icon.clash {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.client-icon.clashx {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.client-icon.shadowrocket {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.client-icon.surge {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.client-icon.v2ray {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.client-icon.surfboard {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.client-icon.quantumult {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.client-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.client-info p {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
}

.client-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.client-actions .btn-download,
.client-actions .btn-config,
.client-actions .btn-copy,
.client-actions .btn-import,
.client-actions .btn-qr,
.client-actions .btn-guide {
    flex: 1;
    min-width: 80px;
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    white-space: nowrap;
}

.client-actions .btn-download:hover,
.client-actions .btn-config:hover,
.client-actions .btn-copy:hover,
.client-actions .btn-import:hover,
.client-actions .btn-qr:hover,
.client-actions .btn-guide:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.client-actions .btn-qr {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.client-actions .btn-guide {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Responsive Dashboard */
@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .widgets-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.2);
    }
    
    /* 侧边栏遮罩层样式 */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s ease;
        backdrop-filter: blur(2px);
    }
    
    .sidebar-overlay.show {
        opacity: 1;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .main-header {
        padding: 16px 20px;
    }
    
    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 10px;
        border-radius: 8px;
        background: rgba(59, 130, 246, 0.1);
        border: 1px solid rgba(59, 130, 246, 0.2);
        color: #3b82f6;
        transition: all 0.2s ease;
        cursor: pointer;
    }
    
    .menu-toggle:hover {
        background: rgba(59, 130, 246, 0.15);
        border-color: rgba(59, 130, 246, 0.3);
        transform: scale(1.05);
    }
    
    .menu-toggle:active {
        transform: scale(0.95);
        background: rgba(59, 130, 246, 0.2);
    }
    
    .menu-toggle svg {
        width: 20px;
        height: 20px;
        stroke-width: 2.5;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .dashboard-content {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .widgets-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .widget {
        margin-bottom: 1rem;
    }
    
    .widget-header {
        padding: 1rem 1rem 0;
    }
    
    .widget-content {
        padding: 1rem;
    }
    
    .subscription-card {
        padding: 1rem;
    }
    
    .subscription-icon {
        width: 40px;
        height: 40px;
    }
    
    .usage-summary {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .usage-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .usage-label {
        margin-bottom: 0;
    }
    
    .chart-placeholder {
        height: 120px;
    }
    
    .usage-details {
        grid-template-columns: 1fr;
    }
    
    .content {
        padding: 16px;
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .link-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .link-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    /* Login page responsive */
    .login-container {
        padding: 16px;
    }
    
    .login-card {
        padding: 32px 24px;
        border-radius: 20px;
    }
    
    .logo {
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .input-group input {
        padding: 14px 14px 14px 44px;
        font-size: 16px;
    }
    
    .input-icon {
        left: 14px;
    }
    
    .password-toggle {
        right: 14px;
    }
    
    .login-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .social-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .floating-shapes {
        display: none;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .main-header {
        padding: 12px 16px;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .dashboard-content {
        padding: 16px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .widget {
        padding: 16px;
    }
    
    .dashboard-title {
        font-size: 1.25rem;
    }
    
    .stats-grid {
        gap: 0.5rem;
    }
    
    .subscription-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .subscription-actions {
        width: 100%;
    }
    
    .subscription-actions .btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .client-card {
        padding: 1rem;
    }
    
    .client-header {
        margin-bottom: 1rem;
    }
    
    .subscription-link-card {
        padding: 1rem;
    }
    
    .link-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-copy, .btn-qr {
         width: 100%;
         text-align: center;
     }
}

/* QR Code Modal Styles */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.qr-modal-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.qr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.qr-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.qr-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.qr-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.qr-body {
    padding: 2rem;
    text-align: center;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.4;
}

.qr-placeholder small {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.5rem;
    word-break: break-all;
    max-width: 180px;
}

.qr-desc {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
}

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

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

@media (max-width: 480px) {
    .qr-modal-content {
        width: 95%;
    }
    
    .qr-header {
        padding: 1rem;
    }
    
    .qr-body {
        padding: 1.5rem;
    }
    
    .qr-placeholder {
        width: 160px;
        height: 160px;
    }
    
     .login-container {
         padding: 12px;
    }
    
    .login-card {
        padding: 24px 20px;
        border-radius: 16px;
    }
}

/* Purchase Subscription Page Styles */
.subscription-page {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.subscription-page .page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.subscription-page .page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.subscription-page .page-header p {
    font-size: 1.125rem;
    color: #64748b;
    margin: 0;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.plan-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.plan-card.featured {
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    transform: scale(1.05);
}

.plan-card.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.plan-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.plan-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plan-badge.popular {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price .period {
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
}

.features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #475569;
    font-weight: 500;
}

.features li .icon-check {
    width: 20px;
    height: 20px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.features li .icon-check::before {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.plan-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plan-btn:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.plan-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.subscription-notice {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    background: #f8fafc;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.notice-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #475569;
    font-weight: 500;
}

.notice-item i {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
}

.notice-item .icon-shield::before {
    content: '🛡️';
}

.notice-item .icon-clock::before {
    content: '⏰';
}

.notice-item .icon-support::before {
    content: '💬';
}

/* Profile Page Styles */
.profile-page {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 我的钱包样式 */
.wallet-section {
    margin-bottom: 1.5rem;
}

.wallet-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.wallet-header {
    padding: 1.5rem 1.5rem 0;
}

.wallet-header h3 {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.balance-display {
    padding: 1rem 1.5rem 1.5rem;
}

.balance-amount {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.balance-amount .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.balance-amount .currency {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

.balance-label {
    color: #6b7280;
    font-size: 0.9rem;
}

/* 通用卡片样式 */
.section-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.section-header {
    padding: 1.5rem 1.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.section-content {
    padding: 0 1.5rem 1.5rem;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
    padding-left:40px!important;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 通知开关样式 */
.notification-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* padding: 1rem 0; */
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 1rem;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item label {
    margin: 0;
    font-size: 0.9rem;
    color: #374151;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 24px;
    margin: 0;
}

.toggle-label:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-label {
    background-color: #3b82f6;
}

input:checked + .toggle-label:before {
    transform: translateX(20px);
}

/* 按钮样式 */
.form-actions {
    margin-top: 1.5rem;
}

.btn-save {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-save:hover {
    background: #2563eb;
}

.btn-reset {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reset:hover {
    background: #dc2626;
}

/* 警告消息样式 */
.warning-message {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.warning-message p {
      margin: 0;
      color: #92400e;
      font-size: 0.9rem;
      line-height: 1.5;
  }

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Invite Page Styles */
.invite-content {
    padding: 0;
}

/* 顶部余额卡片 */
.invite-overview {
    margin-bottom: 2rem;
}

.overview-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.overview-card .card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.overview-card .card-icon svg {
    color: white;
}

.card-content .card-title {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.card-content .card-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.card-value .currency {
    font-size: 1rem;
    opacity: 0.8;
    margin-left: 0.5rem;
}

.card-actions {
    display: flex;
    gap: 1rem;
}

.btn-action {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action.primary {
    background: white;
    color: #667eea;
}

.btn-action.primary:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}

.btn-action.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-action.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 统计网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.stat-label {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.stat-percent {
    color: #64748b;
    font-size: 0.875rem;
}

/* 邀请管理 */
.invite-management {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.management-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfc;
}

.management-header h3 {
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

/* 邀请链接卡片 */
.invite-link-section {
    padding: 2rem;
    border-bottom: 1px solid #f1f5f9;
}

.link-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.link-header {
    padding: 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.link-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: #1e293b;
}

.link-title svg {
    color: #3b82f6;
}

.btn-generate {
    padding: 0.5rem 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-generate:hover {
    background: #2563eb;
}

.link-content {
    padding: 1.5rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.link-input-wrapper {
    flex: 1;
}

.link-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    font-family: monospace;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.btn-copy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-copy:hover {
    background: #059669;
}

.qr-section {
    text-align: center;
}

.qr-code {
    width: 120px;
    height: 120px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafbfc;
    margin-bottom: 0.5rem;
}

.qr-placeholder {
    width: 80px;
    height: 80px;
    position: relative;
}

.qr-grid {
    width: 100%;
    height: 100%;
    position: relative;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 1px;
}

.qr-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #64748b;
    border-radius: 2px;
}

.qr-corner.tl {
    top: 0;
    left: 0;
}

.qr-corner.tr {
    top: 0;
    right: 0;
}

.qr-corner.bl {
    bottom: 0;
    left: 0;
}

.qr-dots {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}

.qr-dots span {
    width: 3px;
    height: 3px;
    background: #64748b;
    border-radius: 1px;
}

.qr-label {
    color: #64748b;
    font-size: 0.75rem;
}

/* 邀请记录 */
.invite-records {
    padding: 2rem;
}

.records-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.records-header h4 {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 0.875rem;
}

.records-table-wrapper {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state {
    text-align: center;
    color: #64748b;
}

.empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    opacity: 0.5;
}

.empty-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.empty-description {
    font-size: 0.875rem;
    color: #6b7280;
}

.status.active {
    background: #dcfce7;
    color: #16a34a;
}

.status.pending {
    background: #fef3c7;
    color: #d97706;
}

/* Finance Page Styles */
.finance-page {
    padding: 2rem;
}

.balance-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 2rem;
}

.balance-amount {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
}

.balance-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.finance-history {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.history-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.history-filters select, .history-filters input {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.table-header {
    grid-template-columns: 1fr 1fr 1.5fr 1fr 2fr;
}

.table-row {
    grid-template-columns: 1fr 1fr 1.5fr 1fr 2fr;
}

.amount.positive {
    color: #16a34a;
    font-weight: 600;
}

.amount.negative {
    color: #dc2626;
    font-weight: 600;
}

.type.income {
    color: #16a34a;
}

.type.expense {
    color: #dc2626;
}

.status.success {
    background: #dcfce7;
    color: #16a34a;
}

/* Download Page Styles */
.download-page {
    padding: 2rem;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.platform-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-4px);
}

.platform-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
}

.platform-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.platform-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.setup-guide {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h5 {
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.step-content p {
    color: #6b7280;
    margin: 0;
}

/* Knowledge Page Styles */
.knowledge-page {
    padding: 2rem;
}

.search-section {
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    padding-left:40px;
}

.knowledge-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.category-card h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.article-list {
    list-style: none;
}

.article-list li {
    margin-bottom: 0.75rem;
}

.article-list a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-list a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Ticket Page Styles */
.ticket-page {
    padding: 2rem;
    background: #f8fafc;
    min-height: 100vh;
}

.ticket-content {
    max-width: 1200px;
    margin: 0 auto;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.header-left h2 {
    color: #1e293b;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.header-left p {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

.ticket-filters {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    background: #e2e8f0;
    color: #475569;
}

.filter-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ticket-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.ticket-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #c7d2fe;
}

.ticket-info {
    flex: 1;
}

.ticket-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.ticket-title h4 {
    color: #1e293b;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.ticket-id {
    background: #f1f5f9;
    color: #64748b;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.ticket-preview {
    color: #64748b;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.ticket-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ticket-time {
    color: #94a3b8;
    font-size: 0.875rem;
}

.ticket-category {
    background: #e0e7ff;
    color: #4338ca;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.ticket-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.status-pending {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.status-replied {
    background: #dbeafe;
    color: #2563eb;
}

.status-badge.status-closed {
    background: #f3f4f6;
    color: #6b7280;
}

.status.resolved {
    background: #dcfce7;
    color: #16a34a;
}

/* Subscription Notice Content Styles */
.subscription-notice .notice-content {
    grid-column: 1 / -1;
}

.subscription-notice .notice-content h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.subscription-notice .notice-content ul {
    list-style: none;
    padding: 0;
}

.subscription-notice .notice-content li {
    color: #6b7280;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.subscription-notice .notice-content li::before {
    content: '•';
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Responsive Design for All Pages */
@media (max-width: 768px) {
    .subscription-page {
        padding: 1rem;
    }
    
    .subscription-page .page-header h1 {
        font-size: 2rem;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .plan-card.featured {
        transform: none;
    }
    
    .plan-card.featured:hover {
        transform: translateY(-4px);
    }
    
    .subscription-notice {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .profile-page, .invite-page, .finance-page, .download-page, .knowledge-page, .ticket-page {
        padding: 1rem;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .invite-stats {
        grid-template-columns: 1fr;
    }
    
    .link-input-group {
        flex-direction: column;
    }
    
    .table-header, .table-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: left;
    }
    
    .balance-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .history-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .platform-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-steps {
        gap: 1rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .knowledge-categories {
        grid-template-columns: 1fr;
    }
    
    .ticket-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .ticket-header {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Docs Page Styles */
.docs-content {
    padding: 2rem;
}

.docs-header {
    margin-bottom: 2rem;
    text-align: center;
}

.docs-header h2 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.docs-header p {
    color: #6b7280;
    font-size: 1.1rem;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.doc-category h3 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.doc-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.doc-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.doc-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.doc-icon {
    font-size: 2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.doc-info h4 {
    color: #1f2937;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.doc-info p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Nodes Page Styles */
.nodes-content {
    padding: 2rem;
}

.nodes-header {
    margin-bottom: 2rem;
    text-align: center;
}

.nodes-header h2 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.nodes-header p {
    color: #6b7280;
    font-size: 1.1rem;
}

.nodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.node-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.node-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.node-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.node-flag {
    font-size: 2rem;
    flex-shrink: 0;
}

.node-info {
    flex: 1;
}

.node-info h3 {
    color: #1f2937;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.node-location {
    color: #6b7280;
    font-size: 0.9rem;
}

.node-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.node-status.online {
    background: #dcfce7;
    color: #166534;
}

.node-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.node-stats .stat {
    text-align: center;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
}

.node-stats .label {
    display: block;
    color: #6b7280;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.node-stats .value {
    display: block;
    color: #1f2937;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Orders Page Styles */
.orders-page {
    padding: 2rem;
}

.orders-header {
    margin-bottom: 2rem;
    text-align: center;
}

.orders-header h2 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.orders-header p {
    color: #6b7280;
    font-size: 1.1rem;
}

.orders-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.orders-table thead {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.orders-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.orders-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.orders-table tbody tr:hover {
    background: #f9fafb;
}

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

.orders-table td {
    padding: 1rem;
    vertical-align: middle;
}

.order-number {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    color: #1f2937;
    font-weight: 500;
}

.order-period {
    color: #6b7280;
    font-size: 0.9rem;
}

.order-amount {
    color: #059669;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.status-completed {
    background: #dcfce7;
    color: #166534;
}

.status-badge.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.order-time {
    color: #6b7280;
    font-size: 0.85rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.order-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-link {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-link:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

/* 手机端卡片默认隐藏 */
.orders-mobile-cards {
    display: none;
}

/* Traffic Page Styles */
.traffic-content {
    padding: 2rem;
}

/* 流量明细提示样式 */
.traffic-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.traffic-notice .notice-icon {
    color: #d97706;
    flex-shrink: 0;
}

.traffic-notice .notice-text {
    color: #92400e;
    font-size: 0.9rem;
}

/* 流量记录表格样式 */
.traffic-records {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.table-container {
    overflow-x: auto;
}

.traffic-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.traffic-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.traffic-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.traffic-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.traffic-table tbody tr:hover {
    background-color: #f9fafb;
}

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

.traffic-table td {
    padding: 1rem;
    color: #374151;
}

.traffic-table td:first-child {
    font-weight: 500;
    color: #1f2937;
}

.traffic-table td:nth-child(2),
.traffic-table td:nth-child(3),
.traffic-table td:nth-child(5) {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-weight: 500;
}

.traffic-table td:nth-child(4) {
    color: #059669;
    font-weight: 600;
}

/* 响应式表格 */
@media (max-width: 768px) {
    .traffic-table {
        font-size: 0.8rem;
    }
    
    .traffic-table th,
    .traffic-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .traffic-table th {
        font-size: 0.75rem;
    }
    
    /* 订单表格手机端优化 */
    .orders-table-container {
        overflow: visible;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }
    
    .orders-table {
        display: none;
    }
    
    .orders-mobile-cards {
        display: block;
    }
    
    .order-mobile-card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 1rem;
        padding: 1rem;
        border-left: 4px solid #3b82f6;
    }
    
    .order-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 0.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .order-mobile-number {
        font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
        font-size: 0.75rem;
        color: #1f2937;
        font-weight: 500;
        word-break: break-all;
        flex: 1;
        min-width: 0;
    }
    
    .order-mobile-status {
        flex-shrink: 0;
    }
    
    .order-mobile-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .order-mobile-detail {
        display: flex;
        flex-direction: column;
    }
    
    .order-mobile-label {
        font-size: 0.75rem;
        color: #6b7280;
        margin-bottom: 0.25rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-weight: 500;
    }
    
    .order-mobile-value {
        font-size: 0.9rem;
        color: #1f2937;
        font-weight: 500;
    }
    
    .order-mobile-amount {
        color: #059669 !important;
        font-weight: 600;
    }
    
    .order-mobile-time {
        font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
        font-size: 0.8rem;
        color: #6b7280;
    }
    
    .order-mobile-actions {
        display: flex;
        gap: 0.5rem;
        justify-content: flex-end;
        padding-top: 0.75rem;
        border-top: 1px solid #f3f4f6;
    }
    
    .order-mobile-actions .btn-link {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        background: white;
    }
    
    .order-mobile-actions .btn-link:hover {
        background: #f9fafb;
        border-color: #d1d5db;
    }
}

.traffic-header {
    margin-bottom: 2rem;
    text-align: center;
}

.traffic-header h2 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.traffic-header p {
    color: #6b7280;
    font-size: 1.1rem;
}

.traffic-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-value {
    color: #1f2937;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-change {
    color: #6b7280;
    font-size: 0.8rem;
}

.traffic-chart {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.traffic-chart h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-weight: 600;
}

.chart-placeholder {
    height: 200px;
    background: #f9fafb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.traffic-history {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.traffic-history h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-weight: 600;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.history-item {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 1rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    align-items: center;
}

.history-item .date {
    color: #6b7280;
    font-size: 0.9rem;
}

.history-item .usage {
    color: #1f2937;
    font-weight: 600;
}

.history-item .node {
    color: #6b7280;
    font-size: 0.9rem;
    text-align: right;
}

/* Responsive Design for New Pages */
@media (max-width: 768px) {
    .docs-grid {
        grid-template-columns: 1fr;
    }
    
    .nodes-grid {
        grid-template-columns: 1fr;
    }
    
    .node-stats {
        grid-template-columns: -1fr;
    }
    
    .order-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .traffic-stats {
        grid-template-columns: 1fr;
    }
    
    .history-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.5rem;
    }
    
    .docs-content, .nodes-content, .orders-content, .traffic-content {
        padding: 1rem;
    }
}

/* 文档搜索样式 */
.docs-search {
    margin-top: 1.5rem;
}

.search-box {
    position: relative;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input::placeholder {
    color: #9ca3af;
}

/* 购买订阅页面样式 */
.subscription-header {
    margin-bottom: 2rem;
    text-align: center;
}

.subscription-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.plan-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    color: #6b7280;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.filter-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.original-price {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: line-through;
    margin-top: 0.25rem;
}

.plan-badge.discount {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
}

@media (max-width: 768px) {
    .header-actions{
        display: flex;
        gap:0 5px;
    }
    .plan-filters {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .subscription-header h2 {
        font-size: 1.5rem;
    }
}

/* 新菜单样式 */
.nav-group-header {
    margin-top: 1.5rem;
}

.nav-group-header:first-child {
    margin-top: 0;
}

.nav-group-header .nav-group-title {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #374151;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
}

.nav-group-header .nav-group-title svg {
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
    color: #6b7280;
}

.nav-subitem {
    padding-left: 2.75rem !important;
    font-size: 0.875rem;
}

.nav-subitem svg {
    width: 16px !important;
    height: 16px !important;
    opacity: 0.7;
}

.nav-item.active .nav-subitem {
    background: #eff6ff;
    color: #2563eb;
    border-right: 3px solid #2563eb;
}

.nav-item.active .nav-subitem svg {
    color: #2563eb;
    opacity: 1;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .nav-group-header .nav-group-title {
        color: #d1d5db;
    }
    
    .nav-group-header .nav-group-title svg {
        color: #9ca3af;
    }
    
    .nav-item.active .nav-subitem {
        background: #1e3a8a;
        color: #93c5fd;
        border-right-color: #3b82f6;
    }
    
    .nav-item.active .nav-subitem svg {
        color: #93c5fd;
    }
}

/* Dashboard/* QR Code Modal Styles */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.qr-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.qr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.qr-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.qr-modal-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    color: #64748b;
    transition: all 0.2s ease;
}

.qr-modal-close:hover {
    background: #f1f5f9;
    color: #334155;
}

.qr-modal-body {
    padding: 24px;
    text-align: center;
}

.qr-code-container {
    margin-bottom: 24px;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.qr-pattern {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #3b82f6 25%, transparent 25%), 
                linear-gradient(-45deg, #3b82f6 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #3b82f6 75%), 
                linear-gradient(-45deg, transparent 75%, #3b82f6 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.3;
    margin-bottom: 12px;
}

.qr-text {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.qr-info p {
    margin: 0 0 16px 0;
    color: #64748b;
    font-size: 14px;
}

/* Create Ticket Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

.close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: #64748b;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    background: #f1f5f9;
    color: #334155;
}

.modal-body {
    padding: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background: white;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-loading {
    display: none;
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
    }
}

.subscription-url {
    display: flex;
    gap: 8px;
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.subscription-url input {
    flex: 1;
    border: none;
    background: none;
    font-size: 12px;
    color: #64748b;
    outline: none;
}

.subscription-url button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.subscription-url button:hover {
    background: #2563eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-content {
        padding: 16px;
    }
    
    .stats-overview {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .stats-overview .stat-card {
        padding: 16px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .subscription-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .import-buttons-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .import-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .client-item {
        padding: 16px;
    }
    
    .notification-item {
        padding: 12px 16px;
        gap: 12px;
    }
    
    /* 工单页面手机端优化 */
    .ticket-content {
        padding: 0 1rem;
    }
    
    .ticket-filters {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .filter-tabs {
        justify-content: center;
    }
    
    .filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .ticket-item {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 1rem;
    }
    
    .ticket-info {
        margin-bottom: 0;
    }
    
    .ticket-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .ticket-title h4 {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .ticket-preview {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .ticket-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .ticket-status {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        width: 100%;
    }
    
    .status-badge {
        text-align: center;
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .btn-outline.btn-sm {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stats-overview .stat-card {
        /* flex-direction: column; */
        text-align: left;
        gap: 12px;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 邮箱提示样式 */
.email-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* 验证码输入组样式 */
.verification-group {
    position: relative;
}

.send-code-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.send-code-btn:hover:not(:disabled) {
    background: var(--primary-hover);
}

.send-code-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    opacity: 0.6;
}

.verification-group input {
    padding-right: 100px;
}