/* Global Styles */
:root {
    /* Light Theme Variables */
    --primary-color: #7C73FF;
    --primary-rgb: 124, 115, 255;
    --secondary-color: #FF6B6B;
    --secondary-rgb: 255, 107, 107;
    --accent-color: #4ecdc4;
    --accent-rgb: 78, 205, 196;
    --text-color: #000000;
    --text-muted: #636E72;
    --bg-color: #ffffff;
    --bg-secondary: #F8F9FA;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
    --dark-bg: #22262B;
    --dark-bg-rgb: 34, 38, 43;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #00b894;
    --success-rgb: 0, 184, 148;
    --warning-color: #fdcb6e;
    --warning-rgb: 253, 203, 110;
    --danger-color: #d63031;
    --danger-rgb: 214, 48, 49;
    --info-color: #0984e3;
    --info-rgb: 9, 132, 227;
    --rpg-gold: #FFD700;
    --rpg-health: #FF6B6B;
    --rpg-mana: #7C73FF;
    --rpg-experience: #00B894;
    --light-bg: #F8F9FA;
    --dark-bg: #22262B;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --sidebar-width: 250px;

    /* Bootstrap Color Variables */
    --bs-danger: #d63031;
    --bs-success: #00b894;
    --bs-warning: #fdcb6e;
    --bs-info: #0984e3;
    --bs-secondary: #6c757d;
    --bs-light: #f8f9fa;
    --bs-dark: #495057;
    --bs-border: #dee2e6;
    --bs-white: #ffffff;
    --bs-black: #000000;

    /* Class Colors */
    --defender-color: #FF6B6B;
    --defender-color-light: rgba(255, 107, 107, 0.1);
    --defender-color-dark: #E74C3C;
    
    --wizard-color: #7C73FF;
    --wizard-color-light: rgba(124, 115, 255, 0.1);
    --wizard-color-dark: #6B63E6;
    
    --medic-color: #00B894;
    --medic-color-light: rgba(0, 184, 148, 0.1);
    --medic-color-dark: #00A884;
    
    --augmentor-color: #FFD700;
    --augmentor-color-light: rgba(255, 215, 0, 0.1);
    --augmentor-color-dark: #E6C200;

    /* Light theme variables */
    --bg-primary: #ffffff;
    --bg-secondary: #F8F9FA;
    --text-primary: #000000;
    --text-secondary: #636E72;
    --navbar-bg: #ffffff;
    --navbar-text: #000000;

    /* Glass morphism variables (from multiple files) */
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --glass-blur: blur(12px);

    /* Teacher Dashboard specific variables */
    --primary-glow: rgba(124, 115, 255, 0.4);
    --secondary-glow: rgba(255, 107, 107, 0.4);
    --card-radius: 16px;
    --btn-radius: 12px;
    --animation-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --animation-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    /* Spellbook specific variables */
    --spellbook-bg: #f3eade; /* Parchment color */
    --spellbook-content-bg: transparent;
    --spellbook-border: rgba(0, 0, 0, 0.1);
    --spellbook-text: #4a2c2a; /* Dark brown text */
    --spellbook-text-muted: #7d6c6a;
    --spellbook-primary: #8a4b38; /* Leather brown */
    --spellbook-secondary: #c89c6d; /* Light leather */
    --spellbook-accent: #006400; /* Dark green */
    --spellbook-warning: #c83737;
    --spellbook-danger: #e74c3c;
    --spellbook-info: #3498db;
    --spellbook-success: #27ae60;
    --spellbook-warning-rgb: 200, 55, 55;
    --spellbook-info-rgb: 52, 152, 219;
    --spellbook-success-rgb: 39, 174, 96;
    --spellbook-glow: rgba(200, 75, 56, 0.3);
    --spellbook-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    --spellbook-blur: blur(2px);
    --spellbook-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --spellbook-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Onboarding specific variables */
    --tq-purple: #7C73FF;
    --tq-purple-dark: #6B63E6;
    --tq-purple-light: #8D85FF;
    --tq-purple-rgb: 124, 115, 255;

    /* Additional utility variables */
    --light-bg-rgb: 248, 249, 250;
    --heading-color: #333333;
    --dropdown-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    /* Button variables */
    --btn-primary-bg: #7C73FF;
    --btn-primary-text: #ffffff;
    --btn-primary-border: #7C73FF;
    --btn-outline-text: #7C73FF;
    --btn-outline-border: #7C73FF;

    /* Form input variables - Light Mode */
    --input-bg: #ffffff;
    --input-border: #e9ecef;
    --input-text: #000000;
    --input-placeholder: #6c757d;
    --input-focus-bg: #ffffff;
    --input-focus-border: #7C73FF;
    --input-focus-shadow: rgba(124, 115, 255, 0.25);
    
    /* Glass input variables - Light Mode */
    --glass-input-bg: rgba(255, 255, 255, 0.8);
    --glass-input-border: rgba(0, 0, 0, 0.1);
    --glass-input-text: #000000;
    --glass-input-placeholder: #6c757d;
    --glass-input-focus-bg: rgba(255, 255, 255, 0.9);
    --glass-input-focus-border: rgba(124, 115, 255, 0.3);
    --glass-input-focus-shadow: rgba(124, 115, 255, 0.15);
    
    /* Primary color RGB for rgba usage */
    --primary-color-rgb: 124, 115, 255;
}

[data-theme="dark"] {
    /* Dark Theme Variables */
    --text-color: #FFFFFF;
    --text-muted: #c0c7cf;
    --bg-color: #22262B;
    --bg-secondary: #343A40;
    --card-bg: #343A40;
    --border-color: #495057;
    --dark-bg: #000000;
    --dark-bg-rgb: 34, 38, 43;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --success-color: #00d894;
    --success-rgb: 0, 216, 148;
    --warning-color: #ffd166;
    --warning-rgb: 255, 209, 102;
    --danger-color: #ff6b6b;
    --danger-rgb: 255, 107, 107;
    --info-color: #0984e3;
    --info-rgb: 9, 132, 227;

    /* Bootstrap Color Variables - Dark Mode */
    --bs-light: #343a40;
    --bs-dark: #ffffff;
    --bs-border: #495057;
    --bs-white: #22262b;
    --bs-black: #ffffff;

    /* Dark theme variables */
    --bg-primary: #22262B;
    --bg-secondary: #343A40;
    --text-primary: #FFFFFF;
    --text-secondary: #A4B0BE;
    --navbar-bg: #22262B;
    --navbar-text: #FFFFFF;

    /* Dark mode glass morphism variables */
    --glass-bg: rgba(18, 20, 23, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Dark mode teacher dashboard variables */
    --primary-glow: rgba(124, 115, 255, 0.2);
    --secondary-glow: rgba(255, 107, 107, 0.2);

    /* Dark mode spellbook variables */
    --spellbook-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --spellbook-content-bg: rgba(26, 26, 46, 0.95);
    --spellbook-border: rgba(255, 255, 255, 0.1);
    --spellbook-text: #ffffff;
    --spellbook-text-muted: #a4b0be;
    --spellbook-glow: rgba(124, 115, 255, 0.4);
    --spellbook-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* Dark mode additional variables */
    --heading-color: #ffffff;
    --light-bg-rgb: 52, 58, 64;

    /* Dark mode button variables */
    --btn-primary-bg: #7C73FF;
    --btn-primary-text: #ffffff;
    --btn-primary-border: #7C73FF;
    --btn-outline-text: #7C73FF;
    --btn-outline-border: #7C73FF;

    /* Form input variables - Dark Mode */
    --input-bg: #343A40;
    --input-border: #495057;
    --input-text: #FFFFFF;
    --input-placeholder: #a4b0be;
    --input-focus-bg: #343A40;
    --input-focus-border: #7C73FF;
    --input-focus-shadow: rgba(124, 115, 255, 0.25);
    
    /* Glass input variables - Dark Mode */
    --glass-input-bg: rgba(52, 58, 64, 0.8);
    --glass-input-border: rgba(255, 255, 255, 0.1);
    --glass-input-text: #FFFFFF;
    --glass-input-placeholder: #a4b0be;
    --glass-input-focus-bg: rgba(52, 58, 64, 0.9);
    --glass-input-focus-border: rgba(124, 115, 255, 0.3);
    --glass-input-focus-shadow: rgba(124, 115, 255, 0.15);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background: var(--bg-color);
    background-image: 
        radial-gradient(circle at 100% 100%, rgba(108, 99, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 0% 0%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.navbar {
    background: var(--navbar-bg, #ffffff) !important;
    border-bottom: 1px solid var(--border-color, #e9ecef);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 1000;
}

.navbar-brand {
    color: var(--text-color) !important;
}

.navbar-nav .nav-link {
    color: var(--text-color) !important;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border-color: var(--border-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.brand-text .teach {
    color: var(--primary-color);
}

.brand-text .quest {
    color: var(--secondary-color);
}

.navbar-brand img {
    max-height: 40px;
}

.navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

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

/* Navigation Divider */
.nav-divider {
    width: 1px;
    height: 24px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0 1rem;
}

/* Navigation Social Icons */
.nav-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-social .nav-link {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.nav-social .nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Navigation Auth Buttons */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-auth .btn {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-auth .btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.nav-auth .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.nav-auth .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.nav-auth .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

/* Hero Section - Styles moved to hero-section.css */

/* Feature Cards */
.feature-card,
.class-card,
.system-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.8) 100%
    );
}

/* Holographic Effect */
.feature-card::before,
.class-card::before,
.system-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-card:hover::before,
.class-card:hover::before,
.system-card:hover::before {
    transform: translateX(100%);
}

/* Hover Effects */
.feature-card:hover,
.class-card:hover,
.system-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    background: linear-gradient(
        135deg,
        rgba(108, 99, 255, 0.1) 0%,
        rgba(255, 107, 107, 0.1) 50%,
        rgba(78, 205, 196, 0.1) 100%
    );
}

.feature-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

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

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 0;
    flex-grow: 1;
}

/* Feature Cards with Lists */
.feature-card ul {
    margin-top: 1rem;
    text-align: left;
}

.feature-card ul li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.feature-card ul li i {
    color: var(--success-color);
    font-size: 1rem;
}

/* Class Cards */
.class-card {
    position: relative;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
    z-index: 2;
}

/* Class-specific styles */
.class-card.defender {
    background: linear-gradient(135deg, var(--defender-color-light) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.class-card.wizard {
    background: linear-gradient(135deg, var(--wizard-color-light) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.class-card.medic {
    background: linear-gradient(135deg, var(--medic-color-light) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.class-card.augmentor {
    background: linear-gradient(135deg, var(--augmentor-color-light) 0%, rgba(255, 255, 255, 0.95) 100%);
}

/* Class-specific hover effects */
.class-card.defender:hover {
    box-shadow: 0 15px 30px rgba(255, 68, 68, 0.3);
}

.class-card.wizard:hover {
    box-shadow: 0 15px 30px rgba(65, 105, 225, 0.3);
}

.class-card.medic:hover {
    box-shadow: 0 15px 30px rgba(50, 205, 50, 0.3);
}

.class-card.augmentor:hover {
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.3);
}

/* Class-specific icons */
.class-card.defender i {
    color: var(--defender-color);
}

.class-card.wizard i {
    color: var(--wizard-color);
}

.class-card.medic i {
    color: var(--medic-color);
}

.class-card.augmentor i {
    color: var(--augmentor-color);
}

/* Class-specific borders */
.class-card.defender::after {
    border-color: var(--defender-color);
}

.class-card.wizard::after {
    border-color: var(--wizard-color);
}

.class-card.medic::after {
    border-color: var(--medic-color);
}

.class-card.augmentor::after {
    border-color: var(--augmentor-color);
}

/* System Cards */
.system-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

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

.system-card p {
    color: var(--text-muted);
    margin-bottom: 0;
    flex-grow: 1;
}

/* Modals */
.modal-content {
    background: var(--bg-color);
    color: var(--text-color);
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 1.5rem 1.5rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.modal-title {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Dark mode modal adjustments */
[data-theme="dark"] .modal-content {
    background: var(--bg-color);
    color: var(--text-color);
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
    border-color: var(--border-color);
}

[data-theme="dark"] .modal-title {
    color: var(--primary-color);
}

[data-theme="dark"] .modal-body {
    color: var(--text-color);
}

/* Forms */
.form-control {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--input-text);
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: var(--input-focus-bg);
    border-color: var(--input-focus-border);
    color: var(--input-text);
    box-shadow: 0 0 0 0.25rem var(--input-focus-shadow);
}

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

/* Light mode form overrides */
[data-theme="light"] .form-control {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--input-text);
}

[data-theme="light"] .form-control:focus {
    background-color: var(--input-focus-bg);
    border-color: var(--input-focus-border);
    color: var(--input-text);
    box-shadow: 0 0 0 0.25rem var(--input-focus-shadow);
}

[data-theme="light"] .form-control::placeholder {
    color: var(--input-placeholder);
}

/* Dark mode form overrides */
[data-theme="dark"] .form-control {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--input-text);
}

[data-theme="dark"] .form-control:focus {
    background-color: var(--input-focus-bg);
    border-color: var(--input-focus-border);
    color: var(--input-text);
    box-shadow: 0 0 0 0.25rem var(--input-focus-shadow);
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--input-placeholder);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
}

/* Button Styles - Standardized */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--light-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--secondary-color-dark);
    border-color: var(--secondary-color-dark);
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--secondary-rgb), 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-outline-secondary {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background-color: transparent;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--secondary-rgb), 0.3);
}

/* Header Styles - Standardized */
.section-title,
.modal-title,
h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color, #333);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.section-title i {
    color: var(--primary-color, #7C73FF);
}

.modal-title {
    font-size: 1.25rem;
    margin-bottom: 0;
}

/* Dark mode adjustments for headers */
[data-theme="dark"] .section-title,
[data-theme="dark"] .modal-title,
[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4, 
[data-theme="dark"] h5, 
[data-theme="dark"] h6 {
    color: var(--heading-color, #fff);
}

/* Account Type Buttons */
.account-type .btn-group {
    display: flex;
    gap: 1rem;
    border-radius: 50px;
    overflow: visible;
    box-shadow: none;
    background: none;
    margin-bottom: 0.5rem;
    justify-content: center;
}

.account-type .btn {
    flex: 1 1 0;
    border-radius: 50px !important;
    font-size: 1.1rem;
    padding: 0.9rem 1.5rem;
    margin: 0;
    background: var(--bg-secondary);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.07);
    transition: all 0.2s cubic-bezier(.4,0,.2,1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-type .btn-check:checked + .btn-outline-primary,
.account-type .btn.active,
.account-type .btn:active {
    background: var(--primary-color);
    color: var(--bs-white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.13);
    z-index: 2;
}

.account-type .btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--bs-white);
    border-color: var(--primary-color);
}

.account-type .btn i {
    font-size: 1.2em;
    margin-right: 0.5em;
}

/* Remove default btn-group border radius for tabs */
.account-type .btn-group .btn:not(:last-child) {
    border-top-right-radius: 50px !important;
    border-bottom-right-radius: 50px !important;
}

.account-type .btn-group .btn:not(:first-child) {
    border-top-left-radius: 50px !important;
    border-bottom-left-radius: 50px !important;
}

/* Form elements in modals */
.modal .form-control {
    background-color: var(--bg-color);
    border-color: var(--border-color);
    color: var(--text-color);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.modal .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-rgb), 0.25);
}

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

.modal .form-check-label {
    color: var(--text-color);
}

.modal .text-muted {
    color: var(--text-muted) !important;
}

/* Modal links */
.modal a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.modal a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Modal close button */
.modal .btn-close {
    filter: var(--btn-close-filter);
}

[data-theme="dark"] .modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Footer Styles */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 5rem 0 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer ul li a i {
    font-size: 1.2rem;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1rem;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .btn {
    padding: 0.75rem 1.5rem;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 3rem 0 2rem;
}

/* Responsive Navigation */
@media (max-width: 991.98px) {
    .nav-divider {
        display: none;
    }
    
    .nav-social {
        margin: 1rem 0;
        justify-content: center;
    }
    
    .nav-auth {
        margin-top: 1rem;
        justify-content: center;
    }
    
    .navbar-nav {
        margin-bottom: 1rem;
    }
}

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

.feature-card,
.class-card,
.system-card {
    animation: fadeIn 0.5s ease-out;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color-dark);
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: var(--dark-color);
}

.sidebar .logo {
    max-width: 150px;
    margin-bottom: 1rem;
}

.sidebar .nav-link {
    color: var(--light-color);
    padding: 0.5rem 1rem;
    margin: 0.2rem 0;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

/* Main Content */
main {
    padding-top: 1.5rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background: var(--card-bg);
    border-color: var(--border-color);
}

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

.card-header {
    background-color: var(--bg-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

/* Stats Cards */
.stats-card {
    background: var(--primary-color);
    color: white;
}

.stats-card .icon {
    font-size: 2rem;
    opacity: 0.8;
}

/* Quest Cards */
.quest-card {
    border-left: 4px solid var(--primary-color);
}

.quest-card.completed {
    border-left-color: var(--success-color);
}

.quest-card.failed {
    border-left-color: var(--danger-color);
}

/* Spell Cards */
.spell-card {
    background: var(--secondary-color);
    color: white;
}

.spell-card .mana-cost {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
}

/* Potion Cards */
.potion-card {
    background: var(--success-color);
    color: white;
}

/* Award Cards */
.award-card {
    background: var(--warning-color);
    color: white;
}

/* Raid Cards */
.raid-card {
    background: var(--danger-color);
    color: white;
}

/* Progress Bars */
.progress {
    height: 0.5rem;
    border-radius: 1rem;
    background-color: rgba(255, 255, 255, 0.2);
}

.progress-bar {
    border-radius: 1rem;
}

/* Notifications */
.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 1rem;
    border-radius: 5px;
    color: white;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

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

.notification.success { background-color: var(--success-color); }
.notification.error { background-color: var(--danger-color); }
.notification.warning { background-color: var(--warning-color); }
.notification.info { background-color: var(--info-color); }

/* Game-specific Styles */
.character-stats {
    background-color: white;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.stat-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 0.5rem;
    color: white;
}

.stat-icon.health { background-color: var(--rpg-health); }
.stat-icon.mana { background-color: var(--rpg-mana); }
.stat-icon.xp { background-color: var(--rpg-experience); }
.stat-icon.level { background-color: var(--rpg-gold); }

/* Inventory Grid */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.inventory-item {
    background-color: white;
    border-radius: 5px;
    padding: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.inventory-item:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 0.5rem;
    border-radius: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Additional Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Features Section */
#features h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

#features .text-muted {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

#features .btn-primary {
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--primary-color);
    border: none;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
    transition: all 0.3s ease;
}

#features .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
    background: var(--primary-color-dark);
}

/* Section Alternating Backgrounds */
section:nth-child(even) {
    background-color: var(--bg-color);
}

/* Section Headers */
section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

section .text-muted {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Hover Effects for Feature Cards */
.feature-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.feature-card:hover i {
    color: var(--primary-color);
}

/* List Item Animations */
.feature-card ul li {
    transition: all 0.3s ease;
}

.feature-card:hover ul li {
    color: var(--primary-color);
}

.feature-card:hover .class-icon {
    color: var(--primary-color);
}

/* Class Cards */
.class-card:hover .class-icon {
    color: var(--primary-color);
}

/* Theme Switcher */
.theme-switcher {
    background: none;
    border: none;
    padding: 0.5rem;
    color: var(--text-color);
    transition: color 0.2s ease;
}

.theme-switcher:hover {
    color: var(--primary-color);
}

.theme-switcher:focus {
    box-shadow: none;
    outline: none;
}

/* Theme Switcher Button */
#themeSwitcher {
    background: var(--glass-bg, rgba(255, 255, 255, 0.1));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.2));
    color: var(--text-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#themeSwitcher:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

#themeSwitcher:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb, 124, 115, 255), 0.25);
    outline: none;
}

/* Dark mode adjustments for theme switcher */
[data-theme="dark"] #themeSwitcher {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] #themeSwitcher {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    transition: all 0.3s ease;
}

/* Buttons */
.btn-primary {
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-bg);
}

.btn-outline-primary {
    color: var(--btn-outline-text);
    border-color: var(--btn-outline-border);
}

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

/* Forms */
.form-control {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--input-text);
}

.form-control:focus {
    background-color: var(--input-focus-bg);
    border-color: var(--input-focus-border);
    color: var(--input-text);
    box-shadow: 0 0 0 0.25rem var(--input-focus-shadow);
}

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

/* Form Validation */
.form-control.is-invalid {
    border-color: var(--bs-danger);
    background-image: none;
}

.form-control.is-valid {
    border-color: var(--bs-success);
    background-image: none;
}

.invalid-feedback {
    color: var(--bs-danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: calc(50% - 0.5rem);
    left: calc(50% - 0.5rem);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

/* Heroic Classes Section */
.classes-section {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.classes-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.class-card {
    position: relative;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
    z-index: 2;
}

/* Holographic Effect */
.class-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 75%,
        transparent 100%
    );
    transform: rotate(45deg);
    animation: holographic 3s linear infinite;
    pointer-events: none;
}

@keyframes holographic {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }
    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

/* Defender Card (Red) */
.class-card.defender {
    background: linear-gradient(135deg, #8B0000 0%, #B22222 100%);
    border: 2px solid #FF4444;
    box-shadow: 0 10px 20px rgba(255, 68, 68, 0.2);
}

.class-card.defender::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 68, 68, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.class-card.defender:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 68, 68, 0.3);
}

/* Wizard Card (Blue) */
.class-card.wizard {
    background: linear-gradient(135deg, #00008B 0%, #0000CD 100%);
    border: 2px solid #4169E1;
    box-shadow: 0 10px 20px rgba(65, 105, 225, 0.2);
}

.class-card.wizard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(65, 105, 225, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.class-card.wizard:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(65, 105, 225, 0.3);
}

/* Medic Card (Green) */
.class-card.medic {
    background: linear-gradient(135deg, #006400 0%, #008000 100%);
    border: 2px solid #32CD32;
    box-shadow: 0 10px 20px rgba(50, 205, 50, 0.2);
}

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

.class-card.medic:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(50, 205, 50, 0.3);
}

/* Augmentor Card (Gold) */
.class-card.augmentor {
    background: linear-gradient(135deg, #B8860B 0%, #DAA520 100%);
    border: 2px solid #FFD700;
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

.class-card.augmentor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: conic-gradient(from 0deg at 50% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%, rgba(255, 215, 0, 0.1) 100%);
    animation: rotate 10s linear infinite;
}

.class-card.augmentor:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.3);
}

/* Common Class Card Elements */
.class-card h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin: 1.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.class-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.class-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.class-icon i {
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.class-card:hover .class-icon {
    transition: transform 0.3s ease;
}

/* Class-specific Icon Colors */
.class-card.defender .class-icon i {
    color: #FF4444;
}

.class-card.wizard .class-icon i {
    color: #4169E1;
}

.class-card.medic .class-icon i {
    color: #32CD32;
}

.class-card.augmentor .class-icon i {
    color: #FFD700;
}

/* Animation Keyframes */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .class-card {
        margin-bottom: 2rem;
    }
    
    .class-card:hover {
        transform: translateY(-5px);
    }
}

/* Mechanics Section */
.mechanics-section {
    background: var(--bg-primary);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.mechanics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/patterns/dots-pattern.png') repeat;
    opacity: 0.1;
    pointer-events: none;
}

.mechanics-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.mechanics-slides {
    position: relative;
    height: 500px;
}

.mechanics-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.mechanics-slide.active {
    opacity: 1;
    visibility: visible;
}

.mechanic-card {
    height: 100%;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    border-radius: 20px;
    padding: 2rem;
    gap: 3rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

/* Holographic Effects */
.hp-card .card-inner {
    background: linear-gradient(135deg, 
        rgba(255, 0, 0, 0.05) 0%, 
        rgba(255, 0, 0, 0.1) 100%
    );
    border: 2px solid rgba(255, 0, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.1);
}

.mp-card .card-inner {
    background: linear-gradient(135deg, 
        rgba(0, 0, 255, 0.05) 0%, 
        rgba(0, 0, 255, 0.1) 100%
    );
    border: 2px solid rgba(0, 0, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 0, 255, 0.1);
}

.xp-card .card-inner {
    background: linear-gradient(135deg, 
        rgba(0, 255, 0, 0.05) 0%, 
        rgba(0, 255, 0, 0.1) 100%
    );
    border: 2px solid rgba(0, 255, 0, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
}

.gp-card .card-inner {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.05) 0%, 
        rgba(255, 215, 0, 0.1) 100%
    );
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

/* Holographic Overlay */
.card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 75%,
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 200% 200%;
    animation: holographic-shift 3s ease infinite;
    border-radius: 20px;
    pointer-events: none;
}

@keyframes holographic-shift {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

/* Card Layout */
.card-left {
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-right: 2rem;
    border-right: 1px solid var(--border-color);
}

.card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
}

/* Stat Icons */
.stat-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.hp-card .stat-icon {
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.mp-card .stat-icon {
    color: #4444ff;
    text-shadow: 0 0 10px rgba(68, 68, 255, 0.5);
}

.xp-card .stat-icon {
    color: #44ff44;
    text-shadow: 0 0 10px rgba(68, 255, 68, 0.5);
}

.gp-card .stat-icon {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Card Content */
.mechanic-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hp-card h3 { color: var(--rpg-health); }
.mp-card h3 { color: var(--rpg-mana); }
.xp-card h3 { color: var(--rpg-experience); }
.gp-card h3 { color: var(--rpg-gold); }

.fantasy-desc, .practical-desc {
    text-align: left;
}

.fantasy-desc h4, .practical-desc h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.fantasy-desc p, .practical-desc p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* Carousel Controls */
.carousel-controls {
    display: none; /* Hide the arrow controls */
}

.mechanics-dots {
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    transform: scale(1.2);
}

.dot.active {
    transform: scale(1.2);
}

.hp-card .dot.active { background: var(--rpg-health); }
.mp-card .dot.active { background: var(--rpg-mana); }
.xp-card .dot.active { background: var(--rpg-experience); }
.gp-card .dot.active { background: var(--rpg-gold); }

@media (max-width: 992px) {
    .mechanics-dots {
        bottom: -1.25rem;
    }
}

@media (max-width: 768px) {
    .mechanics-dots {
        bottom: -1rem;
    }
}

@media (max-width: 576px) {
    .mechanics-dots {
        bottom: -0.75rem;
    }
}

/* Key Features Section */
.key-features-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-content {
    display: flex;
    gap: 2rem;
}

.feature-left {
    flex: 1;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.feature-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.feature-list li {
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-list li i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .feature-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .feature-right {
        align-items: flex-start;
    }

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

/* Modal: Make login/register modal wider */
#loginModal .modal-dialog,
#registerModal .modal-dialog {
    max-width: 540px;
}
@media (min-width: 768px) {
    #loginModal .modal-dialog,
    #registerModal .modal-dialog {
        max-width: 600px;
    }
}
@media (min-width: 992px) {
    #loginModal .modal-dialog,
    #registerModal .modal-dialog {
        max-width: 700px;
    }
}

/* User Menu Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    z-index: 999999999 !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    margin-top: 0.125rem !important;
}

.btn-icon {
    background: none;
    border: none;
    padding: 0.5rem;
    color: var(--text-color);
    transition: color 0.2s ease;
}

.btn-icon:hover {
    color: var(--primary-color);
}

.btn-icon:focus {
    box-shadow: none;
    outline: none;
} 

/* Social Media Icons */
.social-media-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-right: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 0.25rem;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-icon.discord:hover {
    background: #5865F2;
    border-color: #5865F2;
}

.social-icon.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
}

.social-icon i {
    font-size: 1.1rem;
}

/* Dark theme adjustments */
[data-theme="dark"] .social-icon {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .social-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Light theme adjustments */
[data-theme="light"] .social-icon {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    color: #333;
}

[data-theme="light"] .social-icon:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-media-icons {
        gap: 0.5rem;
        margin-right: 0.75rem;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
        margin: 0 0.15rem;
    }
    
    .social-icon i {
        font-size: 1rem;
    }
} 

/* Google Account Linking Modal Styles */
#googleAccountLinkingModal .modal-content {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 15px;
}

#googleAccountLinkingModal .modal-header {
    border-bottom: 1px solid var(--border-color);
}

#googleAccountLinkingModal .modal-title {
    color: var(--text-color);
    font-weight: 600;
}

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

#googleAccountLinkingModal .form-control {
    background-color: var(--bg-color);
    border-color: var(--border-color);
    color: var(--text-color);
}

#googleAccountLinkingModal .form-control:focus {
    background-color: var(--bg-color);
    border-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

#googleAccountLinkingModal .form-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

#googleAccountLinkingModal .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

#googleAccountLinkingModal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

#googleAccountLinkingModal .btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

#googleAccountLinkingModal .btn-outline-secondary:hover {
    background-color: var(--border-color);
    color: var(--text-color);
    transform: translateY(-1px);
}

/* Validation states for Google account linking modal */
#googleAccountLinkingModal .form-control.is-valid {
    border-color: var(--success-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
}

#googleAccountLinkingModal .form-control.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 0.2rem rgba(214, 48, 49, 0.25);
}

/* Classcraft Alternative Section Styles */
.classcraft-alternative-section {
    position: relative;
    overflow: hidden;
}

.classcraft-alternative-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23f0f0f0" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.classcraft-alternative-section h2 {
    color: var(--text-color);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.classcraft-alternative-section .lead {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.alternative-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s var(--animation-smooth);
    position: relative;
    z-index: 2;
    height: 100%;
}

.alternative-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.alternative-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    overflow: hidden;
}

.alternative-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.alternative-icon i {
    font-size: 2rem;
    color: white;
    z-index: 2;
    position: relative;
}

.alternative-card h4 {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.alternative-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive adjustments for Classcraft alternative section */
@media (max-width: 768px) {
    .classcraft-alternative-section h2 {
        font-size: 2rem;
    }
    
    .classcraft-alternative-section .lead {
        font-size: 1.1rem;
    }
    
    .alternative-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .alternative-icon {
        width: 60px;
        height: 60px;
    }
    
    .alternative-icon i {
        font-size: 1.5rem;
    }
} 

/* Form Select */
.form-select {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--input-text);
    transition: all 0.3s ease;
}

.form-select:focus {
    background-color: var(--input-focus-bg);
    border-color: var(--input-focus-border);
    color: var(--input-text);
    box-shadow: 0 0 0 0.25rem var(--input-focus-shadow);
}

/* Form Textarea */
.form-control[type="textarea"],
textarea.form-control {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--input-text);
    transition: all 0.3s ease;
}

.form-control[type="textarea"]:focus,
textarea.form-control:focus {
    background-color: var(--input-focus-bg);
    border-color: var(--input-focus-border);
    color: var(--input-text);
    box-shadow: 0 0 0 0.25rem var(--input-focus-shadow);
}

/* Form Check Input */
.form-check-input {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 0.25rem var(--input-focus-shadow);
}

/* Form Label */
.form-label {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Form Text */
.form-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Update Modal Styles */
.update-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 2px solid #7C73FF;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    animation: modalEntrance 0.6s ease-out;
}

@keyframes modalEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.update-modal-header {
    background: linear-gradient(135deg, #7C73FF 0%, #FF6B6B 100%);
    border-bottom: none;
    padding: 1.5rem 2rem;
    position: relative;
}

.update-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="magic" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="rgba(255,255,255,0.2)"/></pattern></defs><rect width="100" height="100" fill="url(%23magic)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.update-modal-header .modal-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.update-modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.update-modal-header .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.update-modal-body {
    padding: 2rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* Video Container */
.video-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: #000;
}

.update-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-overlay:hover,
.video-overlay:focus {
    background: rgba(0, 0, 0, 0.1);
    outline: 2px solid #7C73FF;
    outline-offset: 2px;
}

.play-button {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #7C73FF 0%, #FF6B6B 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.play-button i {
    color: white;
    font-size: 2rem;
    margin-left: 5px;
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

/* Update Content */
.update-content {
    padding-left: 1rem;
}

.update-content-left {
    margin-top: 1.5rem;
}

.update-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(124, 115, 255, 0.2);
    transition: all 0.3s ease;
}

.update-section:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(124, 115, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 115, 255, 0.2);
}

.update-section-title {
    color: #7C73FF;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.update-section-title i {
    background: linear-gradient(135deg, #7C73FF 0%, #FF6B6B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 0.5rem;
}

.update-description {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.update-features li {
    color: #b0b0b0;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.update-features li:hover {
    color: #e0e0e0;
}

.update-features li i {
    color: #4CAF50;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.update-modal-footer {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    border-top: 1px solid rgba(124, 115, 255, 0.3);
    padding: 1.5rem 2rem;
}

.update-modal-footer .btn {
    background: linear-gradient(135deg, #7C73FF 0%, #FF6B6B 100%);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(124, 115, 255, 0.4);
}

.update-modal-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 115, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .update-modal-body {
        padding: 1rem;
    }
    
    .update-content {
        padding-left: 0;
        margin-top: 1rem;
    }
    
    .update-content-left {
        margin-top: 1rem;
    }
    
    .update-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .update-section-title {
        font-size: 1.2rem;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button i {
        font-size: 1.5rem;
    }
    
    .update-modal-header {
        padding: 1rem 1.5rem;
    }
    
    .update-modal-header .modal-title {
        font-size: 1.3rem;
    }
    
    .update-modal-footer {
        padding: 1rem 1.5rem;
    }
}

