:root {
    --primary: #3851ff; /* Slightly richer blue for light background */
    --primary-light: #526eff;
    --secondary: #ff3366; /* Vibrant warm pink */
    --bg-dark: #f0f4f8; /* Soft light gray-blue background */
    --bg-card: rgba(255, 255, 255, 0.85); /* Frosty white glass */
    --border-glass: rgba(0, 0, 0, 0.05); /* Light frame border */
    --text-main: #232a35; /* Dark text for contrast */
    --text-muted: #5b6878; /* Subdued dark text */
    --font-family: 'Pretendard', sans-serif;
    
    --bg-surface: #ffffff; /* Modal/heavy card solids */
    --shadow-soft: rgba(0, 0, 0, 0.05);
}

/* ==============================
   Year Selection Landing Screen
   ============================== */
.year-selection-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    position: relative;
    z-index: 10;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.year-selection-screen.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    position: absolute;
    width: 100%;
}

.year-selection-content {
    text-align: center;
    padding: 40px;
}

.year-sel-logo {
    height: 120px;
    width: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 4px 12px rgba(82, 110, 255, 0.3));
    animation: float 6s ease-in-out infinite;
}

.official-desc-section p, .main-content-section p {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 15px;
}

.main-content-section {
    margin-bottom: 25px;
}

.main-content-section h3 i { color: var(--primary-light); }

.year-sel-title {
    font-size: 3rem;
    color: var(--text-main);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
}

.year-sel-title span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.year-sel-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 50px;
    font-weight: 500;
}

.year-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.year-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(25px);
    border-radius: 24px;
    padding: 35px 20px;
    width: 280px;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: var(--text-main);
    font-family: var(--font-family);
}

.year-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(82, 110, 255, 0.08), rgba(255, 82, 123, 0.08));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.year-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: rgba(82, 110, 255, 0.5);
    box-shadow: 0 20px 60px rgba(82, 110, 255, 0.15),
                0 0 40px rgba(82, 110, 255, 0.08);
}

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

.year-card:active {
    transform: translateY(-4px) scale(1.01);
}

.year-card-badge {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary);
    background: none;
    -webkit-text-fill-color: initial;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.year-card-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.year-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* Recommend Banner */
.recommend-banners-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 35px;
    width: 100%;
}

.recommend-banner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(56, 81, 255, 0.05), rgba(255, 51, 102, 0.05));
    border: 1px solid rgba(56, 81, 255, 0.2);
    border-radius: 18px;
    text-decoration: none;
    color: var(--text-main);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    width: 280px;
    box-sizing: border-box;
}

.recommend-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(56, 81, 255, 0.15);
    border-color: rgba(56, 81, 255, 0.4);
    background: linear-gradient(135deg, rgba(56, 81, 255, 0.1), rgba(255, 51, 102, 0.1));
}

.recommend-banner i {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.banner-text {
    display: flex;
    align-items: center;
}

.banner-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 750;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.banner-title i {
    font-size: 0.95rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.recommend-banner:hover .banner-title i {
    transform: translateX(4px);
}

/* App main transition */
#app-main {
    transition: opacity 0.5s ease;
}

#app-main.hidden {
    opacity: 0;
    display: none;
}

.grade-notice {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(82, 110, 255, 0.08);
    border: 1px solid rgba(82, 110, 255, 0.3);
    padding: 18px 25px;
    border-radius: 16px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.notice-icon {
    font-size: 1.8rem;
    color: var(--primary-light);
    display: flex;
    align-items: center;
}

.notice-content {
    color: var(--text-main);
    line-height: 1.6;
    font-size: 0.95rem;
}

.notice-content strong {
    color: var(--primary-light);
    font-weight: 700;
}

/* Subject Card Rules */
.subj-rule {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
}

.subj-rule.mandatory {
    background: rgba(82, 110, 255, 0.15);
    color: var(--primary-light);
}

.subj-rule.crossover {
    background: rgba(124, 58, 237, 0.08); /* Soft Violet */
    color: #7c3aed; /* Deep Violet for high contrast */
    border: 1px solid rgba(124, 58, 237, 0.2);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Glass Effects */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2; /* Lowered so body::after watermark sits on top */
    opacity: 0.2;
}

.bg-shape-1 {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--primary);
}

.bg-shape-2 {
    bottom: -200px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: var(--secondary);
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.brand-link {
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
}

.brand-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.brand-link:active {
    transform: translateY(0) scale(0.98);
}

.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50vh;
    padding: 80px 0 40px;
    gap: 40px;
}

.hero-top-badges {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
}

.school-logo {
    height: 56px; /* Bigger logo */
    width: auto;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-title {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.badge {
    display: inline-block;
    padding: 8px 16px; /* Slightly bigger padding */
    background: rgba(82, 110, 255, 0.2);
    border: 1px solid rgba(82, 110, 255, 0.4);
    color: var(--primary-light);
    border-radius: 24px;
    font-size: 0.95rem; /* Slightly larger font */
    font-weight: 600;
}

.hero-content {
    flex: 1;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

h1 span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.stats-row {
    display: flex;
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary-light);
}

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

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.hero-illustration {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-icon-cluster {
    position: relative;
    width: 300px;
    height: 300px;
}

.glass-icon {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: var(--text-main);
    box-shadow: 0 10px 30px var(--shadow-soft);
    animation: float 6s ease-in-out infinite;
}

.g-icon-1 { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.g-icon-2 { bottom: 20px; left: 0; animation-delay: 2s; background: rgba(82, 110, 255, 0.1); border-color: rgba(82, 110, 255, 0.3); }
.g-icon-3 { bottom: 20px; right: 0; animation-delay: 4s; background: rgba(255, 82, 123, 0.1); border-color: rgba(255, 82, 123, 0.3); }

/* Moved Stat Card position */
.g-icon-stat {
    top: calc(50% - 40px);
    left: calc(50% - 70px);
    width: 140px;
    height: auto;
    padding: 15px;
    flex-direction: column;
    font-size: 1.5rem;
    animation-delay: 3s;
    background: var(--bg-card);
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Loaders & Layout */
.hidden { display: none !important; }

.loader-container {
    padding: 100px 0;
    text-align: center;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Section Styling */
.section-container {
    margin: 60px 0;
}

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

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-header p {
    color: var(--text-muted);
}

/* Track Cards */
.track-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 60px;
}

.track-card {
    flex: 1 1 340px;
    max-width: 380px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.track-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.2);
}

.track-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.core-track .track-icon { color: #4cc9f0; }
.inquiry-track .track-icon { color: #f72585; }
.pe-track .track-icon { color: #ffd166; }
.arts-track .track-icon { color: #ef476f; }
.tech-track .track-icon { color: #06d6a0; }

.track-card h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.track-req {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.track-steps {
    list-style: none;
}

.track-steps li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-glass);
    font-size: 0.95rem;
}

.track-steps li:last-child {
    border-bottom: none;
}

.grade {
    font-weight: 600;
    font-size: 0.82rem;
    background: rgba(56, 81, 255, 0.08);
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 6px;
    margin-right: 8px;
    display: inline-block;
}

.grade.warning-tag {
    background: rgba(255, 51, 102, 0.08);
    color: var(--secondary);
}

.grade.notice-tag {
    background: rgba(0, 150, 255, 0.08);
    color: #0077b6;
}

/* Tabs */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary-light);
    color: white;
}

/* Subject Grid Layout - Vertical list per semester inside tab */
.semester-block {
    margin-bottom: 40px;
    background: rgba(0,0,0,0.2);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--border-glass);
}

.semester-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    padding: 8px 0 12px 16px;
    border-left: 5px solid var(--primary);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.semester-title > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.semester-credits {
    font-size: 0.9rem;
    color: var(--primary-light);
    background: rgba(82, 110, 255, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
}

/* Subject Rule Grouping styling */
.rule-group {
    margin-bottom: 60px;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 35px;
    position: relative;
    box-shadow: 0 10px 30px var(--shadow-soft);
}

.rule-group.elective {
    border: 2px solid rgba(255, 82, 123, 0.2);
    border-top: 6px solid var(--secondary);
    background: linear-gradient(to bottom, rgba(255, 82, 123, 0.03) 0%, var(--bg-surface) 100%);
}

.rule-group.mandatory {
    border: 2px solid rgba(82, 110, 255, 0.2);
    border-top: 6px solid var(--primary);
    background: linear-gradient(to bottom, rgba(82, 110, 255, 0.03) 0%, var(--bg-surface) 100%);
}

.rule-group:last-child {
    margin-bottom: 0;
}

.rule-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.rule-title.mandatory {
    color: var(--primary);
}

.rule-title.elective {
    color: var(--secondary);
}

.rule-title i {
    font-size: 1.8rem;
    background: rgba(0, 0, 0, 0.04);
    padding: 10px;
    border-radius: 12px;
}

.rule-count {
    font-size: 0.95rem;
    font-weight: 600;
    margin-left: 6px;
    opacity: 0.9;
}

/* Subject Cards inside Semester */
.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.subject-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.subject-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-3px);
    border-color: var(--primary-light);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.subj-cat {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
}

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

.subj-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px dashed var(--border-glass);
}

.subj-credit {
    font-size: 0.9rem;
    color: var(--primary-light);
    font-weight: 600;
}

.subj-rule {
    font-size: 0.8rem;
    background: rgba(255, 82, 123, 0.15);
    color: #ff8fa3;
    padding: 3px 8px;
    border-radius: 6px;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    box-shadow: 0 20px 40px var(--shadow-soft);
    width: 90%;
    max-width: 600px;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    
    /* Scroll support */
    max-height: 85vh;
    overflow-y: auto;
}

/* Custom scrollbar for modal */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover { color: white; }

.modal-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

#modal-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.modal-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-glass);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--primary-light);
    font-size: 1.2rem;
}

.teacher-comment-section {
    margin-bottom: 25px;
}

.official-desc-section {
    margin-bottom: 25px;
}

.main-content-section {
    margin-bottom: 0;
}

.teacher-comment-section h3, .official-desc-section h3, .main-content-section h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.teacher-comment-section h3 i { color: #ffd166; }

.comment-box {
    background: rgba(82, 110, 255, 0.05);
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    line-height: 1.8;
}

.official-desc-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
    background: var(--bg-card);
    padding: 4px 15px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
    }
    
    .stats-row {
        justify-content: center;
    }
    
    h1 { font-size: 2.5rem; }
    
    .glass-icon-cluster {
        width: 250px;
        height: 250px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .tabs-container {
        flex-direction: column;
    }
}
/* Floating Button */
.floating-principal-btn {
    display: inline-flex;
    margin-top: 25px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(15px);
    padding: 12px 24px;
    border-radius: 30px;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 30px var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-principal-btn:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: var(--primary-light);
    box-shadow: 0 15px 35px rgba(56, 81, 255, 0.15);
}

.floating-principal-btn i {
    font-size: 1.4rem;
    color: var(--primary);
}

/* Principal Modal Content */
.principal-modal-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    text-align: center;
    margin-top: 10px;
}

.principal-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
    font-style: italic;
    text-align: center;
    padding: 20px 30px;
    position: relative;
    font-weight: 500;
}

.principal-sign {
    text-align: right;
    margin-top: 25px;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 1rem;
    padding-right: 20px;
}

@media (max-width: 768px) {
    .floating-principal-btn {
        margin-top: 15px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* App Container Watermark Background */
.app-container {
    position: relative;
}

.app-container::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: url('world-map.png') no-repeat center;
    background-size: cover;
    opacity: 0.12; /* Increased for visibility */
    z-index: -1; /* Behind text/cards, above body background */
    pointer-events: none;
    mix-blend-mode: multiply;
}

.footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border-glass);
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 40px;
}

/* Floating Home Button */
.floating-home-btn {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(56, 81, 255, 0.12),
                0 0 15px rgba(56, 81, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: floatIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.floating-home-btn i {
    font-size: 1.6rem;
    color: var(--primary);
    transition: transform 0.3s ease, color 0.3s ease;
}

.floating-home-btn:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #ffffff, rgba(82, 110, 255, 0.08));
    border-color: rgba(56, 81, 255, 0.4);
    box-shadow: 0 15px 35px rgba(56, 81, 255, 0.22),
                0 0 25px rgba(56, 81, 255, 0.12);
}

.floating-home-btn:hover i {
    transform: scale(1.1);
    color: var(--primary-light);
}

.floating-home-btn:active {
    transform: translateY(-2px) scale(0.92);
    box-shadow: 0 5px 15px rgba(56, 81, 255, 0.15);
}

@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
