@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body { font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif; margin: 0; padding: 0; transition: all 0.3s; background: #000000; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow-x: hidden; overflow-y: auto; }
.page-title { font-size: 32px; font-weight: bold; color: white; text-align: center; margin: 20px auto 40px auto; max-width: 1200px; padding: 0 5%; background: linear-gradient(45deg, #667eea, #764ba2); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.main-container { max-width: 1200px; width: 90%; padding: 30px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 24px; backdrop-filter: blur(40px) saturate(180%); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1); margin: 0 auto 50px auto; }
.form-group { margin: 15px 0; }
label { display: block; margin-bottom: 5px; font-weight: bold; }
input, select { width: 97%; padding: 12px 16px; border: none; border-radius: 16px; background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(40px) saturate(180%); color: #ffffff; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.12); transition: all 0.3s ease; outline: none; }
input:focus, select:focus { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 0 3px rgba(255, 255, 255, 0.08); }
button { background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(40px) saturate(180%); color: white; padding: 16px 40px; border: none; border-radius: 20px; cursor: pointer; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.15); transition: all 0.3s ease; font-weight: 600; font-size: 16px; margin: 30px auto 10px; display: block; }
button:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-2px); box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.result { background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(40px) saturate(180%); padding: 25px; border-radius: 20px; margin-top: 20px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1); }
.eligible { color: #28a745; }
.not-eligible { color: #dc3545; }

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100vw;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(150%);
    padding: 15px 5%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    margin: 0 0 20px 0;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: white;
    background: linear-gradient(45deg, #667eea, #764ba2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-nav {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
    align-items: center;
}

.nav-link {
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s;
    font-weight: 500;
}

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

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tabs-container {
    position: relative;
}

canvas {
    border: none;
    border-radius: 16px;
    margin-top: 15px;
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

#pieChart {
    width: 250px;
    height: 250px;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Dark mode styles */
.dark-mode {
    background: #000000;
    color: #ffffff;
}

.dark-mode input,
.dark-mode select {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-mode .result {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-mode .tabs {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .tab-button {
    color: #ccc;
}

.dark-mode .tab-button:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dark-mode .tab-button.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.dark-mode canvas {
    background: #ffffff;
}

/* Dropdown sections */
details {
    margin: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(40px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

summary {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 20px;
    cursor: pointer;
    font-weight: bold;
    user-select: none;
    border-radius: 20px 20px 0 0;
}

summary:hover {
    background: rgba(255, 255, 255, 0.2);
}

summary h3 {
    margin: 0;
    display: inline;
    color: white;
}

details[open] summary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px 20px 0 0;
}

details > *:not(summary) {
    padding: 0 20px 20px;
}

/* Dark mode dropdown styles */
.dark-mode details {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.dark-mode summary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.dark-mode summary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.dark-mode details[open] summary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Error Popup */
.error-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px) saturate(180%);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 1000;
    display: none;
    text-align: center;
    width: 300px;
    height: 200px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.error-popup.show {
    display: flex;
}

.error-popup h3 {
    color: #ff4444;
    margin: 0 0 10px 0;
}

.error-popup p {
    color: rgba(255,255,255,0.8);
    margin: 0 0 15px 0;
}

.error-popup button {
    margin: 0 auto;
    padding: 10px 20px;
    font-size: 14px;
    display: block;
}

/* Authentication Styles */
#authSection {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 10px 20px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    display: inline-block;
}

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

.user-profile-container {
    position: relative;
    display: flex;
    align-items: center;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    transition: background 0.3s;
}

.user-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-initial {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

#userName {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.dropdown-arrow {
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    transition: transform 0.3s;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 120px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 1000;
}

.user-dropdown-menu.show {
    display: block;
}

.dropdown-item {
    width: 100%;
    padding: 8px 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    transition: background 0.3s;
}

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

/* Login Prompt Styles */
.login-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

.login-content {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(40px) saturate(180%);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.login-content h2 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 28px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 25px 0;
    font-size: 16px;
}
.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.auth-buttons .auth-btn {
    width: 100%;
    margin: 0;
    padding: 12px 20px;
    font-size: 14px;
    text-align: center;
}

.pricing-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0 40px 0;
}

.pricing-plan {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(40px) saturate(180%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pricing-plan.premium {
    border: 2px solid #667eea;
    transform: scale(1.05);
}

.pricing-plan h3 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 24px;
}

.price {
    font-size: 36px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 20px;
}

.price span {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.pricing-plan ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.pricing-plan li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.plan-btn {
    width: 100%;
    padding: 12px;
    margin: 20px 0 0 0;
    border-radius: 12px;
    font-weight: 600;
}

.plan-btn.upgrade {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
}

.prediction-counter {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin: 10px 0;
}

.premium-feature {
    font-size: 10px;
    color: #667eea;
    background: rgba(102, 126, 234, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
}

.upgrade-notice {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.payment-options {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    justify-content: center;
}

.payment-method {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

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

/* Theme Toggle Button */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    margin: 0;
    display: inline-block;
}

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

/* Light Mode Styles */
.light-mode {
    background: #f8f9fa;
    color: #333;
}

.light-mode .page-title {
    color: #333;
    -webkit-text-fill-color: #333;
}

.light-mode .main-container {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.light-mode .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.light-mode .navbar-brand {
    color: #333;
    -webkit-text-fill-color: #333;
}

.light-mode .nav-link {
    color: rgba(0, 0, 0, 0.8);
}

.light-mode .nav-link:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #333;
}

.light-mode .nav-link.active {
    background: rgba(0, 0, 0, 0.12);
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.light-mode input,
.light-mode select {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.light-mode input:focus,
.light-mode select:focus {
    background: rgba(255, 255, 255, 1);
    border: 1px solid rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.light-mode button {
    background: rgba(0, 0, 0, 0.08);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.light-mode button:hover {
    background: rgba(0, 0, 0, 0.12);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.light-mode .result {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    color: #333;
}

.light-mode .theme-toggle {
    background: rgba(0, 0, 0, 0.08);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.light-mode .auth-btn {
    background: rgba(0, 0, 0, 0.08);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.light-mode .pricing-plan {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    color: #333;
}

.light-mode .pricing-plan h3 {
    color: #333;
}

.light-mode .pricing-plan li {
    color: rgba(0, 0, 0, 0.8);
}

.light-mode .login-content {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.light-mode .login-content h2 {
    color: #333;
    -webkit-text-fill-color: #333;
}

.light-mode .login-content p {
    color: rgba(0, 0, 0, 0.7);
}

.light-mode details {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.light-mode summary {
    background: rgba(0, 0, 0, 0.06);
    color: #333;
}

.light-mode summary h3 {
    color: #333;
}



.light-mode label {
    color: #333;
}

.light-mode .user-dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.light-mode .dropdown-item {
    color: rgba(0, 0, 0, 0.8);
}

.light-mode .dropdown-item:hover {
    background: rgba(0, 0, 0, 0.08);
}

.light-mode #userName {
    color: rgba(0, 0, 0, 0.8);
}

.light-mode .prediction-counter {
    background: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.light-mode .payment-method {
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.8);
}

.light-mode .payment-method:hover {
    background: rgba(0, 0, 0, 0.12);
}

.light-mode .error-popup {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.light-mode .error-popup p {
    color: rgba(0, 0, 0, 0.7);
}

/* Payment Popup */
.payment-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.payment-popup.show {
    display: flex;
}

.payment-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px) saturate(180%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    width: 400px;
    max-width: 90vw;
}

.payment-content h3 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 24px;
}

.payment-content p {
    color: rgba(255,255,255,0.8);
    margin: 0 0 25px 0;
    font-size: 16px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.payment-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    margin: 0;
}

.payment-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    margin: 0;
}

.light-mode .payment-content {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.light-mode .payment-content h3 {
    color: #333;
}

.light-mode .payment-content p {
    color: rgba(0, 0, 0, 0.7);
}

.light-mode .payment-btn {
    background: rgba(0, 0, 0, 0.08);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.light-mode .cancel-btn {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.light-mode .hamburger span {
    background: #333;
}

.light-mode .navbar-nav {
    background: rgba(255, 255, 255, 0.98);
}

.light-mode .close-sidebar {
    color: #333;
}

/* Success Popup */
.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.success-popup.show {
    display: flex;
}

.success-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px) saturate(180%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    width: 400px;
    max-width: 90vw;
}

.success-content h3 {
    color: #28a745;
    margin: 0 0 15px 0;
    font-size: 24px;
}

.success-content p {
    color: rgba(255,255,255,0.8);
    margin: 0 0 15px 0;
    font-size: 16px;
}

.success-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0 0 0;
}

.success-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.light-mode .success-content {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.light-mode .success-content p {
    color: rgba(0, 0, 0, 0.7);
}


/* Responsive Design for All Screen Sizes */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin: 0;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

.close-sidebar {
    display: none;
}

/* Theme Toggle Switch */
.theme-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.theme-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: rgba(255, 255, 255, 0.3);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.light-mode .slider {
    background-color: rgba(0, 0, 0, 0.2);
}

.light-mode .slider:before {
    background-color: #333;
}

.light-mode input:checked + .slider {
    background-color: rgba(0, 0, 0, 0.3);
}

@media (max-width: 1000px) {
    body {
        font-size: 14px;
    }
    
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 15px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .close-sidebar {
        display: flex;
        position: absolute;
        top: 15px;
        right: 15px;
        background: transparent;
        border: none;
        color: white;
        font-size: 40px;
        cursor: pointer;
        padding: 5px;
        margin: 0;
        line-height: 1;
        width: 50px;
        height: 50px;
        align-items: center;
        justify-content: center;
    }
    
    .navbar-nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(40px);
        flex-direction: column;
        gap: 0;
        padding: 80px 5% 20px 5%;
        transition: right 0.3s ease;
        z-index: 2000;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }
    
    .main-container {
        position: relative;
        z-index: 1;
    }
    
    .navbar-nav.active {
        right: 0;
    }
    
    .nav-link {
        padding: 15px 20px;
        width: 100%;
        text-align: left;
        margin: 5px 0;
    }
    
    #authSection {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    #themeToggle {
        width: 100%;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .main-container {
        width: 95%;
        padding: 20px;
    }
    
    .pricing-container {
        grid-template-columns: 1fr;
    }
    
    canvas {
        width: 100%;
        height: auto;
    }
    
    .payment-content, .success-content {
        width: 95%;
        padding: 20px;
    }
    
    input, select, button {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 13px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .navbar-brand {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 12px;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .navbar-brand {
        font-size: 18px;
    }
    
    input, select, button {
        font-size: 12px;
    }
    
    .pricing-plan {
        padding: 15px;
    }
}

/* TV and Large Screen Support */
@media (min-width: 1920px) {
    body {
        font-size: 20px;
    }
    
    .navbar {
        max-width: 1800px;
        padding: 20px 40px;
    }
    
    .navbar-brand {
        font-size: 32px;
    }
    
    .nav-link {
        font-size: 20px;
        padding: 12px 24px;
    }
    
    .page-title {
        font-size: 48px;
    }
    
    .main-container {
        max-width: 1600px;
        padding: 40px;
    }
    
    input, select, button {
        font-size: 20px;
        padding: 16px 20px;
    }
    
    .pricing-plan {
        padding: 40px;
    }
    
    .price {
        font-size: 48px;
    }
    
    canvas {
        max-width: 1200px;
    }
    
    .payment-content, .success-content {
        width: 600px;
        padding: 50px;
    }
    
    h3 {
        font-size: 32px;
    }
    
    p {
        font-size: 20px;
    }
}

@media (min-width: 2560px) {
    body {
        font-size: 24px;
    }
    
    .navbar-brand {
        font-size: 40px;
    }
    
    .page-title {
        font-size: 56px;
    }
    
    .main-container {
        max-width: 2000px;
    }
    
    canvas {
        max-width: 1600px;
    }
}

.light-mode .auth-btn {
    background: transparent;
    color: rgba(0, 0, 0, 0.7);
    border: none;
}

.light-mode .auth-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #333;
}

.theme-toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 15px;
    transition: all 0.3s;
}

.theme-toggle-container:hover {
    background: rgba(255, 255, 255, 0.1);
}

.theme-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.light-mode .theme-label {
    color: rgba(0, 0, 0, 0.7);
}

.light-mode .theme-toggle-container:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* Responsive spacing for all screen sizes */
@media (max-width: 1000px) {
    .page-title {
        margin: 20px 4% 40px 4%;
    }
    
    .main-container {
        margin: 0 4% 50px 4%;
        width: 92%;
    }
}

@media (max-width: 768px) {
    .page-title {
        margin: 20px 5% 40px 5%;
    }
    
    .main-container {
        margin: 0 5% 50px 5%;
        width: 90%;
    }
}

@media (max-width: 480px) {
    .page-title {
        margin: 20px 4% 40px 4%;
    }
    
    .main-container {
        margin: 0 4% 50px 4%;
        width: 92%;
    }
}

@media (max-width: 1000px) {
    .theme-toggle-container {
        margin: 10px 0;
        width: 100%;
    }
    
    .auth-btn {
        margin: 5px 0;
        width: 100%;
    }
}

@media (max-width: 1000px) {
    .theme-toggle-container {
        margin: 10px 0;
        width: 100%;
        justify-content: space-between;
    }
    
    .auth-btn {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        padding: 15px 20px;
        width: 100%;
        text-align: left;
        margin: 5px 0;
    }
}

/* Additional spacing for screens above 770px */
@media (min-width: 770px) {
    .page-title {
        margin: 20px 8% 40px 8%;
    }
    
    .main-container {
        margin: 0 8% 50px 8%;
        width: 84%;
    }
}



/* Responsive spacing for all screen sizes */
@media (max-width: 480px) {
    .page-title {
        padding: 0 5%;
    }
    
    .main-container {
        width: 90%;
    }
}

/* Ensure content starts below fixed navbar */
.page-title {
    margin-top: 100px;
}

/* Prevent horizontal scrolling */
html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    max-width: 100vw;
}
