/* Authentication Pages Styles - Perfect Design Consistency */

/* Auth Page Container */
.auth-page {
    padding: 120px 0 80px;
    background: var(--background-light);
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

/* Auth Card - Matches existing card styling */
.auth-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.6s ease;
}

[data-theme="dark"] .auth-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-icon-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(46, 134, 171, 0.3);
}

.auth-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.auth-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Auth Mode Toggle */
.auth-mode-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    padding: 6px;
    background: var(--background-light);
    border-radius: 12px;
}

.mode-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Source Sans 3', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mode-btn:hover {
    color: var(--text-primary);
}

.mode-btn.active {
    background: var(--card-bg);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mode-btn i {
    font-size: 1rem;
}

/* Auth Options Container */
.auth-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Social Auth Buttons - Uniform Styling */
.auth-btn {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Source Sans 3', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

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

/* Social Button Specific Colors */
.auth-btn.google {
    border-color: #4285F4;
}

.auth-btn.google:hover {
    background: rgba(66, 133, 244, 0.05);
    border-color: #4285F4;
}

.auth-btn.discord {
    border-color: #5865F2;
}

.auth-btn.discord:hover {
    background: rgba(88, 101, 242, 0.05);
    border-color: #5865F2;
}

.auth-btn.discord .auth-icon {
    color: #5865F2;
}

.auth-btn.apple {
    border-color: var(--text-primary);
}

.auth-btn.apple:hover {
    background: var(--background-light);
}

.auth-btn.apple .auth-icon {
    color: var(--text-primary);
}

.auth-btn.email {
    border-color: var(--primary-color);
}

.auth-btn.email:hover {
    background: rgba(46, 134, 171, 0.05);
}

.auth-btn.email .auth-icon {
    color: var(--primary-color);
}

/* Primary Button - Matches site buttons */
.auth-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(46, 134, 171, 0.4);
}

.auth-btn.primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    box-shadow: 0 6px 20px rgba(46, 134, 171, 0.5);
}

.auth-btn .auth-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.auth-btn svg.auth-icon {
    flex-shrink: 0;
}

/* Divider */
.auth-divider {
    margin: 24px 0;
    text-align: center;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border-color);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-divider span {
    background: var(--card-bg);
    padding: 0 16px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.auth-divider-text {
    margin: 28px 0 24px;
    text-align: center;
}

.auth-divider-text span {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Email Auth Section */
.email-auth-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.email-auth-section.active {
    display: block;
}

/* Form Styles */
.email-auth {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--background-white);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Source Sans 3', sans-serif;
    transition: all 0.3s ease;
    height: 50px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 134, 171, 0.1);
}

.form-group input::placeholder {
    color: var(--text-light);
}

.form-group .field-icon {
    position: absolute;
    left: 16px;
    bottom: 15px;
    color: var(--text-light);
    pointer-events: none;
    line-height: 1;
}

/* Email Error Message */
.email-error {
    margin-top: 8px;
    padding: 10px 12px;
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid #ef4444;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideDown 0.3s ease;
}

.email-error i {
    color: #ef4444;
    font-size: 0.9rem;
}

.email-error .error-text {
    color: #ef4444;
    font-size: 0.85rem;
    line-height: 1.4;
}

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

/* Dark mode error styling */
[data-theme="dark"] .email-error {
    background: rgba(239, 68, 68, 0.15);
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
    display: none;
}

.password-strength.visible {
    display: block;
}

.strength-bar {
    height: 4px;
    background: var(--background-light);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.strength-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.strength-bar.weak::after {
    width: 33%;
    background: #ef4444;
}

.strength-bar.medium::after {
    width: 66%;
    background: #f59e0b;
}

.strength-bar.strong::after {
    width: 100%;
    background: #10b981;
}

.strength-text {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Checkbox Styling */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.form-checkbox label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.form-checkbox label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.form-checkbox label a:hover {
    text-decoration: underline;
}

/* Forgot Password Link */
.forgot-password-link {
    text-align: right;
    margin-top: -8px;
    margin-bottom: 12px;
}

.forgot-password-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.forgot-password-link a:hover {
    text-decoration: underline;
}

/* Back Button */
.back-btn {
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.back-btn:hover {
    color: var(--primary-color);
}

/* Auth Footer */
.auth-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.toggle-mode {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.toggle-mode a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.toggle-mode a:hover {
    text-decoration: underline;
}

.auth-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.875rem;
}

.auth-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

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

.auth-links .divider {
    color: var(--text-light);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.trust-badge i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Dashboard Styles */
.dashboard {
    padding: 120px 0 80px;
    background: var(--background-light);
    min-height: calc(100vh - 80px);
}

.dashboard-header {
    text-align: center;
    margin-bottom: 60px;
}

.dashboard-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
}

.user-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.user-stats .stat {
    text-align: center;
}

.user-stats .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Outfit', sans-serif;
    line-height: 1;
    margin-bottom: 8px;
}

.user-stats .label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Dashboard Card - Matches existing card styling */
.dashboard-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .dashboard-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dashboard-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-card h3 i {
    color: var(--primary-color);
}

/* Guide List */
.guide-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guide-item {
    padding: 16px;
    background: var(--background-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

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

.guide-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.guide-progress {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.guide-progress.completed {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.guide-progress.in-progress {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.guide-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Source Sans 3', sans-serif;
}

.btn-small.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-small.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 134, 171, 0.3);
}

.btn-small.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-small.secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Status Badges */
.discord-status,
.subscription-status {
    text-align: center;
}

.status {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 16px;
}

.status.connected {
    background: rgba(88, 101, 242, 0.1);
    color: #5865F2;
}

.status.active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.discord-status p,
.subscription-status p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Source Sans 3', sans-serif;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 134, 171, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .auth-page {
        padding: 100px 0 60px;
    }

    .auth-card {
        padding: 32px 24px;
        margin: 0 16px;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    .auth-btn {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .trust-badges {
        flex-direction: column;
        gap: 16px;
    }

    .dashboard-header h1 {
        font-size: 2rem;
    }

    .user-stats {
        gap: 32px;
    }

    .user-stats .number {
        font-size: 2rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dashboard-card {
        padding: 24px;
    }

    .guide-actions {
        flex-direction: column;
    }

    .btn-small {
        width: 100%;
    }

    /* Mobile: Stack user stats vertically */
    .user-stats {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    /* Mobile: Getting started card adjustments */
    #getting-started-card h3 {
        font-size: 1.3rem;
    }

    #getting-started-card > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Mobile: Activity list padding */
    .activity-list {
        gap: 12px;
    }

    .activity-item {
        padding: 12px;
    }

    /* Mobile: Quick actions single column */
    .quick-actions {
        grid-template-columns: 1fr;
    }
}

/* User Menu Dropdown */
.user-menu {
    position: relative;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(46, 134, 171, 0.3);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.user-dropdown a:first-child {
    border-radius: 12px 12px 0 0;
}

.user-dropdown a:last-child {
    border-radius: 0 0 12px 12px;
}

.user-dropdown a:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

.user-dropdown a i {
    width: 20px;
    text-align: center;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--background-light);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--background-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.activity-content {
    flex: 1;
}

.activity-text {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.activity-text strong {
    font-weight: 600;
    color: var(--primary-color);
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 4px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quick-action-btn {
    padding: 20px;
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-family: 'Source Sans 3', sans-serif;
}

.quick-action-btn:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.quick-action-btn i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.quick-action-btn span {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 480px) {
    .auth-header h1 {
        font-size: 1.3rem;
    }

    .auth-icon-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .form-group input {
        padding: 12px 14px 12px 40px;
        font-size: 0.95rem;
    }

    .dashboard-header h1 {
        font-size: 1.75rem;
    }

    .user-stats .number {
        font-size: 1.75rem;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    /* Extra small screens: Reduce padding and spacing */
    .dashboard {
        padding: 100px 0 60px;
    }

    .dashboard-header {
        margin-bottom: 40px;
    }

    .dashboard-card {
        padding: 20px;
    }

    #getting-started-card {
        padding: 16px !important;
    }

    #getting-started-card h3 {
        font-size: 1.1rem;
    }

    #getting-started-card p {
        font-size: 0.9rem;
    }

    .empty-state h4 {
        font-size: 1rem;
    }

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

/* Success/Error Message Styling */
.success-message {
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid #10b981;
    border-radius: 6px;
    color: #10b981;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message {
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid #ef4444;
    border-radius: 6px;
    color: #ef4444;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

[data-theme="dark"] .success-message {
    background: rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] .error-message {
    background: rgba(239, 68, 68, 0.15);
}

/* Admin User Management Modal & Forgot Password Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.modal-body {
    padding: 32px;
}

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

.modal-body .form-group:last-of-type {
    margin-bottom: 0;
}

/* Filter Buttons */
.filter-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Users Table */
.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.users-table thead th {
    text-align: left;
    padding: 12px 16px;
    background: var(--background-light);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color);
}

.users-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

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

.users-table tbody td {
    padding: 16px;
    color: var(--text-primary);
}

.user-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.user-badge.premium {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.user-badge.free {
    background: var(--background-light);
    color: var(--text-secondary);
}

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

.user-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.action-btn.danger:hover {
    background: #ef4444;
    border-color: #ef4444;
}

/* Clickable Admin Stats */
.admin-stat-box {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-stat-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-content {
        max-width: 100%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .users-table {
        font-size: 0.9rem;
    }

    .users-table thead th,
    .users-table tbody td {
        padding: 12px 8px;
    }

    .user-filters {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }
}
