/* Prevents the white flash in dark mode by applying dark background immediately */
html.dark-mode {
    background: #000000;
}

/* Pre-load class to prevent transitions on page load */
.preload .navbar,
.preload .nav-links a,
.preload .toggle-thumb,
.preload .glass-card,
.preload .form-control,
.preload .btn {
    transition: none !important;
}

body {
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

*::before,
*::after {
    -webkit-tap-highlight-color: transparent;
}

/* Remove Android tap highlight blocks on interactive elements (iOS already hides) */
a, button, input, textarea, select {
    -webkit-tap-highlight-color: transparent;
}
.btn,
.password-toggle,
.capsule-toggle,
.social-icon-new,
.back-to-top,
label {
    -webkit-tap-highlight-color: transparent;
}

/* Tame tap highlight/outline on buttons while keeping keyboard focus visible */
button, .btn, input[type="button"], input[type="submit"] {
    -webkit-appearance: none;
    outline: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

button:focus-visible,
.btn:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible {
    outline: 2px solid #00796B;
    outline-offset: 2px;
}

button:focus,
.btn:focus,
input[type="button"]:focus,
input[type="submit"]:focus {
    outline: none;
    box-shadow: none;
}

/* Safari Compatibility */
* {
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

/* Gradient text fix */
.page-title,
.pricing-title,
.pricing-price {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Backdrop filter fix */
.navbar,
.glass-card,
.contact-form,
.contact-info,
.summary-section,
.faq-section {
    -webkit-backdrop-filter: blur(20px);
}

/* Animation fixes */
* {
    -webkit-transform: translateZ(0);
    -webkit-perspective: 1000;
}

/* Body Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Hind Siliguri', sans-serif;
    background: #ECF5F5;
    color: #323232;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    position: relative;
    transition: background 0.4s ease, color 0.4s ease;
}

/* This rule prevents the body flash in dark mode. */
/* If html has .dark-mode, the body should immediately get a dark background. */
html.dark-mode body {
    background: #000000;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: inherit;
    background-attachment: fixed;
    z-index: -2;
    pointer-events: none;
    animation: inherit;
    transform: translateZ(0);
}

/* Root variables for theming */
:root {
    --primary-color: #00796B;
    --primary-dark: #004D40;
    --secondary-color: #D87D4A;
    --secondary-light: #E89A6E;
    --text-primary: #323232;
    --text-secondary: #5C5C5C;
    --background-primary: #ECF5F5;
    --card-bg: rgba(255, 255, 255, 0.5);
    --card-border: rgba(0, 0, 0, 0.05);
    --form-bg: rgba(0, 0, 0, 0.04);
    --form-border: rgba(0, 0, 0, 0.06);
    --navbar-bg: linear-gradient(90deg, rgba(0, 121, 107, 0.2), rgba(0, 77, 64, 0.25));
    --navbar-border: rgba(0, 121, 107, 0.15);
    --navbar-shadow: rgba(0, 77, 64, 0.1);
}

html {
    scroll-behavior: smooth;
    background: #ECF5F5;
    background-attachment: fixed;
    min-height: 100%;
}

/* Light mode background image */
html:not(.dark-mode),
body:not(.dark-mode) {
    background: #ffffff;
    background-attachment: fixed;
}

/* Let the html background show through on body in light mode */
body:not(.dark-mode) {
    background: transparent;
}

/* Main Content Default Styles */
.main-content {
    height: 100vh;
    padding: 100px 20px 50px;
    max-width: 1200px;
    margin: 0 auto;
    overflow-y: auto;

    /* Hide scrollbar but allow scroll */
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* IE/Edge */
}
.main-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}
/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: max(26px, calc(26px + env(safe-area-inset-bottom)));
    right: 26px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 121, 107, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1400;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 121, 107, 0.3);
}

/* Animated Gradient Text */
.animated-gradient-text {
    background: linear-gradient(120deg, #ffffff, #ffd700, #a8c5ff, #ffffff);
    background-size: 240% 240%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.text-orange {
    background: linear-gradient(45deg, #D87D4A, #E89A6E);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #fd7e14; /* Fallback color */
}

/* Rainbow Background Animation */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 50%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 50%; }
    100% { background-position: 0% 50%; }
}

/* Navigation Bar */
.navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--navbar-border);
    padding: 10px 30px;
    box-shadow: 0 2px 15px var(--navbar-shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 0 0 15px 15px;
}
.navbar, .nav-links a, .glass-card, .form-control, .btn { transition: all 0.4s ease; }

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-circle {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 121, 107, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.logo-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 121, 107, 0.3);
}

.logo-circle i {
    color: #ffffff;
    font-size: 18px;
}

.nav-brand {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: #323232;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
    transition: left 0.5s ease;
}

.nav-links a:hover::before {
    left: 100%;
}

.nav-links a:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-links a.active {
    background: rgba(0, 121, 107, 0.1);
    color: #00796B;
}

/* Toggle Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
}

/* Capsule Toggle Styles */
.capsule-toggle {
    width: 70px;
    height: 32px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 2px;
    cursor: pointer;
    position: relative;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.capsule-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
    transition: left 0.5s ease;
}

.capsule-toggle:hover::before {
    left: 100%;
}

.capsule-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.capsule-toggle.disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

.toggle-track {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.toggle-thumb {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
    z-index: 2;
    border-radius: 18px;
}

.toggle-thumb.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.toggle-icon {
    font-size: 12px;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(18px) saturate(130%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 35px 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Animated border utility */
.animated-border-box {
    position: relative;
    overflow: hidden;
}

.animated-border-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #28a745, #ffc107, #dc3545, #28a745); /* Example gradient */
    background-size: 400% 400%;
    animation: gradientAnimation 8s ease infinite;
    z-index: -1;
    opacity: 0;
    border-radius: inherit; /* Inherit border-radius from parent */
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Form Styles */
.form-group {
    margin-bottom: 18px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #5C5C5C;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 50px;
    background: var(--form-bg);
    font-size: 15px;
    transition: all 0.3s ease;
    border: 1.5px solid var(--form-border);
    color: var(--text-primary);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.02);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.15);
}

.form-control::placeholder {
    color: #999;
}

.form-control:hover {
    background: rgba(0, 0, 0, 0.06);
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.85);
    border: 1.5px solid rgba(0, 121, 107, 0.35);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--text-secondary);
}

.password-toggle:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-50%) scale(1.1);
}

body.dark-mode .password-toggle {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

/* Form Links */
.form-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #5C5C5C;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.remember-me:hover {
    color: #D87D4A;
}

/* Round Remember Me Checkbox */
.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.04);
    appearance: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.remember-me input[type="checkbox"]:hover {
    border-color: rgba(0, 0, 0, 0.4);
}

.remember-me input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
}

.remember-me input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
}

.forgot-password {
    color: #5C5C5C;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.forgot-password::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #D87D4A;
    transition: width 0.3s ease;
}

.forgot-password:hover {
    color: #D87D4A;
}

.forgot-password:hover::before {
    width: 100%;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 121, 107, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 121, 107, 0.3);
}

.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Sign Up Section */
.signup-section {
    text-align: center;
    margin-top: 20px;
    color: #5C5C5C;
    font-size: 13px;
}

.signup-link {
    color: #D87D4A;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.signup-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #D87D4A;
    transition: width 0.3s ease;
}

.signup-link:hover {
    color: #BF6A3A;
    transform: translateX(4px);
}

.signup-link:hover::before {
    width: 100%;
}

/* Message Box */
.message {
    padding: 10px;
    border-radius: 8px;
    margin-top: 12px;
    text-align: center;
    display: none;
    font-weight: 500;
    backdrop-filter: blur(10px);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.success {
    background: rgba(40, 167, 69, 0.8);
    color: #ffffff;
    border: 1px solid rgba(40, 167, 69, 0.6);
}

.message.error {
    background: rgba(220, 53, 69, 0.8);
    color: #ffffff;
    border: 1px solid rgba(220, 53, 69, 0.6);
}

.message.info {
    background: rgba(23, 162, 184, 0.8);
    color: #ffffff;
    border: 1px solid rgba(23, 162, 184, 0.6);
}

/* Social Icons - ROUND SHAPE */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Changed from 10px to 50% for round shape */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: visible; /* Allow tooltip to show */
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.social-icon:hover {
    opacity: 0.8;
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

/* Dark Mode */
body.dark-mode {
    background: #000000;
    background-size: 400% 400%;
    animation: gradientAnimation 25s ease infinite;

    --primary-color: #00BFFF; /* DeepSkyBlue */
    --primary-dark: #1E90FF; /* DodgerBlue */
    --secondary-color: #FF00FF; /* Magenta for hover */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --background-primary: #ECF5F5;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --form-bg: rgba(255, 255, 255, 0.08);
    --form-border: rgba(255, 255, 255, 0.15);
    --navbar-bg: linear-gradient(90deg, rgba(0, 121, 107, 0.25), rgba(0, 77, 64, 0.3));
    --navbar-border: rgba(0, 121, 107, 0.2);
    --navbar-shadow: rgba(0, 77, 64, 0.15);
}

body.dark-mode {
    color: var(--text-primary);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 45px;
    height: 45px;
    border: 2.5px solid transparent;
    border-top: 2.5px solid #00BFFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Error Message Styles */
.error-message {
    color: #ef9a9a;
    font-size: 11px;
    margin-top: 4px;
    display: none;
}

@supports (padding: max(0px)) {
    
    .main-content {
        padding-bottom: 10px;
    }
    
    .back-to-top,
    .auto-save-indicator {
        bottom: max(15px, env(safe-area-inset-bottom));
    }
}

/* --- DARK MODE OVERRIDES --- */
body.dark-mode .navbar {
    background: var(--navbar-bg);
    border-bottom: 1px solid var(--navbar-border);
    box-shadow: 0 2px 15px var(--navbar-shadow);
}
 
body.dark-mode .nav-brand {
    background: linear-gradient(45deg, #D87D4A, #E89A6E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark-mode .nav-links a {
    color: var(--text-secondary);
}

body.dark-mode .nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .nav-links a.active {
    color: var(--primary-color);
    background: rgba(0, 191, 255, 0.1); /* Can be a variable too */
}

body.dark-mode .capsule-toggle {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .capsule-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

body.dark-mode .toggle-thumb {
    color: var(--text-secondary);
}

body.dark-mode .toggle-thumb.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
}

body.dark-mode .glass-card {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.dark-mode .animated-border-box::before {
    background: linear-gradient(45deg, #222, #444, #222, #444);
    opacity: 0.2;
}

body.dark-mode .glass-card:hover {
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.dark-mode .form-group label {
    color: var(--text-secondary);
}

body.dark-mode .form-control {
    background: var(--form-bg);
    border-color: var(--form-border);
    color: var(--text-primary);
}

body.dark-mode .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.2);
}

body.dark-mode .remember-me {
    color: var(--text-secondary);
}

body.dark-mode .remember-me input[type="checkbox"] {
    background: var(--form-bg);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .remember-me input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
}

body.dark-mode .forgot-password, body.dark-mode .signup-section {
    color: var(--text-secondary);
}

body.dark-mode .forgot-password:hover, body.dark-mode .signup-link:hover {
    color: var(--secondary-color);
}

body.dark-mode .forgot-password::before, body.dark-mode .signup-link::before {
    background: #FF00FF;
}

body.dark-mode .signup-link {
    color: var(--primary-color);
}

/* Dark Mode Tooltip */
body.dark-mode .tooltip {
    background-color: #f0f0f0;
    color: #111;
}

body.dark-mode .tooltip::after {
    border-top-color: #f0f0f0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 8px 20px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nav-left {
        order: 1;
        flex: 1;
    }
    
    .nav-controls {
        order: 2;
        gap: 6px;
    }
    
    .nav-center {
        order: 3;
        flex: 1 1 100%;
        justify-content: center;
        margin-top: 8px;
    }
    
    .nav-links {
        gap: 12px;
    }
    
    .nav-links a {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .capsule-toggle {
        width: 65px;
        height: 28px;
    }
    
    .nav-brand {
        font-size: 1.3rem;
    }
    
    .logo-circle {
        width: 32px;
        height: 32px;
    }
    
    .logo-circle i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 6px 15px;
    }
    
    .nav-links {
        gap: 8px;
    }
    
    .nav-links a {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .capsule-toggle {
        width: 60px;
        height: 26px;
    }
    
    .toggle-icon {
        font-size: 10px;
    }
    
    .nav-brand {
        font-size: 1.1rem;
    }
}


/* Floating Chat + Social Menu */
.floating-chat {
    position: fixed;
    right: max(16px, calc(16px + env(safe-area-inset-right)));
    bottom: max(22px, calc(22px + env(safe-area-inset-bottom)));
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px rgba(0, 121, 107, 0.3);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 1500;
}

.floating-chat:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 121, 107, 0.35);
}

.floating-social {
    position: fixed;
    right: 24px;
    bottom: calc(max(22px, calc(22px + env(safe-area-inset-bottom))) + 64px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    z-index: 1400;
    max-height: calc(100vh - 180px);
}

.floating-social.open {
    pointer-events: auto;
}

.floating-social a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1.5px solid rgba(0, 121, 107, 0.18);
    box-shadow: 0 8px 20px rgba(0, 121, 107, 0.15);
    color: #00796B;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    opacity: 0;
    transform: translateY(12px);
    text-decoration: none;
    outline: none;
}

.floating-social.open a {
    opacity: 1;
    transform: translateY(0);
}

.floating-social a::after {
    content: '';
    position: absolute;
    inset: -40%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    transform: translateX(-150%);
    transition: transform 0.6s ease;
}

.floating-social a:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 26px rgba(0, 121, 107, 0.2);
}

.floating-social a:hover::after {
    transform: translateX(150%);
}

.floating-social a.whatsapp { color: #25D366; }
.floating-social a.telegram { color: #0088cc; }
.floating-social a.facebook { color: #3B5998; }
.floating-social a.instagram { color: #E1306C; }
.floating-social a.email { color: #DB4437; }
.floating-social a.chat { color: #00796B; }

.floating-social i {
    font-size: 20px;
    transition: transform 0.25s ease;
}

.floating-social a:hover i {
    transform: scale(1.1);
}

@media (max-width: 520px) {
    .floating-chat {
        width: 50px;
        height: 50px;
        bottom: 30px;
        right: 20px;
    }
    .floating-social {
        bottom: 90px;
        gap: 8px;
    }
    .floating-social a {
        width: 44px;
        height: 44px;
    }
    .floating-social i {
        font-size: 18px;
    }
}

@media (max-height: 620px) {
    .floating-social {
        gap: 8px;
        max-height: calc(100vh - 140px);
    }
    .floating-social a {
        width: 44px;
        height: 44px;
    }
    .floating-chat {
        bottom: max(16px, calc(16px + env(safe-area-inset-bottom)));
    }
}