/* CourScribe Premium Studio Interface */
/* Modern, responsive, full-featured studio design */

:root {
    /* Premium Brand Colors */
    --primary-gold: #E4B26F;
    --primary-gold-light: #F0C788;
    --primary-gold-dark: #D4A05C;
    --secondary-orange: #F8923E;
    --secondary-red: #F25C3B;
    
    /* Dark Theme Base */
    --bg-primary: #231F20;
    --bg-secondary: #2a2a2b;
    --bg-elevated: #2f2f2f;
    --bg-card: #2a2a2b;
    --bg-surface: #353535;
    --bg-glass: rgba(35, 31, 32, 0.9);
    
    /* Premium Gradients */
    --gradient-primary: linear-gradient(135deg, #E4B26F 0%, #F8923E 100%);
    --gradient-secondary: linear-gradient(135deg, #F8923E 0%, #F25C3B 100%);
    --gradient-dark: linear-gradient(135deg, #231F20 0%, #2a2a2b 100%);
    --gradient-card: linear-gradient(135deg, #2a2a2b 0%, #353535 100%);
    --gradient-glass: linear-gradient(135deg, rgba(35, 31, 32, 0.9) 0%, rgba(42, 42, 43, 0.9) 100%);
    
    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #E2E8F0;
    --text-muted: #94A3B8;
    --text-accent: #E4B26F;
    --text-success: #10B981;
    --text-warning: #F59E0B;
    --text-danger: #EF4444;
    
    /* Interactive States */
    --hover-bg: rgba(228, 178, 111, 0.1);
    --active-bg: rgba(228, 178, 111, 0.2);
    --focus-ring: rgba(228, 178, 111, 0.3);
    
    /* Spacing System */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-xs: 0.125rem;
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
    
    /* Box Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Animation */
    --transition-fast: 0.15s ease-out;
    --transition-normal: 0.3s ease-out;
    --transition-slow: 0.5s ease-out;
}
.studio-tabs .tab-content {
    display: none;
}
.studio-tabs .tab-content.active {
    display: block !important;
}
/* Premium Studio Redesign Styles */
.courscribe-studio-premium-redesign {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    color: #ffffff;
}

/* Studio Hero Section */
.studio-hero {
    background: linear-gradient(135deg, #231F20 0%, #3a3a3a 100%);
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #333;
}
 

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.studio-welcome {
    flex: 1;
}

.studio-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.gradient-text {
    background: linear-gradient(45deg, #E4B26F, #F8923E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.premium-badge {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #1a1a1a;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.studio-subtitle {
    font-size: 1.1rem;
    color: #ccc;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.quick-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #E4B26F;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #888;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: #333;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
}

.btn-premium-large {
    background: linear-gradient(45deg, #E4B26F, #F8923E);
    color: #1a1a1a;
    border: none;
    padding: 18px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: none;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
    justify-content: center;
}

.btn-premium-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(228, 178, 111, 0.4);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.btn-premium-large:hover .btn-glow {
    left: 100%;
}

.secondary-actions {
    display: flex;
    gap: 12px;
}

.btn-secondary {
    background: transparent;
    color: #E4B26F;
    border: 2px solid #E4B26F;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #E4B26F;
    color: #1a1a1a;
    transform: translateY(-1px);
}

/* Floating Decoration */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(228, 178, 111, 0.1);
    border: 2px solid rgba(228, 178, 111, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E4B26F;
    font-size: 24px;
    animation: float 6s ease-in-out infinite;
}

.floating-icon.icon-1 {
    top: 20%;
    right: 15%;
    animation-delay: 0s;
}

.floating-icon.icon-2 {
    bottom: 30%;
    right: 25%;
    animation-delay: 2s;
}

.floating-icon.icon-3 {
    top: 40%;
    right: 8%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(180deg); }
}

/* Premium Tab Navigation */
.premium-tabs-container {
    background: #2a2a2a;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 100;
}

.tabs-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.tab-nav {
    display: flex;
    gap: 0;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #888;
    font-weight: 500;
    border-bottom: 3px solid transparent;
}
.tab-btn-team{
    background: transparent;
    border: none;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #888;
    font-weight: 500;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: #E4B26F;
    background: rgba(228, 178, 111, 0.05);
}

.tab-btn.active {
    color: #E4B26F;
    border-bottom-color: #E4B26F;
}
.tab-btn-team:hover {
    color: #E4B26F;
    background: rgba(228, 178, 111, 0.05);
}

.tab-btn-team.active {
    color: #E4B26F;
    border-bottom-color: #E4B26F;
}

.tab-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.tab-btn:hover .tab-icon {
    transform: scale(1.1);
}
.tab-btn-team:hover .tab-icon {
    transform: scale(1.1);
}

.tab-label {
    font-size: 14px;
    font-weight: 500;
}

.tab-indicator {
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #E4B26F;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn.active .tab-indicator {
    transform: scaleX(1);
}
.tab-btn-team.active .tab-indicator {
    transform: scaleX(1);
}

/* User Profile */
.user-profile {
    position: relative;
}

.profile-btn {
    background: rgba(228, 178, 111, 0.1);
    border: 1px solid rgba(228, 178, 111, 0.2);
    border-radius: 50px;
    padding: 8px 16px 8px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.profile-btn:hover {
    background: rgba(228, 178, 111, 0.2);
    border-color: rgba(228, 178, 111, 0.4);
}

.profile-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(45deg, #E4B26F, #F8923E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 18px;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.profile-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.profile-role {
    font-size: 12px;
    color: #888;
    line-height: 1.2;
}

.profile-arrow {
    font-size: 12px;
    color: #888;
    transition: transform 0.3s ease;
}

.profile-btn:hover .profile-arrow {
    transform: rotate(180deg);
}

/* Profile Dropdown */
.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

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

.dropdown-header {
    padding: 20px;
    border-bottom: 1px solid #333;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.user-email {
    font-size: 14px;
    color: #888;
}

.dropdown-content {
    padding: 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(228, 178, 111, 0.1);
    color: #E4B26F;
}

.dropdown-item.premium {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.dropdown-item.logout {
    color: #ff6b6b;
}

.dropdown-item.logout:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

.upgrade-badge {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #1a1a1a;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    margin-left: auto;
}

.dropdown-divider {
    height: 1px;
    background: #333;
    margin: 8px 0;
}

/* Tab Content */
.tab-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.tab-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.tab-subtitle {
    font-size: 1rem;
    color: #888;
    margin: 8px 0 0 0;
}

.btn-premium {
    background: linear-gradient(45deg, #E4B26F, #F8923E);
    color: #1a1a1a;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(228, 178, 111, 0.4);
}

.btn-upgrade {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #1a1a1a;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

.stat-card {
    background: rgba(42, 42, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid #444;
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #E4B26F;
    box-shadow: 0 10px 30px rgba(228, 178, 111, 0.2);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, #E4B26F, #F8923E);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-visual {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #E4B26F, #F8923E);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 22px;
}

.stat-content .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-content .stat-label {
    font-size: 1rem;
    color: #E4B26F;
    font-weight: 500;
    margin-bottom: 4px;
}

.stat-content .stat-subtitle {
    font-size: 0.85rem;
    color: #888;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.stat-change.positive {
    color: #4CAF50;
}

/* Mini Visualizations */
.progress-ring circle {
    transition: stroke-dashoffset 0.5s ease;
}

.mini-bars {
    display: flex;
    gap: 3px;
    align-items: end;
    height: 30px;
}

.bar {
    width: 6px;
    background: linear-gradient(45deg, #E4B26F, #F8923E);
    border-radius: 3px;
    animation: barGrow 0.8s ease-out;
}

@keyframes barGrow {
    from { height: 0; }
    to { height: var(--height); }
}

.stat-dots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    width: 60px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
    transition: background 0.3s ease;
}

.dot.active {
    background: #E4B26F;
}

.stat-wave {
    display: flex;
    gap: 2px;
    align-items: end;
    height: 30px;
}

.wave-line {
    width: 3px;
    background: linear-gradient(45deg, #E4B26F, #F8923E);
    border-radius: 2px;
    animation: wave 2s ease-in-out infinite;
}

.wave-line:nth-child(1) { height: 20px; animation-delay: 0s; }
.wave-line:nth-child(2) { height: 30px; animation-delay: 0.2s; }
.wave-line:nth-child(3) { height: 15px; animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-actions {
        align-items: center;
    }

    .secondary-actions {
        flex-direction: column;
        width: 100%;
    }

    .tabs-wrapper {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .tab-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .tab-btn {
        flex-direction: column;
        gap: 6px;
        padding: 16px 12px;
        min-width: 80px;
    }
    .tab-btn-team {
        flex-direction: column;
        gap: 6px;
        padding: 16px 12px;
        min-width: 80px;
    }

    .tab-label {
        font-size: 12px;
    }

    .premium-stats-grid {
        grid-template-columns: 1fr;
    }

    .studio-title {
        font-size: 2rem;
        justify-content: center;
    }

    .quick-stats {
        justify-content: center;
    }
}

/* Authentication Required Styling */
.courscribe-auth-required {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.auth-message {
    text-align: center;
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid #444;
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    color: #fff;
}

.auth-message i {
    font-size: 48px;
    color: #E4B26F;
    margin-bottom: 20px;
}

.auth-message h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #fff;
}

.auth-message p {
    color: #ccc;
    margin-bottom: 24px;
}

.auth-message .btn {
    background: linear-gradient(45deg, #E4B26F, #F8923E);
    color: #1a1a1a;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.auth-message .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(228, 178, 111, 0.4);
}

/* Enhanced Curriculum Header Styles */
.curriculum-header-enhanced {
    background: rgba(34, 34, 34, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(228, 178, 111, 0.2);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.curriculum-summary {
    display: flex;
    align-items: center;
    gap: 20px;
}

.summary-item {
    text-align: center;
}

.summary-number {
    font-size: 24px;
    font-weight: 700;
    color: #E4B26F;
    line-height: 1;
}

.summary-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.summary-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #333, transparent);
}

.curriculum-actions-enhanced {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-btn-enhanced {
    padding: 12px 20px;
    border-radius: 15px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.action-btn-enhanced.primary {
    background: linear-gradient(45deg, #E4B26F, #F8923E);
    color: #1a1a1a;
    box-shadow: 0 4px 20px rgba(228, 178, 111, 0.3);
}

.action-btn-enhanced.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(228, 178, 111, 0.4);
}

.action-btn-enhanced.primary.pulse {
    animation: buttonPulse 2s ease-in-out infinite;
}

.action-btn-enhanced.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-btn-enhanced.secondary:hover {
    background: rgba(228, 178, 111, 0.1);
    color: #E4B26F;
    border-color: rgba(228, 178, 111, 0.3);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.action-btn-enhanced:hover .btn-shine {
    left: 100%;
}

@keyframes buttonPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(228, 178, 111, 0.3); }
    50% { box-shadow: 0 8px 40px rgba(228, 178, 111, 0.6); }
}

/* Analytics Overview Styles */
.analytics-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.analytics-stat-card {
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid rgba(228, 178, 111, 0.2);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.analytics-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(228, 178, 111, 0.4);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon.growth {
    background: linear-gradient(45deg, #4CAF50, #81C784);
    color: white;
}

.stat-icon.engagement {
    background: linear-gradient(45deg, #2196F3, #64B5F6);
    color: white;
}

.stat-icon.completion {
    background: linear-gradient(45deg, #FF9800, #FFB74D);
    color: white;
}

.stat-icon.time {
    background: linear-gradient(45deg, #9C27B0, #BA68C8);
    color: white;
}

.stat-info {
    text-align: right;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #888;
    margin-top: 4px;
}

/* Enhanced Settings Styles */
.settings-premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
}

.settings-card-premium {
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid rgba(228, 178, 111, 0.2);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.settings-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(228, 178, 111, 0.4);
}

.card-header-premium {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon-wrapper {
    position: relative;
}

.header-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.header-icon.info {
    background: linear-gradient(45deg, #2196F3, #64B5F6);
}

.header-icon.plan {
    background: linear-gradient(45deg, #E4B26F, #F8923E);
    color: #1a1a1a;
}

.header-icon.security {
    background: linear-gradient(45deg, #4CAF50, #81C784);
}

.header-icon.data {
    background: linear-gradient(45deg, #9C27B0, #BA68C8);
}

.card-body-premium {
    padding: 24px;
}

.form-control-premium {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control-premium:focus {
    outline: none;
    border-color: #E4B26F;
    box-shadow: 0 0 0 3px rgba(228, 178, 111, 0.1);
    background: rgba(255, 255, 255, 0.15);
}

.btn-primary-premium {
    background: linear-gradient(45deg, #E4B26F, #F8923E);
    color: #1a1a1a;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    font-weight: 600;
}

.btn-primary-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(228, 178, 111, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .curriculum-header-enhanced {
        flex-direction: column;
        gap: 16px;
    }

    .curriculum-summary {
        justify-content: center;
    }

    .settings-premium-grid {
        grid-template-columns: 1fr;
    }

    .analytics-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Drag and Drop Styles */
.curriculum-item {
    cursor: grab;
    transition: all var(--transition-normal);
}

.curriculum-item:active {
    cursor: grabbing;
}

.curriculum-item.dragging {
    opacity: 0.7;
    cursor: grabbing;
    transform: rotate(5deg);
    z-index: 1000;
    box-shadow: var(--shadow-2xl);
}

.curriculum-item.drag-over {
    border: 2px dashed var(--primary-gold);
    background: var(--hover-bg);
}

.curriculums-grid.drag-active {
    background: var(--hover-bg);
    border-radius: var(--radius-lg);
}

/* Archived Curriculums Styles */
.archived-curriculums-section {
    margin-top: var(--space-2xl);
    border-top: 1px solid rgba(228, 178, 111, 0.1);
    padding-top: var(--space-xl);
}

.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: var(--space-md);
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(228, 178, 111, 0.1);
    transition: all var(--transition-normal);
}

.collapsible-header:hover {
    background: var(--hover-bg);
    border-color: var(--primary-gold);
}

.collapsible-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.archived-count {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.875rem;
}

.toggle-icon {
    color: var(--primary-gold);
    transition: transform var(--transition-normal);
}

.collapsible-content {
    margin-top: var(--space-md);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.archived-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
    padding: var(--space-md) 0;
}

.curriculum-card.archived {
    background: var(--gradient-card);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.curriculum-card.archived::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #94A3B8, #64748B);
}

.curriculum-card.archived:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: #94A3B8;
}

.curriculum-status.archived {
    background: rgba(148, 163, 184, 0.1);
    color: #94A3B8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.curriculum-meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin: var(--space-md) 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.meta-item i {
    width: 16px;
    color: var(--primary-gold);
}

/* Error and Empty States */
.error-state,
.empty-state {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--text-secondary);
}

.error-state i,
.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.error-state h4,
.empty-state h4 {
    margin: 0 0 var(--space-sm) 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.error-state p,
.empty-state p {
    margin: 0 0 var(--space-lg) 0;
    color: var(--text-muted);
}

/* Button Variants */
.btn-secondary {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-secondary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-secondary:hover {
    background: var(--hover-bg);
    border-color: var(--primary-gold);
    color: var(--text-primary);
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .archived-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .collapsible-header {
        padding: var(--space-sm) var(--space-md);
    }
    
    .collapsible-header h3 {
        font-size: 1rem;
    }
    
    .curriculum-card.archived {
        padding: var(--space-md);
    }
    
    .curriculum-meta {
        gap: var(--space-xs);
    }
    
    .meta-item {
        font-size: 0.8125rem;
    }
    
    /* Touch-friendly drag and drop */
    .curriculum-item {
        touch-action: manipulation;
    }
}

@media (max-width: 480px) {
    .archived-curriculums-section {
        margin-top: var(--space-lg);
        padding-top: var(--space-lg);
    }
    
    .collapsible-header h3 {
        font-size: 0.9375rem;
    }
    
    .archived-count {
        font-size: 0.8125rem;
    }
    
    .curriculum-actions {
        gap: var(--space-xs);
    }
    
    .btn-icon {
        padding: var(--space-xs);
        min-width: 32px;
        min-height: 32px;
    }
}

/* Premium Modal Styles */
.modal.premium-modal {
    max-width: 500px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    background: var(--gradient-card);
    border: 1px solid rgba(228, 178, 111, 0.2);
}

.modal.premium-modal.danger {
    border-color: rgba(239, 68, 68, 0.3);
}

.modal.premium-modal .modal-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xl);
    border-bottom: 1px solid rgba(228, 178, 111, 0.1);
    background: var(--gradient-glass);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal.premium-modal.danger .modal-header {
    border-bottom-color: rgba(239, 68, 68, 0.2);
}

.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.modal-icon.archive {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
    border: 2px solid rgba(245, 158, 11, 0.3);
}

.modal-icon.danger {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.modal.premium-modal .modal-header h3 {
    margin: 0;
    flex: 1;
    color: var(--text-primary);
    font-weight: 600;
}

.confirmation-content {
    padding: var(--space-lg);
}

.confirmation-text {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.confirmation-details {
    background: rgba(228, 178, 111, 0.05);
    border: 1px solid rgba(228, 178, 111, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
}

.confirmation-details.danger {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: var(--space-sm);
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item i {
    width: 16px;
    color: var(--primary-gold);
}

.confirmation-details.danger .detail-item i {
    color: #EF4444;
}

.danger-label {
    color: #EF4444 !important;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.form-control.danger {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.form-control.danger:focus {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.btn.btn-warning {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    border: none;
    color: white;
}

.btn.btn-warning:hover {
    background: linear-gradient(135deg, #D97706, #B45309);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn.btn-danger {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    border: none;
    color: white;
}

.btn.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn.btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #6B7280;
}

/* Recent Activity Enhancements */
.card-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.activity-filter select {
    background: var(--bg-surface);
    border: 1px solid rgba(228, 178, 111, 0.2);
    color: var(--text-secondary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: all var(--transition-normal);
}

.activity-filter select:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(228, 178, 111, 0.1);
    outline: none;
}

.activity-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0 0 0;
    border-top: 1px solid rgba(228, 178, 111, 0.1);
    margin-top: var(--space-md);
}

.pagination-info {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.btn-sm {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.875rem;
    border-radius: var(--radius-md);
}

.btn-sm i {
    font-size: 0.75rem;
}

.activity-feed {
    max-height: 400px;
    overflow-y: auto;
    padding-right: var(--space-xs);
}

.activity-feed::-webkit-scrollbar {
    width: 4px;
}

.activity-feed::-webkit-scrollbar-track {
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
}

.activity-feed::-webkit-scrollbar-thumb {
    background: rgba(228, 178, 111, 0.3);
    border-radius: var(--radius-sm);
}

.activity-feed::-webkit-scrollbar-thumb:hover {
    background: rgba(228, 178, 111, 0.5);
}

/* Responsive Updates */
@media (max-width: 768px) {
    .card-actions {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: stretch;
    }
    
    .activity-filter {
        width: 100%;
    }
    
    .activity-filter select {
        width: 100%;
    }
    
    .activity-pagination {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
    
    .modal.premium-modal {
        max-width: 95vw;
        margin: var(--space-md);
    }
    
    .modal.premium-modal .modal-header {
        padding: var(--space-md);
    }
    
    .confirmation-content {
        padding: var(--space-md);
    }
}

@media (max-width: 480px) {
    .modal-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .confirmation-text {
        font-size: 1rem;
    }
    
    .btn-sm {
        padding: var(--space-xs);
        font-size: 0.8125rem;
    }
}
body:not(.et-tb) #main-content .container, body:not(.et-tb-has-header) #main-content .container {
    padding-top: 0 !important;
}
.container {
    width: 100% !important;
    max-width: 1280px !important;
}
.main_title {
    display: none !important;
}
/* Reset and Base Styles */
.courscribe-studio-premium * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    
}

.courscribe-studio-premium {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* background: var(--gradient-dark); */
    color: var(--text-primary);
    width: 100%;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Studio Header */
.studio-header {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(228, 178, 111, 0.2);
    padding: var(--space-md) var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.brand-logo {
    height: 30px;
    width: auto;
    filter: brightness(1.1);
}

.studio-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.studio-tier {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.studio-tier.tier-basics {
    background: rgba(156, 163, 175, 0.2);
    color: #9CA3AF;
}

.studio-tier.tier-plus {
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
}

.studio-tier.tier-pro {
    background: var(--gradient-primary);
    color: white;
}

/* Header Navigation */
.header-nav {
    display: flex;
    gap: var(--space-sm);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-item:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav-item.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

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

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.user-avatar {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border: 1px solid rgba(228, 178, 111, 0.2);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.user-avatar:hover {
    border-color: var(--primary-gold);
    background: var(--hover-bg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--space-sm);
    background: var(--gradient-card);
    border: 1px solid rgba(228, 178, 111, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 200;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

/* Main Content */
.studio-main {
    padding: var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
}

/* Section Management */
.studio-section {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.studio-section.active {
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl) 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

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

.stat-card {
    background: var(--gradient-card);
    border: 1px solid rgba(228, 178, 111, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-gold);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.stat-icon.curriculum {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
}

.stat-icon.course {
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
}

.stat-icon.module {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.stat-icon.lesson {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.stat-change {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.75rem;
    font-weight: 600;
}

.stat-change.positive {
    color: var(--text-success);
}

.stat-change.negative {
    color: var(--text-danger);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

/* Dashboard Cards */
.dashboard-card {
    background: var(--gradient-card);
    border: 1px solid rgba(228, 178, 111, 0.2);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-gold);
}

.card-header {
    background: var(--gradient-primary);
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.dashboard-card:hover .card-header::before {
    transform: translateX(100%);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.card-action {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.card-action:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.card-body {
    padding: var(--space-xl);
}

/* Quick Actions */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.action-buttons .action-btn {
    justify-content: center;
    padding: var(--space-md) var(--space-lg);
    width: 100%;
}

.action-btn.primary {
    background: var(--gradient-primary);
}

.action-btn.secondary {
    background: var(--gradient-secondary);
}

.action-btn.tertiary {
    background: var(--bg-elevated);
    border: 1px solid rgba(228, 178, 111, 0.3);
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.activity-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.activity-item:hover {
    background: var(--hover-bg);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: white;
    flex-shrink: 0;
}

.activity-icon.create {
    background: var(--text-success);
}

.activity-icon.edit {
    background: var(--text-warning);
}

.activity-icon.collaborate {
    background: var(--primary-gold);
}

.activity-content {
    flex: 1;
}

.activity-text {
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

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

/* Progress Chart */
.progress-chart {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.progress-stats {
    display: flex;
    justify-content: space-around;
    gap: var(--space-md);
}

.progress-stat {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.progress-dot.completed {
    background: var(--text-success);
}

.progress-dot.in-progress {
    background: var(--text-warning);
}

.progress-dot.pending {
    background: var(--text-muted);
}

/* Studio Overview */
.overview-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.overview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
}

.overview-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.overview-value {
    color: var(--text-primary);
    font-weight: 600;
}

.status-badge {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.public {
    background: rgba(16, 185, 129, 0.2);
    color: var(--text-success);
}

.status-badge.private {
    background: rgba(156, 163, 175, 0.2);
    color: var(--text-muted);
}

.external-link {
    color: var(--primary-gold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    transition: color var(--transition-fast);
}

.external-link:hover {
    color: var(--primary-gold-light);
}

/* Curriculum Manager Integration */
.curriculum-manager-wrapper {
    background: var(--bg-card);
    border: 1px solid rgba(228, 178, 111, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

/* Override curriculum manager styles to match premium theme */
.curriculum-manager-wrapper .main-container {
    background: transparent;
}

.curriculum-manager-wrapper .sidebar {
    display: none; /* Hide sidebar since we have our own navigation */
}

.curriculum-manager-wrapper .content {
    margin-left: 0;
    padding: 0;
}

.curriculum-manager-wrapper .courscribe-studio-h2,
.curriculum-manager-wrapper .courscribe-h3-white,
.curriculum-manager-wrapper .courscribe-p-gray {
    display: none; /* Hide duplicate headers */
}

/* Archived Curriculums Section */
.archived-curriculums-section {
    background: var(--bg-card);
    border: 1px solid rgba(228, 178, 111, 0.2);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-xl);
}

.collapsible-header {
    background: var(--gradient-primary);
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.collapsible-header:hover {
    background: var(--gradient-secondary);
}

.collapsible-header h3 {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.archived-count {
    font-size: 0.875rem;
    opacity: 0.8;
}

.toggle-icon {
    color: white;
    transition: transform var(--transition-normal);
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

.collapsible-content {
    background: var(--bg-card);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease;
}

.collapsible-content.expanded {
    max-height: 1000px;
    padding: var(--space-xl);
}

.archived-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

/* Drag and Drop Functionality */
.curriculum-item {
    cursor: grab;
    transition: all var(--transition-normal);
    position: relative;
}

.curriculum-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.curriculum-item.dragging {
    opacity: 0.7;
    cursor: grabbing;
    transform: rotate(5deg);
    z-index: 1000;
}

.curriculum-item.drag-over {
    border: 2px dashed var(--primary-gold);
    background: rgba(228, 178, 111, 0.1);
}

.drag-placeholder {
    background: rgba(228, 178, 111, 0.2);
    border: 2px dashed var(--primary-gold);
    border-radius: var(--radius-lg);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    font-weight: 600;
}

/* Curriculums Grid */
.curriculums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.curriculum-card {
    background: var(--gradient-card);
    border: 1px solid rgba(228, 178, 111, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
}

.curriculum-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-gold);
}

.curriculum-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-lg);
}

.curriculum-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.curriculum-status {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.curriculum-status.in-progress {
    background: rgba(245, 158, 11, 0.2);
    color: var(--text-warning);
}

.curriculum-stats {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.curriculum-stats .stat {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.curriculum-progress {
    margin-bottom: var(--space-lg);
}

.progress-bar {
    height: 8px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.curriculum-actions {
    display: flex;
    gap: var(--space-sm);
}

.btn-icon {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(228, 178, 111, 0.3);
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: var(--hover-bg);
    border-color: var(--primary-gold);
    color: var(--text-primary);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.team-member-card {
    background: var(--gradient-card);
    border: 1px solid rgba(228, 178, 111, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all var(--transition-normal);
}

.team-member-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-gold);
}

.member-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: var(--space-lg);
}

.member-info {
    margin-bottom: var(--space-lg);
}

.member-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.member-role {
    color: var(--text-accent);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.member-email {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.member-status {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
    font-size: 0.75rem;
}

.status-dot.active {
    background: var(--text-success);
}

.member-actions {
    display: flex;
    gap: var(--space-sm);
}

.btn-icon.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--text-danger);
    color: var(--text-danger);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-3xl);
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-xl);
}

.analytics-card {
    background: var(--gradient-card);
    border: 1px solid rgba(228, 178, 111, 0.2);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-xl);
}

.settings-card {
    background: var(--gradient-card);
    border: 1px solid rgba(228, 178, 111, 0.2);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Forms */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.form-control {
    padding: var(--space-md);
    background: var(--bg-elevated);
    border: 1px solid rgba(228, 178, 111, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px var(--focus-ring);
    background: var(--hover-bg);
}

.form-control::placeholder {
    color: var(--text-muted);
}

label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(228, 178, 111, 0.3);
    border-radius: var(--radius-sm);
    background: transparent;
    position: relative;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--gradient-primary);
    border-color: var(--primary-gold);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Plan Info */
.plan-info {
    text-align: center;
}

.plan-badge {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: var(--space-lg);
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
}

.feature i {
    color: var(--text-success);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid rgba(228, 178, 111, 0.3);
}

.btn-secondary:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
    border-color: var(--primary-gold);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--gradient-card);
    border: 1px solid rgba(228, 178, 111, 0.2);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(-20px);
    transition: all var(--transition-normal);
}

.modal-overlay.show .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: var(--space-xl);
    border-bottom: 1px solid rgba(228, 178, 111, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

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

.modal-body {
    padding: var(--space-xl);
}

.invite-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
    margin-top: var(--space-lg);
}

/* Loading States */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    color: var(--text-muted);
    text-align: center;
}

.loading-state i {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    color: var(--primary-gold);
}

.loading-state p {
    margin: 0;
    font-size: 0.875rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(35, 31, 32, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loader {
    text-align: center;
    color: var(--text-primary);
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(228, 178, 111, 0.2);
    border-top: 3px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-md);
}

.loader-text {
    font-weight: 500;
    color: var(--text-secondary);
}

/* Authentication Required */
.courscribe-auth-required {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: var(--space-xl);
}

.auth-message {
    text-align: center;
    background: var(--gradient-card);
    border: 1px solid rgba(228, 178, 111, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    max-width: 400px;
}

.auth-message i {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: var(--space-lg);
}

.auth-message h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.auth-message p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .studio-header {
        padding: var(--space-md) var(--space-lg);
    }
    
    .header-nav {
        display: none;
    }
    
    .studio-main {
        padding: var(--space-lg);
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--space-lg);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .studio-header {
        flex-direction: column;
        gap: var(--space-md);
        padding: var(--space-md);
    }
    
    .header-brand {
        gap: var(--space-md);
    }
    
    .header-actions {
        flex-direction: column;
        gap: var(--space-sm);
        width: 100%;
    }
    
    .action-btn {
        justify-content: center;
        width: 100%;
    }
    
    .studio-main {
        padding: var(--space-md);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .curriculums-grid,
    .team-grid,
    .analytics-grid,
    .settings-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .card-header,
    .card-body {
        padding: var(--space-lg);
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .modal {
        width: 95%;
        margin: var(--space-md);
    }
    
    .modal-header,
    .modal-body {
        padding: var(--space-lg);
    }
}

/* Print Styles */
@media print {
    .studio-header,
    .modal-overlay,
    .loading-overlay {
        display: none !important;
    }
    
    .studio-main {
        padding: 0;
        max-width: none;
    }
    
    .dashboard-card,
    .curriculum-card,
    .team-member-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --bg-primary: #000000;
        --bg-secondary: #111111;
        --text-primary: #FFFFFF;
        --text-secondary: #CCCCCC;
        --primary-gold: #FFD700;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Team Management */
.courscribe-premium-team {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    width: 100%;
    color: #ffffff;
    padding: 0px 0px 40px 0px;
    border-radius: 20px;
    margin: 0;
}

/* Team Header */
.team-header {
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.header-text {
    flex: 1;
    min-width: 300px;
}

.team-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.title-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #E4B26F, #F8923E);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1a1a1a;
    flex-shrink: 0;
}

.gradient-text {
    background: linear-gradient(45deg, #E4B26F, #F8923E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-subtitle {
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.6;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.invite-btn, .bulk-actions-btn {
    background: linear-gradient(45deg, #E4B26F, #F8923E);
    color: #1a1a1a;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.invite-btn:hover, .bulk-actions-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(228, 178, 111, 0.3);
}

.bulk-actions-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bulk-actions-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

/* Team Statistics */
.team-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(228, 178, 111, 0.3);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #E4B26F, #F8923E);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1a1a1a;
    flex-shrink: 0;
}

.gradient-bg-primary {
    background: linear-gradient(45deg, #E4B26F, #F8923E);
}

.gradient-bg-secondary {
    background: linear-gradient(45deg, #2196F3, #21CBF3);
}

.gradient-bg-success {
    background: linear-gradient(45deg, #4CAF50, #81C784);
}

.gradient-bg-warning {
    background: linear-gradient(45deg, #FF9800, #FFB74D);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #aaa;
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-change {
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.positive {
    color: #4CAF50;
}

.stat-change.negative {
    color: #F44336;
}

.stat-change.neutral {
    color: #aaa;
}

/* Team Tabs */
.team-tabs {
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
}

.tab-navigation {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
}
.tab-navigation-team{
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    color: #aaa;
    padding: 16px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: #E4B26F;
    background: rgba(228, 178, 111, 0.1);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #E4B26F, #F8923E);
}
.tab-btn-team {
    background: transparent;
    border: none;
    color: #aaa;
    padding: 16px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.tab-btn-team:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn-team.active {
    color: #E4B26F;
    background: rgba(228, 178, 111, 0.1);
}

.tab-btn-team.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #E4B26F, #F8923E);
}
.tab-count {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tab-btn-team.active .tab-count {
    background: rgba(228, 178, 111, 0.2);
    color: #E4B26F;
}

.tab-content-team {
    display: none;
    padding: 32px;
}

.tab-content-team.active {
    display: block;
}

/* Members Tab */
.members-controls {
    margin-bottom: 24px;
}

.search-filter {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 14px;
}

.search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 16px 12px 40px;
    color: #ffffff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: rgba(228, 178, 111, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.search-box input::placeholder {
    color: #aaa;
}

.filter-dropdown select,
.status-filter select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-dropdown select:focus,
.status-filter select:focus {
    outline: none;
    border-color: rgba(228, 178, 111, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.filter-dropdown select option,
.status-filter select option {
    background: #2a2a2a;
    color: #ffffff;
}

/* Members Grid */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.member-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
}

.member-card:hover {
    transform: translateY(-4px);
    border-color: rgba(228, 178, 111, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.member-avatar {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #2a2a2a;
}

.status-indicator.active {
    background: #4CAF50;
}

.status-indicator.pending {
    background: #FF9800;
}

.status-indicator.inactive {
    background: #666;
}

.member-info {
    margin-bottom: 16px;
}

.member-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.member-email {
    font-size: 0.85rem;
    color: #aaa;
    margin: 0 0 8px 0;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-badge.role-owner {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.role-badge.role-admin {
    background: rgba(156, 39, 176, 0.2);
    color: #CE93D8;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.role-badge.role-collaborator {
    background: rgba(33, 150, 243, 0.2);
    color: #64B5F6;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.role-badge.role-viewer {
    background: rgba(102, 102, 102, 0.2);
    color: #ffffff;
    border: 1px solid rgba(102, 102, 102, 0.3);
}

.member-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-item .stat-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #E4B26F;
    display: block;
}

.stat-item .stat-label {
    font-size: 0.75rem;
    color: #aaa;
    text-transform: uppercase;
    font-weight: 500;
}

.member-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.action-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #aaa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-2px);
}

.action-btn.edit:hover {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
    border-color: rgba(33, 150, 243, 0.3);
}

.action-btn.message:hover {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border-color: rgba(76, 175, 80, 0.3);
}

.action-btn.remove:hover {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
    border-color: rgba(244, 67, 54, 0.3);
}

/* Roles Tab */
.roles-overview {
    text-align: center;
    margin-bottom: 32px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 8px 0;
}

.section-title i {
    color: #E4B26F;
}

.section-description {
    font-size: 1rem;
    color: #aaa;
    margin: 0;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.role-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.role-card:hover {
    transform: translateY(-2px);
    border-color: rgba(228, 178, 111, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.role-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.role-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(45deg, #E4B26F, #F8923E);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #1a1a1a;
    flex-shrink: 0;
}

.role-info {
    flex: 1;
}

.role-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.role-description {
    font-size: 0.85rem;
    color: #aaa;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.role-count {
    font-size: 0.75rem;
    color: #E4B26F;
    font-weight: 500;
}

.permissions-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.permissions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #cccccc;
}

.permission-icon {
    color: #4CAF50;
    font-size: 10px;
}

.role-actions {
    text-align: center;
}

.role-edit-btn {
    background: rgba(228, 178, 111, 0.1);
    color: #E4B26F;
    border: 1px solid rgba(228, 178, 111, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.role-edit-btn:hover {
    background: rgba(228, 178, 111, 0.2);
    transform: translateY(-2px);
}

/* Activity Tab */
.activity-overview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.activity-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.activity-controls select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 0.85rem;
    cursor: pointer;
}

.activity-controls select:focus {
    outline: none;
    border-color: rgba(228, 178, 111, 0.5);
}

.activity-chart {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
    min-height: 300px;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.timeline-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.timeline-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.timeline-content {
    flex: 1;
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.timeline-user {
    font-weight: 600;
    color: #E4B26F;
    font-size: 0.9rem;
}

.timeline-action {
    font-size: 0.9rem;
    color: #ffffff;
}

.timeline-time {
    font-size: 0.8rem;
    color: #aaa;
    margin-left: auto;
}

.timeline-description {
    font-size: 0.85rem;
    color: #cccccc;
    margin-bottom: 4px;
    line-height: 1.4;
}

.timeline-project {
    font-size: 0.8rem;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 4px;
}

.timeline-project i {
    color: #E4B26F;
}

/* Collaboration Tab */
.collaboration-overview {
    text-align: center;
    margin-bottom: 32px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(228, 178, 111, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.project-type {
    font-size: 0.8rem;
    color: #aaa;
    text-transform: uppercase;
    font-weight: 500;
    margin: 0;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-active {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-badge.status-planning {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.status-badge.status-completed {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.project-progress {
    margin-bottom: 16px;
}

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

.progress-label {
    font-size: 0.85rem;
    color: #aaa;
    font-weight: 500;
}

.progress-percentage {
    font-size: 0.85rem;
    color: #E4B26F;
    font-weight: 600;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #E4B26F, #F8923E);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.project-collaborators {
    margin-bottom: 20px;
}

.collaborators-label {
    font-size: 0.85rem;
    color: #aaa;
    font-weight: 500;
    margin-bottom: 8px;
}

.collaborators-avatars {
    display: flex;
    align-items: center;
    gap: -8px;
}

.collaborator-avatar {
    width: 32px;
    height: 32px;
    margin-right: -8px;
    position: relative;
}

.collaborator-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2a2a2a;
}

.collaborator-count {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #2a2a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #aaa;
    font-weight: 600;
    margin-left: 8px;
}

.project-actions {
    display: flex;
    gap: 12px;
}

.project-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.project-btn.view {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.project-btn.view:hover {
    background: rgba(33, 150, 243, 0.2);
    transform: translateY(-2px);
}

.project-btn.manage {
    background: rgba(228, 178, 111, 0.1);
    color: #E4B26F;
    border: 1px solid rgba(228, 178, 111, 0.2);
}

.project-btn.manage:hover {
    background: rgba(228, 178, 111, 0.2);
    transform: translateY(-2px);
}

/* Settings Tab */
.settings-overview {
    text-align: center;
    margin-bottom: 32px;
}

.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 32px;
}

.settings-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
}

.section-header {
    margin-bottom: 20px;
    text-align: left;
}

.section-header .section-title {
    font-size: 1.2rem;
    justify-content: flex-start;
    margin-bottom: 4px;
}

.section-header .section-description {
    text-align: left;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
}

.form-input,
.form-textarea,
.form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: rgba(228, 178, 111, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #aaa;
}

.form-select option {
    background: #2a2a2a;
    color: #ffffff;
}

.settings-toggles {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.toggle-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.toggle-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.toggle-info {
    flex: 1;
}

.toggle-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.toggle-description {
    font-size: 0.8rem;
    color: #aaa;
    line-height: 1.4;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    transition: 0.3s;
}

.toggle-switch label:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + label {
    background: linear-gradient(45deg, #E4B26F, #F8923E);
}

.toggle-switch input:checked + label:before {
    transform: translateX(24px);
    background: #1a1a1a;
}

.permissions-matrix {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
}

.matrix-header {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.matrix-row {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.matrix-cell {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.matrix-cell.permission-name {
    justify-content: flex-start;
    text-align: left;
    font-weight: 500;
}

.matrix-cell.role-header {
    font-weight: 600;
    color: #E4B26F;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.matrix-cell.permission-checkbox {
    padding: 8px;
}

.matrix-cell input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #E4B26F;
}

.settings-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-save,
.btn-reset {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
}

.btn-save {
    background: linear-gradient(45deg, #E4B26F, #F8923E);
    color: #1a1a1a;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(228, 178, 111, 0.3);
}

.btn-reset {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-reset:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

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

.modal-container {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.modal-title i {
    color: #E4B26F;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-cancel,
.btn-primary {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.btn-primary {
    background: linear-gradient(45deg, #E4B26F, #F8923E);
    color: #1a1a1a;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(228, 178, 111, 0.3);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #cccccc;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #E4B26F;
}

.checkbox-text {
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .courscribe-premium-team {
        padding: 30px;
    }

    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .header-actions {
        justify-content: center;
    }

    .tab-navigation {
        flex-wrap: wrap;
    }
    .tab-navigation-team{
        flex-wrap: wrap;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .members-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .courscribe-premium-team {
        padding: 20px;
    }

    .team-title {
        font-size: 2rem;
    }

    .team-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .search-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: auto;
    }

    .tab-content-team {
        padding: 20px;
    }

    .roles-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .matrix-header,
    .matrix-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .matrix-cell {
        padding: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

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

@media (max-width: 480px) {
    .courscribe-premium-team {
        padding: 15px;
        margin: 10px 0;
    }

    .title-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .team-title {
        font-size: 1.75rem;
    }

    .team-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .member-card {
        text-align: center;
    }

    .member-stats {
        justify-content: center;
    }
}

/* Analytics */

.courscribe-premium-analytics {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #ffffff;
    padding: 0px 0px 40px 0px;
    border-radius: 20px;
    margin: 0;
}

/* Analytics Header */
.analytics-header {
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.header-text {
    flex: 1;
    min-width: 300px;
}

.analytics-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.title-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #E4B26F, #F8923E);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1a1a1a;
    flex-shrink: 0;
}

.gradient-text {
    background: linear-gradient(45deg, #E4B26F, #F8923E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.analytics-subtitle {
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.6;
    margin: 0;
}

.header-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
}

.date-range-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
    gap: 2px;
}

.date-btn {
    background: transparent;
    border: none;
    color: #cccccc;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.date-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.date-btn.active {
    background: linear-gradient(45deg, #E4B26F, #F8923E);
    color: #1a1a1a;
    font-weight: 600;
}

.export-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.export-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Metrics Overview */
.metrics-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.metric-card {
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: rgba(228, 178, 111, 0.3);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #E4B26F, #F8923E);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.metric-card:hover::before {
    opacity: 1;
}

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1a1a1a;
    flex-shrink: 0;
}

.gradient-bg-primary {
    background: linear-gradient(45deg, #E4B26F, #F8923E);
}

.gradient-bg-secondary {
    background: linear-gradient(45deg, #2196F3, #21CBF3);
}

.gradient-bg-success {
    background: linear-gradient(45deg, #4CAF50, #81C784);
}

.gradient-bg-warning {
    background: linear-gradient(45deg, #FF9800, #FFB74D);
}

.metric-content {
    flex: 1;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1;
}

.metric-label {
    font-size: 0.9rem;
    color: #aaa;
    font-weight: 500;
    margin-bottom: 8px;
}

.metric-change {
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.metric-change.positive {
    color: #4CAF50;
}

.metric-change.negative {
    color: #F44336;
}

.metric-change.neutral {
    color: #aaa;
}

/* Charts Section */
.charts-section {
    margin-bottom: 40px;
}

.chart-container {
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.chart-title i {
    color: #E4B26F;
}

.chart-controls {
    display: flex;
    gap: 8px;
}

.chart-control-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cccccc;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.chart-control-btn.active {
    background: linear-gradient(45deg, #E4B26F, #F8923E);
    border-color: transparent;
    color: #1a1a1a;
    font-weight: 600;
}

.chart-legend {
    display: flex;
    gap: 16px;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #aaa;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.low {
    background: rgba(228, 178, 111, 0.3);
}

.legend-color.medium {
    background: rgba(228, 178, 111, 0.6);
}

.legend-color.high {
    background: rgba(228, 178, 111, 1);
}

.chart-body {
    position: relative;
}

.chart-placeholder {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Activity Heatmap */
.heatmap-container {
    display: grid;
    grid-template-columns: repeat(53, 1fr);
    gap: 3px;
    padding: 20px;
}

.heatmap-day {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.heatmap-day:hover {
    transform: scale(1.2);
}

.heatmap-day.low {
    background: rgba(228, 178, 111, 0.3);
}

.heatmap-day.medium {
    background: rgba(228, 178, 111, 0.6);
}

.heatmap-day.high {
    background: rgba(228, 178, 111, 1);
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.analytics-card {
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.analytics-card:hover {
    transform: translateY(-2px);
    border-color: rgba(228, 178, 111, 0.3);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.card-title i {
    color: #E4B26F;
}

.card-body {
    padding: 24px;
}

/* Distribution Chart */
.distribution-chart {
    margin-bottom: 20px;
    text-align: center;
}

.distribution-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-label {
    flex: 1;
    color: #cccccc;
}

.legend-value {
    color: #ffffff;
    font-weight: 600;
}

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

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.activity-icon {
    width: 32px;
    height: 32px;
    background: rgba(228, 178, 111, 0.2);
    color: #E4B26F;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.activity-description {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 4px;
    line-height: 1.4;
}

.activity-time {
    font-size: 0.75rem;
    color: #888;
}

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

.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.insight-item.positive {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.insight-item.warning {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.2);
}

.insight-item.info {
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.insight-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.insight-item.positive .insight-icon {
    color: #4CAF50;
}

.insight-item.warning .insight-icon {
    color: #FF9800;
}

.insight-item.info .insight-icon {
    color: #2196F3;
}

.insight-content {
    flex: 1;
}

.insight-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.insight-description {
    font-size: 0.8rem;
    color: #aaa;
    line-height: 1.4;
}

/* Performance List */
.performance-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.performance-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.performance-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
}

.performance-rank {
    width: 32px;
    height: 32px;
    background: linear-gradient(45deg, #E4B26F, #F8923E);
    color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.performance-content {
    flex: 1;
}

.performance-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.performance-type {
    font-size: 0.75rem;
    color: #aaa;
    text-transform: uppercase;
    font-weight: 500;
}

.performance-metrics {
    display: flex;
    gap: 16px;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #E4B26F;
}

.metric-label {
    display: block;
    font-size: 0.7rem;
    color: #aaa;
    text-transform: uppercase;
    font-weight: 500;
}

/* AI Analytics Section */
.ai-analytics-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 8px 0;
}

.section-title i {
    color: #E4B26F;
}

.section-subtitle {
    font-size: 1rem;
    color: #aaa;
    margin: 0;
}

.ai-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.ai-metric-card {
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ai-metric-card:hover {
    transform: translateY(-4px);
    border-color: rgba(228, 178, 111, 0.3);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.ai-metric-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(228, 178, 111, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-metric-card:hover::before {
    opacity: 1;
}

.ai-metric-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #E4B26F, #F8923E);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1a1a1a;
    margin: 0 auto 16px;
}

.ai-metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1;
}

.ai-metric-label {
    font-size: 1rem;
    font-weight: 600;
    color: #E4B26F;
    margin-bottom: 8px;
}

.ai-metric-description {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .courscribe-premium-analytics {
        padding: 30px;
    }

    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .header-actions {
        align-items: stretch;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .courscribe-premium-analytics {
        padding: 20px;
    }

    .analytics-title {
        font-size: 2rem;
    }

    .metrics-overview {
        grid-template-columns: 1fr;
    }

    .chart-header {
        flex-direction: column;
        align-items: stretch;
    }

    .chart-controls {
        justify-content: center;
    }

    .date-range-selector {
        justify-content: center;
    }

    .ai-metrics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .courscribe-premium-analytics {
        padding: 15px;
        margin: 10px 0;
    }

    .title-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .analytics-title {
        font-size: 1.75rem;
    }

    .metric-card {
        flex-direction: column;
        text-align: center;
    }
}

.courscribe-premium-settings {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    width: 100%;
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
}

.courscribe-premium-settings * {
    box-sizing: border-box;
}

/* Settings Header */
.settings-header {
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(228, 178, 111, 0.2);
    padding: 24px 32px;
    position: sticky;
    top: 0;
    z-index: 10;
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.settings-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(45deg, #E4B26F, #F8923E);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 20px;
}

.settings-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.settings-subtitle {
    font-size: 0.9rem;
    color: #aaa;
    margin: 0;
}

.studio-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.status-text {
    color: #4CAF50;
    font-weight: 500;
}

/* Settings Navigation */
.settings-nav {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 32px;
    overflow-x: auto;
}

.nav-container {
    display: flex;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: none;
    border: none;
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.nav-btn:hover {
    color: #E4B26F;
    background: rgba(228, 178, 111, 0.1);
}

.nav-btn.active {
    color: #E4B26F;
    border-bottom-color: #E4B26F;
    background: rgba(228, 178, 111, 0.1);
}

.nav-btn i {
    font-size: 16px;
}

/* Settings Content */
.settings-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 32px;
}

.settings-section {
    display: none;
}

.settings-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: 32px;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.section-description {
    font-size: 1rem;
    color: #aaa;
    margin: 0;
}

/* Forms */
.settings-form {
    background: rgba(42, 42, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label i {
    color: #E4B26F;
    width: 16px;
}

.form-control-premium {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-control-premium:focus {
    outline: none;
    border-color: #E4B26F;
    box-shadow: 0 0 0 3px rgba(228, 178, 111, 0.1);
    background: rgba(255, 255, 255, 0.15);
}

.form-control-premium::placeholder {
    color: #666;
}

.form-hint {
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
}

.form-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.section-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, #E4B26F, #F8923E);
    color: #1a1a1a;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(228, 178, 111, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover .btn-glow {
    left: 100%;
}

/* Account Overview */
.account-overview {
    margin-bottom: 32px;
}

.account-card {
    background: rgba(42, 42, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px;
}

.account-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.account-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #E4B26F, #F8923E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 32px;
}

.account-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #ffffff;
}

.account-info p {
    font-size: 0.9rem;
    color: #aaa;
    margin: 0 0 8px 0;
}

.account-badge {
    background: linear-gradient(45deg, #E4B26F, #F8923E);
    color: #1a1a1a;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #E4B26F;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
}

/* Security Options */
.security-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.security-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(228, 178, 111, 0.3);
}

.security-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #4CAF50, #81C784);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.security-content {
    flex: 1;
}

.security-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #fff;
}

.security-content p {
    font-size: 0.85rem;
    color: #aaa;
    margin: 0 0 8px 0;
}

.btn-link {
    background: none;
    border: none;
    color: #E4B26F;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: #F8923E;
}

/* Toggle Controls */
.toggle-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.toggle-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.toggle-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
}

.toggle-input {
    display: none;
}

.toggle-slider {
    width: 48px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}

.toggle-input:checked + .toggle-slider {
    background: linear-gradient(45deg, #E4B26F, #F8923E);
}

.toggle-input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-content {
    flex: 1;
}

.toggle-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    display: block;
    margin-bottom: 2px;
}

.toggle-description {
    font-size: 0.8rem;
    color: #888;
    display: block;
}

/* Privacy Cards */
.privacy-options {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.privacy-card {
    background: rgba(42, 42, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
}

.card-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #E4B26F, #F8923E);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 16px;
}

.card-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #fff;
}

.card-content p {
    font-size: 0.85rem;
    color: #aaa;
    margin: 0;
}

/* Data Actions */
.data-actions {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.data-action-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.data-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(228, 178, 111, 0.3);
    transform: translateX(4px);
}

.data-action-btn.danger:hover {
    border-color: rgba(244, 67, 54, 0.3);
    background: rgba(244, 67, 54, 0.05);
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
}

.data-action-btn.export .action-icon {
    background: linear-gradient(45deg, #2196F3, #64B5F6);
}

.data-action-btn.backup .action-icon {
    background: linear-gradient(45deg, #4CAF50, #81C784);
}

.data-action-btn.danger .action-icon {
    background: linear-gradient(45deg, #f44336, #ef5350);
}

.action-content {
    flex: 1;
}

.action-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    display: block;
    margin-bottom: 2px;
}

.action-desc {
    font-size: 0.8rem;
    color: #888;
    display: block;
}

/* Notification Categories */
.notification-categories {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.notification-category {
    background: rgba(42, 42, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
}

.category-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
}

.category-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #9C27B0, #BA68C8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.category-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #fff;
}

.category-content p {
    font-size: 0.85rem;
    color: #aaa;
    margin: 0;
}

.notification-list {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notification-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

/* Billing Overview */
.billing-overview {
    margin-bottom: 32px;
}

.billing-card {
    background: rgba(42, 42, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px;
}

.billing-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.plan-icon.tier-basics {
    background: linear-gradient(45deg, #666, #888);
}

.plan-icon.tier-plus {
    background: linear-gradient(45deg, #2196F3, #64B5F6);
}

.plan-icon.tier-pro {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #1a1a1a;
}

.plan-info {
    flex: 1;
}

.plan-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #fff;
}

.plan-info p {
    font-size: 0.9rem;
    color: #aaa;
    margin: 0 0 12px 0;
}

.plan-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    font-size: 0.8rem;
    color: #4CAF50;
}

.btn-upgrade {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #1a1a1a;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.billing-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 0.8rem;
    color: #888;
}

.detail-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

/* Billing Actions */
.billing-actions {
    margin-top: 32px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.billing-action-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.billing-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(228, 178, 111, 0.3);
    transform: translateY(-2px);
}

/* Advanced Options */
.advanced-options {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.advanced-card {
    background: rgba(42, 42, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
}

.advanced-list {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.advanced-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.advanced-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.item-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #fff;
}

.item-content p {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
}

/* Success Toast */
.success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(76, 175, 80, 0.9);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.success-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-message {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .settings-header,
    .settings-nav,
    .settings-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .nav-container {
        justify-content: flex-start;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .account-header {
        flex-direction: column;
        text-align: center;
    }

    .account-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .billing-header {
        flex-direction: column;
        text-align: center;
    }

    .billing-details {
        grid-template-columns: 1fr;
    }

    .action-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .settings-title {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .nav-btn {
        padding: 12px 16px;
        font-size: 0.8rem;
    }

    .nav-btn span {
        display: none;
    }

    .settings-form {
        padding: 20px;
    }
}