/* Modern CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #f3f4f6;
    --accent: #15be56;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --background: #ffffff;
    --surface: #f9fafb;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.15);
    
    /* Typography - Unified Font System */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    
    /* Unified Font Sizes - Used by both App and mxGraph */
    --font-size-xs: 9pt;
    --font-size-sm: 10pt;
    --font-size-base: 11pt;
    --font-size-lg: 12pt;
    --font-size-xl: 14pt;
    
    /* mxGraph Integration Variables */
    --mxgraph-font-family: var(--font-sans);
    --mxgraph-font-size: var(--font-size-sm);
    --mxgraph-font-color: var(--text-primary);
    --mxgraph-background: var(--background);
    --mxgraph-border: var(--border);
    
    /* Spacing */
    --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-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
}

.brand-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    position: relative;
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transform: translateX(-50%);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 80%;
}

/* Reset active and focus states for nav links */
.nav-link:active,
.nav-link:focus {
    outline: none;
    color: var(--text-secondary);
    background: transparent;
    padding: var(--space-sm) var(--space-md);
    font-size: inherit;
    transform: none;
    box-shadow: none;
}

.nav-link:active::after,
.nav-link:focus::after {
    width: 0;
}

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

.user-name-button {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.2);
}

.user-name-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.user-name-button svg {
    transition: var(--transition);
}

.user-name-button:hover svg {
    transform: rotate(180deg);
}

/* Figma-style User Dropdown */
.figma-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #2d2d2d;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
    padding: 16px 0;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.2s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    z-index: 1000;
}

.figma-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Dropdown Header with User Info */
.figma-dropdown-header {
    display: flex;
    align-items: center;
    padding: 12px 20px 16px;
    gap: 12px;
}

.figma-dropdown-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    background: #9333ea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.figma-dropdown-avatar span {
    color: white;
    font-size: 20px;
    font-weight: 500;
}

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

.figma-avatar-edit-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: #2d2d2d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #2d2d2d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.figma-avatar-edit-icon:hover {
    background: #404040;
    transform: scale(1.1);
}

.figma-avatar-edit-icon svg {
    color: #ffffff;
    width: 10px;
    height: 10px;
    transition: color 0.2s ease;
}

.figma-avatar-edit-icon:hover svg {
    color: #ffffff;
}

.figma-dropdown-user-info {
    flex: 1;
    min-width: 0;
}

.figma-dropdown-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.figma-dropdown-email {
    color: #a0a0a0;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dropdown Menu Items */
.figma-dropdown-menu {
    padding: 0 8px;
}

.figma-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 12px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
    gap: 12px;
    margin-bottom: 4px;
}

.figma-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

.figma-dropdown-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.figma-dropdown-icon svg {
    color: #a0a0a0;
    transition: color 0.15s ease;
}

.figma-dropdown-item:hover .figma-dropdown-icon svg {
    color: #ffffff;
}

.figma-dropdown-item span {
    flex: 1;
    font-size: 14px;
    font-weight: 400;
}

.figma-dropdown-arrow {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.figma-dropdown-arrow svg {
    color: #666666;
    transition: color 0.15s ease;
}

.figma-dropdown-item:hover .figma-dropdown-arrow svg {
    color: #a0a0a0;
}

/* Dropdown Divider */
.figma-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 8px 16px;
}

/* Admin section specific styling */
.admin-section .figma-dropdown-divider {
    margin: 8px 16px 4px;
}

/* Legacy dropdown class for backward compatibility */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--space-sm);
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

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

.user-dropdown a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
}

.user-dropdown a:hover {
    background: var(--surface);
    color: var(--primary);
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, var(--accent), #12a347);
    color: white;
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(21, 190, 86, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(21, 190, 86, 0.4);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Page System */
.page {
    min-height: 100vh;
    display: none;
    flex-direction: column;
    padding-top: 72px;
}

.page.active {
    display: flex;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.05) 0%, 
        rgba(21, 190, 86, 0.05) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

/* Buttons */
.primary-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.primary-button.large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.125rem;
}

.primary-button.full-width {
    width: 100%;
    justify-content: center;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.secondary-button:hover {
    background: var(--surface);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.constellation-demo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.demo-gif {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.demo-gif:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
}

@media (max-width: 768px) {
    .demo-gif {
        max-width: 90vw;
        border-radius: 8px;
    }
}

/* Old constellation node styles removed - now using animated GIF */

/* Old constellation line styles removed - now using animated GIF */

/* Old constellation animation keyframes removed - now using animated GIF */

/* Contact Navigation Link */
.nav-link.contact-link {
    background: rgba(103, 126, 234, 0.1);
    color: var(--primary) !important;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link.contact-link:hover {
    background: var(--primary);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(103, 126, 234, 0.3);
}

/* Hero Contact CTA Button */
.contact-cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.contact-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.contact-cta-button:active {
    transform: translateY(0);
}

.contact-cta-button i {
    font-size: 1.1rem;
}

/* Responsive hero actions */
@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        gap: var(--space-md);
        align-items: stretch;
    }
    
    .hero-actions button {
        width: 100%;
        justify-content: center;
    }
    
    .contact-cta-button {
        order: 3; /* Show contact button last on mobile */
    }
}

/* Floating Contact Button (FAB) */
.floating-contact-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.2rem;
}

.floating-contact-fab:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.floating-contact-fab:active {
    transform: translateY(-1px) scale(1.02);
}

/* FAB Tooltip */
.fab-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.fab-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
}

.floating-contact-fab:hover .fab-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
}

/* FAB responsive adjustments */
@media (max-width: 768px) {
    .floating-contact-fab {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        font-size: 1.1rem;
    }
    
    .fab-tooltip {
        display: none; /* Hide tooltip on mobile to avoid clutter */
    }
}

/* Hide FAB on pages where it might interfere (room page, admin, etc.) */
body.room-active .floating-contact-fab,
body.admin-active .floating-contact-fab {
    display: none;
}

/* Contact Section Enhancements */
#contact-section {
    scroll-margin-top: 100px; /* Account for fixed navbar */
}

/* Highlight the Contact Us card when scrolled to */
#contact-section .feature-card:nth-child(2) {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

#contact-section .feature-card:nth-child(2):hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(103, 126, 234, 0.15);
    transform: translateY(-2px);
}

/* Enhanced contact links in footer */
#contact-section .footer-links a {
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 2px 0;
    display: inline-block;
}

#contact-section .footer-links a:hover {
    background: var(--primary);
    color: white !important;
    transform: translateX(5px);
}

#contact-section .footer-links a i {
    width: 16px;
    text-align: center;
}

/* Facebook-style Login Page - Override existing page styles */
#login-page {
    padding-top: 0 !important;
    background: #f0f2f5 !important;
}

.facebook-auth-container {
    min-height: 100vh;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.facebook-auth-card {
    background: white !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1) !important;
    padding: 20px !important;
    width: 100% !important;
    max-width: 396px !important;
    text-align: center !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.facebook-auth-header {
    margin-bottom: 20px;
}

.facebook-auth-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}

.facebook-auth-title {
    font-size: 28px;
    font-weight: bold;
    color: #1877f2;
    margin: 0 0 8px 0;
    font-family: 'Space Grotesk', sans-serif;
}

.facebook-auth-subtitle {
    font-size: 16px;
    color: #606770;
    margin: 0 0 24px 0;
    line-height: 1.34;
}

.facebook-auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.facebook-input {
    width: 100% !important;
    height: 52px !important;
    padding: 14px 16px !important;
    font-size: 17px !important;
    line-height: 20px !important;
    color: #1c1e21 !important;
    background: #ffffff !important;
    border: 1px solid #dddfe2 !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    outline: none !important;
    transition: border-color 0.2s ease !important;
    margin: 0 !important;
}

.facebook-input::placeholder {
    color: #90949c;
}

.facebook-input:focus {
    border-color: #1877f2;
    box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.2);
}

.facebook-login-btn {
    width: 100% !important;
    height: 48px !important;
    background: #1877f2 !important;
    border: none !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 48px !important;
    padding: 0 16px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    text-decoration: none !important;
    display: block !important;
}

.facebook-login-btn:hover {
    background: #166fe5;
}

.facebook-login-btn:active {
    background: #1464d0;
}

.facebook-forgot-link {
    color: #1877f2;
    font-size: 14px;
    text-decoration: none;
    margin: 16px 0;
    display: inline-block;
}

.facebook-forgot-link:hover {
    text-decoration: underline;
}

.facebook-divider {
    margin: 20px 0;
    position: relative;
}

.facebook-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dadde1;
}

.facebook-divider span {
    background: white;
    color: #606770;
    font-size: 14px;
    padding: 0 16px;
    position: relative;
}

.facebook-create-btn {
    background: #42b883 !important;
    border: none !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    height: 48px !important;
    line-height: 48px !important;
    padding: 0 16px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    text-decoration: none !important;
    display: block !important;
}

.facebook-create-btn:hover {
    background: #369870;
}

.facebook-create-btn:active {
    background: #2e8660;
}

.facebook-auth-footer {
    margin-top: 28px;
    text-align: center;
}

.facebook-auth-footer p {
    color: #606770;
    font-size: 14px;
    line-height: 1.38;
    margin: 0;
    max-width: 300px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .facebook-auth-container {
        padding: var(--space-lg);
        background: white;
    }
    
    .facebook-auth-card {
        box-shadow: none;
        padding: 16px;
        max-width: none;
    }
    
    .facebook-auth-title {
        font-size: 24px;
    }
    
    .facebook-input {
        height: 48px;
        font-size: 16px; /* Prevent iOS zoom */
    }
    
    .facebook-login-btn,
    .facebook-create-btn {
        height: 44px;
        line-height: 44px;
        font-size: 18px;
    }
}

/* Tutorial button positioned under main button */
.dashboard-actions .tutorial-under-main {
    margin-top: var(--space-lg) !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    width: auto !important;
    min-width: 160px !important;
    background: transparent !important;
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
    border-radius: var(--radius-lg) !important;
    padding: var(--space-md) var(--space-lg) !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
}

.dashboard-actions .tutorial-under-main:hover {
    background: var(--primary) !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

/* Features Section */
.features {
    padding: var(--space-3xl) 0;
    background: var(--surface);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-3xl);
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.feature-card {
    background: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer Content Styles */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: var(--space-xs) 0;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-text p {
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
}

.footer-text p:last-child {
    margin-bottom: 0;
    font-style: italic;
    opacity: 0.8;
}

/* Auth Pages */
.auth-container {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.05) 0%, 
        rgba(21, 190, 86, 0.05) 100%);
}

.auth-card {
    background: white;
    padding: var(--space-3xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
}

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

.auth-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

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

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

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

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

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input {
    padding: var(--space-md);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    width: 100%;
    box-sizing: border-box;
    min-width: 0; /* Prevent flex/grid overflow */
}

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

.auth-footer {
    margin-top: var(--space-xl);
    text-align: center;
}

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

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.auth-footer a:hover {
    color: var(--primary-dark);
}

/* Dashboard */
.dashboard-header {
    text-align: center;
    padding: var(--space-3xl) 0;
}

.dashboard-header h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.dashboard-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.dashboard-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: var(--space-xl) 0;
}

/* Tutorial */
.tutorial-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-2xl) 0;
}

.tutorial-step {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: var(--space-xl);
}

.tutorial-step h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--primary);
}

.tutorial-step p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner.active {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 100px;
    right: var(--space-lg);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary);
    max-width: 400px;
    transform: translateX(100%);
    opacity: 0;
    transition: var(--transition);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left-color: var(--accent);
}

.toast.error {
    border-left-color: #ef4444;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        padding: var(--space-xl);
    }
    
    .container,
    .nav-container {
        padding: 0 var(--space-md);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .dashboard-header h1 {
        font-size: 2.5rem;
    }
}

/* Room Page Styles - Graph Editor Integration */
#room-page {
    padding-top: 0 !important;
    min-height: 100vh !important;
}

#room-container {
    width: 100% !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

/* Graph Editor Body Class */
body.room-active {
    margin: 0 !important;
    overflow: hidden !important;
}

/* Graph Editor Toolbar Positioning */
.geToolbarContainer {
    top: 47px !important; /* Closer to navbar - reduced gap */
    z-index: 50 !important;
}

/* Graph Editor Main Area */
.geDiagramContainer {
    top: 67px !important; /* Moved up 10px for tighter spacing */
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
}

/* Ensure Graph Editor styles don't conflict with modern navbar */
body.room-active .navbar .nav-link {
    /* Preserve our modern navbar styling even in room mode */
    position: relative !important;
    padding: var(--space-sm) var(--space-md) !important;
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    border-radius: var(--radius) !important;
    transition: var(--transition) !important;
}

body.room-active .navbar .nav-link:hover {
    color: var(--primary) !important;
    background: rgba(99, 102, 241, 0.1) !important;
}

body.room-active .navbar .nav-link::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    width: 0 !important;
    height: 2px !important;
    background: var(--primary) !important;
    transform: translateX(-50%) !important;
    transition: var(--transition) !important;
}

body.room-active .navbar .nav-link:hover::after {
    width: 80% !important;
}

/* Reset active and focus states for room nav links */
body.room-active .navbar .nav-link:active,
body.room-active .navbar .nav-link:focus {
    outline: none !important;
    color: var(--text-secondary) !important;
    background: transparent !important;
    padding: var(--space-xs) var(--space-sm) !important;
    font-size: 0.85rem !important;
    transform: none !important;
    box-shadow: none !important;
}

body.room-active .navbar .nav-link:active::after,
body.room-active .navbar .nav-link:focus::after {
    width: 0 !important;
}

/* Preserve user name button styling in room */
body.room-active .user-name-button {
    display: flex !important;
    align-items: center !important;
    gap: var(--space-sm) !important;
    padding: var(--space-sm) var(--space-md) !important;
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--radius-full) !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    transition: var(--transition) !important;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.2) !important;
}

body.room-active .user-name-button:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3) !important;
}

/* Reset active and focus states for user name button */
body.room-active .user-name-button:active,
body.room-active .user-name-button:focus {
    outline: none !important;
    transform: none !important;
    padding: var(--space-xs) var(--space-sm) !important;
    font-size: 0.8rem !important;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.2) !important;
}

/* Preserve CTA button styling in room */
body.room-active .cta-button {
    background: linear-gradient(135deg, var(--accent), #12a347) !important;
    color: white !important;
    padding: var(--space-sm) var(--space-lg) !important;
    border: none !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    box-shadow: 0 4px 15px rgba(21, 190, 86, 0.3) !important;
}

body.room-active .cta-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(21, 190, 86, 0.4) !important;
}

/* Fix Graph Editor z-index issues */
.geSidebarContainer {
    z-index: 40 !important;
}

.geFormatContainer {
    z-index: 40 !important;
}

/* Modern navbar should stay on top in room - smaller height */
#room-page .navbar {
    z-index: 1000 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

/* Smaller navbar in room mode to maximize Graph Editor space */
body.room-active .nav-container {
    height: 50px !important; /* Reduced from 72px */
    padding: 0 var(--space-md) !important;
}

body.room-active .brand-logo {
    width: 28px !important; /* Smaller logo */
    height: 28px !important;
}

body.room-active .brand-text {
    font-size: 1rem !important; /* Smaller brand text */
}

body.room-active .nav-link {
    padding: var(--space-xs) var(--space-sm) !important; /* Smaller padding */
    font-size: 0.85rem !important; /* Smaller font */
}

body.room-active .user-name-button {
    padding: var(--space-xs) var(--space-sm) !important; /* Smaller padding */
    font-size: 0.8rem !important; /* Smaller font */
}

body.room-active .cta-button {
    padding: var(--space-xs) var(--space-md) !important; /* Smaller padding */
    font-size: 0.8rem !important; /* Smaller font */
}

/* Comprehensive Graph Editor font lock system */
.geEditor,
.geEditor * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 10pt !important;
}

/* Lock all SVG text elements */
.geEditor svg text,
.geEditor g text,
.geDiagramContainer svg text,
.geDiagramContainer g text {
    font-size: 10pt !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Prevent mxGraph dynamic font changes */
.geEditor text[font-size],
.geEditor [style*="font-size"],
.geDiagramContainer text[font-size],
.geDiagramContainer [style*="font-size"] {
    font-size: 10pt !important;
}

/* Lock shape text and labels */
.geEditor .mxCellRenderer text,
.geEditor .mxText,
.geEditor .mxTextNode {
    font-size: 10pt !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Lock toolbar and sidebar fonts */
.geToolbarContainer,
.geToolbarContainer *,
.geSidebarContainer,
.geSidebarContainer *,
.geFormatContainer,
.geFormatContainer * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 10pt !important;
}

/* Lock dialogs and popup menus */
.mxPopupMenu,
.mxPopupMenu *,
.mxWindow,
.mxWindow *,
.mxDialog,
.mxDialog * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 10pt !important;
}

/* Override any dynamic style changes */
.geEditor [style*="font-size"]:not([style*="font-size: 10pt"]) {
    font-size: 10pt !important;
}

/* Lock selected/highlighted text */
.geEditor .mxCellHighlight text,
.geEditor .mxSelectionBorder text {
    font-size: 10pt !important;
}

/* =============================================================================
   UNIFIED CSS SYSTEM - Integration between Modern App and mxGraph
   =============================================================================
   This section provides unified styles that prevent conflicts between the 
   modern application CSS and mxGraph CSS systems.
*/

/* Unified Font System - Applied to both App and mxGraph */
body, 
.navbar,
.nav-link,
.user-name-button,
.cta-button,
.geEditor,
.geEditor * {
    font-family: var(--mxgraph-font-family) !important;
}

/* Unified Font Size System */
.nav-link,
.user-name-button,
.cta-button {
    font-size: var(--font-size-base) !important;
}

.geEditor,
.geEditor *,
.geEditor svg text,
.geEditor g text,
.geEditor text,
.geEditor [style*="font-size"] {
    font-size: var(--mxgraph-font-size) !important;
}

/* State Reset System - Prevents stuck states - only in room context */
body.room-active .nav-link,
body.room-active .user-name-button,
body.room-active .cta-button {
    transition: var(--transition) !important;
}

body.room-active .nav-link:active,
body.room-active .nav-link:focus,
body.room-active .user-name-button:active,
body.room-active .user-name-button:focus,
body.room-active .cta-button:active,
body.room-active .cta-button:focus {
    transform: none !important;
    font-size: var(--font-size-base) !important;
    padding: var(--space-sm) var(--space-md) !important;
    outline: none !important;
}

/* mxGraph Integration Layer */
.geEditor {
    background: var(--mxgraph-background) !important;
    border-color: var(--mxgraph-border) !important;
    color: var(--mxgraph-font-color) !important;
}

/* Prevent mxGraph from overriding our unified font system */
.geEditor .mxCellRenderer text,
.geEditor .mxText,
.geEditor .mxTextNode,
.geEditor .mxCellHighlight text,
.geEditor .mxSelectionBorder text {
    font-family: var(--mxgraph-font-family) !important;
    font-size: var(--mxgraph-font-size) !important;
}

/* Force consistency across all text elements */
.geEditor text[font-size],
.geEditor [style*="font-size"],
.geEditor [style*="font-family"] {
    font-family: var(--mxgraph-font-family) !important;
    font-size: var(--mxgraph-font-size) !important;
}

/* Reset system for navbar in room mode */
body.room-active .navbar .nav-link,
body.room-active .navbar .user-name-button,
body.room-active .navbar .cta-button {
    font-size: var(--font-size-base) !important;
    font-family: var(--mxgraph-font-family) !important;
    transition: var(--transition) !important;
}

/* Comprehensive state reset on any interaction */
body.room-active .navbar .nav-link:active,
body.room-active .navbar .nav-link:focus,
body.room-active .navbar .user-name-button:active,
body.room-active .navbar .user-name-button:focus,
body.room-active .navbar .cta-button:active,
body.room-active .navbar .cta-button:focus {
    transform: none !important;
    font-size: var(--font-size-base) !important;
    padding: var(--space-sm) var(--space-md) !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* =============================================================================
   NUCLEAR CSS OVERRIDES - Maximum Specificity to Override mxGraph
   =============================================================================
   These rules use maximum specificity to ensure they override mxGraph styles
*/

/* Nuclear font override for all mxGraph elements */
html body .geEditor,
html body .geEditor *,
html body .geEditor svg,
html body .geEditor svg *,
html body .geEditor text,
html body .geEditor g,
html body .geEditor g *,
html body .geEditor div,
html body .geEditor div *,
html body .geEditor span,
html body .geEditor span * {
    font-family: var(--mxgraph-font-family) !important;
    font-size: var(--mxgraph-font-size) !important;
}

/* Nuclear override for all text elements */
html body .geEditor text[font-size],
html body .geEditor [style*="font-size"],
html body .geEditor [style*="font-family"],
html body .geEditor svg text[font-size],
html body .geEditor g text[font-size] {
    font-family: var(--mxgraph-font-family) !important;
    font-size: var(--mxgraph-font-size) !important;
}

/* Nuclear override for navbar elements - only in room context */
html body.room-active .navbar .nav-link,
html body.room-active .navbar .user-name-button,
html body.room-active .navbar .cta-button {
    font-family: var(--mxgraph-font-family) !important;
    font-size: var(--font-size-base) !important;
    transform: none !important;
    transition: var(--transition) !important;
}

/* Nuclear state reset for navbar interactions */
/* Only apply mxGraph overrides in room context, not on home page */
body.room-active .navbar .nav-link:active,
body.room-active .navbar .nav-link:focus,
body.room-active .navbar .nav-link:hover,
body.room-active .navbar .user-name-button:active,
body.room-active .navbar .user-name-button:focus,
body.room-active .navbar .user-name-button:hover,
body.room-active .navbar .cta-button:active,
body.room-active .navbar .cta-button:focus,
body.room-active .navbar .cta-button:hover {
    font-family: var(--mxgraph-font-family) !important;
    font-size: var(--font-size-base) !important;
    transform: none !important;
    padding: var(--space-sm) var(--space-md) !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Force mxGraph text elements to use unified theme */
html body .geEditor .mxCellRenderer text,
html body .geEditor .mxText,
html body .geEditor .mxTextNode,
html body .geEditor .mxCellHighlight text,
html body .geEditor .mxSelectionBorder text,
html body .geEditor .mxTooltip,
html body .geEditor .mxPopupMenu,
html body .geEditor .mxWindow {
    font-family: var(--mxgraph-font-family) !important;
    font-size: var(--mxgraph-font-size) !important;
}

/* Override any inline styles applied by mxGraph */
html body .geEditor *[style*="font-size"] {
    font-size: var(--mxgraph-font-size) !important;
}

html body .geEditor *[style*="font-family"] {
    font-family: var(--mxgraph-font-family) !important;
}

/* =============================================
   HOME PAGE NAVBAR STYLES
   ============================================= */

/* Navbar Container */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 70px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Brand Section */
.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.brand-logo {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.brand-logo:hover {
    transform: scale(1.05);
}

.brand-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--font-size-base);
    border-radius: 8px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--surface);
    transform: translateY(-1px);
}

.nav-link:active,
.nav-link:focus {
    color: var(--primary);
    background: var(--surface);
    transform: none;
}

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

.user-name-button {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--font-size-base);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.user-name-button:hover {
    color: var(--primary);
    background: var(--surface);
    transform: translateY(-1px);
}

.user-name-button:active,
.user-name-button:focus {
    color: var(--primary);
    background: var(--surface);
    transform: none;
    outline: none;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm) 0;
    margin-top: var(--space-xs);
    display: none;
    z-index: 1100;
}

.user-dropdown.active {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.user-dropdown a:hover {
    color: var(--primary);
    background: var(--surface);
}

/* Dropdown divider */
.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: var(--space-sm) 0;
}

/* Admin section styling */
.admin-section {
    border-left: 3px solid var(--primary);
    padding-left: var(--space-sm);
    margin-left: var(--space-sm);
}

.admin-section a {
    color: var(--primary) !important;
    font-weight: 600;
}

/* CTA Button */
.cta-button {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(135deg, var(--accent), #13a146);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(21, 190, 86, 0.4);
    color: white;
}

.cta-button:active,
.cta-button:focus {
    transform: none;
    color: white;
    outline: none;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 var(--space-md);
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
    
    .brand-logo {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 var(--space-sm);
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .brand-logo {
        height: 30px;
    }
}

/* Page Layout Adjustments for Fixed Navbar */
.page {
    padding-top: 70px;
}

/* .page.active display rule removed - already defined above with display: flex */

/* Ensure navbar is visible on all pages except room */
body:not(.room-active) .navbar {
    display: block;
}

body.room-active .navbar {
    display: none;
}

/* Dashboard Secondary Actions */
.secondary-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-lg);
}

.secondary-button {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    background: transparent;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 500;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.secondary-button:hover {
    color: var(--primary);
    background: var(--surface);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.secondary-button:active,
.secondary-button:focus {
    color: var(--primary);
    background: var(--surface);
    border-color: var(--primary);
    transform: none;
    outline: none;
}

/* =============================================
   CONTRIBUTE PAGE STYLES
   ============================================= */

.contribution-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: var(--transition);
}

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

.contribution-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contribution-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: var(--transition);
}

.contribution-option:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.contribution-option.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.contribution-option.clickable:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
    background: rgba(99, 102, 241, 0.05);
}

.contribution-option.large {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(59, 130, 246, 0.1));
    border: 2px solid var(--primary);
}

.contribution-option.large:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(59, 130, 246, 0.2));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.contribution-option .amount {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.contribution-option .period {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.contribution-note {
    text-align: center;
    padding: 0.5rem;
}

.contact-info {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary);
    background: var(--surface);
    text-decoration: none;
}

.contact-link i {
    width: 20px;
    text-align: center;
    color: var(--primary);
}

/* Contribute page specific button */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    color: white;
}

/* Content section spacing */
.content-section {
    padding: 2rem 0;
}

/* Iframe container styling */
.iframe-container {
    position: relative;
    width: 100%;
    min-height: 800px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.iframe-container iframe {
    width: 100%;
    height: 800px;
    border: none;
    border-radius: 8px;
    background: #fff;
}

/* Fallback content styling */
.fallback-content {
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    text-align: center;
}

/* Responsive iframe */
@media (max-width: 768px) {
    .iframe-container {
        min-height: 600px;
    }
    
    .iframe-container iframe {
        height: 600px;
    }
    
    .fallback-content {
        padding: 1.5rem;
    }
}

/* Modern card styling */
.modern-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.modern-card:hover {
    box-shadow: var(--shadow-lg);
}

/* Hero section for contribute page */
.hero-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(59, 130, 246, 0.1));
    padding: 5rem 0 3rem;
    min-height: auto;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Contribution buttons */
.contribute-btn {
    display: block;
    padding: 18px 24px;
    margin: 10px 0;
    border-radius: 18px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 16px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contribute-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.contribute-btn-blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.contribute-btn-blue:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
}

.contribute-btn-cyan {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

.contribute-btn-cyan:hover {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    color: white;
}

.contribution-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 2rem 0;
}

/* Social links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    text-decoration: none;
}

.social-link span {
    font-size: 14px;
    font-weight: 500;
}

/* Responsive design for contribute page */
@media (max-width: 768px) {
    .contribution-options {
        gap: 0.75rem;
    }
    
    .contribution-option {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-links {
        gap: 0.75rem;
    }
    
    .contact-link {
        padding: 0.5rem;
    }
    
    .hero-section {
        padding: 3rem 0 2rem;
    }
    
    .iframe-container {
        margin: 0 -1rem;
    }
    
    .contribute-btn {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-link {
        padding: 0.75rem;
    }
}

/* ============================================================================ */
/* SESSION TIMER STYLES */
/* ============================================================================ */

/* Session Timer Container - mxGraph navbar compatible */
.session-timer-container,
.geNavTimerContainer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    font-size: 11pt; /* Match mxGraph navbar font size */
    font-weight: 500;
    height: 100%; /* Fill navbar height */
    white-space: nowrap;
}

.session-timer-label {
    color: #6b7280;
    font-size: 10pt; /* Match navbar font size */
    font-family: var(--mxgraph-font-family, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
}

.session-timer {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-weight: 600;
    font-size: 11pt; /* Match navbar font size */
    padding: 3px 6px;
    border-radius: 3px;
    min-width: 45px;
    text-align: center;
    transition: all 0.3s ease;
    height: 24px; /* Fit within 50px navbar */
    display: flex;
    align-items: center;
    justify-content: center;
}

.session-timer.normal {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.session-timer.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
    animation: pulse-warning 2s infinite;
}

.session-timer.critical {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    animation: pulse-critical 1s infinite;
}

.session-timer.initial-countdown {
    background: rgba(103, 126, 234, 0.15);
    color: #667eea;
    border: 1px solid rgba(103, 126, 234, 0.3);
    font-size: 12pt;
    font-weight: 700;
    animation: pulse-initial 1s infinite;
    text-align: center;
    min-width: 30px;
}

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

@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

/* Session Expired Modal Styling */
#sessionExpiredModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

#sessionExpiredModal .modal-header {
    border-bottom: 1px solid #f3f4f6;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

#sessionExpiredModal .modal-title {
    color: #92400e;
    font-weight: 600;
}

#sessionExpiredModal .modal-body {
    padding: 2rem;
}

#sessionExpiredModal .fa-clock {
    color: #f59e0b;
}

#sessionExpiredModal .btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

#sessionExpiredModal .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

#sessionExpiredModal .btn-secondary {
    background: #6b7280;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
}

/* Mobile Responsiveness for Session Timer */
@media (max-width: 768px) {
    .session-timer-container {
        padding: 0 8px;
        font-size: 12px;
    }
    
    .session-timer-label {
        display: none; /* Hide label on mobile to save space */
    }
    
    .session-timer {
        font-size: 12px;
        padding: 3px 6px;
        min-width: 45px;
    }
}

@media (max-width: 480px) {
    .session-timer-container {
        padding: 0 4px;
    }
    
    .session-timer {
        font-size: 11px;
        padding: 2px 4px;
        min-width: 40px;
    }
}

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

.admin-header {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.admin-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

#admin-user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#admin-user-info p {
    margin: 0;
    color: var(--text-primary);
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.admin-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.admin-card-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
}

.admin-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.admin-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.admin-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
    color: white;
    text-decoration: none;
}

.admin-logs {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

.admin-logs h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.activity-log {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.activity-log p {
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

/* Additional Admin Pages Styles */
.back-button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.admin-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.admin-actions .admin-button {
    flex: 0 0 auto;
}

.user-management-content,
.webhook-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
}

.user-list {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    min-height: 200px;
}

.admin-status {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-color);
}

.webhook-logs {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.webhook-entry {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #007bff;
}

.webhook-entry .timestamp {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.webhook-entry .event-type {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.webhook-entry pre {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 0.5rem;
    overflow-x: auto;
    margin: 0;
}

/* User Management Styles */
.user-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.user-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--accent-color);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-info strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.user-email {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.user-status {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
    min-width: 60px;
    text-align: center;
}

.status-active, .status-paid {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-trial {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-cancelled, .status-unknown {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

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

.mini-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.mini-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.error {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
}

/* Compact Admin Dashboard Styles */
.admin-dashboard {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.admin-title h1 {
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-user-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.admin-user-info strong {
    color: var(--accent-color);
}

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

.quick-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--text-primary);
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: var(--text-primary);
}

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

/* Modern Compact Admin Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-card-header h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.refresh-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.stat-card-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 0.75rem;
}

.stat-mini {
    text-align: center;
    position: relative;
}

.stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.stat-mini-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Real-time indicator */
.realtime-card {
    border-left: 3px solid #10b981;
}

.realtime-stat {
    position: relative;
}

.realtime-stat::before {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading-dot {
    animation: spin 1s linear infinite;
    display: inline-block;
    color: #10b981;
}

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

/* Actions card styling */
.actions-card {
    border-left: 3px solid var(--primary-color);
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem;
    border: none;
    border-radius: 6px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.action-btn:hover {
    background: rgba(var(--primary-rgb), 0.2);
    transform: translateY(-1px);
}

/* Clickable stats styling */
.clickable-stat {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable-stat:hover {
    transform: scale(1.05);
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 8px;
    padding: 0.25rem;
    margin: -0.25rem;
}

.clickable-stat:hover .stat-value {
    color: var(--primary-color);
}

/* Tooltip styling */
.stat-mini[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: wrap;
    max-width: 200px;
    z-index: 1000;
    margin-bottom: 5px;
}

/* User Details Modal */
.user-details-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.user-details-content {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.user-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.user-details-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.user-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease;
}

.user-list-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

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

.user-email {
    font-weight: 500;
    color: var(--text-primary);
}

.user-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.user-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-session {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .user-details-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .user-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.stat-item .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.admin-panel {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-panel.full-width {
    grid-column: 1 / -1;
}

.admin-panel h3 {
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.tool-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tool-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    width: 100%;
    text-align: left;
}

.tool-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.tool-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.tool-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.activity-compact {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
}

.user-overview {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.user-overview-grid {
    display: grid;
    gap: 0.5rem;
}

.user-overview-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: background 0.2s ease;
}

.user-overview-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email-small {
    color: var(--text-secondary);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-status-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    min-width: 50px;
}

/* User Management Specific Styles */
.user-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.user-stats-row .stat-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-stats-row .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.user-stats-row .stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.setting-description {
    margin-bottom: 1rem;
}

.setting-description p {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.setting-description small {
    color: var(--text-secondary);
    line-height: 1.4;
}

.setting-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.time-input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 0.5rem;
    color: #333;
    width: 80px;
    font-size: 0.9rem;
}

.time-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 1);
}

.admin-button.secondary {
    background: rgba(23, 162, 184, 0.2);
    border-color: rgba(23, 162, 184, 0.3);
    color: #17a2b8;
}

.admin-button.secondary:hover {
    background: rgba(23, 162, 184, 0.3);
    transform: translateY(-2px);
}

.status-message {
    font-size: 0.9rem;
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.status-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-message.loading {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.users-table-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 1rem;
    min-height: 200px;
    overflow-x: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.placeholder-message {
    text-align: center;
    color: #666;
    padding: 2rem;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.users-table th,
.users-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
    font-size: 0.9rem;
}

.users-table th {
    background: rgba(102, 126, 234, 0.1);
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

.users-table tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.user-row-inactive {
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.02);
}

.role-select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 0.4rem 0.5rem;
    color: #333;
    font-size: 0.85rem;
    width: 100%;
}

.role-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.status-toggle {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: all 0.2s ease;
}

.status-toggle.status-active {
    background: #28a745;
    color: white;
}

.status-toggle.status-inactive {
    background: #dc3545;
    color: white;
}

.status-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Email verification status and bypass styles */
.email-verification-status {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 0.3rem;
    display: inline-block;
    min-width: 80px;
}

.email-verification-status.verified {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.email-verification-status.unverified {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.email-verification-status.bypassed {
    background: #e2e3e5;
    color: #6c757d;
    border: 1px solid #ced4da;
    opacity: 0.8;
    font-style: italic;
}

.bypass-toggle-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    min-width: 120px;
    text-align: center;
}

.bypass-toggle-btn.bypass-inactive {
    background: #ffc107;
    color: #212529;
    border: 1px solid #e0a800;
}

.bypass-toggle-btn.bypass-active {
    background: #fd7e14;
    color: white;
    border: 1px solid #e8670e;
}

.bypass-toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

.bypass-toggle-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.action-button {
    padding: 0.3rem 0.6rem;
    margin: 0.1rem;
    font-size: 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-button:hover {
    transform: translateY(-1px);
}

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

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

.edit-btn { 
    background: #ffc107; 
    color: black; 
}

.changed {
    background: #ff6b35 !important;
    animation: pulse 1s infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .admin-dashboard {
        margin: 1rem;
        padding: 1rem;
    }
    
    .admin-header-compact {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-main-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .admin-title h1 {
        font-size: 1.5rem;
    }
}

.activity-log .log-entry {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-log .log-time {
    color: var(--text-muted);
    font-size: 0.8rem;
    min-width: 80px;
}

.activity-log .log-message {
    color: var(--text-secondary);
    flex: 1;
}

.activity-log .log-success {
    color: #10b981;
}

.activity-log .log-warning {
    color: #f59e0b;
}

.activity-log .log-error {
    color: #ef4444;
}

/* Admin Dashboard Responsive Design */
@media (max-width: 768px) {
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .admin-card {
        padding: 1.5rem;
    }
    
    .admin-card-icon {
        font-size: 2.5rem;
    }
    
    .admin-header h1 {
        font-size: 2rem;
    }
    
    #admin-user-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ===============================================
   FIGMA USER SETTINGS MODAL STYLES
   =============================================== */

/* Modal overlay */
.figma-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    animation: figmaFadeIn 0.2s ease-out;
}

.figma-modal-overlay.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto; /* Allow scrolling if content is too tall */
}

/* Modal container */
.figma-modal {
    background: #ffffff;
    border-radius: 12px;
    max-width: 500px; /* Reduced from 600px for better mobile experience */
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.15);
    animation: figmaSlideIn 0.2s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    margin: auto; /* Center the modal */
    position: relative; /* Ensure proper positioning */
    
    /* Ensure modal is visible and centered */
    transform: translateY(0);
    top: auto;
    left: auto;
}

/* Header with tabs */
.figma-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 0;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
}

.figma-tabs {
    display: flex;
    gap: 0;
}

.figma-tab {
    background: none;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #666666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.figma-tab.active {
    color: #333333;
    border-bottom-color: #333333;
}

.figma-tab.disabled {
    color: #cccccc;
    cursor: not-allowed;
}

.figma-tab:hover:not(.disabled) {
    color: #333333;
}

.figma-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #666666;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: absolute;
    right: 16px;
    top: 16px;
}

.figma-close:hover {
    background: #f5f5f5;
    color: #333333;
}

/* Modal content */
.figma-modal-content {
    padding: 32px 24px 24px;
}

/* Avatar section */
.figma-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

.figma-avatar {
    width: 120px;
    height: 120px;
    background: #9333ea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.figma-avatar span {
    color: white;
    font-size: 48px;
    font-weight: 500;
}

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

.figma-edit-btn {
    background: none;
    border: none;
    color: #666666;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.figma-edit-btn:hover {
    background: #f5f5f5;
    color: #333333;
}

/* Sections */
.figma-section {
    margin-bottom: 32px;
}

.figma-section:last-child {
    margin-bottom: 0;
}

.figma-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 16px 0;
}

/* Name section */
.figma-name-display {
    font-size: 16px;
    color: #333333;
    margin-bottom: 8px;
}

.figma-action-link {
    background: none;
    border: none;
    color: #0066cc;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.figma-action-link:hover {
    text-decoration: underline;
}

/* Name form */
.figma-name-form {
    margin-top: 16px;
}

.figma-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.figma-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #333333;
    background: #ffffff;
    transition: all 0.2s ease;
}

.figma-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.figma-button-group {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.figma-cancel-btn {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.figma-cancel-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.figma-save-btn {
    background: #0066cc;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.figma-save-btn:hover {
    background: #0052a3;
}

/* Email section */
.figma-email-display {
    font-size: 16px;
    color: #333333;
    margin-bottom: 4px;
}

.figma-managed-by {
    font-size: 14px;
    color: #666666;
}

/* Role section */
.figma-role-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.figma-info-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6b7280;
    flex-shrink: 0;
    margin-top: 2px;
}

.figma-role-text {
    flex: 1;
}

.figma-role-display {
    font-size: 16px;
    color: #333333;
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: capitalize;
}

.figma-role-desc {
    font-size: 14px;
    color: #666666;
    line-height: 1.4;
}

.figma-subscription-display {
    font-size: 14px;
    color: #666666;
    text-transform: capitalize;
}

/* Member since */
.figma-member-since {
    font-size: 14px;
    color: #666666;
}

/* Dividers */
.figma-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 24px 0;
}

/* Animations */
@keyframes figmaFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes figmaSlideIn {
    from { 
        opacity: 0;
        transform: scale(0.96) translateY(-8px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .figma-modal {
        margin: 16px;
        max-width: none;
        width: calc(100vw - 32px); /* Ensure proper width calculation */
    }
    
    .figma-modal-content {
        padding: 24px 20px 20px;
    }
    
    .figma-input-group {
        flex-direction: column;
    }
    
    .figma-button-group {
        flex-direction: column-reverse;
    }
    
    .figma-cancel-btn,
    .figma-save-btn {
        width: 100%;
    }
    
    /* Fix form field overflow in modals */
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .form-group input {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Email verification modal responsive fixes */
    #email-verification-required-modal .figma-section-title {
        font-size: 18px;
        text-align: center;
        margin: 0 0 1rem 0;
        word-wrap: break-word;
    }
    
    #email-verification-required-modal .figma-section {
        text-align: center;
    }
    
    #email-verification-required-modal .verification-info {
        margin: 1.5rem 0 !important;
    }
    
    #email-verification-required-modal p {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* Navbar User Avatar Styles */
.navbar-user-avatar {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.navbar-user-avatar span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50%;
}


/* Footer Icons */
.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(2px);
}

.footer-links a i {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

/* Specific icon colors */
.footer-links a i.fas.fa-envelope {
    color: #4F46E5;
}

.footer-links a i.fab.fa-facebook {
    color: #1877F2;
}

.footer-links a:hover i {
    color: inherit;
}

/* Additional Footer Icon Colors */
.footer-links a i.fas.fa-home {
    color: #059669; /* Green for home */
}

.footer-links a i.fas.fa-graduation-cap {
    color: #DC2626; /* Red for tutorial/education */
}

.footer-links a i.fas.fa-shield-alt {
    color: #7C3AED; /* Purple for privacy/security */
}

/* ========================
   Email Verification Page
   ======================== */

#email-verification-page {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.verification-status {
    text-align: center;
    padding: 2rem 0;
}

.email-icon {
    margin-bottom: 2rem;
}

.email-icon svg {
    color: var(--primary-color);
    opacity: 0.8;
    margin: 0 auto;
    display: block;
}

.verification-info {
    margin-bottom: 3rem;
}

.verification-info h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.email-address {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: inline-block;
    margin-bottom: 0;
}

.verification-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.verification-actions button {
    width: 100%;
}

.text-button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: var(--transition);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.text-button:hover {
    background: rgba(99, 102, 241, 0.1);
    text-decoration: none;
}

.verification-footer {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    margin-top: 2rem;
}

.verification-footer p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.verification-footer p strong {
    color: var(--text-primary);
}

/* Responsive design for email verification */
@media (max-width: 768px) {
    .verification-status {
        padding: 1rem 0;
    }
    
    .email-icon svg {
        width: 60px;
        height: 60px;
    }
    
    .email-address {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
    
    .verification-actions {
        max-width: 100%;
    }
}

/* Email Verification Badge Styles */
.verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.75rem;
}

.verification-badge.verified {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.verification-badge.unverified {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.verification-badge .check-icon {
    width: 0.875rem;
    height: 0.875rem;
}

.verification-badge .warning-icon {
    width: 0.875rem;
    height: 0.875rem;
}

/* Email Change Form Styles */
.figma-email-form {
    margin-top: 1rem;
    padding: 1.5rem;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
}

.figma-email-form .form-group {
    margin-bottom: 1rem;
}

.figma-email-form .form-group:last-child {
    margin-bottom: 0;
}

.figma-email-form .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: white;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

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

.figma-email-form .form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.email-change-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.email-change-warning p {
    margin: 0;
    color: #92400e;
    font-size: 0.875rem;
    line-height: 1.4;
}

.email-change-warning .warning-icon {
    color: #f59e0b;
    margin-right: 0.5rem;
    width: 1rem;
    height: 1rem;
    vertical-align: text-top;
}

/* Profile Field Styles */
.figma-profile-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.figma-profile-field:last-child {
    border-bottom: none;
}

.figma-profile-field .field-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.figma-profile-field .field-value {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.figma-profile-field .field-actions {
    display: flex;
    gap: 0.5rem;
}

.profile-edit-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.profile-edit-btn:hover {
    background: var(--card-background);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 1rem;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.cookie-content {
    max-width: 800px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.cookie-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-text a {
    color: #4fd1c7;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cookie-btn.primary {
    background: #4fd1c7;
    color: white;
}

.cookie-btn.secondary {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-btn:hover {
    opacity: 0.9;
}

/* reCAPTCHA Modal Enhancements */
.modal-backdrop {
    background: rgba(0,0,0,0.7) !important;
    z-index: 1040 !important;
}

.modal {
    z-index: 1050 !important;
}

#recaptcha-modal-container {
    margin: 1rem 0;
}
