/* Font Imports */
@import url('https://use.typekit.net/lwy4qwq.css');

/* Base Styles */
:root {
    --primary-color: #009BD9; /* NLI Blue */
    --primary-dark: #0080B3;
    --background: #f8f9ff;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --modal-bg: rgba(0, 0, 0, 0.8);
    --modal-content: #ffffff;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --footer-bg: #333;
    --footer-text: #f8f9ff;
    
    /* Responsive sizing variables */
    --circle-size-desktop: 400px;
    --circle-size-tablet: 350px;
    --circle-size-mobile: 280px;
    --circle-size-mini: 220px; /* Added for extra small screens (iPhone SE) */
    --visualizer-size-desktop: 250px;
    --visualizer-size-tablet: 220px;
    --visualizer-size-mobile: 180px;
    --visualizer-size-mini: 140px; /* Added for extra small screens (iPhone SE) */
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    height: 100vh; /* Fixed height to prevent scrolling */
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevent any scrolling */
}

/* Header styles */
.site-header {
    background-color: var(--white);
    padding: 0;
    box-shadow: var(--shadow);
    width: 100%;
    position: relative;
    height: 75px; /* Desktop height */
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0 30px; /* Consistent padding on both sides */
}

/* NLI Logo - Left Side */
.logo-container {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo {
    height: 26.88px; /* Desktop: 25.6px + 5% = 26.88px */
    width: auto;
    object-fit: contain;
}

/* NILES Logo - Center */
.niles-logo-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.niles-logo {
    height: 3.36rem; /* Desktop: 3.36rem with max-width 384px as per screenshot */
    max-width: 384px;
    width: auto;
    object-fit: contain;
}

/* Tagline - Right Side */
.tagline-container {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.tagline-text {
    font-family: museo-sans, sans-serif;
    font-weight: 300;
    font-size: 1.44rem; /* Desktop: 1.44rem as per screenshot */
    color: #003A7D;
    white-space: nowrap;
}

/* Maintenance Banner Styles */
.maintenance-banner {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-left: 5px solid #e55a2b;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    margin: 0;
    padding: 0;
    width: 100%;
    position: relative;
    z-index: 10;
}

.maintenance-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 15px;
}

.maintenance-icon {
    color: #ffffff;
    font-size: 24px;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

.maintenance-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.maintenance-title {
    font-family: 'museo-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 900;
    font-size: 18px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.maintenance-message {
    font-family: 'museo-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
    max-width: 800px;
}

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

/* Mobile responsive adjustments for maintenance banner */
@media (max-width: 768px) {
    .maintenance-content {
        padding: 14px 15px;
        gap: 12px;
    }
    
    .maintenance-icon {
        font-size: 20px;
    }
    
    .maintenance-title {
        font-size: 16px;
    }
    
    .maintenance-message {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .maintenance-content {
        padding: 12px 10px;
        gap: 10px;
        flex-direction: column;
        text-align: center;
    }
    
    .maintenance-icon {
        font-size: 18px;
    }
    
    .maintenance-title {
        font-size: 15px;
    }
    
    .maintenance-message {
        font-size: 12px;
        line-height: 1.3;
    }
}

/* Mobile-specific header adjustments */
@media (max-width: 768px) {
    .site-header {
        height: 60px; /* Smaller height for tablet */
    }
    
    .header-content {
        padding: 0 20px; /* Reduced padding for tablet */
    }
    
    .niles-logo {
        height: 2.688rem; /* Tablet: 2.688rem as per screenshot */
    }
    
    .tagline-text {
        font-size: 1.152rem; /* Tablet: 1.152rem as per screenshot */
    }
}

@media (max-width: 480px) {
    .site-header {
        height: 50px; /* Mobile height */
    }
    
    .header-content {
        padding: 0 15px; /* Reduced padding for mobile */
    }
    
    .logo {
        height: 18.48px; /* Mobile: 17.6px + 5% = 18.48px */
    }
    
    .niles-logo {
        height: 2.112rem; /* Mobile: 2.112rem with max-width 160px as per screenshot */
        max-width: 160px;
    }
    
    .tagline-text {
        font-size: 1.008rem; /* Mobile: 1.008rem as per screenshot */
    }
}

/* Extra Small Screens (374px and below) */
@media (max-width: 374px) {
    .niles-logo {
        height: 1.68rem; /* Extra Small: 1.68rem with max-width 128px as per screenshot */
        max-width: 128px;
    }
    
    .tagline-text {
        font-size: 0.648rem; /* Extra Small: 0.648rem as per screenshot */
    }
}

/* App Container */
.app-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center content in available space */
    padding: 10px; /* Reduced padding */
    margin: 0 auto;
    flex: 1; /* Take remaining space between header and footer */
    height: auto;
    gap: 0;
    overflow: hidden; /* Prevent scrolling */
}

/* Main circular card */
.main-card {
    width: var(--circle-size-desktop);
    height: var(--circle-size-desktop);
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto;
    margin-bottom: 20px; /* Reduced spacing */
    overflow: visible; /* Allow content to overflow for buttons positioned outside */
}

/* Visualizer Container */
.visualizer-container {
    position: absolute;
    width: var(--visualizer-size-desktop);
    height: var(--visualizer-size-desktop);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* Perfect centering */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Language Selector Styles */
.language-selector-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 16px 20px 8px 20px; /* Added padding from screen edges */
}

.language-selector-container label {
    margin-right: 8px;
    font-weight: 500;
}

.language-selector-container select {
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* Laptop Media Queries - Under 16" screens (typically 1366px and below) */
@media (max-width: 1366px) {
    /* Slightly smaller circle for laptop screens */
    :root {
        --circle-size-desktop: 350px; /* Reduced from 400px */
        --visualizer-size-desktop: 220px; /* Reduced from 250px */
    }
    
    /* Language selector adjustments */
    .language-selector-container {
        margin: 12px 30px 8px 30px; /* More padding for laptops */
    }
}

/* Medium Laptop Screens (13-14 inch laptops) */
@media (max-width: 1280px) {
    :root {
        --circle-size-desktop: 320px;
        --visualizer-size-desktop: 200px;
    }
}

/* Small Laptop Screens (11-13 inch) */
@media (max-width: 1024px) {
    :root {
        --circle-size-desktop: 300px;
        --visualizer-size-desktop: 180px;
    }
    
    .language-selector-container {
        margin: 10px 25px 8px 25px;
    }
    
    /* Adjust call controls positioning */
    .call-controls {
        top: calc(var(--circle-size-desktop) + 30px); /* Reduced spacing */
    }
}

/* Responsive styles for tablets */
@media (max-width: 768px) {
    .main-card {
        width: var(--circle-size-tablet);
        height: var(--circle-size-tablet);
        margin-top: 15px;
        margin-bottom: 25px;
    }
    
    .visualizer-container {
        width: var(--visualizer-size-tablet);
        height: var(--visualizer-size-tablet);
    }
    
    .header-content h1 {
        font-size: 1.5rem;
    }
    
    .logo-container {
        left: -120px; /* Adjust logo position for tablets */
    }
    
    .app-container {
        padding-top: 20px; /* Reset to original padding for tablets - override desktop padding */
    }
}

/* Responsive styles for mobile phones */
@media (max-width: 480px) {
    /* Smaller sizes for mobile */
    :root {
        --circle-size-mobile: 250px; /* Reduced size */
        --visualizer-size-mobile: 160px; /* Reduced size */
    }
    
    .main-card {
        width: var(--circle-size-mobile);
        height: var(--circle-size-mobile);
        margin-top: 10px; /* Reduced margin to move up */
        margin-bottom: 0; /* No bottom margin needed */
        position: relative;
    }
    
    .visualizer-container {
        width: var(--visualizer-size-mobile);
        height: var(--visualizer-size-mobile);
    }
    
    .app-container {
        justify-content: flex-start; /* Align content from top */
        padding-top: 15px; /* Reduced padding - override desktop padding */
        padding-bottom: 65px; /* Add padding at bottom for footer */
        height: calc(100vh - 50px); /* Calculate height based on header */
        display: flex;
        flex-direction: column;
    }
    
    /* Pulse rings need adjustment for smaller visualizer */
    .pulse-ring {
        border-width: 2px; /* Thinner border */
    }
    
    .pulse-ring.delay {
        border-width: 1px;
    }
    
    .visualizer-container::after {
        border-width: 0.5px;
    }
    
    /* Adjust animation for better mobile display */
    @keyframes pulse {
        0% {
            transform: scale(0.9);
            opacity: 0.5;
        }
        70% {
            transform: scale(1.2);
            opacity: 0.1;
        }
        100% {
            transform: scale(1.3);
            opacity: 0;
        }
    }
}

.visualizer {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: white; /* White background as requested */
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(74, 107, 255, 0.2);
}

/* Pulse Ring Animation */
.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(0, 155, 217, 0.3); /* Pale blue color with transparency */
    border-radius: 50%;
    animation: pulse 3s ease-out infinite;
    opacity: 0;
}

.pulse-ring.delay {
    animation-delay: 1.5s;
    border: 2px solid rgba(0, 155, 217, 0.2); /* Even lighter blue for second ring */
}

/* Add a third pulse ring for more wave effect */
.visualizer-container::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 155, 217, 0.15); /* Very light blue */
    border-radius: 50%;
    animation: pulse 3s ease-out infinite;
    animation-delay: 0.75s;
    opacity: 0;
}

@keyframes pulse {
    0% {
        transform: scale(0.85);
        opacity: 0.6;
    }
    70% {
        transform: scale(1.3);
        opacity: 0.1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Call Controls */
.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.call-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: absolute;
    top: calc(var(--circle-size-desktop) + 40px); /* Dynamic positioning based on circle size */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.active-call-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s ease;
    opacity: 1;
    /* Ensure perfect centering relative to visualizer */
    position: relative;
    left: -35px; /* Shift left to center better under visualizer */
    transform: none;
}

/* Mobile-specific control positioning */
@media (max-width: 480px) {
    /* Reposition controls for mobile */
    .call-controls {
        position: fixed; /* Fixed position */
        top: auto;
        bottom: 160px; /* Restore to previous value */
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        padding: 0;
        z-index: 30;
        margin: 0; /* Remove margins */
    }
    
    /* Start conversation button - move down 5mm from the original position */
    .call-button {
        position: relative;
        top: 20px; /* Move down 20px (approx 5mm) */
        margin: 0 auto; /* Center horizontally */
        transform: none;
        z-index: 30;
    }
    
    .active-call-controls {
        background-color: transparent; /* Remove background */
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        width: 160px; /* Exact same width as call button on mobile */
        position: absolute; /* Position absolutely */
        top: 0; /* Align with the call button */
        left: 50%; /* Center horizontally */
        transform: translateX(-50%); /* Perfect centering */
        margin: 0;
        z-index: 35; /* Higher than call button */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hide the call button when active call controls are shown */
    .active-call-controls:not(.hidden) ~ #callButton {
        visibility: hidden;
    }
    
    /* Adjust main card to remove the overflow */
    .main-card {
        overflow: visible;
        margin-bottom: 10px; /* Reduce bottom margin */
    }
    
    /* Controls container for proper flow */
    .controls {
        margin-bottom: 15px;
        width: 100%;
        position: relative;
        z-index: 25;
    }
}

/* Control Buttons - New Consistent Styles */
.end-call-button, .mute-button {
    width: 110px;
    height: 40px;
    border-radius: 20px;
    border: none;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
    gap: 8px;
    /* Ensure both buttons are exactly the same size for perfect symmetry */
    flex-shrink: 0;
}

/* Call Button */
/* Shared button styles - no color-specific properties */
.call-button, .call-button-style {
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    width: 180px; /* Default width */
    margin: 0 auto; /* Center horizontally */
    position: relative;
    z-index: 10; /* Ensure button is above other elements */
}

/* Call button specific styles - blue */
.call-button {
    background-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 155, 217, 0.3);
}

/* Responsive button adjustments */
@media (max-width: 480px) {
    .call-button, .call-button-style {
        width: 160px; /* Narrower on mobile */
        font-size: 13px;
        padding: 10px 16px; /* Increased vertical padding for better tap target */
        min-height: 44px; /* Minimum height for accessibility */
    }
    
    /* End call button - make it exactly match call button dimensions and position */
    .end-call-button {
        width: 160px !important; /* Match call button width */
        height: 44px !important; /* Same height as call button */
        font-size: 13px !important;
        padding: 10px 16px !important; /* Match call button padding exactly */
        border-radius: 30px !important; /* Same border radius */
        
        /* Keep the red color */
        background-color: #e74c3c !important; 
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3) !important;
        
        /* Ensure perfect alignment */
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        margin: 0 !important;
        transform: none !important;
        
        /* Display properties */
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        
        /* Make sure it's above */
        z-index: 40 !important;
    }
    
    .mute-button {
        width: 120px; /* Smaller than end call button */
        height: 44px; /* Increased height from 36px to meet accessibility standards */
        font-size: 13px;
        padding: 10px 12px; /* Ensure adequate padding */
        margin: 0 auto; /* Center horizontally */
    }
}

/* Call button hover - blue */
.call-button:hover,
.call-button:focus { /* Added focus state for accessibility */
    background: var(--primary-dark);
    transform: scale(1.05);
    outline: none; /* Remove default outline */
}

.call-button:active {
    transform: scale(0.95);
}

.call-button i {
    margin-right: 4px; /* Reduce space between icon and text */
}

.call-button span {
    margin-left: 0; /* Remove extra margin */
}

/* End call button specific styles - red */
.end-call-button {
    background: #e74c3c !important; /* Red background, override any other styles */
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3) !important; /* Override any other styles */
    margin: 0 auto !important; /* Ensure it's centered */
    left: 0 !important; /* Reset any offset */
    transform: none !important; /* Reset any transform */
}

.feedback-question {
    margin-bottom: 20px;
}

.feedback-question p {
    margin-bottom: 10px;
    font-weight: bold;
}

.feedback-options {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.feedback-btn {
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s, border-color 0.3s;
}

.feedback-btn:hover {
    background-color: #e9e9e9;
    border-color: #bbb;
}

.feedback-btn.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 155, 217, 0.3);
}

.brain-rating-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.brain-icon {
    font-size: 28px; /* Adjust size as needed */
    color: #ccc; /* Default color for unselected brains */
    cursor: pointer;
    margin: 0 5px;
    transition: color 0.2s;
}

.brain-icon.selected,
.brain-icon.hovered {
    color: #007bff; /* Color for selected/hovered brains */
}

.feedback-submit-btn {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    display: block;
    margin: 0 auto; /* Center the button */
}

.feedback-submit-btn:hover {
    background-color: #218838;
}

/* Ensure modal content has some padding and max-width */
#feedbackModal .modal-content {
    padding: 25px;
    max-width: 500px; /* Adjust as needed */
}

#feedbackModal .modal-header h2 {
    margin-top: 0;
}

/* End call button hover - darker red */
.end-call-button:hover,
.end-call-button:focus { /* Added focus state for accessibility */
    background: #c0392b !important; /* Darker red */
    transform: scale(1.05) !important;
    outline: none; /* Remove default outline */
}

.end-call-button:active {
    transform: scale(0.95);
}

/* Mute button styles */
.mute-button {
    background-color: #4a5568;
    transition: all 0.3s ease;
}

.mute-button:hover {
    background-color: #2d3748;
}

.mute-button.muted {
    background-color: #e53e3e !important;
    color: white !important;
}

.mute-button.muted:hover {
    background-color: #c53030 !important;
}

/* Mute button hidden by default, shown during calls */
.mute-button.hidden {
    display: none !important;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 77, 77, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

/* Toggle Switch */
.mode-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

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

input:checked + .slider {
    background-color: var(--primary-color);
}

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

/* Transcript */
.transcript-container {
    display: none; /* Hide the transcript box */
    width: 100%;
    max-width: 600px;
    margin: 0 auto; 
    position: fixed; /* Fixed position so it stays on screen */
    bottom: 100px; /* Position from bottom to create space above footer */
    left: 50%;
    transform: translateX(-50%);
    z-index: 20; /* Ensure it's above other elements */
}

/* Responsive transcript adjustments */
@media (max-width: 768px) {
    .transcript-container {
        max-width: 90%;
        bottom: 80px;
    }
}

@media (max-width: 480px) {
    .transcript-container {
        max-width: 95%;
        position: fixed; /* Fixed position */
        bottom: 60px; /* Position just above the footer */
        left: 50%;
        transform: translateX(-50%);
        margin: 0; /* Remove margins */
        background-color: rgba(255, 255, 255, 0.98); /* More opaque */
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        z-index: 50; /* Above other content but below the footer */
    }
    
    .transcript {
        min-height: 60px; /* Slightly taller for better visibility */
        padding: 12px 15px;
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    /* Override app container on mobile */
    .app-container {
        display: flex;
        flex-direction: column;
        padding: 15px 15px 70px 15px; /* Add bottom padding for footer */
        /* Set specific heights for mobile */
        min-height: 0;
        height: auto;
        justify-content: flex-start;
    }
}

.transcript {
    width: 100%;
    min-height: 60px;
    padding: 15px 20px;
    background: #f5f7ff;
    border-radius: 12px;
    text-align: center;
    color: var(--text); /* Changed from --text-light for better contrast and readability */
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.transcript p {
    margin: 0;
    line-height: 1.5;
    font-weight: 500; /* Slightly bolder for better readability */
}

/* Utility Classes */
.hidden {
    display: none !important; /* Utility class to hide elements */
}

/* --- Name Input Modal Styles --- */
.modal-overlay {
    position: fixed; /* Stay in place */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%;
    background-color: rgba(0,0,0,0.6); /* Black background with opacity */
    z-index: 1000; /* Sit on top */
    display: flex; /* Use flexbox for centering */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff; /* Or match your theme background */
    padding: 0; /* Remove padding since modal-header has its own */
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    text-align: center;
    min-width: 400px;
    max-width: 600px;
    width: 90%;
    z-index: 1001;
    margin: 5% auto;
}

/* Responsive modal adjustments */
@media (max-width: 480px) {
    .modal-content {
        padding: 20px 15px;
        min-width: auto;
        width: 90%;
        max-height: 80vh; /* Limit height on small screens */
        overflow-y: auto; /* Allow scrolling if needed */
    }
    
    .modal-content h2 {
        font-size: 1.3rem;
        margin-bottom: 12px; /* Add some spacing */
    }
    
    .modal-content p {
        font-size: 0.95rem; /* Slightly increased for better readability */
        line-height: 1.4; /* Better line height for readability */
        margin-bottom: 15px; /* More space between paragraphs */
    }
    
    .modal-content input[type="text"],
    .modal-content input[type="email"] {
        height: 44px; /* Taller input for better tap target */
        font-size: 16px; /* Prevent iOS zoom on focus */
        padding: 10px 12px; /* More padding for better tap area */
    }
    
    .modal-content button {
        min-height: 44px; /* Taller button for better tap target */
        padding: 10px 20px;
        width: 100%; /* Full width on mobile */
        margin-top: 5px;
    }
    
    /* Improve scrolling experience */
    .modal-content::-webkit-scrollbar {
        width: 6px;
    }
    
    .modal-content::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }
    
    .modal-content::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 10px;
    }
}

/* Extra small screens */
@media (max-width: 374px) {
    .modal-content {
        padding: 15px 12px;
        width: 95%;
    }
    
    .modal-content h2 {
        font-size: 1.2rem;
    }
    
    .modal-content p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
}

.modal-content h2 {
    margin-top: 0;
    color: #333; /* Adjust color */
}

.modal-content p {
    margin-bottom: 20px;
    color: #555; /* Adjust color */
}

.modal-content input[type="text"],
.modal-content input[type="email"] {
    width: calc(100% - 22px); /* Full width minus padding/border */
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.modal-content button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #007bff; /* Example button color */
    color: white;
    cursor: pointer;
    font-size: 16px;
}

.modal-content button:hover {
    background-color: #0056b3; /* Darker shade on hover */
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px; /* Space before the submit button */
    font-size: 0.9em;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 8px;
    width: auto; /* Override general input width if necessary */
    margin-bottom: 0; /* Override general input margin if necessary */
}

.checkbox-container label {
    margin-bottom: 0; /* Align with checkbox */
    color: #555;
}

/* --- End Modal Styles --- */

/* Footer Styles */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 15px 0; /* Reduced padding */
    width: 100%;
    margin-top: auto;
    position: relative; /* Enable absolute positioning of children */
    flex-shrink: 0; /* Prevent footer from shrinking */
}

.footer-content {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center; /* Center content */
    align-items: center;
}

.footer-left {
    position: absolute; /* Absolute position */
    left: 30px; /* Exactly 30px from left edge */
    text-align: left;
}

.footer-center {
    text-align: center;
    position: absolute; /* Center in desktop layout */
    left: 50%;
    transform: translateX(-50%);
}

.footer-right {
    text-align: right;
    position: absolute; /* Absolute position */
    right: 30px; /* Exactly 30px from right edge */
}

/* This wrapper is only used on mobile */
.footer-links-row {
    display: none; /* Hidden on desktop */
}

/* Responsive footer adjustments */
@media (max-width: 768px) {    
    .footer-content {
        font-size: 14px;
        padding: 0 15px; /* Reduced padding for smaller screens */
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 10px 0; /* Match desktop padding style */
        position: fixed; /* Fixed at bottom of screen */
        bottom: 0;
        left: 0;
        right: 0;
        background-color: rgba(51, 51, 51, 0.98); /* More opaque */
        z-index: 100; /* Ensure it's on top */
        box-shadow: 0 -2px 10px rgba(0,0,0,0.2); /* Add shadow on top */
    }
    
    .footer-content {
        font-size: 11px; /* Increased for better readability */
        flex-direction: column; /* Stack elements vertically */
        gap: 5px; /* Small gap between rows */
        padding: 0 5px;
        align-items: center;
        height: auto;
    }
    
    .footer-left {
        position: static; /* Reset absolute positioning */
        order: 2; /* Show copyright second */
        width: 100%;
        text-align: center;
        font-size: 10px;
        padding: 0;
        margin: 0;
        transform: none;
        left: auto;
    }
    
    /* Hide desktop footer links on mobile */
    .footer-center, 
    .footer-right {
        position: static; /* Reset absolute positioning */
        display: none; /* Hide individual link containers */
        transform: none;
        left: auto;
        right: auto;
    }
    
    /* Footer links in a row - SHOW on mobile */
    .footer-links-row {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 20px;
        order: 1;
    }
    
    /* Footer links on mobile - add these links via JavaScript */
    .footer-links-row a {
        padding: 5px 10px; /* Larger padding on mobile */
        margin: 0; /* Remove negative margins */
        font-size: 11px;
        display: inline-block;
        color: var(--footer-text);
        text-decoration: none;
    }
    
    .footer-links-row a:hover,
    .footer-links-row a:focus {
        color: var(--primary-color);
        text-decoration: underline;
    }
}

.footer-left p {
    margin: 0;
}

.footer-center a, .footer-right a {
    color: var(--footer-text);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block; /* Enable padding on inline elements */
    padding: 4px 6px; /* Add padding to increase tap target */
    margin: -4px -6px; /* Negative margin to offset padding */
}

.footer-center a:hover, .footer-right a:hover,
.footer-center a:focus, .footer-right a:focus { /* Added focus state for accessibility */
    color: var(--primary-color);
    text-decoration: underline;
    outline: none; /* Remove default outline */
}

/* Privacy Policy Modal Styles */
.privacy-policy-content {
    max-width: 800px;
    max-height: 80vh;
    width: 90%;
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background-color: var(--primary-color);
    color: white;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    position: relative;
}

.modal-header .logo-title-container {
    display: flex;
    align-items: center;
    flex: 1;
}

.modal-logo {
    height: 32px;
    width: auto;
    margin-right: 15px;
    filter: brightness(0) invert(1); /* Make logo white */
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    margin-left: 15px;
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
}

.modal-body {
    padding: 25px;
}

/* Responsive privacy policy modal */
@media (max-width: 480px) {
    .privacy-policy-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 15px;
        max-height: 65vh;
    }
}

@media (max-width: 374px) {
    .privacy-policy-content {
        width: 98%;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 12px;
    }
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
    transition: var(--transition);
    width: 44px; /* Increased from 40px for accessibility */
    height: 44px; /* Increased from 40px for accessibility */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 8px; /* Ensure adequate padding */
}

.close-btn:hover, 
.close-btn:focus { /* Added focus state for accessibility */
    background-color: rgba(255, 255, 255, 0.2);
    outline: none; /* Remove default outline */
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    max-height: 60vh;
}

.privacy-content {
    font-size: 15px; /* Slightly larger for better readability */
    line-height: 1.6;
    color: var(--text);
}

.privacy-content p {
    margin-bottom: 20px;
    max-width: 750px; /* Limit line length for better readability */
    margin-left: auto;
    margin-right: auto;
}

/* Scrollbar styling for the privacy policy */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* 11Labs Widget Override - Completely hidden from view */
elevenlabs-convai {
    position: fixed !important;
    bottom: -9999px !important; /* Position far off-screen */
    right: -9999px !important;
    width: 1px !important; /* Tiny size */
    height: 1px !important;
    opacity: 0 !important; /* Completely transparent */
    visibility: hidden !important; /* Hidden from view */
    pointer-events: none !important; /* Prevents interaction directly */
    overflow: hidden !important; /* Hide overflow */
    clip: rect(0, 0, 0, 0) !important; /* Hide visually */
    clip-path: inset(100%) !important; /* Hide visually with clip-path */
    margin: -1px !important; /* Negative margin to further hide */
    z-index: -9999 !important; /* Very low z-index */
    
    /* But ensure it's loaded and functioning */
    display: block !important; /* Keep it in the DOM flow */
}

/* Hide ALL elements of the 11Labs widget - using multiple selectors for robustness */
elevenlabs-convai::part(powered-by),
div._poweredBy_1f9vw_251,
[class*="_poweredBy_"],
elevenlabs-convai div[class*="_poweredBy_"],
elevenlabs-convai div[class*="poweredBy"],
div[class*="poweredBy"],
/* Additional elements that might become visible */
elevenlabs-convai::part(avatar),
elevenlabs-convai::part(button),
elevenlabs-convai::part(header),
elevenlabs-convai::part(footer),
elevenlabs-convai::part(container),
elevenlabs-convai::part(interface),
elevenlabs-convai div[class*="avatar"],
elevenlabs-convai div[class*="interface"],
elevenlabs-convai div[class*="button"],
elevenlabs-convai button,
elevenlabs-convai img,
elevenlabs-convai svg,
elevenlabs-convai div._root_1f9vw_1,
elevenlabs-convai div[class*="root"],
elevenlabs-convai div[class*="actions"],
elevenlabs-convai div[class*="interface"],
elevenlabs-convai div[class*="dialog"],
elevenlabs-convai div[class*="box"],
elevenlabs-convai div[class*="dialog"],
elevenlabs-convai iframe {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(100%) !important;
}

/* Active Call State */
.call-active .visualizer {
    animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 155, 217, 0.7);
    }
    100% {
        box-shadow: 0 0 0 20px rgba(0, 155, 217, 0);
    }
}

/* Extra Small Phones (iPhone SE size) */
@media (max-width: 374px) {
    /* Adjust root sizes for very small screens */
    :root {
        --circle-size-mobile: var(--circle-size-mini);
        --visualizer-size-mobile: var(--visualizer-size-mini);
    }
    
    /* Header adjustments */
    .site-header {
        padding: 0;
        height: 45px; /* Even more compact header */
    }
    
    .logo-container {
        transform: translateY(-50%) scale(0.65); /* Make logo even smaller */
        left: 3px; /* Move closer to edge */
    }
        
    .header-content h1 {
        font-size: 0.9rem; /* Smaller title */
        margin-left: 30px; /* Smaller margin */
        width: calc(100% - 90px); /* More space for text */
    }
    
    /* Main card and visualizer adjustments */
    .main-card {
        margin-top: 5px;
        margin-bottom: 0; /* Remove bottom margin */
    }
    
    /* Call control adjustments */
    .call-button {
        width: 140px; /* Slightly narrower */
        font-size: 12px;
    }
    
    /* Transcript container */
    .transcript-container {
        max-width: 98%;
    }
    
    .transcript {
        padding: 8px 12px;
        min-height: 45px;
    }
    
    /* Adjust pulse rings for smaller visualizer */
    .pulse-ring {
        border-width: 1.5px;
    }
    
    .pulse-ring.delay {
        border-width: 0.8px;
    }
}

/* Login Page Styles */
.login-page-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    height: auto;
    overflow: auto;
    background-color: var(--background, #f4f4f4);
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; /* Match existing body font */
}

.login-container {
    background-color: var(--white, #fff);
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: var(--shadow, 0 4px 15px rgba(0, 0, 0, 0.1));
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.login-container .logo {
    max-width: 200px; /* Adjust as needed */
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.login-container h1 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: var(--text, #333);
}

.login-container p {
    font-size: 1em;
    margin-bottom: 20px;
    color: var(--text-light, #555);
}

.login-container #passwordInput {
    width: calc(100% - 22px); /* Account for padding */
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

.login-container #submitPassword {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color, #007bff);
    color: var(--white, white);
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, var(--transition, none);
}

.login-container #submitPassword:hover {
    background-color: var(--primary-dark, #0056b3);
}

.login-container .error-message {
    color: #d9534f; /* Red color for errors */
    font-size: 0.9em;
    margin-top: 15px;
    min-height: 1em; /* Reserve space to prevent layout shift */
}

.access-message {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cta-buttons {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 480px) {
    .cta-buttons {
        flex-direction: row;
    }
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button.primary {
    background-color: var(--primary-color, #009BD9);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 155, 217, 0.25);
}

.cta-button.primary:hover {
    transform: translateY(-1px);
    background-color: var(--primary-dark, #007bb0);
}

.cta-button.ghost {
    background-color: transparent;
    color: var(--primary-dark, #0056b3);
    border: 1px solid currentColor;
}

.cta-button.ghost:hover {
    transform: translateY(-1px);
    background-color: rgba(0, 155, 217, 0.08);
}

.cta-button.disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* Feedback Modal Styles */
.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-bg);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.feedback-modal.show {
    display: flex !important;
}

.feedback-modal-content {
    background: var(--modal-content);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.feedback-modal.show .feedback-modal-content {
    transform: scale(1);
}

.feedback-modal h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.feedback-question {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--text);
    line-height: 1.5;
}

.feedback-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.already-answered-container {
    margin: 15px 0;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.already-answered-btn {
    padding: 8px 20px;
    border: 1px solid #999;
    border-radius: 20px;
    background: transparent;
    color: #999;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
}

.already-answered-btn:hover {
    background: #f5f5f5;
    border-color: #666;
    color: #666;
}

.feedback-btn {
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    background: transparent;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.feedback-btn:hover,
.feedback-btn.selected {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 155, 217, 0.3);
}

.scale-question {
    margin-top: 30px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.scale-question.show {
    opacity: 1;
    max-height: 300px;
}

.scale-icons {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.scale-icon {
    width: 40px;
    height: 40px;
    font-size: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scale-icon i {
    transition: all 0.3s ease; /* Smooth color transitions for the icon */
}

.scale-icon:hover {
    transform: scale(1.2);
}

.scale-icon:hover i {
    color: #0056b3; /* Darker blue on hover */
}

.scale-icon.lit {
    transform: scale(1.1); /* Slight size increase for feedback */
}

.scale-icon.lit i {
    color: #007bff; /* Bright blue for selected/active brains */
}

.scale-icon.unlit i {
    color: #bbb; /* Drab gray for unselected brains */
}

.scale-tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1;
}

.scale-icon:hover .scale-tooltip {
    opacity: 1;
}

.feedback-submit {
    margin-top: 25px;
    padding: 12px 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.feedback-submit.show {
    opacity: 1;
    transform: translateY(0);
}

.feedback-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 155, 217, 0.3);
}

.feedback-close {
    z-index: 10;
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

@media (max-width: 768px) {
    .feedback-modal-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .feedback-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .feedback-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .scale-icons {
        gap: 5px;
    }
    
    .scale-icon {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

/* Reset Modal Styles */
.reset-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.reset-modal.show {
    display: flex !important;
}

.reset-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 155, 217, 0.3);
    max-width: 550px;
    max-height: 90vh;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 155, 217, 0.3) transparent;
}

.reset-modal-content::-webkit-scrollbar {
    width: 8px;
}

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

.reset-modal-content::-webkit-scrollbar-thumb {
    background: rgba(0, 155, 217, 0.3);
    border-radius: 4px;
}

.reset-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 155, 217, 0.5);
}

.reset-modal.show .reset-modal-content {
    transform: scale(1);
    opacity: 1;
}

.reset-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), #00c8ff);
}

.reset-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), #00c8ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 155, 217, 0.3);
    animation: rocketPulse 2s ease-in-out infinite;
}

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

.reset-modal-content h2 {
    color: var(--text);
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.reset-message {
    color: var(--text);
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.reset-submessage {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.reset-password-notice {
    background: linear-gradient(135deg, rgba(0, 155, 217, 0.1), rgba(0, 200, 255, 0.1));
    border-left: 4px solid var(--primary-color);
    padding: 15px 18px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.reset-password-notice i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.reset-password-notice span {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.reset-timer-container {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.15));
    border: 2px solid rgba(255, 193, 7, 0.4);
    border-radius: 12px;
    padding: 18px 20px;
    margin: 20px 0;
}

.reset-timer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text);
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.reset-timer-text i {
    color: #f59e0b;
    font-size: 1.25rem;
}

.reset-timer-text strong {
    color: #f59e0b;
    font-weight: 700;
}

.reset-timer-subtext {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.4;
}

.reset-features {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.reset-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 1rem;
}

.reset-feature i {
    color: var(--success-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.reset-continue-btn {
    display: block;
    width: 100%;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary-color), #00c8ff);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 155, 217, 0.3);
    text-transform: none;
    letter-spacing: 0.3px;
    text-decoration: none;
    text-align: center;
}

.reset-continue-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 155, 217, 0.4);
}

.reset-continue-btn:active {
    transform: translateY(-1px);
}

.reset-dismiss-btn {
    width: 100%;
    padding: 14px 40px;
    background: transparent;
    color: var(--text-light);
    border: 2px solid rgba(0, 155, 217, 0.2);
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    text-transform: none;
}

.reset-dismiss-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 155, 217, 0.05);
}

.reset-dismiss-btn:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .reset-modal-content {
        padding: 40px 25px;
        margin: 20px;
        max-width: 100%;
    }

    .reset-modal-content h2 {
        font-size: 1.5rem;
    }

    .reset-message {
        font-size: 1rem;
    }

    .reset-submessage {
        font-size: 0.9rem;
    }

    .reset-icon {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }

    .reset-features {
        padding: 20px;
    }

    .reset-feature {
        font-size: 0.95rem;
    }

    .reset-password-notice {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .reset-password-notice span {
        font-size: 0.875rem;
    }

    .reset-timer-container {
        padding: 15px 18px;
    }

    .reset-timer-text {
        font-size: 0.95rem;
        flex-wrap: wrap;
    }

    .reset-timer-subtext {
        font-size: 0.8rem;
    }
}

/* Reset Modal Bypass Code Styles */
.reset-bypass-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 155, 217, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.reset-bypass-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(0, 155, 217, 0.2);
    color: rgba(0, 155, 217, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    padding: 0;
}

.reset-bypass-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 155, 217, 0.05);
}

.reset-bypass-input {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 300px;
    margin-top: 5px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.reset-bypass-input.hidden {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
}

.reset-bypass-input input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid rgba(0, 155, 217, 0.2);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.reset-bypass-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 155, 217, 0.1);
}

.bypass-submit-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    padding: 0;
    flex-shrink: 0;
}

.bypass-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateX(2px);
}

.bypass-submit-btn:active {
    transform: translateX(0);
}

@media (max-width: 768px) {
    .reset-bypass-container {
        margin-top: 15px;
        padding-top: 15px;
    }

    .reset-bypass-input {
        max-width: 100%;
    }
}
