/* 简约未来科技风格 - 白色主色 */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.95);
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --accent-primary: #3b82f6;
    --accent-secondary: #6366f1;
    --accent-tertiary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
    --success: #10b981;
    --success-light: #34d399;
    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --danger: #ef4444;
    --danger-light: #f87171;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --glow-primary: 0 4px 20px rgba(59, 130, 246, 0.15);
    --glow-secondary: 0 8px 30px rgba(99, 102, 241, 0.2);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 25%, rgba(59, 130, 246, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(99, 102, 241, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.04) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    animation: slideUp 0.5s ease;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

.auth-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.04) 0%, rgba(99, 102, 241, 0.03) 100%);
    padding: 40px 32px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.auth-header h1 {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
}

.auth-body {
    padding: 32px;
}

.auth-footer {
    background: var(--bg-secondary);
    padding: 18px 32px;
    text-align: center;
    border-top: 1px solid var(--border-light);
}

.auth-footer a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.auth-footer a:hover {
    color: var(--accent-secondary);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 13px;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    transition: all var(--transition-fast);
    outline: none;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: var(--text-muted);
}

.input-group select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.btn {
    width: 100%;
    padding: 12px 24px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: inherit;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    min-height: 44px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
    opacity: 0.95;
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--accent-gradient);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-success:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.25);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.btn-warning:hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
    width: auto;
    border-radius: var(--radius-md);
    font-weight: 600;
    min-height: 36px;
}

.dashboard {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.sidebar {
    width: 260px;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: width var(--transition-normal);
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    margin: 8px;
}

.sidebar.collapsed .nav-item span:not(.nav-icon) {
    display: none;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
}

.sidebar-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar.collapsed .sidebar-header-content h2,
.sidebar.collapsed .sidebar-header-content p,
.sidebar.collapsed .sidebar-toggle {
    display: none;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.sidebar-header-content h2 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.sidebar-header-content p {
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 2px;
}

.sidebar-toggle {
    padding: 8px;
    background: var(--bg-secondary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    font-size: 16px;
}

.sidebar-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
}

.sidebar-nav {
    padding: 12px 0;
}

.nav-section {
    padding: 8px 16px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.sidebar.collapsed .nav-section {
    display: none;
}

.nav-item {
    padding: 11px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 14px;
    font-weight: 500;
    margin: 2px 12px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    margin: 8px;
}

.nav-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent-primary);
}

.nav-item .nav-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.sidebar.collapsed .nav-item span:not(.nav-icon) {
    display: none;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    transition: margin-left var(--transition-normal);
    min-height: 100vh;
}

.sidebar.collapsed + .main-content {
    margin-left: 72px;
}

.top-bar {
    background: var(--bg-primary);
    padding: 16px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-badge {
    background: var(--bg-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    font-weight: 500;
}

.content-wrapper {
    padding: 28px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
}

.stat-card h3 {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-weight: 600;
}

.stat-card .value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.stat-card .trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
}

.stat-card .trend.up {
    color: var(--success);
}

.stat-card .trend.down {
    color: var(--danger);
}

.card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    transition: box-shadow var(--transition-fast);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.card-header-actions {
    display: flex;
    gap: 8px;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

td {
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-primary);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: var(--bg-secondary);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.status-pending::before {
    background: var(--warning);
}

.status-completed {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-secondary);
}

.status-completed::before {
    background: var(--accent-secondary);
}

.status-verified {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-verified::before {
    background: var(--success);
}

.status-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-success::before {
    background: var(--success);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.status-cancelled::before {
    background: var(--danger);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
    scrollbar-width: thin;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.close-btn {
    cursor: pointer;
    font-size: 24px;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    line-height: 1;
    background: none;
    border: none;
    padding: 4px;
}

.close-btn:hover {
    color: var(--danger);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.loading {
    text-align: center;
    padding: 50px;
    color: var(--text-secondary);
    position: relative;
    font-size: 14px;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 12px;
    vertical-align: middle;
}

.avatar-upload {
    text-align: center;
    margin-bottom: 24px;
}

.avatar-preview {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid var(--accent-primary);
    transition: all var(--transition-fast);
}

.avatar-preview:hover {
    border-color: var(--accent-secondary);
    transform: scale(1.05);
}

.qrcode-preview {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 10px auto;
    display: block;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: white;
    padding: 8px;
}

.client-nav {
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.client-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.client-logo .logo-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.client-logo h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.client-nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.client-nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition-fast);
    position: relative;
    padding: 6px 0;
}

.client-nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width var(--transition-fast);
}

.client-nav-links a:hover {
    color: var(--text-primary);
}

.client-nav-links a:hover::after {
    width: 100%;
}

.client-nav-links a:last-child {
    background: var(--accent-gradient);
    color: white;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.client-nav-links a:last-child::after {
    display: none;
}

.client-nav-links a:last-child:hover {
    transform: translateY(-1px);
    box-shadow: var(--glow-primary);
}

.client-hero {
    text-align: center;
    padding: 80px 32px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.client-hero::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
    animation: float 10s ease-in-out infinite;
}

.client-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    position: relative;
}

.client-hero p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.client-hero p.subtitle {
    font-size: 14px;
    margin-top: 12px;
    color: var(--text-muted);
}

.client-section {
    padding: 70px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.client-section:nth-child(even) {
    background: var(--bg-secondary);
}

.client-section h2 {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.players-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.player-card, .service-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.player-card:hover, .service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.player-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 3px solid var(--accent-primary);
    transition: all var(--transition-fast);
}

.player-card:hover .player-avatar {
    border-color: var(--accent-secondary);
    transform: scale(1.1);
}

.player-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.player-bio {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.6;
}

.player-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.player-stat {
    text-align: center;
}

.player-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-primary);
}

.player-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.service-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: inline-block;
    animation: float 4s ease-in-out infinite;
}

.service-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.service-price {
    font-size: 28px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.service-duration {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.service-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 12px;
    line-height: 1.6;
}

.announcement-item {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-primary);
    transition: all var(--transition-fast);
}

.announcement-item:hover {
    border-left-color: var(--accent-secondary);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.announcement-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.announcement-content {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.announcement-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
    letter-spacing: 0.3px;
}

.client-footer {
    background: var(--bg-primary);
    color: var(--text-secondary);
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid var(--border-color);
}

.client-footer p:first-child {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.client-footer p:last-child {
    font-size: 12px;
    color: var(--text-muted);
}

.balance-card {
    background: var(--accent-gradient);
    color: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--glow-secondary);
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
}

.balance-card .label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-card .amount {
    font-size: 44px;
    font-weight: 800;
    position: relative;
    letter-spacing: -1px;
}

.balance-card .total {
    font-size: 13px;
    opacity: 0.85;
    margin-top: 12px;
    font-weight: 500;
}

.rule-card {
    background: rgba(245, 158, 11, 0.06);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--warning);
}

.rule-card p {
    margin: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.rule-card strong {
    color: var(--warning);
}

.mobile-sidebar-toggle {
    display: none;
}

.mobile-menu-overlay {
    display: none;
}

@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }
    
    .sidebar .sidebar-toggle {
        display: none;
    }
    
    .main-content {
        margin-left: 220px;
    }
}

@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    body {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        font-size: 16px;
    }
    
    .dashboard {
        position: relative;
    }
    
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        width: 280px;
        z-index: 1001;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-xl);
    }
    
    .sidebar.mobile-open {
        left: 0;
    }
    
    .sidebar .sidebar-header-content h2,
    .sidebar .sidebar-header-content p,
    .sidebar .nav-section,
    .sidebar .nav-item span:not(.nav-icon) {
        display: block;
    }
    
    .sidebar-toggle {
        display: none;
    }
    
    .mobile-sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: 10px;
        cursor: pointer;
        color: var(--text-secondary);
        font-size: 20px;
        transition: all var(--transition-fast);
        flex-shrink: 0;
    }
    
    .mobile-sidebar-toggle:hover {
        background: var(--accent-primary);
        color: white;
        border-color: var(--accent-primary);
    }
    
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(2px);
        z-index: 1000;
        animation: fadeIn 0.2s ease;
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .top-bar {
        padding: 12px 16px;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .top-bar-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }
    
    .page-title {
        font-size: 17px;
        font-weight: 700;
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .user-info {
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .user-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .content-wrapper {
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
        border-radius: 14px;
    }
    
    .stat-card h3 {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .stat-card .value {
        font-size: 22px;
    }
    
    .card {
        padding: 16px;
        margin-bottom: 14px;
        border-radius: 16px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
    
    .card-header h3 {
        font-size: 15px;
    }
    
    .card-header-actions {
        justify-content: flex-start;
        gap: 8px;
    }
    
    .table-wrapper {
        border-radius: 12px;
        margin: 0 -16px;
        padding: 0 16px;
        width: calc(100% + 32px);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table-wrapper.mobile-table-wrapper {
        margin: 0;
        padding: 0;
        width: 100%;
        overflow: visible;
    }
    
    table {
        min-width: 650px;
        border-radius: 12px;
        overflow: hidden;
    }
    
    table.mobile-leaderboard {
        min-width: 100%;
        table-layout: fixed;
    }
    
    th, td {
        padding: 12px 10px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    table.mobile-leaderboard th,
    table.mobile-leaderboard td {
        padding: 10px 6px;
        text-align: center;
        white-space: normal;
        word-wrap: break-word;
    }
    
    th {
        font-size: 11px;
        letter-spacing: 0.3px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .input-group {
        margin-bottom: 14px;
    }
    
    .input-group label {
        font-size: 12px;
        margin-bottom: 6px;
        font-weight: 500;
    }
    
    .input-group input,
    .input-group select,
    .input-group textarea {
        padding: 12px 14px;
        font-size: 15px;
        border-radius: 10px;
        border-width: 1.5px;
    }
    
    .btn {
        padding: 13px 20px;
        font-size: 14px;
        border-radius: 10px;
        min-height: 48px;
    }
    
    .btn-sm {
        padding: 9px 14px;
        font-size: 13px;
        min-height: 40px;
        border-radius: 8px;
    }
    
    .modal {
        padding: 12px;
    }
    
    .modal-content {
        width: 100%;
        margin: 0;
        max-height: 88vh;
        border-radius: 20px;
    }
    
    .modal-header {
        padding: 16px 18px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 18px;
    }
    
    .modal-footer {
        padding: 14px 18px;
        gap: 10px;
    }
    
    .modal-footer .btn {
        min-height: 44px;
    }
    
    .client-nav {
        padding: 12px 16px;
    }
    
    .client-logo h2 {
        font-size: 18px;
    }
    
    .client-nav-links {
        display: none;
    }
    
    .client-hero {
        padding: 40px 16px;
    }
    
    .client-hero h1 {
        font-size: 26px;
        line-height: 1.3;
    }
    
    .client-hero p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .client-section {
        padding: 40px 16px;
    }
    
    .client-section h2 {
        font-size: 22px;
        margin-bottom: 24px;
    }
    
    .players-grid, .services-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .player-card, .service-card {
        padding: 20px;
        border-radius: 18px;
    }
    
    .player-avatar {
        width: 64px;
        height: 64px;
    }
    
    .player-name {
        font-size: 16px;
    }
    
    .service-icon {
        font-size: 40px;
    }
    
    .service-price {
        font-size: 24px;
    }
    
    .announcement-item {
        padding: 18px;
        border-radius: 14px;
    }
    
    .announcement-title {
        font-size: 15px;
    }
    
    .announcement-content {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .balance-card {
        padding: 24px 20px;
        border-radius: 20px;
    }
    
    .balance-card .label {
        font-size: 13px;
    }
    
    .balance-card .amount {
        font-size: 32px;
        margin-top: 4px;
    }
    
    .balance-card .total {
        font-size: 12px;
        margin-top: 8px;
    }
    
    .avatar-preview {
        width: 72px;
        height: 72px;
    }
    
    .qrcode-preview {
        width: 90px;
        height: 90px;
    }
    
    .rule-card {
        padding: 16px;
        border-radius: 14px;
    }
    
    .rule-card p {
        font-size: 13px;
        line-height: 1.6;
        margin: 6px 0;
    }
    
    select, 
    input[type="text"], 
    input[type="password"], 
    input[type="number"],
    input[type="email"],
    textarea {
        font-size: 16px !important;
        -webkit-appearance: none;
        appearance: none;
    }
    
    button, 
    .btn, 
    .nav-item,
    a {
        cursor: pointer;
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn-sm {
        min-height: 36px;
    }
    
    .nav-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .loading {
        font-size: 14px;
        padding: 40px;
    }
    
    .empty-state {
        padding: 50px 20px;
        font-size: 14px;
    }
    
    .status {
        padding: 4px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .client-hero h1 {
        font-size: 22px;
    }
    
    .balance-card .amount {
        font-size: 28px;
    }
    
    .stat-card .value {
        font-size: 20px;
    }
    
    .page-title {
        font-size: 16px;
    }
}
