/* ================================
   ADMIN DASHBOARD STYLES
   ================================ */

/* Admin Header */
.admin-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    border-bottom: 3px solid #4db8a8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 1rem 2rem;
}

.admin-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
}

.admin-logo h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #4db8a8;
    margin: 0;
    letter-spacing: 0.1em;
}

.admin-badge {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: #e74c3c;
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    margin-left: 1rem;
    letter-spacing: 0.05em;
}

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

.admin-user-info .user-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    border: 2px solid #4db8a8;
}

.admin-user-info span {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.btn-logout {
    padding: 0.5rem 1.2rem;
    background: transparent;
    border: 2px solid #e74c3c;
    color: #e74c3c;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.btn-logout:hover {
    background: #e74c3c;
    color: #fff;
    transform: translateY(-2px);
}

/* Admin Container */
.admin-container {
    display: flex;
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: rgba(44, 62, 80, 0.95);
    border-right: 2px solid #4db8a8;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem;
    flex-grow: 1;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #ecf0f1;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
}

.admin-nav-link:hover {
    background: rgba(77, 184, 168, 0.1);
    border-color: rgba(77, 184, 168, 0.3);
    transform: translateX(5px);
}

.admin-nav-link.active {
    background: rgba(77, 184, 168, 0.2);
    border-color: #4db8a8;
    color: #4db8a8;
}

.nav-icon {
    font-size: 1.5rem;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 2px solid rgba(77, 184, 168, 0.3);
    margin-top: 2rem;
}

.btn-secondary-small {
    display: block;
    padding: 0.8rem 1rem;
    background: transparent;
    border: 2px solid #4db8a8;
    color: #4db8a8;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-secondary-small:hover {
    background: rgba(77, 184, 168, 0.1);
    transform: translateY(-2px);
}

/* Main Content */
.admin-main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

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

.section-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #4db8a8;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.section-subtitle {
    color: #bdc3c7;
    font-size: 1.1rem;
    font-weight: 300;
}

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

.stat-card {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(26, 37, 47, 0.8) 100%);
    border: 2px solid rgba(77, 184, 168, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #4db8a8;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(77, 184, 168, 0.2);
}

.stat-icon {
    font-size: 3rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(77, 184, 168, 0.1);
    border-radius: 12px;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #4db8a8;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #bdc3c7;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-sublabel {
    color: #95a5a6;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.3rem;
}

/* Content Cards */
.content-card {
    background: rgba(44, 62, 80, 0.6);
    border: 2px solid rgba(77, 184, 168, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.content-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #4db8a8;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(77, 184, 168, 0.3);
}

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

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

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(26, 37, 47, 0.5);
    border-radius: 8px;
    border-left: 4px solid #4db8a8;
}

.activity-icon {
    font-size: 1.5rem;
}

.activity-text {
    flex: 1;
    color: #ecf0f1;
    font-size: 0.95rem;
}

.activity-time {
    color: #95a5a6;
    font-size: 0.85rem;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Export Dropdown */
.export-dropdown {
    position: relative;
}

.export-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(26, 37, 47, 0.98);
    border: 2px solid #4db8a8;
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: dropdownSlide 0.2s ease;
}

.export-menu.show {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.export-menu button {
    padding: 0.8rem 1rem;
    background: rgba(77, 184, 168, 0.1);
    border: 1px solid rgba(77, 184, 168, 0.3);
    border-radius: 8px;
    color: #ecf0f1;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    white-space: nowrap;
}

.export-menu button:hover {
    background: rgba(77, 184, 168, 0.2);
    border-color: #4db8a8;
    transform: translateX(5px);
}

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

.btn-action {
    padding: 1rem 1.5rem;
    background: rgba(77, 184, 168, 0.1);
    border: 2px solid #4db8a8;
    color: #4db8a8;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-action:hover {
    background: rgba(77, 184, 168, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(77, 184, 168, 0.3);
}

.btn-action span {
    font-size: 1.2rem;
}

/* Form Elements */
.search-input,
.filter-select {
    padding: 0.8rem 1rem;
    background: rgba(26, 37, 47, 0.8);
    border: 2px solid rgba(77, 184, 168, 0.3);
    border-radius: 6px;
    color: #ecf0f1;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input {
    min-width: 250px;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #4db8a8;
    box-shadow: 0 0 10px rgba(77, 184, 168, 0.3);
}

/* Data Table */
.data-table {
    overflow-x: auto;
}

.loading-message {
    text-align: center;
    padding: 3rem;
    color: #95a5a6;
    font-size: 1.1rem;
}

.coming-soon {
    text-align: center;
    padding: 3rem;
    color: #95a5a6;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(77, 184, 168, 0.2);
    border-top-color: #4db8a8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-overlay p {
    color: #4db8a8;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1rem;
}

.loading-overlay p {
    color: #4db8a8;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Member Table */
.members-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.members-table thead {
    background: rgba(26, 37, 47, 0.8);
}

.members-table th {
    padding: 1rem;
    text-align: left;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #4db8a8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #4db8a8;
}

.members-table td {
    padding: 1rem;
    color: #ecf0f1;
    border-bottom: 1px solid rgba(77, 184, 168, 0.1);
}

.members-table tbody tr {
    transition: all 0.3s ease;
}

.members-table tbody tr:hover {
    background: rgba(77, 184, 168, 0.05);
}

.member-name-cell {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.member-initial {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.tier-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

.tier-sealion {
    background: rgba(77, 184, 168, 0.2);
    color: #4db8a8;
    border: 1px solid #4db8a8;
}

.tier-dolphin {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid #3498db;
}

.tier-orca {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
    border: 1px solid #9b59b6;
}

.tier-greatwhite {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.tier-whale {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border: 1px solid #f1c40f;
}

.tier-none {
    background: rgba(149, 165, 166, 0.2);
    color: #95a5a6;
    border: 1px solid #95a5a6;
}

.btn-view-member {
    padding: 0.5rem 1rem;
    background: rgba(77, 184, 168, 0.1);
    border: 1px solid #4db8a8;
    color: #4db8a8;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-member:hover {
    background: rgba(77, 184, 168, 0.2);
    transform: translateY(-2px);
}

/* Member Detail Modal */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

/* Video Review Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(26, 37, 47, 0.95) 100%);
    border: 2px solid #4db8a8;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(231, 76, 60, 0.2);
    border: 2px solid #e74c3c;
    color: #e74c3c;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #e74c3c;
    color: #fff;
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    padding: 2rem;
    border-bottom: 2px solid rgba(77, 184, 168, 0.3);
}

.member-initial-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 2rem;
    color: #fff;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto 1rem;
}

.modal-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: #4db8a8;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: #95a5a6;
    font-size: 0.95rem;
}

.modal-body {
    padding: 2rem;
}

.member-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    font-size: 0.85rem;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.detail-value {
    font-size: 1.1rem;
    color: #ecf0f1;
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(77, 184, 168, 0.3);
}

.modal-actions .btn-action {
    flex: 1;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #95a5a6;
}

.empty-state p:first-child {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 3rem 2rem;
    color: #e74c3c;
}

.error-message p:first-child {
    font-size: 1.3rem;
    font-weight: 700;
}

.error-message p:first-child {
    font-size: 1.3rem;
    font-weight: 700;
}

/* ================================
   POINTS MANAGEMENT STYLES
   ================================ */

/* Points Grid Layout */
.points-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Award Form */
.award-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4db8a8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-select,
.form-input {
    padding: 0.8rem;
    background: rgba(26, 37, 47, 0.6);
    border: 1px solid rgba(77, 184, 168, 0.3);
    border-radius: 8px;
    color: #ecf0f1;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: #4db8a8;
    background: rgba(26, 37, 47, 0.9);
}

.form-input[type="number"] {
    -moz-appearance: textfield;
}

.form-input[type="number"]::-webkit-outer-spin-button,
.form-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

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

.btn-quick-action {
    padding: 1rem;
    background: rgba(77, 184, 168, 0.1);
    border: 2px solid #4db8a8;
    border-radius: 12px;
    color: #ecf0f1;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    line-height: 1.4;
}

.btn-quick-action:hover {
    background: rgba(77, 184, 168, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(77, 184, 168, 0.3);
}

.btn-quick-action strong {
    color: #4db8a8;
    font-size: 1.1rem;
}

/* Award Result */
.award-result {
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    animation: slideDown 0.3s ease;
}

.award-result.success {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

.award-result.error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

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

/* Leaderboard */
.leaderboard-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.leaderboard-item {
    display: grid;
    grid-template-columns: 50px 1fr auto auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(26, 37, 47, 0.6);
    border: 1px solid rgba(77, 184, 168, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: rgba(77, 184, 168, 0.05);
    border-color: rgba(77, 184, 168, 0.4);
    transform: translateX(5px);
}

.leaderboard-rank {
    font-size: 2rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    text-align: center;
}

.leaderboard-rank.gold {
    color: #f1c40f;
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}

.leaderboard-rank.silver {
    color: #95a5a6;
    text-shadow: 0 0 10px rgba(149, 165, 166, 0.5);
}

.leaderboard-rank.bronze {
    color: #cd7f32;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

.leaderboard-member-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.leaderboard-member-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #ecf0f1;
}

.leaderboard-member-email {
    font-size: 0.85rem;
    color: #95a5a6;
}

.leaderboard-points {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: #4db8a8;
}

.leaderboard-tier {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Activity Content */
.activity-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.activity-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(26, 37, 47, 0.6);
    border: 1px solid rgba(77, 184, 168, 0.2);
    border-radius: 8px;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(77, 184, 168, 0.2);
    border: 2px solid #4db8a8;
}

.activity-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.activity-member {
    font-weight: 700;
    color: #ecf0f1;
}

.activity-reason {
    font-size: 0.9rem;
    color: #95a5a6;
}

.activity-amount {
    font-size: 1.3rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
}

.activity-amount.positive {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.2);
}

.activity-amount.negative {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.2);
}

.activity-time {
    font-size: 0.85rem;
    color: #7f8c8d;
}

/* Empty State */
.empty-leaderboard {
    text-align: center;
    padding: 3rem;
    color: #95a5a6;
}

.empty-leaderboard p:first-child {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Activity Time */
.activity-time {
    display: block;
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: 0.3rem;
}

/* Overview Activity */
.overview-activity .activity-item {
    padding: 1rem;
    background: rgba(26, 37, 47, 0.6);
    border: 1px solid rgba(77, 184, 168, 0.2);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.overview-activity .activity-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.overview-activity .activity-text {
    flex: 1;
    line-height: 1.6;
}

/* ================================
   VIDEO MANAGEMENT STYLES
   ================================ */

/* Video Filters */
.video-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.8rem 1.5rem;
    background: rgba(26, 37, 47, 0.6);
    border: 2px solid rgba(77, 184, 168, 0.3);
    border-radius: 8px;
    color: #ecf0f1;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    background: rgba(77, 184, 168, 0.1);
    border-color: #4db8a8;
}

.filter-tab.active {
    background: rgba(77, 184, 168, 0.2);
    border-color: #4db8a8;
    box-shadow: 0 0 15px rgba(77, 184, 168, 0.3);
}

/* Video Queue */
.video-queue {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.video-card {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(26, 37, 47, 0.6);
    border: 1px solid rgba(77, 184, 168, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.video-card:hover {
    background: rgba(77, 184, 168, 0.05);
    border-color: rgba(77, 184, 168, 0.4);
    transform: translateX(5px);
}

.video-thumbnail {
    width: 120px;
    height: 90px;
    background: rgba(77, 184, 168, 0.1);
    border: 2px solid #4db8a8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.video-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.video-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ecf0f1;
    margin: 0;
}

.video-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #95a5a6;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-status {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.video-status.pending {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.video-status.approved {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.video-status.rejected {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.video-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-end;
}

.btn-video-action {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-review {
    background: rgba(77, 184, 168, 0.2);
    color: #4db8a8;
    border: 2px solid #4db8a8;
}

.btn-review:hover {
    background: rgba(77, 184, 168, 0.3);
    transform: translateY(-2px);
}

.btn-success {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 2px solid #2ecc71;
}

.btn-success:hover {
    background: rgba(46, 204, 113, 0.3);
    transform: translateY(-2px);
}

.btn-danger {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

.btn-danger:hover {
    background: rgba(231, 76, 60, 0.3);
    transform: translateY(-2px);
}

/* Video Modal */
.modal-large {
    max-width: 900px;
}

.video-player {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-details {
    padding: 1rem;
    background: rgba(26, 37, 47, 0.6);
    border: 1px solid rgba(77, 184, 168, 0.2);
    border-radius: 8px;
}

.video-details h4 {
    margin: 0 0 1rem 0;
    color: #4db8a8;
}

.video-url {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(77, 184, 168, 0.2);
}

.video-url a {
    color: #4db8a8;
    text-decoration: none;
}

.video-url a:hover {
    text-decoration: underline;
}

.rejection-reason {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(231, 76, 60, 0.1);
    border-left: 4px solid #e74c3c;
    border-radius: 4px;
    color: #ecf0f1;
}

.rejection-reason strong {
    color: #e74c3c;
    display: block;
    margin-bottom: 0.5rem;
}

/* Empty State */
.empty-videos {
    text-align: center;
    padding: 4rem 2rem;
    color: #95a5a6;
}

.empty-videos p:first-child {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-videos p:last-child {
    font-size: 1.1rem;
}

/* Coming Soon Preview */
.coming-soon-preview {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
}

.feature-preview {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(26, 37, 47, 0.6);
    border: 1px solid rgba(77, 184, 168, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-preview:hover {
    background: rgba(77, 184, 168, 0.05);
    border-color: rgba(77, 184, 168, 0.4);
    transform: translateX(5px);
}

.preview-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.preview-text {
    flex: 1;
}

.preview-text strong {
    display: block;
    color: #4db8a8;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.preview-text p {
    color: #95a5a6;
    line-height: 1.6;
    margin: 0;
}

/* ================================
   ANALYTICS STYLES
   ================================ */

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    padding: 1rem;
}

.chart-container canvas {
    max-height: 100%;
}

/* Top Performers List */
.top-performers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.performer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(26, 37, 47, 0.6);
    border: 1px solid rgba(77, 184, 168, 0.2);
    border-radius: 8px;
}

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

.performer-rank {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: #4db8a8;
    min-width: 40px;
    text-align: center;
}

.performer-rank.gold { color: #f1c40f; }
.performer-rank.silver { color: #95a5a6; }
.performer-rank.bronze { color: #cd7f32; }

.performer-name {
    font-weight: 700;
    color: #ecf0f1;
}

.performer-points {
    font-size: 1.3rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: #4db8a8;
}

/* Metrics List */
.metrics-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.metric-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(26, 37, 47, 0.6);
    border: 1px solid rgba(77, 184, 168, 0.2);
    border-radius: 8px;
}

.metric-label {
    color: #95a5a6;
    font-weight: 600;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: #4db8a8;
}

.metric-trend {
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.metric-trend.up { color: #2ecc71; }
.metric-trend.down { color: #e74c3c; }

/* Responsive Design */
@media (max-width: 968px) {
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 2px solid #4db8a8;
    }
    
    .admin-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 1rem;
    }
    
    .admin-nav-link {
        flex-direction: column;
        padding: 1rem;
        min-width: 100px;
    }
    
    .nav-text {
        font-size: 0.8rem;
    }
    
    .sidebar-footer {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .card-actions {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .admin-header {
        padding: 1rem;
    }
    
    .admin-logo h1 {
        font-size: 1.2rem;
    }
    
    .admin-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.5rem;
    }
    
    .admin-main {
        padding: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .members-table {
        display: block;
        overflow-x: auto;
    }
    
    .member-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .points-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .leaderboard-item {
        grid-template-columns: 40px 1fr auto;
        gap: 0.5rem;
    }
    
    .leaderboard-tier {
        grid-column: 2 / -1;
    }
    
    .activity-item {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .video-card {
        grid-template-columns: 1fr;
    }
    
    .video-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .video-actions {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .filter-tab {
        flex: 1;
        min-width: 150px;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 250px;
    }
}

/* ============================================
   CHECK-IN SECTION STYLES
   ============================================ */

.checkin-methods {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.checkin-method-btn {
    flex: 1;
    padding: 1.5rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.checkin-method-btn:hover {
    border-color: #00b4d8;
    background: #f0f9ff;
}

.checkin-method-btn.active {
    border-color: #00b4d8;
    background: linear-gradient(135deg, #00b4d8 0%, #0096c7 100%);
    color: white;
}

.method-icon {
    font-size: 2rem;
}

.method-text {
    font-size: 1.1rem;
    font-weight: 600;
}

.checkin-content {
    display: none;
}

.checkin-content.active {
    display: block;
}

/* QR Scanner */
.scanner-container {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-reader {
    width: 100%;
    max-width: 600px;
}

.qr-reader-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 4rem;
    color: white;
}

.placeholder-icon {
    font-size: 4rem;
    opacity: 0.5;
}

.scanner-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.scan-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: #f0f9ff;
    text-align: center;
}

/* Manual Search */
.search-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    opacity: 0.5;
}

.member-search-results {
    max-height: 500px;
    overflow-y: auto;
}

.search-hint, .no-results {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.member-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.member-result:hover {
    border-color: #00b4d8;
    background: #f0f9ff;
}

.member-result-info {
    display: flex;
    flex-direction: column;
}

.member-result-email {
    font-size: 0.9rem;
    color: #666;
}

.member-result-tier {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.practices-badge {
    padding: 0.25rem 0.5rem;
    background: #fff3cd;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Today's Attendees */
.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.attendees-stats {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.stat-item {
    display: flex;
    gap: 0.5rem;
}

.stat-item .stat-label {
    color: #666;
}

.stat-item .stat-value {
    font-weight: 700;
    color: #00b4d8;
}

.attendees-list {
    max-height: 500px;
    overflow-y: auto;
}

.attendee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.attendee-info {
    display: flex;
    flex-direction: column;
}

.attendee-time {
    font-size: 0.9rem;
    color: #666;
}

.attendee-details {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.points-badge {
    padding: 0.25rem 0.5rem;
    background: #d4edda;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #155724;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-daily { background: #e0e0e0; color: #666; }
.badge-punch { background: #fff3cd; color: #856404; }
.badge-cub { background: #cfe2ff; color: #084298; }
.badge-lion { background: #d1e7dd; color: #0f5132; }
.badge-pro { background: #f8d7da; color: #842029; }
.badge-annual { background: #e2d9f3; color: #6f42c1; }

/* Check-In Modal */
.checkin-success {
    padding: 1rem;
}

.member-info {
    text-align: center;
    padding: 1rem;
    background: #f0f9ff;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.member-info h4 {
    margin: 0 0 0.5rem 0;
    color: #00b4d8;
}

.checkin-details {
    padding: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .highlight {
    color: #00b4d8;
    font-weight: 700;
    font-size: 1.2rem;
}

.detail-row .warning {
    color: #dc3545;
    font-weight: 700;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.alert-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.alert-error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}

.text-small {
    font-size: 0.9rem;
}

.text-large {
    font-size: 1.2rem;
}

.renewal-options {
    margin-top: 1.5rem;
}

.option-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.option-icon {
    font-size: 2rem;
}

.option-details strong {
    display: block;
    margin-bottom: 0.25rem;
}

.option-details p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .checkin-methods {
        flex-direction: column;
    }
    
    .attendees-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ================================================
   SESSION EXPIRATION WARNINGS
   ================================================ */

/* Session Warning Banner */
.session-warning {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    min-width: 400px;
    max-width: 600px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.session-warning-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: white;
    border-left: 4px solid #ff9800;
}

.session-warning-warning .session-warning-content {
    background: #fff3cd;
    border-left-color: #ff9800;
}

.session-warning-urgent .session-warning-content {
    background: #f8d7da;
    border-left-color: #dc3545;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
    }
}

.session-warning-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.session-warning-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.session-warning-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.session-warning-close:hover {
    color: #333;
}

/* Session Expired Modal */
.session-expired-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    animation: fadeIn 0.3s;
}

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

.session-expired-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s;
}

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

.session-expired-content h2 {
    margin: 0 0 20px 0;
    color: #dc3545;
    font-size: 24px;
}

.session-expired-content p {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.6;
}

.session-expired-content p:last-of-type {
    margin-bottom: 25px;
}

.session-expired-content .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .session-warning {
        min-width: 90%;
        max-width: 90%;
        top: 60px;
    }
    
    .session-expired-content {
        margin: 20px;
        padding: 30px 20px;
    }
}

/* ========================================
   MEMBER STATUS & DELETION STYLES
   ======================================== */

/* Member Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-suspended {
    background: #f8d7da;
    color: #721c24;
}

.status-unverified {
    background: #fff3cd;
    color: #856404;
}

/* Action Buttons */
.actions-cell {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-suspend,
.btn-restore,
.btn-delete {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-suspend {
    background: #ffc107;
    color: #000;
}

.btn-suspend:hover {
    background: #ffb300;
    transform: translateY(-1px);
}

.btn-restore {
    background: #28a745;
    color: white;
}

.btn-restore:hover {
    background: #218838;
    transform: translateY(-1px);
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Member Row Status Styling */
.member-row-suspended {
    background: #fff5f5 !important;
    opacity: 0.7;
}

.member-row-suspended td {
    color: #666 !important;
}

/* Filter Select */
.filter-select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-select:hover {
    border-color: #36b09e;
}

.filter-select:focus {
    outline: none;
    border-color: #36b09e;
    box-shadow: 0 0 0 3px rgba(54, 176, 158, 0.1);
}

.member-controls {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}
/* =====================================================
   SUPABASE AUTH MODAL STYLES
   Add this to your CSS file (member-dashboard.css or admin.css)
   ===================================================== */

/* Auth Modal Overlay */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-in-out;
}

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

/* Modal Content Box */
.auth-modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    position: relative;
}

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

/* Close Button */
.auth-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.auth-close:hover {
    color: #333;
}

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

.auth-header h2 {
    margin: 0;
    color: #36b09e;
    font-size: 28px;
}

/* Tabs */
#auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.auth-tab {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #36b09e;
    background: white;
    color: #36b09e;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
}

.auth-tab:hover {
    background: rgba(54, 176, 158, 0.1);
}

.auth-tab.active {
    background: #36b09e;
    color: white;
}

/* Form Container */
.auth-form {
    animation: fadeIn 0.3s ease-in-out;
}

.auth-form h3 {
    text-align: center;
    color: #333;
    margin: 0 0 20px 0;
    font-size: 22px;
}

/* Form Inputs */
.auth-form input {
    width: 100%;
    padding: 14px 16px;
    margin: 10px 0;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.auth-form input:focus {
    outline: none;
    border-color: #36b09e;
    box-shadow: 0 0 0 3px rgba(54, 176, 158, 0.1);
}

.auth-form input::placeholder {
    color: #999;
}

/* Auth Button */
.btn-auth {
    width: 100%;
    padding: 14px 20px;
    margin-top: 10px;
    background: #36b09e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-auth:hover {
    background: #2d9485;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(54, 176, 158, 0.3);
}

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

/* Error Message */
.error-message {
    color: #dc3545;
    background: #ffe6e8;
    padding: 12px;
    margin: 15px 0 0 0;
    border-radius: 6px;
    font-size: 14px;
    display: none;
    border-left: 4px solid #dc3545;
}

.error-message:not(:empty) {
    display: block;
}

/* Success Message */
.success-message {
    color: #28a745;
    background: #e6f9ea;
    padding: 12px;
    margin: 15px 0 0 0;
    border-radius: 6px;
    font-size: 14px;
    display: none;
    border-left: 4px solid #28a745;
}

.success-message:not(:empty) {
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .auth-modal-content {
        padding: 30px 20px;
        max-width: 95%;
    }
    
    .auth-header h2 {
        font-size: 24px;
    }
    
    .auth-form h3 {
        font-size: 20px;
    }
    
    .auth-tab {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .auth-form input {
        font-size: 14px;
    }
}


/* ============================================
   ADMIN PWA MOBILE LAYOUT
   Full-screen sections with bottom tab bar
   Desktop layout unchanged above 768px
   ============================================ */

@media (max-width: 768px) {

    /* Lock body scroll */
    html, body {
        height: 100%;
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    /* Hide desktop header — replaced by compact mobile header */
    .admin-header {
        display: none;
    }

    /* Compact mobile top bar */
    .admin-mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 52px;
        background: rgba(26, 26, 46, 0.98);
        border-bottom: 2px solid #4db8a8;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 1rem;
        z-index: 100;
        backdrop-filter: blur(10px);
    }

    .admin-mobile-header h1 {
        font-family: 'Orbitron', sans-serif;
        font-size: 0.85rem;
        font-weight: 900;
        color: white;
        letter-spacing: 0.08em;
        margin: 0;
    }

    .admin-mobile-header .admin-badge {
        font-family: 'Orbitron', sans-serif;
        font-size: 0.5rem;
        background: #4db8a8;
        color: white;
        padding: 0.15rem 0.5rem;
        border-radius: 3px;
        letter-spacing: 0.1em;
        margin-left: 0.5rem;
    }

    .admin-mobile-header-right {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .admin-mobile-header .user-circle {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: rgba(77,184,168,0.3);
        border: 1px solid #4db8a8;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        color: #4db8a8;
        font-weight: 700;
    }

    .admin-mobile-logout {
        background: transparent;
        border: 1px solid rgba(77,184,168,0.4);
        color: #4db8a8;
        font-size: 0.7rem;
        font-family: 'Orbitron', sans-serif;
        padding: 0.3rem 0.6rem;
        border-radius: 4px;
        cursor: pointer;
    }

    /* Full viewport container */
    .admin-container {
        display: block;
        margin-top: 0;
        min-height: 100vh;
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }

    /* Hide desktop sidebar */
    .admin-sidebar {
        display: none;
    }

    /* Main content fills full viewport between header and tab bar */
    .admin-main {
        position: fixed;
        top: 52px;
        left: 0;
        right: 0;
        bottom: 68px;
        overflow: hidden;
        padding: 0;
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }

    /* Each section is a full-screen view */
    .admin-section {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 0;
        transform: translateX(4px);
        opacity: 0;
        transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .admin-section.active {
        display: block;
        transform: translateX(0);
        opacity: 1;
    }

    /* Sticky section headers */
    .admin-section .section-header {
        position: sticky;
        top: 0;
        z-index: 10;
        background: rgba(26, 26, 46, 0.98);
        border-bottom: 1px solid rgba(77,184,168,0.2);
        padding: 0.85rem 1rem 0.65rem;
        margin-bottom: 0;
        backdrop-filter: blur(10px);
    }

    .admin-section .section-header h2 {
        font-size: 1.1rem;
        margin: 0 0 0.1rem;
        color: white;
    }

    .admin-section .section-header .section-subtitle {
        font-size: 0.75rem;
        color: rgba(255,255,255,0.45);
        margin: 0;
    }

    /* Section content padding */
    .admin-section > *:not(.section-header) {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Stats grid compact */
    .stats-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem;
        padding: 0.75rem 1rem;
    }

    .stat-card {
        padding: 0.85rem 0.75rem;
    }

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

    /* Bottom tab bar */
    .admin-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 68px;
        background: rgba(26, 26, 46, 0.98);
        border-top: 1px solid rgba(77,184,168,0.3);
        display: flex;
        align-items: center;
        justify-content: space-around;
        z-index: 1000;
        padding: 0 0.25rem;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    }

    .admin-tab-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 0.4rem 0.5rem;
        border: none;
        background: transparent;
        cursor: pointer;
        border-radius: 10px;
        min-width: 48px;
        transition: all 0.15s ease;
        -webkit-tap-highlight-color: transparent;
        position: relative;
    }

    .admin-tab-btn:active {
        transform: scale(0.92);
    }

    .admin-tab-btn .tab-icon {
        font-size: 1.3rem;
        line-height: 1;
        transition: transform 0.15s ease;
    }

    .admin-tab-btn .tab-label {
        font-size: 0.6rem;
        font-family: 'Rajdhani', sans-serif;
        font-weight: 600;
        color: rgba(255,255,255,0.45);
        letter-spacing: 0.03em;
        transition: color 0.15s ease;
        white-space: nowrap;
    }

    .admin-tab-btn.active .tab-icon {
        transform: translateY(-2px);
    }

    .admin-tab-btn.active .tab-label {
        color: #4db8a8;
        font-weight: 700;
    }

    .admin-tab-btn.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 24px;
        height: 3px;
        background: #4db8a8;
        border-radius: 0 0 3px 3px;
    }

    /* More menu overlay */
    .admin-more-overlay {
        display: none;
        position: fixed;
        bottom: 68px;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.98);
        border-top: 1px solid rgba(77,184,168,0.3);
        border-radius: 20px 20px 0 0;
        padding: 1rem 1.25rem;
        z-index: 999;
        box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
        animation: slideUp 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .admin-more-overlay.open {
        display: block;
    }

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

    .admin-more-overlay h4 {
        font-family: 'Orbitron', sans-serif;
        font-size: 0.65rem;
        color: rgba(255,255,255,0.35);
        letter-spacing: 0.1em;
        text-transform: uppercase;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .admin-more-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .admin-more-item {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        padding: 0.75rem 0.85rem;
        border: none;
        background: rgba(255,255,255,0.05);
        border-radius: 10px;
        cursor: pointer;
        font-family: 'Rajdhani', sans-serif;
        font-size: 0.9rem;
        font-weight: 600;
        color: rgba(255,255,255,0.75);
        -webkit-tap-highlight-color: transparent;
        transition: background 0.15s ease;
        text-decoration: none;
        width: 100%;
    }

    .admin-more-item:active,
    .admin-more-item:hover {
        background: rgba(77,184,168,0.15);
        color: #4db8a8;
    }

    .admin-more-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 998;
    }

    .admin-more-backdrop.open {
        display: block;
    }

    /* Card content padding fix */
    .admin-card {
        margin: 0.75rem 0;
        border-radius: 10px;
    }
}
