/* ============================================
   MYAVATAR DASHBOARD STYLES
   Extracted from dashboard.html + Enhanced
   ============================================ */

/* ============================================
   CSS RESET & VARIABLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8DC63F;
    --primary-dark: #7ab635;
    --premium: #8DC63F;
    --premium-dark: #6ab02a;
    --success: #10b981;
    --success-dark: #059669;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --gradient-primary: linear-gradient(135deg, #8DC63F 0%, #6ab02a 100%);
    --gradient-premium: linear-gradient(135deg, #8DC63F 0%, #6ab02a 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-background: #F4F4F4;
    --gradient-sidebar: #EBEBEB;

    /* Gradient borders for hover effects */
    --gradient-border-basic: linear-gradient(135deg, #6b7280 0%, #9ca3af 50%, #6b7280 100%);
    --gradient-border-premium: linear-gradient(135deg, #8DC63F 0%, #a6d75e 50%, #8DC63F 100%);
    --gradient-border-wip: linear-gradient(135deg, #10b981 0%, #34d399 50%, #10b981 100%);

    --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);

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--gradient-background);
    min-height: 100vh;
    color: var(--gray-800);
    line-height: 1.5;
}

/* ============================================
   PAGE TRANSITION OVERLAY
   ============================================ */

.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-background);
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-transition-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.page-entering {
    animation: fadeIn 0.4s ease forwards;
}

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

/* ============================================
   APP CONTAINER & LAYOUT
   ============================================ */

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

/* ============================================
   SIDEBAR - BACKGROUNDFX STYLE
   ============================================ */

.sidebar {
    width: 280px;
    background: #EBEBEB;
    color: #58595B;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 1px 0 4px rgba(0, 0, 0, 0.06);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.logo-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #58595B;
}

.nav-menu {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

/* ============================================
   SIDEBAR WIDGETS
   ============================================ */

.account-status-widget {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.account-tier {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.account-tier i {
    color: #fbbf24;
}

.tier-name {
    color: #fbbf24;
}

.account-usage {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.usage-item {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
}

.usage-value {
    font-weight: 600;
    color: white;
}

.quick-actions-widget {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-actions-widget .quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.quick-actions-widget .quick-action-btn.primary {
    background: var(--gradient-primary);
    color: white;
}

.quick-actions-widget .quick-action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-actions-widget .quick-action-btn.premium {
    background: var(--gradient-premium);
    color: white;
}

.quick-actions-widget .quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.connected-platforms-widget {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.platform-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.platform-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.platform-item span:first-of-type {
    flex: 1;
}

.platform-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.platform-status.connected {
    background: var(--success);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.platform-status.disconnected {
    background: var(--gray-500);
}

/* ============================================
   SUPPORT & HOST MESSAGE WIDGETS
   ============================================ */

.support-avatar-widget,
.host-message-widget {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.support-avatar-header,
.host-message-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}

.support-avatar-header:hover,
.host-message-header:hover {
    background: rgba(255, 255, 255, 0.1);
}

.support-avatar-icon,
.host-avatar-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    position: relative;
}

.avatar-pulse,
.host-avatar-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--gradient-primary);
    animation: pulse 2s infinite;
    opacity: 0.5;
}

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

.support-avatar-info,
.host-message-info {
    flex: 1;
}

.support-avatar-name,
.host-message-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.support-avatar-status,
.host-message-status {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.support-toggle-icon,
.host-toggle-icon {
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s;
}

.support-chat-container,
.host-message-container {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.support-chat-messages {
    max-height: 200px;
    overflow-y: auto;
    padding: 0.75rem;
}

.support-message {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.message-avatar {
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.message-content {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.message-content ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.message-content li {
    margin-bottom: 0.25rem;
}

.support-chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.support-chat-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    color: white;
    font-size: 0.85rem;
}

.support-chat-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.support-send-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

.support-send-btn:hover {
    transform: scale(1.05);
}

.support-quick-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    flex-wrap: wrap;
}

.support-quick-actions .quick-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.support-quick-actions .quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.host-message-content {
    padding: 0.75rem;
}

.host-message {
    color: rgba(255, 255, 255, 0.9);
}

.host-message-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.host-video-container {
    margin-bottom: 0.75rem;
}

.host-video-placeholder {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
}

.host-video-placeholder:hover {
    background: rgba(0, 0, 0, 0.4);
}

.host-video-placeholder i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.host-video-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.host-video-duration {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.host-message-text {
    font-size: 0.85rem;
    line-height: 1.5;
}

.host-message-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.host-action-btn {
    flex: 1;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.5rem;
    font-size: 0.8rem;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

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

.host-action-btn:hover {
    transform: translateY(-2px);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================
   HEADER - GLASS EFFECT
   ============================================ */

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0.5rem;
}

.search-bar {
    position: relative;
}

.search-input {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    width: 300px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

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

.header-btn {
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-md);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.header-btn:hover {
    background: var(--gray-200);
    color: var(--primary);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: var(--danger);
    color: white;
}

/* ============================================
   PAGE CONTENT
   ============================================ */

.page-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

/* ============================================
   WELCOME HEADER - GRADIENT BANNER
   ============================================ */

.welcome-header {
    background: var(--gradient-background);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    color: white;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.welcome-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.welcome-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.avatar-carousel-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.avatar-carousel-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.avatar-carousel {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.carousel-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s;
    object-fit: cover;
}

.carousel-avatar:hover {
    border-color: white;
    transform: scale(1.1);
}

.no-avatars-message {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
}

.no-avatars-message a {
    color: white;
    text-decoration: underline;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0 1rem 0;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: rgba(255, 255, 255, 0.7);
}

.section-action {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.section-action:hover {
    color: white;
}

/* ============================================
   VIDEO CARDS - GLASS EFFECT
   ============================================ */

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.video-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.video-thumbnail {
    height: 160px;
    background: var(--gray-100);
    position: relative;
    overflow: hidden;
}

.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 1rem;
}

.video-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 0.5rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

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

.video-actions {
    display: flex;
    gap: 0.5rem;
}

.video-action {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.video-action.primary {
    background: var(--gradient-primary);
    color: white;
}

.video-action.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.video-action.secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.video-action.secondary:hover {
    background: var(--gray-200);
}

.video-action.refresh-btn {
    background: var(--gradient-warning);
    color: white;
}

.empty-state {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.empty-icon {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin: 0 0 0.5rem 0;
}

.empty-state p {
    color: var(--gray-500);
    margin: 0;
}

/* ============================================
   STATS GRID - GLASS CARDS
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    position: relative;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.stat-change {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* ============================================
   FEATURE ZONES
   ============================================ */

.feature-zone {
    margin-bottom: 2rem;
}

.zone-header {
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.zone-header.basic-zone {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.zone-header.premium-zone {
    background: var(--gradient-premium);
}

.zone-header.wip-zone {
    background: var(--gradient-success);
}

.zone-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.zone-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

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

/* ============================================
   FEATURE CARDS - ENHANCED WITH EFFECTS
   ============================================ */

.feature-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

/* Gradient border container for hover effect */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: transparent;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Basic card styles */
.feature-card.basic {
    border-color: var(--gray-300);
}

.feature-card.basic:hover {
    border-color: transparent;
}

.feature-card.basic:hover::before {
    opacity: 1;
    background: var(--gradient-border-basic);
    animation: gradientShift 2s ease infinite;
}

.feature-card.basic:hover {
    box-shadow: 0 8px 30px rgba(107, 114, 128, 0.3);
}

/* Premium card styles */
.feature-card.premium {
    border-color: var(--premium);
}

.feature-card.premium:hover {
    border-color: transparent;
}

.feature-card.premium:hover::before {
    opacity: 1;
    background: var(--gradient-border-premium);
    animation: gradientShift 2s ease infinite;
}

.feature-card.premium:hover {
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

/* WIP card styles */
.feature-card.wip {
    border-color: var(--success);
    opacity: 0.9;
}

.feature-card.wip:hover {
    opacity: 1;
    border-color: transparent;
}

.feature-card.wip:hover::before {
    opacity: 1;
    background: var(--gradient-border-wip);
    animation: gradientShift 2s ease infinite;
}

.feature-card.wip:hover {
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

/* Gradient animation */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ============================================
   CLICK EFFECTS
   ============================================ */

/* Color Flash Effect - Basic Cards */
.feature-card.basic.clicking {
    animation: colorFlash 0.3s ease;
}

@keyframes colorFlash {
    0% { background: rgba(255, 255, 255, 0.98); }
    50% { background: rgba(107, 114, 128, 0.2); }
    100% { background: rgba(255, 255, 255, 0.98); }
}

/* Ripple Effect - Premium Cards */
.feature-card.premium .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.4);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Pressed Effect - WIP Cards */
.feature-card.wip.clicking {
    transform: scale(0.97) translateY(2px);
    box-shadow: var(--shadow-sm);
}

.feature-card.wip {
    transition: all 0.15s ease;
}

/* ============================================
   FEATURE CARD CONTENT
   ============================================ */

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card.premium .feature-icon {
    background: var(--gradient-premium);
}

.feature-card.wip .feature-icon {
    background: var(--gradient-success);
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.premium-badge,
.wip-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.premium-badge {
    background: var(--premium);
    color: white;
}

.wip-badge {
    background: var(--success);
    color: white;
}

.feature-description {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    background: var(--gray-100);
    color: var(--gray-600);
}

.tag.new {
    background: var(--primary);
    color: white;
}

.tag.available {
    background: var(--success);
    color: white;
}

.tag.coming-soon {
    background: var(--warning);
    color: white;
}

/* ============================================
   STATUS INDICATOR
   ============================================ */

.status-indicator {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: none;
}

.status-indicator.show {
    display: block;
}

#statusContent {
    background: var(--gray-800);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
}

/* ============================================
   VIDEO MODAL
   ============================================ */

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.video-modal.show {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.modal-close:hover {
    transform: scale(1.1);
}

.modal-video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-lg);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .search-input {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .welcome-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .avatar-carousel-container {
        justify-self: center;
    }

    .header-left {
        flex: 1;
    }

    .search-bar {
        display: none;
    }

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

    .videos-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .logout-btn span {
        display: none;
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 1rem;
    }

    .welcome-header {
        padding: 1rem;
    }

    .welcome-title {
        font-size: 1.5rem;
    }
}
