* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff6b9d;
    --primary-light: #ff8fb3;
    --primary-dark: #e55a87;
    --secondary: #fff0f5;
    --accent: #ff4081;
    --bg-light: #fdf6f8;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #2d2d2d;
    --text-secondary: #6b6b6b;
    --text-muted: #9e9e9e;
    --border: #f0e0e5;
    --shadow: rgba(255, 107, 157, 0.15);
    --shadow-lg: rgba(255, 107, 157, 0.25);
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --info: #2196f3;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

/* Auth Loading Screen */
.auth-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff5f8 0%, #ffe0eb 50%, #ffd6e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.auth-loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.auth-loading-content {
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

.auth-loading-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.auth-loading-logo .logo-icon {
    font-size: 48px;
    animation: pulse 2s infinite;
}

.auth-loading-logo h1 {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-loading-text {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
}

.auth-loading-spinner {
    display: flex;
    justify-content: center;
}

.auth-loading-spinner .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 107, 157, 0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.page {
    display: none;
}

.page.active {
    display: flex;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: linear-gradient(135deg, #fff5f8 0%, #ffe0eb 40%, #ffd6e5 70%, #ffc8dd 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative floating orbs */
.login-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
    animation: floatOrb 8s ease-in-out infinite;
}

.login-bg-orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(255, 107, 157, 0.3);
    top: -80px;
    right: -60px;
    animation-delay: 0s;
}

.login-bg-orb-2 {
    width: 250px;
    height: 250px;
    background: rgba(255, 64, 129, 0.2);
    bottom: -60px;
    left: -80px;
    animation-delay: -3s;
}

.login-bg-orb-3 {
    width: 180px;
    height: 180px;
    background: rgba(255, 143, 179, 0.25);
    top: 50%;
    left: 60%;
    animation-delay: -5s;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(20px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-15px, 20px) scale(0.95);
    }
}

/* Login Card */
.login-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 44px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow:
        0 24px 80px rgba(255, 107, 157, 0.18),
        0 8px 32px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Security Badge */
.login-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.login-badge span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--secondary), #ffe0eb);
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(255, 107, 157, 0.15);
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 8px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logo-icon {
    font-size: 36px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.logo h1,
.logo h2 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: var(--text-secondary);
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.login-desc {
    color: var(--text-muted);
    margin-top: 8px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0 28px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.login-divider span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
}

/* Input Wrapper with Icon */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    font-size: 16px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
    transition: var(--transition);
}

.input-wrapper input {
    padding-left: 48px !important;
}

.input-wrapper input:focus~.input-icon,
.input-wrapper:focus-within .input-icon {
    opacity: 1;
}

/* Login Button – Premium */
.btn-login {
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    margin-top: 4px;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:active {
    transform: translateY(0) scale(0.98);
}

/* Login Footer */
.login-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(240, 224, 229, 0.6);
}

.login-footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--secondary);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

.login-footer-badge span {
    font-size: 14px;
}

.login-footer-badge p {
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */

/* Mobile: up to 480px */
@media (max-width: 480px) {
    .login-container {
        padding: 16px 12px;
        align-items: flex-start;
        padding-top: 10vh;
    }

    .login-card {
        padding: 32px 20px;
        border-radius: 20px;
        max-width: 100%;
        width: 100%;
    }

    .login-badge span {
        width: 44px;
        height: 44px;
        font-size: 20px;
        border-radius: 12px;
    }

    .logo-icon {
        font-size: 28px;
    }

    .logo h1,
    .logo h2 {
        font-size: 24px;
    }

    .login-subtitle {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .login-desc {
        font-size: 13px;
    }

    .login-divider {
        margin: 20px 0 24px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px;
        /* Prevents iOS zoom on focus */
    }

    .input-wrapper input {
        padding-left: 44px !important;
    }

    .input-icon {
        left: 14px;
        font-size: 15px;
    }

    .btn-login {
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 12px;
    }

    .login-footer {
        margin-top: 20px;
        padding-top: 16px;
    }

    .login-bg-orb-1 {
        width: 200px;
        height: 200px;
    }

    .login-bg-orb-2 {
        width: 150px;
        height: 150px;
    }

    .login-bg-orb-3 {
        display: none;
    }

    .forgot-password-modal {
        max-width: 95%;
    }
}

/* Tablet: 481px to 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .login-container {
        padding: 24px 20px;
    }

    .login-card {
        padding: 40px 32px;
        max-width: 400px;
    }
}

/* Desktop: 769px+ (default styles already apply) */
@media (min-width: 769px) {
    .login-card {
        padding: 44px 40px;
        max-width: 420px;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.1);
}

.error-container {
    background: #ffeef0;
    color: var(--danger);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
    animation: shake 0.4s ease;
}

.error-container.show {
    display: block;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: #ffe4ed;
}

.btn-danger {
    background: linear-gradient(135deg, #ff5252, #f44336);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-icon {
    padding: 8px;
    background: transparent;
    font-size: 16px;
}

.btn-icon:hover {
    background: var(--secondary);
}

.btn-loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    display: none;
    animation: spin 0.8s linear infinite;
}

.btn.loading .btn-loader {
    display: block;
}

.btn.loading span {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}


/* Forgot Password */
.forgot-password-link {
    text-align: center;
    margin-top: 16px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    transition: var(--transition);
    font-family: inherit;
}

.btn-text:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.forgot-password-modal {
    max-width: 420px;
}

.forgot-password-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.forgot-message {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-top: 16px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.forgot-message.success {
    display: block;
    background: #e8f5e9;
    color: var(--success);
    border-left: 4px solid var(--success);
}

.forgot-message.error {
    display: block;
    background: #ffeef0;
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-white);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    transition: var(--transition);
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 24px 16px;
}

.sidebar.collapsed .logo h2 {
    display: none;
}

.sidebar-toggle {
    width: 32px;
    height: 32px;
    background: var(--secondary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: var(--transition);
}

.sidebar-toggle span {
    width: 16px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: var(--primary);
}

.sidebar-toggle:hover span {
    background: white;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover {
    background: var(--secondary);
    color: var(--primary);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 15px var(--shadow);
}

.nav-icon {
    font-size: 20px;
    min-width: 24px;
    text-align: center;
}

.sidebar.collapsed .nav-text {
    display: none;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 14px;
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid var(--border);
}

.btn-logout {
    width: 100%;
    background: var(--secondary);
    color: var(--text-secondary);
    justify-content: flex-start;
    padding: 14px 16px;
}

.btn-logout:hover {
    background: #ffe4ed;
    color: var(--danger);
}

.sidebar.collapsed .btn-logout {
    justify-content: center;
}

.sidebar.collapsed .btn-logout .nav-text {
    display: none;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.sidebar.collapsed+.main-content {
    margin-left: 80px;
}

.header {
    background: var(--bg-white);
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-title h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-email {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.admin-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.content-area {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

.page-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 24px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary), #ffe0eb);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.stat-info h3 {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.setting-info p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Toggle Switch */
.toggle {
    position: relative;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ddd;
    border-radius: 28px;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle input:checked+.toggle-slider {
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.toggle input:checked+.toggle-slider::before {
    transform: translateX(24px);
}

.input-number {
    width: 80px;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.input-number:focus {
    outline: none;
    border-color: var(--primary);
}

/* Users Layout */
.users-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
}

.page-header {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-bar {
    flex: 1;
    min-width: 250px;
    display: flex;
    gap: 8px;
}

.search-bar input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-bar.small {
    min-width: auto;
}

.search-bar.small input {
    padding: 8px 14px;
    font-size: 13px;
}

.filter-group select {
    padding: 12px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    background: var(--bg-white);
    cursor: pointer;
    transition: var(--transition);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.list {
    list-style: none;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.list-item:hover {
    background: var(--secondary);
}

.list-item.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.user-profile {
    text-align: center;
    margin-bottom: 24px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 16px;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.user-stat {
    text-align: center;
    padding: 12px;
    background: var(--secondary);
    border-radius: var(--radius-sm);
}

.user-stat .label {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
}

.user-stat .value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.user-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.premium {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #5a4000;
}

.status-badge.verified {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
}

.status-badge.blocked {
    background: linear-gradient(135deg, #f44336, #c62828);
    color: white;
}

.user-actions h4 {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.action-grid .btn {
    font-size: 12px;
    padding: 10px 12px;
}

.badge {
    background: var(--secondary);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--bg-white);
    padding: 8px;
    border-radius: var(--radius-md);
}

.tab {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.tab:hover {
    background: var(--secondary);
}

.tab.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Reports List */
.reports-list {
    list-style: none;
}

.report-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.report-item:last-child {
    border-bottom: none;
}

/* Chat Moderation */
.chat-moderation-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 24px;
    height: calc(100vh - 200px);
}

/* 3-Panel Chat Layout */
.chat-moderation-layout-3 {
    display: grid;
    grid-template-columns: 280px 300px 1fr;
    gap: 16px;
    height: calc(100vh - 200px);
}

.users-panel,
.conversations-panel,
.messages-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.users-panel .card-body,
.conversations-panel .card-body,
.messages-panel .card-body {
    flex: 1;
    overflow-y: auto;
}

/* Chat info styles */
.chat-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.chat-preview {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.conversation-item.active .chat-name,
.conversation-item.active .chat-preview {
    color: white;
}

/* Small search bar */
.search-bar.small input {
    padding: 8px 12px;
    font-size: 13px;
}

.conversations-panel,
.messages-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.conversations-panel .card-body,
.messages-panel .card-body {
    flex: 1;
    overflow-y: auto;
}

.conversations-list {
    list-style: none;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.conversation-item:hover {
    background: var(--secondary);
}

.conversation-item.active {
    background: var(--primary);
    color: white;
}

.moderation-actions {
    display: flex;
    gap: 8px;
}

.messages-container {
    padding: 16px;
}

.message-item {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    background: var(--secondary);
}

.message-item.sent {
    margin-left: auto;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.message-item.received {
    margin-right: auto;
    background: var(--bg-white);
    border: 1px solid var(--border);
}

.message-sender {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.message-item.sent .message-sender {
    color: rgba(255, 255, 255, 0.9);
}

.message-text {
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    gap: 8px;
}

.message-time {
    font-size: 11px;
    color: var(--text-muted);
}

.message-item.sent .message-time {
    color: rgba(255, 255, 255, 0.7);
}

/* Packages */
.packages-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.package-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--secondary);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.package-item:hover {
    transform: translateX(4px);
}

.package-item.premium {
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
}

.package-item.popular {
    border: 2px solid #ffd700;
}

.package-info {
    flex: 1;
}

.package-info h3 {
    font-size: 14px;
    font-weight: 600;
}

.package-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.package-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.package-actions {
    display: flex;
    gap: 8px;
}

/* Rewards */
.rewards-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--secondary);
    border-radius: var(--radius-sm);
}

.reward-icon {
    font-size: 20px;
}

.reward-name {
    flex: 1;
    font-weight: 500;
}

.reward-chance {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.daily-rewards-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.daily-reward {
    text-align: center;
    padding: 16px 8px;
    background: var(--secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.daily-reward:hover {
    transform: translateY(-2px);
}

.daily-reward.special {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.daily-reward .day {
    display: block;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}

.daily-reward .reward {
    font-size: 14px;
}

/* Admin Profile */
.admin-profile-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, var(--secondary), #ffe0eb);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.admin-avatar-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.admin-details h3 {
    font-size: 18px;
    font-weight: 600;
}

.role-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    background: var(--secondary);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--danger);
    color: white;
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    padding: 16px 24px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease;
    min-width: 280px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast.info {
    border-left: 4px solid var(--info);
}

.toast-icon {
    font-size: 20px;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
}

.toast-close:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1200px) {
    .users-layout {
        grid-template-columns: 1fr;
    }

    .user-details {
        order: -1;
    }

    .chat-moderation-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
}

@media (max-width: 992px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header {
        padding: 16px 20px;
    }

    .content-area {
        padding: 20px;
    }

    .admin-email {
        display: none;
    }

    .daily-rewards-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .action-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .daily-rewards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tabs {
        flex-direction: column;
    }
}

/* User List Items */
.user-avatar-small {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.user-info-brief {
    flex: 1;
    min-width: 0;
}

.user-info-brief .user-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info-brief .user-uid {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-family: monospace;
}

.list-item.active .user-info-brief .user-name,
.list-item.active .user-info-brief .user-uid {
    color: white;
}

.badge-mini {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.badge-mini.premium {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #5a4000;
}

.badge-mini.blocked {
    background: var(--danger);
    color: white;
}

/* Status List */
.status-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--secondary);
    border-radius: var(--radius-sm);
}

.status-label {
    font-weight: 500;
    color: var(--text-primary);
}

.status-indicator {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-indicator.active {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
}

.status-indicator.inactive {
    background: var(--danger);
    color: white;
}

/* Report Items */
.report-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.report-item:last-child {
    border-bottom: none;
}

.report-info {
    flex: 1;
    min-width: 200px;
}

.report-info strong {
    color: var(--text-primary);
}

.report-info small {
    color: var(--text-muted);
}

.report-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Chat Items */
.chat-avatar {
    width: 44px;
    height: 44px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.chat-info {
    flex: 1;
    min-width: 0;
}

.chat-id {
    font-size: 12px;
    font-family: monospace;
    color: var(--text-secondary);
}

.conversation-item.active .chat-id {
    color: white;
}

/* Message Items */
.message-item {
    background: var(--secondary);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 12px;
}

.message-sender {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
    font-family: monospace;
}

.message-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    word-break: break-word;
}

.message-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.message-time {
    font-size: 11px;
    color: var(--text-muted);
}

.message-meta .btn-icon {
    padding: 4px;
    font-size: 12px;
    opacity: 0.6;
    transition: var(--transition);
}

.message-meta .btn-icon:hover {
    opacity: 1;
    background: var(--danger);
    color: white;
    border-radius: 50%;
}

/* Header Actions Inline */
.header-actions-inline {
    display: flex;
    gap: 8px;
}

/* Details Panel */
.details-panel {
    animation: fadeIn 0.3s ease;
}

/* Scrollbar Styling */
.card-body::-webkit-scrollbar,
.messages-container::-webkit-scrollbar {
    width: 6px;
}

.card-body::-webkit-scrollbar-track,
.messages-container::-webkit-scrollbar-track {
    background: var(--secondary);
    border-radius: 3px;
}

.card-body::-webkit-scrollbar-thumb,
.messages-container::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
}

.card-body::-webkit-scrollbar-thumb:hover,
.messages-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Users List Max Height */
.users-list .card-body {
    max-height: 600px;
    overflow-y: auto;
}

/* Conversations List Max Height */
.conversations-panel .card-body {
    max-height: 500px;
    overflow-y: auto;
}

/* Messages Container */
.messages-container {
    max-height: 500px;
    overflow-y: auto;
    padding: 8px;
}

/* Responsive 3-Panel Chat Layout */
@media (max-width: 1400px) {
    .chat-moderation-layout-3 {
        grid-template-columns: 250px 280px 1fr;
    }
}

@media (max-width: 1200px) {
    .chat-moderation-layout-3 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto 1fr;
        height: auto;
    }

    .users-panel {
        grid-column: 1 / 2;
        max-height: 400px;
    }

    .conversations-panel {
        grid-column: 2 / 3;
        max-height: 400px;
    }

    .messages-panel {
        grid-column: 1 / 3;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .chat-moderation-layout-3 {
        grid-template-columns: 1fr;
    }

    .users-panel,
    .conversations-panel,
    .messages-panel {
        grid-column: 1;
        max-height: 350px;
    }
}

/* Clickable Stat Cards */
.stat-card.clickable {
    cursor: pointer;
    transition: var(--transition);
}

.stat-card.clickable:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px var(--shadow-lg);
}

.stat-card.clickable:active {
    transform: translateY(-2px) scale(1.01);
}

/* Report Details Modal */
.report-details {
    padding: 8px 0;
}

.detail-section {
    background: var(--secondary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.detail-section p {
    margin: 8px 0;
    font-size: 14px;
    color: var(--text-primary);
}

.detail-section code {
    background: var(--bg-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Report Time */
.report-time {
    color: var(--text-muted);
    font-style: italic;
}

/* Premium Users Page */
.page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.header-info {
    display: flex;
    flex-direction: column;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 8px 0;
}

.premium-user-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

.premium-user-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-md);
}

.user-card-header {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-avatar-large {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.badge-premium {
    background: rgba(0, 0, 0, 0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.user-card-body {
    padding: 16px;
}

.user-card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.user-card-email {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.user-card-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.user-card-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-card-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--secondary);
}

.user-card-actions .btn {
    flex: 1;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Dashboard Stats Loading Animation */
.stat-value.loading {
    animation: pulse-loading 1.5s ease-in-out infinite;
    color: var(--text-muted);
}

@keyframes pulse-loading {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* ==================== FEEDBACK TABLE STYLES ==================== */

.table-container {
    overflow-x: auto;
    margin-top: 12px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead {
    background: var(--secondary);
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: var(--secondary);
}

.data-table .message-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.count-badge {
    background: var(--secondary);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Unblock Button */
.btn-unblock {
    background: linear-gradient(135deg, #43a047, #2e7d32);
    color: white;
    box-shadow: 0 4px 15px rgba(67, 160, 71, 0.3);
    transition: var(--transition);
}

.btn-unblock:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 160, 71, 0.4);
    background: linear-gradient(135deg, #4caf50, #388e3c);
}

.btn-unblock:active {
    transform: translateY(0);
}

/* Blocked Info Section */
.blocked-info-section {
    margin-top: 12px;
    animation: fadeIn 0.3s ease;
}

.blocked-info-card {
    background: linear-gradient(135deg, #fff5f5, #ffe8e8);
    border: 1px solid #ffcdd2;
    border-left: 4px solid var(--danger);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.blocked-info-header {
    background: rgba(244, 67, 54, 0.08);
    padding: 10px 16px;
    font-weight: 700;
    font-size: 13px;
    color: var(--danger);
    letter-spacing: 0.3px;
}

.blocked-info-body {
    padding: 12px 16px;
}

.blocked-info-body p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    line-height: 1.5;
}

.blocked-info-body p:last-child {
    margin-bottom: 0;
}

.blocked-info-body strong {
    color: var(--text-primary);
}

/* Block / Unblock Buttons */
#btn-block-user {
    background: linear-gradient(135deg, #ff5252, #f44336);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.25);
    transition: var(--transition);
}

#btn-block-user:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.35);
}

.btn-unblock,
#btn-unblock-user {
    background: linear-gradient(135deg, #43a047, #388e3c);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.25);
    transition: var(--transition);
}

.btn-unblock:hover,
#btn-unblock-user:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.35);
}

/* Inline Block/Unblock buttons in the user list */
.list-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.list-item .user-info-brief {
    flex: 1;
    min-width: 0;
}

.btn-list-block {
    background: linear-gradient(135deg, #ff5252, #f44336) !important;
    color: white !important;
    font-size: 11px !important;
    padding: 5px 10px !important;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(244, 67, 54, 0.2);
    transition: var(--transition);
}

.btn-list-block:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(244, 67, 54, 0.3);
}

.btn-list-unblock {
    background: linear-gradient(135deg, #43a047, #388e3c) !important;
    color: white !important;
    font-size: 11px !important;
    padding: 5px 10px !important;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.2);
    transition: var(--transition);
}

.btn-list-unblock:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

/* ==================== MATCHES PAGE ==================== */

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    padding: 4px 0;
}

.match-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 0 0 1px var(--border);
    transition: var(--transition);
    animation: matchFadeIn 0.4s ease-out both;
}

.match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.15), 0 0 0 1px var(--primary-light);
}

@keyframes matchFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.match-card-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
}

.match-card-body {
    padding: 20px;
}

.match-users {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.match-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.match-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), #ffe0eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.12);
}

.match-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.match-heart {
    font-size: 24px;
    flex-shrink: 0;
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.2);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.15);
    }

    60% {
        transform: scale(1);
    }
}

.match-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    gap: 12px;
}

.match-date,
.match-id {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-id {
    cursor: default;
    opacity: 0.7;
}

/* Matches page responsive */
@media (max-width: 480px) {
    .matches-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .match-card-body {
        padding: 16px;
    }

    .match-avatar {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .match-user-name {
        font-size: 13px;
        max-width: 90px;
    }

    .match-heart {
        font-size: 20px;
    }

    .match-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .matches-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* ==================== FEATURE TOGGLES PAGE ==================== */

.ft-page-wrapper {
    position: relative;
    min-height: 400px;
}

.ft-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.ft-page-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.ft-page-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.ft-page-subtitle code {
    background: var(--secondary);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.ft-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ft-last-updated {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Loading Overlay */
.ft-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(253, 246, 248, 0.92);
    backdrop-filter: blur(6px);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    transition: opacity 0.3s ease;
}

.ft-loading-overlay.hidden {
    display: none;
}

.ft-loading-spinner {
    text-align: center;
}

.ft-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #ffe0eb;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 14px;
}

.ft-loading-spinner p {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Error Banner */
.ft-error-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #fff0f0, #ffe8ec);
    border: 1px solid #ffcdd2;
    border-left: 4px solid var(--danger);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

.ft-error-banner.hidden {
    display: none;
}

.ft-error-icon {
    font-size: 18px;
}

.ft-error-text {
    font-size: 13px;
    color: var(--danger);
    font-weight: 500;
    flex: 1;
}

/* Feature Toggle Cards Grid */
.ft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

/* Individual Feature Card */
.ft-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.ft-card:hover {
    box-shadow: 0 12px 40px rgba(255, 107, 157, 0.12);
    transform: translateY(-3px);
}

.ft-card-disabled {
    opacity: 0.65;
}

.ft-card-disabled:hover {
    opacity: 0.85;
}

/* Accent bar at top of card */
.ft-card-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), #ff8fb3);
    background-size: 200% 100%;
    animation: ftAccentShimmer 3s ease-in-out infinite;
}

.ft-card-disabled .ft-card-accent {
    background: #ddd;
    animation: none;
}

@keyframes ftAccentShimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Card Body */
.ft-card-body {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
}

.ft-card-icon {
    font-size: 36px;
    min-width: 48px;
    text-align: center;
    line-height: 1;
}

.ft-card-info {
    flex: 1;
    min-width: 0;
}

.ft-card-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.ft-card-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 8px;
}

/* Status Badges */
.ft-status-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ft-status-badge.ft-enabled {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
}

.ft-status-badge.ft-disabled {
    background: linear-gradient(135deg, #ffeef0, #ffcdd2);
    color: #c62828;
}

/* Card Toggle Area */
.ft-card-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 12px;
}

.ft-toggle {
    transform: scale(1.15);
    transform-origin: center;
}

/* Firebase Info Bar */
.ft-info-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #f8f4ff, #f0f0ff);
    border: 1px solid #e8e0f0;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.ft-info-bar code {
    background: rgba(255, 107, 157, 0.1);
    color: var(--primary-dark);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.ft-info-icon {
    font-size: 16px;
}

/* Real-time Sync Dot */
.ft-realtime-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #bbb;
    margin-left: auto;
    transition: background 0.3s ease;
}

.ft-realtime-dot.ft-active {
    background: #4caf50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
    animation: ftPulse 2s ease-in-out infinite;
}

@keyframes ftPulse {

    0%,
    100% {
        box-shadow: 0 0 4px rgba(76, 175, 80, 0.3);
    }

    50% {
        box-shadow: 0 0 12px rgba(76, 175, 80, 0.6);
    }
}

.ft-realtime-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .ft-page-header {
        flex-direction: column;
    }

    .ft-grid {
        grid-template-columns: 1fr;
    }

    .ft-card-body {
        flex-wrap: wrap;
        gap: 14px;
    }

    .ft-card-toggle {
        padding-left: 0;
        width: 100%;
        justify-content: flex-end;
    }

    .ft-info-bar {
        flex-wrap: wrap;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .ft-card-body {
        padding: 16px;
    }

    .ft-card-icon {
        font-size: 28px;
        min-width: 36px;
    }

    .ft-header-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==================== BULK ACTIONS ==================== */

/* Bulk Action Bar */
.bulk-action-bar {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.12), rgba(255, 64, 129, 0.08));
    border: 1px solid rgba(255, 107, 157, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    animation: bulkBarSlideIn 0.3s ease;
    backdrop-filter: blur(8px);
    flex-wrap: wrap;
}

.bulk-action-bar.visible {
    display: flex;
}

@keyframes bulkBarSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bulk-select-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bulk-select-count .count-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    padding: 0 6px;
}

.bulk-actions-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-bulk-block {
    background: linear-gradient(135deg, #ff7043, #f4511e) !important;
    color: white !important;
    font-weight: 600;
    font-size: 12px;
    padding: 7px 16px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(244, 81, 30, 0.25);
    transition: var(--transition);
}

.btn-bulk-block:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(244, 81, 30, 0.35);
}

.btn-bulk-delete {
    background: linear-gradient(135deg, #ef5350, #d32f2f) !important;
    color: white !important;
    font-weight: 600;
    font-size: 12px;
    padding: 7px 16px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(211, 47, 47, 0.25);
    transition: var(--transition);
}

.btn-bulk-delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(211, 47, 47, 0.35);
}

.btn-bulk-deselect {
    background: transparent !important;
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 12px;
    padding: 7px 14px;
    border: 1px solid var(--border) !important;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-bulk-deselect:hover {
    background: var(--secondary) !important;
    color: var(--text-primary) !important;
}

/* Select All Row */
.select-all-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.select-all-row:hover {
    background: #ffe8ef;
    border-color: rgba(255, 107, 157, 0.3);
}

.select-all-row label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    flex: 1;
}

/* Custom Checkbox */
.bulk-checkbox {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.bulk-checkbox input[type="checkbox"] {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 2;
    margin: 0;
}

.bulk-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--bg-white);
    border: 2px solid #d0d0d0;
    border-radius: 5px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bulk-checkbox input[type="checkbox"]:hover~.checkmark {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.bulk-checkbox input[type="checkbox"]:checked~.checkmark {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3);
}

.bulk-checkbox .checkmark::after {
    content: '';
    display: none;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -1px;
}

.bulk-checkbox input[type="checkbox"]:checked~.checkmark::after {
    display: block;
    animation: checkPop 0.2s ease;
}

@keyframes checkPop {
    0% {
        transform: rotate(45deg) scale(0);
    }

    60% {
        transform: rotate(45deg) scale(1.2);
    }

    100% {
        transform: rotate(45deg) scale(1);
    }
}

/* Selected row highlight */
.list-item.selected,
.report-item.selected {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.08), rgba(255, 64, 129, 0.04)) !important;
    border-left: 3px solid var(--primary);
    padding-left: 11px;
}

.list-item.selected:hover,
.report-item.selected:hover {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.14), rgba(255, 64, 129, 0.08)) !important;
}

/* Responsive for bulk actions */
@media (max-width: 768px) {
    .bulk-action-bar {
        padding: 10px 14px;
        gap: 8px;
    }

    .bulk-select-count {
        font-size: 12px;
        width: 100%;
    }

    .bulk-actions-group {
        width: 100%;
    }

    .btn-bulk-block,
    .btn-bulk-delete,
    .btn-bulk-deselect {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .select-all-row {
        padding: 8px 10px;
    }

    .bulk-actions-group {
        flex-direction: column;
    }
}

/* ==================== PROFILE PHOTO STYLES ==================== */

/* Small avatar in user list */
.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    overflow: hidden;
}

.user-avatar-small.user-avatar-img,
img.user-avatar-small.user-avatar-img {
    object-fit: cover;
    border: 2px solid var(--border);
}

/* Large avatar in user detail panel */
.user-avatar,
.user-avatar-large {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 12px;
    flex-shrink: 0;
    overflow: hidden;
    border: 3px solid rgba(255, 107, 157, 0.2);
    box-shadow: 0 4px 16px var(--shadow);
}

/* Profile photo image in detail panel */
.detail-avatar-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 107, 157, 0.25);
    box-shadow: 0 4px 16px var(--shadow);
    display: block;
    margin: 0 auto 12px;
}

/* Container centering */
#detail-avatar-container {
    display: flex;
    justify-content: center;
}