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

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --success: #10b981;
    --error: #ef4444;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--background) 0%, #1a1f3a 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

#app {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Screen Management with Enhanced Transitions */
.screen {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform: translateX(0) scale(0.98);
}

.screen.active {
    display: block;
    opacity: 1;
    transform: translateX(0) scale(1);
    animation: fadeInUp 0.3s ease-in-out;
}

.screen.exiting {
    animation: fadeOutDown 0.2s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

/* Smooth height transitions for modals */
.modal {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.modal.show {
    animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Quick Join Section */
.quick-join-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--surface-light);
}

.quick-join-divider {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.quick-join-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.quick-join-input {
    flex: 1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.quick-join-btn {
    width: auto;
    padding: 1rem 2rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .quick-join-form {
        flex-direction: column;
    }

    .quick-join-btn {
        width: 100%;
    }
}

/* New Welcome Screen Sections */
.quick-join-section-top,
.create-session-section {
    margin: 2.5rem 0;
}

.section-card {
    background: var(--surface-light);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.section-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.section-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.quick-join-form-inline {
    display: flex;
    gap: 1rem;
    max-width: 450px;
    margin: 0 auto;
}

.quick-join-form-inline .quick-join-input {
    flex: 1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem;
}

.quick-join-form-inline .quick-join-btn {
    padding: 1rem 2rem;
    white-space: nowrap;
    font-weight: 600;
}

/* Centered Quick Join Form for Welcome Screen */
.quick-join-form-centered {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 450px;
    margin: 0 auto;
    align-items: center;
}

.code-input-large {
    width: 100%;
    max-width: 350px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 8px;
    font-weight: 700;
    font-size: 2rem;
    padding: 1.25rem 1rem;
    border: 3px solid var(--border);
    border-radius: var(--border-radius);
    background: var(--surface);
    transition: all 0.3s ease;
}

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

.code-input-large::placeholder {
    letter-spacing: 6px;
    color: var(--text-disabled);
    opacity: 0.5;
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    min-width: 280px;
}

/* Ensure welcome screen buttons have same width and centering on desktop */
@media (min-width: 769px) {
    .quick-join-form-centered .btn-large,
    .create-session-section .btn-large {
        width: 280px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .section-card {
        padding: 2rem 1.5rem;
    }

    .section-icon {
        font-size: 3rem;
    }

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

    .section-description {
        font-size: 1rem;
    }

    .quick-join-form-inline {
        flex-direction: column;
    }

    .quick-join-form-inline .quick-join-btn {
        width: 100%;
    }

    .btn-large {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1.05rem;
    }
}

/* Typography */
h1, h2, h3 {
    margin-bottom: 1rem;
}

/* Login Screen Styles */
.login-buttons-container {
    max-width: 400px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-btn {
    width: 100%;
    justify-content: center;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.divider-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.app-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.app-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 2px solid var(--surface-light);
}

.btn-secondary:hover {
    background: var(--surface-light);
    border-color: var(--primary-color);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    width: auto;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flag {
    font-size: 1.5rem;
}

.icon {
    font-size: 1.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    background: var(--surface);
    border: 2px solid var(--surface-light);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    transition: var(--transition);
}

#session-code-input {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.3rem;
    text-align: center;
    text-transform: uppercase;
    padding: 1rem 1.5rem;
}

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

select.input {
    cursor: pointer;
}

/* Session Code Display */
.code-display {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    border: 2px dashed var(--primary-color);
}

.session-code {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.3rem;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.info-text {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Participants List */
.participants-list {
    margin: 2rem 0;
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.participants-list h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

#participants-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.participant-item {
    background: var(--surface-light);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    animation: slideInFromRight 0.5s ease;
    position: relative;
}

/* Animation for new participants */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Pulse animation for newly added participants */
.participant-item.newly-added {
    animation: slideInFromRight 0.5s ease, pulse 1s ease;
    border-left: 3px solid var(--success);
}

@keyframes pulse {
    0%, 100% {
        background: var(--surface-light);
    }
    50% {
        background: rgba(16, 185, 129, 0.1);
    }
}

.participant-name {
    font-weight: 600;
}

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

/* Group Result */
.group-result {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    border: 3px solid var(--primary-color);
}

.group-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    letter-spacing: -0.02em;
}

.group-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.group-field {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    font-style: normal;
    font-weight: 500;
}

.group-members {
    margin-top: 1.5rem;
    text-align: left;
}

.group-members h4 {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.member-item {
    padding: 0.5rem;
    margin: 0.25rem 0;
    background: var(--surface-light);
    border-radius: 6px;
}

/* All Groups Container */
#all-groups-container {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* NOTE: Main .group-card styles are defined in the "CRITICAL: Group Cards - Futuristic Neon Design" section below */

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .app-title {
        font-size: 2.5rem;
    }

    .app-subtitle {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .session-code {
        font-size: 2rem;
        letter-spacing: 0.2rem;
    }

    .group-number {
        font-size: 2.5rem;
    }

    .group-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .app-title {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .session-code {
        font-size: 1.5rem;
        letter-spacing: 0.15rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

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

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--error);
}

.toast.info {
    border-left: 4px solid var(--primary-color);
}

/* Connection Status Indicator - Integrated in Header */
.connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--surface-light);
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 0.875rem;
    transition: var(--transition);
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.connection-status.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.connection-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.connection-status.connected .connection-status-dot {
    background: var(--success);
}

.connection-status.disconnected .connection-status-dot {
    background: var(--error);
    animation: pulse-dot-error 1s infinite;
}

.connection-status.reconnecting .connection-status-dot {
    background: #f59e0b;
    animation: pulse-dot-warning 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
    }
}

@keyframes pulse-dot-error {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0);
    }
}

@keyframes pulse-dot-warning {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 0 4px rgba(245, 158, 11, 0);
    }
}

/* Manual Adjustment Screen */
.manual-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.manual-group-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 2px solid var(--surface-light);
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.manual-group-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--surface-light);
}

.manual-group-title {
    font-weight: 600;
    color: var(--primary-color);
}

.manual-members-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 100px; /* Ensure drop zone has height */
}

.draggable-item {
    background: var(--surface-light);
    padding: 0.75rem;
    border-radius: 6px;
    cursor: grab;
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
}

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

.draggable-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.manual-group-card.drag-over {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

/* History Info in Manual Groups */
.group-history-info {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
    font-size: 0.8rem;
    color: #d9534f; /* Bootstrap danger color for warning */
    text-align: center;
    font-weight: 500;
}

/* Landing Screen (Projection Mode) */
#landing-screen {
    background-color: var(--background-color);
    display: none; /* Hidden by default, shown via JS */
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

#landing-screen.active {
    display: flex;
}

.landing-container {
    max-width: 1400px;
    width: 95%;
    text-align: center;
    padding: 2rem;
}

.landing-container h1 {
    font-size: 3.5rem;
    margin-bottom: 4rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.landing-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-qr-section, .landing-manual-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--surface-light);
    border-radius: 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

#landing-qrcode {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#landing-qrcode img {
    display: block;
    border-radius: 0.5rem;
}

.landing-instruction {
    font-size: 1.3rem;
    color: var(--text-color);
    opacity: 0.7;
    font-weight: 500;
    margin: 0;
}

.landing-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.4;
    min-width: 60px;
}

.landing-divider::before,
.landing-divider::after {
    content: '';
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--text-secondary), transparent);
    opacity: 0.3;
}

.landing-divider::before {
    margin-bottom: 1rem;
}

.landing-divider::after {
    margin-top: 1rem;
}

.landing-url {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    opacity: 0.9;
}

.landing-code-display {
    font-family: 'Courier New', Courier, monospace;
    font-size: 4.5rem;
    font-weight: bold;
    letter-spacing: 0.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem 3rem;
    border-radius: 1.5rem;
    margin: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@media (max-width: 900px) {
    .landing-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .landing-divider::before,
    .landing-divider::after {
        width: 40px;
        height: 2px;
        background: linear-gradient(to right, transparent, var(--text-secondary), transparent);
    }

    .landing-divider::before {
        margin-bottom: 0;
        margin-right: 1rem;
    }

    .landing-divider::after {
        margin-top: 0;
        margin-left: 1rem;
    }

    .landing-divider {
        flex-direction: row;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .landing-container h1 {
        font-size: 2.5rem;
    }

    .landing-code-display {
        font-size: 3rem;
        letter-spacing: 0.5rem;
        padding: 1rem 2rem;
    }
}

/* Make Trainer QR Code Clickable */
#qrcode {
    cursor: pointer;
    transition: transform 0.2s;
}

#qrcode:hover {
    transform: scale(1.05);
}

#qrcode:active {
    transform: scale(0.95);
}

/* Subscription Status */
.subscription-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--surface-light);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

/* Subscription badges - synchronized with tier badges */
.subscription-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.subscription-badge.free {
    background: linear-gradient(135deg, #9E9E9E, #757575);
    color: white;
    box-shadow: 0 2px 8px rgba(158, 158, 158, 0.3);
}

.subscription-badge.standard {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.subscription-badge.pro {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.subscription-badge.ultra {
    background: linear-gradient(135deg, #F5A623, #FF6B35);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 166, 35, 0.3);
}

.subscription-badge.guru {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.sessions-remaining {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.btn-upgrade {
    background: linear-gradient(135deg, #ffd700, #ffed4e) !important;
    color: #333 !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

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

.modal-content {
    background-color: var(--surface-light);
    margin: auto;
    padding: 2rem;
    border-radius: 1.5rem;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
    position: relative;
    pointer-events: auto;
}

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

.modal-content h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.modal-content p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

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

.pricing-tier {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 2px solid var(--border-color);
}

.pricing-tier.pro-tier {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 237, 78, 0.05));
}

.pricing-tier h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-tier ul {
    list-style: none;
    padding: 0;
}

.pricing-tier li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pricing-tier li::before {
    content: "✓ ";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-actions .btn {
    min-width: 150px;
}

/* Free Plan Info Modal Styles */
.modal-icon {
    font-size: 2rem;
    margin-right: 0.5rem;
}

.modal-intro {
    font-size: 1.1rem;
    color: var(--text-primary) !important;
    margin-bottom: 1.5rem !important;
    text-align: left !important;
}

.feature-list {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--surface);
    border-radius: 8px;
    color: var(--text-primary);
}

.feature-icon {
    font-size: 1.2rem;
    color: var(--success);
    font-weight: bold;
    min-width: 24px;
    text-align: center;
}

.info-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.info-box-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-list li {
    color: var(--text-secondary);
    padding-left: 0;
    text-align: left;
}

.info-list li strong {
    color: var(--primary-color);
}

.modal-note {
    font-size: 0.9rem;
    color: var(--text-secondary) !important;
    text-align: center !important;
    font-style: italic;
    margin-top: 1.5rem !important;
    margin-bottom: 0 !important;
}

/* Upgrade Modal - Trendy & Bright Design */
.upgrade-modal-content {
    max-width: 900px !important;
}

.upgrade-modal-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.upgrade-modal-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.pricing-comparison-modal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.pricing-tier-modal {
    background: var(--background-color);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-tier-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-tier-modal:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
}

.pricing-tier-modal:hover::before {
    opacity: 1;
}

/* Free Tier - Gray */
.tier-free-modal {
    border-color: #e0e0e0;
}

/* Standard Tier - Blue */
.tier-standard-modal {
    border-color: #4A90E2;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.12), rgba(74, 144, 226, 0.06));
}

.tier-standard-modal::before {
    background: linear-gradient(90deg, #4A90E2, #357ABD);
}

/* Pro Tier - Purple (Popular) */
.tier-pro-modal {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.1));
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.tier-pro-modal::before {
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 1;
}

/* Ultra Tier - Gold/Orange */
.tier-ultra-modal {
    border-color: #F5A623;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.15), rgba(245, 166, 35, 0.08));
}

.tier-ultra-modal::before {
    background: linear-gradient(90deg, #F5A623, #FF6B35);
}

.popular-badge {
    position: absolute;
    top: 12px;
    right: -30px;
    background: linear-gradient(135deg, #FF6B35, #F5A623);
    color: white;
    padding: 4px 40px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(245, 166, 35, 0.4);
}

.tier-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-align: center;
}

.price-modal {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #667eea; /* Fallback color */
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Fallback for browsers that don't support background-clip */
@supports not (background-clip: text) {
    .price-amount {
        color: #667eea;
    }
}

.tier-standard-modal .price-amount {
    color: #4A90E2; /* Fallback color */
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tier-ultra-modal .price-amount {
    color: #F5A623; /* Fallback color */
    background: linear-gradient(135deg, #F5A623, #FF6B35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 4px;
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.tier-features li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.check-icon {
    color: #4CAF50;
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.btn-upgrade-tier {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-upgrade-tier:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.tier-standard-modal .btn-upgrade-tier {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.tier-standard-modal .btn-upgrade-tier:hover {
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

.tier-ultra-modal .btn-upgrade-tier {
    background: linear-gradient(135deg, #F5A623, #FF6B35);
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
}

.tier-ultra-modal .btn-upgrade-tier:hover {
    box-shadow: 0 6px 16px rgba(245, 166, 35, 0.4);
}

.btn-upgrade-popular {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.tier-badge-current {
    text-align: center;
    padding: 0.75rem;
    background: var(--surface);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Tier Badges for User Dashboard */
.tier-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.tier-badge.tier-free {
    background: linear-gradient(135deg, #9E9E9E, #757575);
    color: white;
    border-color: rgba(158, 158, 158, 0.5);
}

.tier-badge.tier-standard {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    border-color: rgba(74, 144, 226, 0.6);
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
}

.tier-badge.tier-pro {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: rgba(102, 126, 234, 0.7);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.4), 0 0 25px rgba(102, 126, 234, 0.2);
}

.tier-badge.tier-ultra {
    background: linear-gradient(135deg, #F5A623, #FF6B35);
    color: white;
    border-color: rgba(245, 166, 35, 0.7);
    box-shadow: 0 0 15px rgba(245, 166, 35, 0.4), 0 0 25px rgba(255, 107, 53, 0.2);
}

.tier-badge.tier-guru {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-color: rgba(16, 185, 129, 0.8);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6), 0 0 35px rgba(16, 185, 129, 0.3);
    /* Animation removed - static neon style */
}

.tier-badge.tier-admin {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1a;
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 35px rgba(255, 165, 0, 0.3);
    /* Animation removed - static neon style */
}

/* Removed shimmer animations - static neon badges */

/* Responsive Modal */
@media (max-width: 600px) {
    .pricing-comparison {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 1.5rem;
    }
}

/* Welcome Screen Pricing */
.welcome-container-main {
    max-width: 1000px;
}

.welcome-tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 1rem 0 2.5rem 0;
    text-align: center;
    font-weight: 400;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: var(--surface-light);
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    animation: fadeInUp 0.6s ease;
}

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

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    border-color: #ffd700;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.2);
    animation-delay: 0.2s;
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.pricing-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.pricing-card.featured .pricing-icon {
    animation: pulse 2s infinite;
}

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

.pricing-header h3 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    color: var(--text-primary);
}

.pricing-price {
    margin-top: 1rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.pricing-card.featured .price-amount {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: 0.3rem;
}

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

.pricing-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.pricing-features li:hover {
    padding-left: 0.5rem;
    color: var(--text-primary);
}

.feature-icon {
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1.1rem;
    min-width: 20px;
}

.pricing-card.featured .feature-icon {
    color: #ffd700;
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    margin-top: 2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive pricing */
@media (max-width: 768px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .welcome-tagline {
        font-size: 1rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
}

/* Admin Panel Styles */
.admin-container {
    max-width: 1200px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    width: auto;
}

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

.stat-card {
    background: var(--surface-light);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.admin-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.admin-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.admin-filters .input {
    flex: 1;
    min-width: 200px;
}

.table-container {
    overflow-x: auto;
    background: var(--surface-light);
    border-radius: 1rem;
    padding: 1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    pointer-events: auto;
}

.admin-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

.tier-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.tier-badge.free {
    background: #e0e0e0;
    color: #666;
}

.tier-badge.beta {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.tier-badge.pro {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.btn-edit {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: auto;
}

.btn-edit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .admin-filters {
        flex-direction: column;
    }
    
    .table-container {
        font-size: 0.85rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* ========================================
   MODERN LANGUAGE SELECTION SCREEN
   ======================================== */
.language-container {
    max-width: 600px;
    text-align: center;
}

.language-hero {
    margin-bottom: 3rem;
}

.language-title {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: fadeInDown 0.8s ease;
}

.language-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
    animation: fadeIn 1s ease 0.3s both;
}

.language-prompt {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    font-weight: 500;
    animation: fadeIn 1s ease 0.6s both;
}

.language-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    animation: fadeInUp 0.8s ease 0.9s both;
}

.lang-card {
    background: var(--surface-light);
    border: 2px solid transparent;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.lang-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.lang-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #667eea;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.lang-flag {
    font-size: 4rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.lang-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.lang-native {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ========================================
   MODERN WELCOME SCREEN
   ======================================== */
.welcome-container-modern {
    max-width: 1200px;
    padding: 3rem 2rem;
}

.welcome-hero {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Pricing Section */
.pricing-section {
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease 0.3s both;
}

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

.pricing-cards-modern {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1rem 0.5rem;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.pricing-cards-modern:active {
    cursor: grabbing;
}

/* Show scrollbar on hover for desktop */
.pricing-cards-modern::-webkit-scrollbar {
    height: 8px;
}

.pricing-cards-modern::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}

.pricing-cards-modern::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.4);
    border-radius: 10px;
}

.pricing-cards-modern::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.6);
}

.pricing-card-modern {
    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    padding: 3rem 2.5rem;
    position: relative;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 0 0 calc(33.333% - 1.5rem);
    min-width: 300px;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
}

.pricing-card-modern:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.pricing-card-modern.pro-plan {
    background: linear-gradient(145deg,
        rgba(102, 126, 234, 0.9),
        rgba(118, 75, 162, 0.85));
    border: 2px solid #667eea;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.pricing-card-modern.pro-plan .plan-name {
    color: #ffffff;
    font-weight: 700;
}

.pricing-card-modern.pro-plan .plan-description {
    color: rgba(255, 255, 255, 0.95);
}

.pricing-card-modern.pro-plan .price-currency,
.pricing-card-modern.pro-plan .price-value {
    color: #ffffff;
}

.pricing-card-modern.pro-plan .price-period {
    color: rgba(255, 255, 255, 0.9);
}

.pricing-card-modern.pro-plan .plan-features li {
    color: #ffffff;
}

.pricing-card-modern.pro-plan .plan-price {
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

/* Free Plan - Better Contrast */
.pricing-card-modern.free-plan {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 2px solid #e0e0e0;
}

.pricing-card-modern.free-plan .plan-name {
    color: #1a1a1a;
}

.pricing-card-modern.free-plan .plan-description {
    color: #444444;
}

.pricing-card-modern.free-plan .price-currency,
.pricing-card-modern.free-plan .price-value {
    color: #1a1a1a;
}

.pricing-card-modern.free-plan .price-period {
    color: #666666;
}

.pricing-card-modern.free-plan .plan-features li {
    color: #333333;
}

.pricing-card-modern.free-plan .check {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

/* Standard Plan - Blue with WHITE text */
.pricing-card-modern.standard-plan {
    background: linear-gradient(145deg,
        rgba(74, 144, 226, 0.85),
        rgba(53, 122, 189, 0.75));
    border: 2px solid #4A90E2;
}

.pricing-card-modern.standard-plan .plan-name {
    color: #ffffff;
    font-weight: 700;
}

.pricing-card-modern.standard-plan .plan-description {
    color: rgba(255, 255, 255, 0.95);
}

.pricing-card-modern.standard-plan .price-currency,
.pricing-card-modern.standard-plan .price-value {
    color: #ffffff;
}

.pricing-card-modern.standard-plan .price-period {
    color: rgba(255, 255, 255, 0.9);
}

.pricing-card-modern.standard-plan .plan-features li {
    color: #ffffff;
}

.pricing-card-modern.standard-plan .check {
    background: rgba(255, 255, 255, 0.3);
    color: #4A90E2;
    font-weight: 700;
}

.pricing-card-modern.standard-plan .plan-price {
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

/* Ultra Plan - Orange/Gold with White Text */
.pricing-card-modern.ultra-plan {
    background: linear-gradient(145deg,
        rgba(245, 166, 35, 0.9),
        rgba(255, 107, 53, 0.85));
    border: 2px solid #F5A623;
}

.pricing-card-modern.ultra-plan .plan-name {
    color: #ffffff;
    font-weight: 700;
}

.pricing-card-modern.ultra-plan .plan-description {
    color: rgba(255, 255, 255, 0.95);
}

.pricing-card-modern.ultra-plan .price-currency,
.pricing-card-modern.ultra-plan .price-value {
    color: #ffffff;
}

.pricing-card-modern.ultra-plan .price-period {
    color: rgba(255, 255, 255, 0.8);
}

.pricing-card-modern.ultra-plan .plan-features li {
    color: #ffffff;
}

.pricing-card-modern.ultra-plan .check {
    background: rgba(255, 255, 255, 0.3);
    color: #F5A623;
    font-weight: 700;
}

.popular-ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 0.4rem 3rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transform: rotate(45deg);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

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

.plan-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.plan-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.plan-description {
    font-size: 1rem;
    color: #555555;
    font-weight: 400;
}

.plan-price {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.pricing-card-modern.pro-plan .plan-price {
    border-bottom-color: rgba(255,255,255,0.3);
}

.price-currency {
    font-size: 2rem;
    font-weight: 600;
    vertical-align: top;
    color: var(--primary-color);
}

.price-value {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--primary-color);
}


.price-period {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    display: block;
    margin-top: 0.5rem;
}

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

.plan-features li {
    padding: 0.9rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #2c2c2c;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}


.plan-features li:last-child {
    border-bottom: none;
}

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

.pricing-card-modern.pro-plan .check {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

/* Plan CTA Buttons */
.plan-cta-btn {
    width: 100%;
    padding: 1rem 2rem;
    margin-top: auto;
    border: none;
    border-radius: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.02em;
}

.free-cta {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

.free-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(108, 117, 125, 0.3);
}

.beta-cta {
    background: white;
    color: #ff6b6b;
    font-weight: 800;
}

.beta-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.95);
}

.pro-cta {
    background: white;
    color: #667eea;
    font-weight: 800;
}

.pro-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.95);
}

/* CTA Button */
.btn-cta {
    display: block;
    margin: 0 auto;
    padding: 1.5rem 5rem;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 3rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    animation: pulse 2s infinite;
}

.btn-cta:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 10px 40px rgba(102, 126, 234, 0.6);
    }
}

/* Global Footer */
.global-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-top: 2px solid rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin-top: auto;
    width: 100%;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    gap: 2rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-right {
    display: flex;
    align-items: center;
}

.footer-credit {
    color: #2d3748;
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
    line-height: 1.6;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-terms {
    margin: 0;
    font-size: 0.9rem;
}

.footer-terms a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.footer-terms a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.footer-credit .separator {
    color: #667eea;
    font-weight: 400;
    margin: 0 0.25rem;
}

.footer-credit a {
    color: #667eea;
    text-decoration: none;
    font-weight: 700;
    position: relative;
    transition: all 0.3s ease;
}

.footer-credit a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.footer-credit a:hover {
    transform: translateY(-1px);
    color: #764ba2;
}

.footer-credit a:hover::after {
    width: 100%;
}

.footer-version {
    color: #718096;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

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

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

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

/* Carousel Indicators */
.pricing-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 2rem 0;
}

.pricing-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-indicator.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    width: 32px;
    border-radius: 5px;
}

.pricing-indicator:hover {
    background: rgba(102, 126, 234, 0.6);
}

/* ==================== TRAINER DASHBOARD ==================== */

/* Dashboard Container */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.dashboard-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

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

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

.stat-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 0.75rem;
}

.stat-content {
    flex: 1;
}

.stat-label {
    color: #666666;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Quick Actions */
.quick-actions {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.quick-actions h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
}

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

.btn-large {
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-large span:first-child {
    font-size: 1.5rem;
}

/* Recent Sessions */
.recent-sessions {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.section-header h3 {
    margin: 0;
    color: #1a1a1a;
}

/* Section Header Buttons (for Recent Sessions) */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    color: #1a1a1a;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.section-header h3 span:first-child {
    font-size: 1.3rem;
}

.section-header-buttons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.btn-section-header {
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.btn-section-header span:first-child {
    font-size: 1.2rem;
}

.btn-section-header:disabled {
    opacity: 1;
    cursor: default;
    background: var(--surface-light);
    color: var(--text);
    border-color: var(--border);
}

@media (max-width: 768px) {
    .section-header-buttons {
        flex-direction: column;
    }

    .btn-section-header {
        width: 100%;
        min-width: unset;
    }
}

.btn-text {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background 0.3s ease;
}

.btn-text:hover {
    background: rgba(102, 126, 234, 0.1);
}

/* Sessions List */
.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.session-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    transition: background 0.3s ease, transform 0.2s ease;
    pointer-events: auto;
}

.session-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.session-item.active {
    border-left: 4px solid #667eea;
}

.session-item.completed {
    border-left: 4px solid #6c757d;
}

.session-item.expired {
    border-left: 4px solid #dc3545;
    opacity: 0.7;
}

.session-item.expired-reopenable {
    border-left: 4px solid #ffc107;
    background: linear-gradient(90deg, #fff9e6 0%, #ffffff 100%);
}

.session-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 140px;
}

.session-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-indicator.active {
    background: #667eea;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.5);
    animation: pulse 2s infinite;
}

.status-indicator.completed {
    background: #6c757d;
}

.status-indicator.expired,
.status-indicator.expired-reopenable {
    background: #dc3545;
}

.status-indicator.expired-reopenable {
    background: #ffc107;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
}

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

.status-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #666666;
}

.session-main {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

/* Session code in dashboard list (light background) */
.session-item .session-code {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.1em;
}

.session-date {
    font-size: 0.875rem;
    color: #666666;
    font-weight: 500;
}

.session-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666666;
}

.session-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    pointer-events: auto;
}

.session-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #e9ecef;
    color: #6c757d;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    width: auto;
}

.btn-icon {
    width: auto;
    min-width: 40px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Subscription Card */
.subscription-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

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

.subscription-header h3 {
    margin: 0;
    color: white;
}

.tier-badge {
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-badge.free {
    background: #6c757d;
    color: white;
}

.tier-badge.beta {
    background: #ff6b6b;
    color: white;
}

.tier-badge.pro {
    background: #ffd700;
    color: #333;
}

.subscription-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.subscription-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.subscription-stat:last-child {
    border-bottom: none;
}

.btn-upgrade {
    background: white;
    color: #667eea;
    font-weight: 700;
    border: none;
}

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

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

.modal-content {
    background: var(--surface-light);
    border-radius: 1rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    pointer-events: auto;
}

.modal-content.modal-large {
    max-width: 900px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    pointer-events: auto;
}

.modal-header h2 {
    margin: 0;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

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

.modal button,
.modal .btn {
    pointer-events: auto !important;
    cursor: pointer !important;
}

.modal-body {
    padding: 1.5rem;
    pointer-events: auto;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 2px solid #f0f0f0;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Session Info */
.session-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

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

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

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Participants Grid */
.participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.participant-card {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    border-left: 3px solid #667eea;
}

.participant-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.participant-field {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Groups Grid */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* ========================================================================== */
/* CRITICAL: Group Cards - Futuristic Neon Design */
/* ========================================================================== */
/* These styles are for the final group display - the main output of the app */
/* DO NOT modify without understanding the full impact on user experience */
/* Designed for dark theme with high contrast and accessibility */
/* ========================================================================== */

.group-card {
    border-radius: 1.25rem;
    padding: 2rem;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Vibrant neon gradient backgrounds - Each group gets a different color */
.group-card:nth-child(5n+1) {
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.2) 0%,
        rgba(139, 92, 246, 0.3) 50%,
        rgba(99, 102, 241, 0.2) 100%);
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow:
        0 8px 32px rgba(99, 102, 241, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.group-card:nth-child(5n+2) {
    background: linear-gradient(135deg,
        rgba(236, 72, 153, 0.2) 0%,
        rgba(239, 68, 68, 0.3) 50%,
        rgba(236, 72, 153, 0.2) 100%);
    border-color: rgba(236, 72, 153, 0.6);
    box-shadow:
        0 8px 32px rgba(236, 72, 153, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.group-card:nth-child(5n+3) {
    background: linear-gradient(135deg,
        rgba(14, 165, 233, 0.2) 0%,
        rgba(6, 182, 212, 0.3) 50%,
        rgba(14, 165, 233, 0.2) 100%);
    border-color: rgba(14, 165, 233, 0.6);
    box-shadow:
        0 8px 32px rgba(14, 165, 233, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.group-card:nth-child(5n+4) {
    background: linear-gradient(135deg,
        rgba(168, 85, 247, 0.2) 0%,
        rgba(217, 70, 239, 0.3) 50%,
        rgba(168, 85, 247, 0.2) 100%);
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow:
        0 8px 32px rgba(168, 85, 247, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.group-card:nth-child(5n+5) {
    background: linear-gradient(135deg,
        rgba(34, 197, 94, 0.2) 0%,
        rgba(16, 185, 129, 0.3) 50%,
        rgba(34, 197, 94, 0.2) 100%);
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow:
        0 8px 32px rgba(34, 197, 94, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Neon glow effect on hover - intensifies the color */
.group-card:nth-child(5n+1):hover {
    border-color: rgba(99, 102, 241, 0.9);
    box-shadow:
        0 12px 48px rgba(99, 102, 241, 0.4),
        0 0 40px rgba(99, 102, 241, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-4px) scale(1.01);
}

.group-card:nth-child(5n+2):hover {
    border-color: rgba(236, 72, 153, 0.9);
    box-shadow:
        0 12px 48px rgba(236, 72, 153, 0.4),
        0 0 40px rgba(236, 72, 153, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-4px) scale(1.01);
}

.group-card:nth-child(5n+3):hover {
    border-color: rgba(14, 165, 233, 0.9);
    box-shadow:
        0 12px 48px rgba(14, 165, 233, 0.4),
        0 0 40px rgba(14, 165, 233, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-4px) scale(1.01);
}

.group-card:nth-child(5n+4):hover {
    border-color: rgba(168, 85, 247, 0.9);
    box-shadow:
        0 12px 48px rgba(168, 85, 247, 0.4),
        0 0 40px rgba(168, 85, 247, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-4px) scale(1.01);
}

.group-card:nth-child(5n+5):hover {
    border-color: rgba(34, 197, 94, 0.9);
    box-shadow:
        0 12px 48px rgba(34, 197, 94, 0.4),
        0 0 40px rgba(34, 197, 94, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-4px) scale(1.01);
}

/* Enhanced glow for cards with collaboration history */
.group-card.has-history {
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.15);
    }
}

/* Group card header */
.group-card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.group-card h5 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* History badge */
.history-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.2);
}

.history-icon {
    font-size: 1.2rem;
    animation: rotate 2s linear infinite;
}

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

/* Members section */
.group-members {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.members-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.members-icon {
    font-size: 1.25rem;
}

.members-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.member-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.member-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

/* Member with collaboration history - glowing yellow accent */
.member-item.has-history {
    background: linear-gradient(135deg,
        rgba(251, 191, 36, 0.2) 0%,
        rgba(245, 158, 11, 0.15) 100%);
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.15);
}

.member-item.has-history:hover {
    background: linear-gradient(135deg,
        rgba(251, 191, 36, 0.25) 0%,
        rgba(245, 158, 11, 0.2) 100%);
    border-color: rgba(251, 191, 36, 0.7);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.25);
}

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

.member-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
}

.member-field {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
}

.history-indicator {
    font-size: 1.25rem;
    opacity: 0.7;
    transition: all 0.2s ease;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.5));
}

.member-item:hover .history-indicator {
    opacity: 1;
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.8));
}

/* Responsive Dashboard Styles */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

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

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .session-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .session-left {
        min-width: auto;
    }

    .session-main {
        min-width: auto;
    }

    .session-actions {
        width: 100%;
        justify-content: stretch;
    }

    .session-actions button {
        flex: 1;
    }

    .modal-content {
        width: 95%;
    }

    .session-info {
        grid-template-columns: 1fr;
    }

    .participants-grid,
    .groups-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
    }

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

    .pricing-cards-modern {
        gap: 1rem;
        padding: 1rem 1rem;
    }

    .pricing-card-modern {
        flex: 0 0 85%;
        min-width: 280px;
        padding: 2rem 1.5rem;
    }

    .btn-cta {
        padding: 1.2rem 3rem;
        font-size: 1.1rem;
    }

    .language-title {
        font-size: 3rem;
    }

    .language-options {
        grid-template-columns: 1fr;
    }

    .footer-credit {
        font-size: 0.9rem;
        gap: 0.35rem;
    }

    .footer-credit .separator {
        margin: 0 0.15rem;
    }
}

/* ===========================
   Loading Spinner Styles
   =========================== */

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

/* Loading container */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(99, 102, 241, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Spinner sizes */
.spinner-small {
    width: 30px;
    height: 30px;
    border-width: 3px;
}

.spinner-large {
    width: 70px;
    height: 70px;
    border-width: 5px;
}

/* Loading text */
.loading-text {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

/* Inline loading (for buttons) */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Container loading state */
.container-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.container-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 10;
}

/* ========================================
   Phase 2: Universal Dashboard Styles
   ======================================== */

/* Mode Switcher */
.mode-switcher {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mode-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.mode-btn:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary);
}

.mode-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.mode-btn span:first-child {
    font-size: 1.2rem;
}

/* Dashboard Section */
.dashboard-section {
    animation: fadeIn 0.3s ease;
}

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

/* Admin Divider */
.admin-divider {
    margin: 3rem 0 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border-left: 4px solid var(--primary);
    border-radius: 12px;
}

.admin-divider h2 {
    margin: 0;
    color: var(--primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Admin Tier Badge */
.tier-badge.tier-admin {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    /* Animation removed - static neon style */
}

/* Responsive Mode Switcher */
@media (max-width: 768px) {
    .mode-switcher {
        flex-direction: column;
        gap: 0.75rem;
    }

    .mode-btn {
        width: 100%;
        padding: 1rem;
    }
}

/* Dashboard Container Enhancement */
#universal-dashboard-screen .dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
}

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

/* Hide upgrade button for admins */
.tier-admin ~ .subscription-details + .btn-upgrade {
    display: none !important;
}

/* ============================================================================
   APP HEADER & USER MENU STYLES
   ============================================================================ */

/* App Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--surface);
    border-bottom: 1px solid var(--surface-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header Controls (right side) */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Switcher Compact */
.language-switcher-compact {
    position: relative;
}

.lang-switcher-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-light);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lang-switcher-btn:hover {
    background: var(--surface);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.lang-flag-small {
    font-size: 1.25rem;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--surface-light);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    min-width: 160px;
    display: none;
    z-index: 1001;
}

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

.lang-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.lang-option:hover {
    background: var(--surface-light);
}

/* Login Button Container */
.login-button-container {
    display: none;
}

.login-button-container .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.header-logo:hover {
    opacity: 0.8;
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

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

/* User Avatar Button */
.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.user-avatar-btn:hover {
    background: var(--surface);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

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

/* Avatar Circle */
.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

#avatar-initials {
    text-transform: uppercase;
}

/* Avatar Name */
.avatar-name {
    color: var(--text-primary);
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Avatar tier badges - synchronized colors, static neon style */
.avatar-tier-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.avatar-tier-badge[data-tier="free"] {
    background: linear-gradient(135deg, rgba(158, 158, 158, 0.2), rgba(117, 117, 117, 0.25));
    color: #9E9E9E;
    border-color: rgba(158, 158, 158, 0.4);
}

.avatar-tier-badge[data-tier="standard"] {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2), rgba(53, 122, 189, 0.25));
    color: #4A90E2;
    border-color: rgba(74, 144, 226, 0.5);
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}

.avatar-tier-badge[data-tier="pro"] {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.25));
    color: #667eea;
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.4);
}

.avatar-tier-badge[data-tier="ultra"] {
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.2), rgba(255, 107, 53, 0.25));
    color: #F5A623;
    border-color: rgba(245, 166, 35, 0.5);
    box-shadow: 0 0 12px rgba(245, 166, 35, 0.4);
}

.avatar-tier-badge[data-tier="guru"] {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.25));
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5), 0 0 25px rgba(16, 185, 129, 0.2);
    /* Animation removed - static neon style */
}

.avatar-tier-badge[data-tier="admin"] {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.25));
    color: #ffa500;
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5), 0 0 25px rgba(255, 165, 0, 0.2);
    /* Animation removed - static neon style */
}

/* Removed neon pulse animations - static neon badges */

/* Dropdown Arrow */
.dropdown-arrow {
    color: var(--text-secondary);
    font-size: 0.7rem;
    transition: var(--transition);
}

.user-avatar-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 280px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

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

/* Dropdown Header */
.dropdown-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

#dropdown-initials {
    text-transform: uppercase;
}

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

.dropdown-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-email {
    color: var(--text-secondary);
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 0.25rem;
}

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

/* Dropdown Items */
.dropdown-items {
    padding: 0.5rem;
}

.dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.dropdown-item:hover {
    background: var(--surface);
}

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

.dropdown-item-danger {
    color: var(--error);
}

.dropdown-item-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Adjust app content to account for fixed header */
#app {
    padding-top: 64px;
}

/* Hide header on language screen */
#language-screen.active ~ .app-header {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }

    .avatar-name {
        display: none;
    }

    .user-avatar-btn {
        padding: 0.5rem 0.75rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .user-dropdown {
        width: 260px;
    }

    /* Footer responsiveness */
    .global-footer {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-left {
        align-items: center;
    }

    .footer-credit {
        justify-content: center;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .avatar-tier-badge {
        display: none;
    }

    .user-dropdown {
        width: calc(100vw - 2rem);
        right: -0.5rem;
    }
}

/* ============================================
   Archive Modal & Dashboard Improvements
   ============================================ */

/* Section Title Group (for "Recent Sessions" + Archive button) */
.section-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

.section-title-group h3 {
    margin: 0;
    white-space: nowrap;
}

/* Archive Modal Fullscreen */
.modal-fullscreen {
    max-width: 95vw;
    max-height: 90vh;
    width: 100%;
    height: 90vh;
}

.modal-fullscreen .modal-body {
    max-height: calc(90vh - 200px);
    overflow-y: auto;
}

/* Archive Filters */
.archive-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.archive-filters .input {
    flex: 1;
    min-width: 200px;
}

.archive-filters select {
    min-width: 150px;
}

/* Archive Sessions List */
.archive-sessions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: auto;
}

/* Guru Tier Styles */
.tier-guru-modal {
    border: 2px solid #fbbf24;
    position: relative;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.tier-guru-modal .tier-header h3 {
    color: #b45309;
}

.tier-guru-modal .price-amount {
    color: #b45309;
}

.tier-guru .tier-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.premium-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
    /* Animation removed - static neon style */
}

.btn-upgrade-premium {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    border: none;
}

.btn-upgrade-premium:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

/* Pricing Modal - Display all tiers in one row (4 tiers: Free, Standard, Pro, Ultra) */
.pricing-comparison-modal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 1200px) {
    .pricing-comparison-modal {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .pricing-comparison-modal {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-comparison-modal {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .section-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .pricing-comparison-modal {
        grid-template-columns: 1fr;
    }
}

/* Pricing tier modal scaling */
.pricing-tier-modal {
    padding: 1rem;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-tier-modal .tier-header h3 {
    font-size: 1.1rem;
}

.pricing-tier-modal .price-amount {
    font-size: 1.8rem;
}

.pricing-tier-modal .tier-features {
    font-size: 0.85rem;
    line-height: 1.6;
}

.pricing-tier-modal .tier-features li {
    margin-bottom: 0.4rem;
}

/* Ensure small buttons work well */
.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    width: auto;
}

/* Tier badges for all tiers */
.tier-badge.guru {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.tier-badge.admin {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
