.admin-panel .btn {
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    font-family: inherit;
    text-decoration: none;
}

.admin-panel .btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 10px 30px var(--accent-glow);
}

.admin-panel .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px var(--accent-glow);
    filter: brightness(1.1);
}

.admin-panel .btn-primary:active {
    transform: translateY(1px) scale(0.98);
}

.admin-panel .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.admin-panel .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.admin-panel .btn-secondary:active {
    transform: translateY(1px) scale(0.98);
}

/* Auth UI Enhancements */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 45px !important;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
    z-index: 10;
}

.toggle-password:hover {
    color: var(--accent-purple);
}

.strength-meter {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.strength-bar.weak { width: 33%; background: #ef4444; box-shadow: 0 0 10px rgba(239, 68, 68, 0.4); }
.strength-bar.medium { width: 66%; background: #f59e0b; box-shadow: 0 0 10px rgba(245, 158, 11, 0.4); }
.strength-bar.strong { width: 100%; background: #10b981; box-shadow: 0 0 10px rgba(16, 185, 129, 0.4); }

:root {
    --bg-main: #020202; /* Deeper black */
    --bg-section: #08080a;
    --bg-card: rgba(15, 15, 20, 0.6); /* Semi-transparent for glassmorphism */
    --bg-glass: rgba(255, 255, 255, 0.03);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-color: #1e293b;
    --accent-purple: #ff00ff; /* Vibrancy increase */
    --accent-glow: rgba(255, 0, 255, 0.3);
    --primary-gradient: linear-gradient(135deg, #ff00ff 0%, #aa00ff 50%, #7700ff 100%);
    --surface-depth: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}

/* Auth Screens */
.auth-container {
    max-width: 450px;
    margin: 100px auto;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-family: 'Sen', sans-serif;
    font-size: 2rem;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-muted);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

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

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-purple);
    outline: none;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.15), inset 0 0 10px rgba(255, 0, 255, 0.05);
}

.auth-toggle {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-toggle span {
    color: var(--accent-purple);
    cursor: pointer;
    font-weight: 600;
}

/* SaaS Dashboard (Apexify Style) */
:root {
    --sidebar-width: 280px;
    --topbar-height: 80px;
    --card-glow: rgba(223, 0, 255, 0.15);
}

/* Light Mode Disabled - Kept minimal for fallback but redirected to Dark */
[data-theme='light'] {
    --bg-main: #020202;
    --bg-section: #08080a;
    --bg-card: rgba(15, 15, 20, 0.6);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: var(--sidebar-width);
    background: rgba(10, 10, 12, 0.4);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 1000;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.4rem;
    font-family: 'Sen', sans-serif;
    margin-bottom: 50px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-header small {
    color: var(--accent-purple);
    font-size: 0.6rem;
    padding: 2px 6px;
    background: rgba(223, 0, 255, 0.1);
    border-radius: 4px;
}

.sidebar-nav {
    flex-grow: 1;
}

.sidebar-divider {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin: 25px 0 15px 20px;
    opacity: 0.6;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    margin-bottom: 8px;
    border-radius: 14px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    border: 1px solid transparent;
}

.nav-item i { font-size: 1.1rem; }

.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    border-color: var(--border-glass);
}

.nav-item.active {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 0 30px var(--accent-glow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme='light'] .nav-item.active {
    box-shadow: 0 5px 15px rgba(223, 0, 255, 0.3);
}

.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}

/* Theme Switch */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

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

.switch input { display: none; }

.slider {
    background-color: #333;
    border-radius: 34px;
    cursor: pointer;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    transition: .4s;
}

.slider:before {
    background-color: #fff;
    border-radius: 50%;
    bottom: 4px;
    content: "";
    height: 16px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 16px;
}

input:checked + .slider { background-color: var(--accent-purple); }
input:checked + .slider:before { transform: translateX(20px); }

.sidebar-logout {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-color);
    color: #ef4444;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    transition: 0.3s;
}

.sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Main Content */
.main-content {
    flex-grow: 1;
    background: var(--bg-main);
}

.admin-topbar {
    height: var(--topbar-height);
    background: rgba(2, 2, 2, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.search-bar {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 350px;
}

[data-theme='light'] .search-bar { background: #f1f5f9; }

.search-bar input {
    background: transparent;
    border: none;
    color: inherit;
    width: 100%;
    outline: none;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.topbar-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(223, 0, 255, 0.1);
    padding: 8px 15px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid transparent;
}

.topbar-date:hover {
    border-color: var(--accent-purple);
    background: rgba(223, 0, 255, 0.15);
    color: #fff;
}

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

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    box-shadow: 0 0 15px var(--card-glow);
}

.admin-panel-container {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* New Metrics & Charts */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.metric-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    padding: 24px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    min-width: 0;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.metric-card.premium {
    background: var(--primary-gradient);
    border: none;
    color: #fff;
    box-shadow: 0 10px 40px var(--accent-glow);
}

.metric-card.premium .metric-label, .metric-card.premium .metric-value {
    color: #fff !important;
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
    margin-top: 20px;
}

.mini-chart .bar {
    width: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.dashboard-grid-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.main-chart-box {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chart-container-main {
    flex-grow: 1;
    position: relative;
}

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

.chart-legend {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.chart-legend .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.dot.views { background: var(--accent-purple); }
.dot.leads { background: #fff; }

.session-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.progress-bar-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

[data-theme='light'] .progress-bar-bg { background: #e2e8f0; }

.progress-bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px;
}

/* Management Refinements */
.insights-box {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    padding: 30px;
    border-radius: 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.admin-panel {
    display: none;
    animation: fadeInSlide 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-panel.active { display: block; }

.review-count-badge {
    margin-left: auto;
    background: var(--primary-gradient);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(223, 0, 255, 0.3);
}

.m-nav-item .review-count-badge {
    position: absolute;
    top: 5px;
    right: 20%;
    margin-left: 0;
}

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

.data-table {
    border-radius: 24px;
    background: var(--bg-card);
}

.data-table th {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
}

.activity-item {
    background: var(--bg-section);
    border: 1px solid var(--border-color);
}

/* Project Grid Mode */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-manage-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-manage-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 0, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 0, 255, 0.1);
}

.pm-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #000;
}

.pm-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-manage-card:hover .pm-image { transform: scale(1.05); }

.pm-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    z-index: 2;
}

.pm-info {
    padding: 20px;
    flex-grow: 1;
}

.pm-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.pm-category {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pm-order-tag {
    font-size: 0.7rem;
    background: rgba(223, 0, 255, 0.15);
    color: var(--accent-purple);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    border: 1px solid rgba(223, 0, 255, 0.3);
}

.pm-actions {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
}

.pm-actions .btn-icon {
    flex: 1;
    height: 40px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.pm-actions .btn-icon:hover {
    border-color: var(--accent-purple);
    color: #fff;
    background: rgba(223, 0, 255, 0.1);
    box-shadow: 0 0 15px var(--card-glow);
}

.pm-actions .btn-delete:hover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* Form Refinements */
.live-preview-box {
    border: 2px dashed var(--border-color);
    padding: 15px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    position: relative;
    transition: 0.3s;
}

[data-theme='light'] .live-preview-box {
    background: #f8fafc;
}

/* Custom Dialogs / Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none; /* Controlled by JS */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 28px;
    width: 100%;
    max-width: 450px;
    text-align: center;
    transform: scale(0.9);
    transition: 0.3s;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content h3 {
    margin: 20px 0 10px;
    font-size: 1.5rem;
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

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

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

/* Toasts */
.toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    min-width: 300px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: toastIn 0.3s ease forwards;
}

.toast.success { border-left: 4px solid #10b981; }
.toast.error { border-left: 4px solid #ef4444; }

@keyframes toastIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background: rgba(18, 18, 20, 0.8);
    backdrop-filter: blur(25px);
    border-top: 1px solid var(--border-color);
    display: none; /* Desktop hidden */
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    padding-bottom: env(safe-area-inset-bottom);
}

.m-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.65rem;
    transition: 0.3s;
    cursor: pointer;
}

.m-nav-item i { font-size: 1.2rem; }
.m-nav-item.active { color: var(--accent-purple); }

.mobile-only-btn {
    display: none;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.mobile-only-btn:hover {
    background: #ef4444;
    color: #fff;
}

/* Responsive Overrides */
@media (max-width: 1280px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .admin-sidebar { width: 100px; padding: 30px 10px; }
    .sidebar-header span, .sidebar-nav span, .theme-switch-wrapper span, .sidebar-logout span {
        display: none;
    }
    .admin-sidebar { --sidebar-width: 100px; }
}

@media (max-width: 800px) {
    .app-layout { flex-direction: column; }
    .admin-sidebar { display: none; }
    .main-content { padding: 0; }
    
    .mobile-bottom-nav { display: flex; }
    
    .admin-topbar {
        padding: 10px 15px;
        height: auto;
        flex-direction: column;
        gap: 12px;
    }
    
    .search-bar { width: 100%; height: 44px; }
    
    .topbar-actions {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .topbar-user { gap: 8px; }
    .user-avatar { width: 32px; height: 32px; font-size: 0.8rem; }

    .admin-panel-container { padding: 20px 15px 120px; }

    .metrics-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px;
    }

    .metric-card { padding: 18px; }
    .metric-value { font-size: 1.4rem !important; }

    .dashboard-grid-2 { grid-template-columns: 1fr; gap: 20px; }
    
    .projects-grid { grid-template-columns: 1fr; gap: 20px; }
    
    .form-card { padding: 15px; border-radius: 20px; }
    .form-card .grid-2 { grid-template-columns: 1fr; }
    .form-group label { font-size: 0.75rem; }
    .form-group input, .form-group textarea, .form-group select { padding: 14px; font-size: 0.9rem; }

    .modal-content {
        width: 92%;
        padding: 25px 15px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-actions { flex-direction: column; gap: 10px; }
    .modal-actions .btn { width: 100%; }

    .data-table-wrapper {
        margin: 0 -15px;
        padding: 0 15px;
        overflow-x: auto;
    }
    .data-table { min-width: 600px; }
}

@media (max-width: 480px) {
    .metrics-grid { grid-template-columns: 1fr; }
    .topbar-date span { display: none; }
    
    .rmc-header { flex-direction: column; align-items: flex-start; }
    .rmc-quote-icon { position: absolute; top: 20px; right: 20px; }
    
    .btn { width: 100%; height: 50px; }
    
    /* Match Project Actions to Testimonial Style */
    .pm-actions { 
        flex-direction: row; 
        gap: 10px;
        padding: 0 20px 20px;
    }
    .pm-actions .btn-icon { 
        flex: 1;
        height: 44px; 
        font-size: 0.85rem;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 12px;
    }
    
    .mobile-only-btn { 
        display: flex; 
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: rgba(239, 68, 68, 0.1);
        border: 1px solid rgba(239, 68, 68, 0.3);
        color: #ef4444;
        border-radius: 12px;
        font-size: 1.1rem;
    }
}


/* Recent Activity Feed Redesign */
.activity-item.vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 24px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-item.vertical:hover {
    background: rgba(223, 0, 255, 0.04);
    border-color: rgba(223, 0, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.activity-header.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

.activity-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.activity-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-email {
    font-size: 0.85rem;
    color: var(--accent-purple);
    font-weight: 600;
}

.activity-message-bubble {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 16px 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    border-left: 4px solid var(--accent-purple);
}

[data-theme='light'] .activity-item.vertical {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

[data-theme='light'] .activity-message-bubble {
    background: #f8fafc;
    border-color: #e2e8f0;
}

/* Dynamic Tag System */
.tag-input-wrapper {
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 50px;
    align-items: center;
    transition: 0.3s;
}

.tag-input-wrapper:focus-within {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 2px rgba(223, 0, 255, 0.1);
}

.tag-bubble {
    background: var(--primary-gradient);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: tagPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(223, 0, 255, 0.2);
}

@keyframes tagPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.tag-bubble .remove-tag {
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: 0.2s;
    line-height: 1;
}

.tag-bubble .remove-tag:hover {
    opacity: 1;
    transform: scale(1.1);
}

#tag-input-field {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    flex-grow: 1;
    min-width: 120px;
    padding: 5px 0;
    font-family: inherit;
}

#tag-input-field::placeholder {
    color: var(--text-muted);
}

/* Custom Upload Area */
.custom-upload-area {
    width: 100%;
    padding: 40px;
    background: rgba(255, 255, 255, 0.01);
    border: 2px dashed var(--border-glass);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 15px;
}

.custom-upload-area i {
    font-size: 2.5rem;
    color: var(--accent-purple);
    opacity: 0.6;
    transition: 0.3s;
}

.custom-upload-area:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--accent-purple);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.1);
}

.custom-upload-area:hover i {
    opacity: 1;
    transform: translateY(-5px);
}

.upload-text strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: #fff;
}

.upload-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Media Selection Grid Improvement */
.media-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
}

.selection-thumb {
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: #000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.selection-thumb:hover {
    transform: scale(1.05) rotate(1deg);
    border-color: var(--accent-purple);
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 20px rgba(255, 0, 255, 0.2);
}

.selection-thumb .remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.selection-thumb:hover .remove-btn {
    opacity: 1;
}

.sortable-ghost {
    opacity: 0.2;
    border: 2px dashed var(--accent-purple);
    background: rgba(255, 0, 255, 0.05);
}

.selection-thumb img, 
.selection-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* Prevents dragging the element itself instead of the container */
}

.selection-thumb .thumb-index {
    position: absolute;
    top: 5px;
    left: 5px;
    background: var(--accent-purple);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.current-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent-purple);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 8px;
}

/* ─── Reviews Card Grid ─────────────────────────────────────── */
.reviews-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1280px) {
    .reviews-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
    .reviews-card-grid { grid-template-columns: 1fr; }
}

.review-manage-card {
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-glass);
    border-radius: 28px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.review-manage-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.review-manage-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-purple);
    box-shadow: 0 15px 40px var(--card-glow);
}

.review-manage-card > * {
    position: relative;
    z-index: 1;
}

/* Card Header: Avatar + Name + Quote icon */
.rmc-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rmc-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.rmc-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: border-color 0.3s;
}

.review-manage-card:hover .rmc-avatar {
    border-color: var(--accent-purple);
}

.rmc-avatar-fallback {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
    align-items: center;
    justify-content: center;
}

.rmc-author-info {
    flex: 1;
    min-width: 0;
}

.rmc-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rmc-role {
    font-size: 0.8rem;
    color: var(--accent-purple);
    font-weight: 500;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rmc-quote-icon {
    color: var(--accent-purple);
    opacity: 0.3;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: opacity 0.3s;
}

.review-manage-card:hover .rmc-quote-icon {
    opacity: 0.7;
}

/* Review text body */
.rmc-text {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-muted);
    flex: 1;
    margin: 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--accent-purple);
}

[data-theme='light'] .rmc-text {
    background: #f8fafc;
    border-color: #e2e8f0;
}

/* Action buttons */
.rmc-actions {
    display: flex;
    gap: 10px;
}

.rmc-actions .btn-icon {
    flex: 1;
    height: 38px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    transition: 0.3s;
}

.rmc-actions .btn-edit:hover {
    border-color: var(--accent-purple);
    color: #fff;
    background: rgba(223, 0, 255, 0.12);
    box-shadow: 0 0 15px var(--card-glow);
}

.selection-thumb.is-persisted {
    border-color: rgba(16, 185, 129, 0.4); /* Solid green border for saved items */
}

.saved-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #10b981;
    color: white;
    font-size: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.selection-thumb.is-new {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { border-color: transparent; }
    50% { border-color: var(--accent-purple); }
    100% { border-color: transparent; }
}

/* Loading Overlay */
.uploading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.uploading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(223, 0, 255, 0.2);
    border-top: 4px solid var(--accent-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px var(--card-glow);
}

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

/* Suggested Tags Pills */
.suggested-tag-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.suggested-tag-pill:hover {
    background: rgba(223, 0, 255, 0.15);
    border-color: var(--accent-purple);
    color: #fff;
    transform: translateY(-2px);
}

/* --- Rich Text Editor Styles --- */
.editor-toolbar {
    background: rgba(15, 15, 20, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    position: sticky;
    top: var(--topbar-height);
    z-index: 10;
    margin-top: 10px;
}

.toolbar-group {
    display: flex;
    gap: 4px;
    align-items: center;
}

.toolbar-divider {
    width: 1px;
    height: 20px;
    background: var(--border-glass);
    margin: 0 8px;
}

.toolbar-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 700;
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: var(--border-glass);
}

.toolbar-btn.active {
    background: rgba(223, 0, 255, 0.15);
    color: var(--accent-purple);
    border-color: var(--accent-purple);
}

.editor-content {
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 0 0 16px 16px;
    padding: 24px;
    color: var(--text-main);
    line-height: 1.7;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.editor-content:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.05);
}

.editor-content p {
    margin-bottom: 1.5em;
}

.editor-content h2 {
    font-family: 'Sen', sans-serif;
    font-size: 1.8rem;
    margin: 1.5em 0 0.8em;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.editor-content h3 {
    font-family: 'Sen', sans-serif;
    font-size: 1.4rem;
    margin: 1.2em 0 0.6em;
}

.editor-content blockquote {
    border-left: 4px solid var(--accent-purple);
    padding-left: 20px;
    margin: 2em 0;
    font-style: italic;
    color: var(--text-muted);
}

.editor-content ul, .editor-content ol {
    margin-bottom: 1.5em;
    padding-left: 25px;
}

.editor-content li {
    margin-bottom: 0.5em;
}

.editor-content a {
    color: var(--accent-purple);
    text-decoration: underline;
}

[data-theme='light'] .editor-content {
    background: #fff;
    color: #1e293b;
}
