:root {
    --bg-deep: #050810;      /* Midnight Obsidian */
    --bg-card: #0f172a;      /* Deep Slate Surface */
    --accent: #38bdf8;       /* Friendly Sky Blue */
    --text-high: #ffffff;    /* Clean White for Headers */
    --text-low: #94a3b8;     /* Soft Gray for Details */
    --border: #1e293b;       /* Subtle Slate Border */
}

body {
    background: radial-gradient(circle at center, #0b1120 0%, var(--bg-deep) 100%);
    color: var(--text-low);
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.cta-btn {
    background: var(--accent);
    color: var(--bg-deep);
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.4);
}

input, textarea {
    background: #020617;
    border: 1px solid var(--border);
    color: white;
    padding: 15px;
    border-radius: 12px;
    width: 100%;
    font-size: 16px;
    margin-top: 8px;
    box-sizing: border-box;
}
.nav-link-text {
    color: var(--text-low);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-link-text:hover {
    color: var(--accent);
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border);
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* This targets all text-based inputs and textareas */
input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="tel"], 
input[type="date"],
textarea {
    background-color: #ffffff !important;
    color: #1e293b !important; /* Dark slate text */
    border: 1px solid #e2e8f0 !important;
    font-weight: 500;
}

/* Sophisticated focus state */
input:focus, textarea:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

/* Style the placeholder text so it's visible but muted */
input::placeholder, textarea::placeholder {
    color: #94a3b8;
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 300px;
    padding: 16px 20px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    animation: toast-in 0.3s ease-out;
    transition: opacity 0.5s ease;
}

.toast-success { background-color: #10b981; border-left: 4px solid #059669; }
.toast-error { background-color: #ef4444; border-left: 4px solid #dc2626; }

@keyframes toast-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Disabled state for inputs and buttons */
input:disabled, textarea:disabled, button:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    background-color: #f1f5f9 !important; /* Muted background when disabled */
}

.spinner-small {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Transcript Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
}

.transcript-modal {
    width: 100%;
    max-width: 550px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.transcript-history {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-right: 10px;
}

.transcript-history::-webkit-scrollbar {
    width: 6px;
}
.transcript-history::-webkit-scrollbar-track {
    background: transparent;
}
.transcript-history::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.transcript-msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
}

.transcript-msg.user { align-self: flex-end; background: var(--accent); color: var(--bg-deep); border-bottom-right-radius: 4px; }
.transcript-msg.bot { align-self: flex-start; background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: white; border-bottom-left-radius: 4px; }

.transcript-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; opacity: 0.6; }
.transcript-content { font-size: 14px; line-height: 1.5; }

/* Lead Trap Blur Styles */
.blur-overlay-container {
    position: relative;
}

.blurry-content {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

.upgrade-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 8, 16, 0.4);
    z-index: 10;
}

/* Notification Bell */
.notification-bell {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}
.notification-bell:hover {
    transform: scale(1.1);
}
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 50%;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-deep);
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.notification-dropdown.active {
    display: flex;
    animation: slide-down 0.2s ease-out;
}

@keyframes slide-down {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.notification-header {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    font-size: 10px;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.notification-list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notification-item .email {
    color: white;
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.notification-item .meta {
    color: var(--text-low);
    font-size: 11px;
    display: flex;
    justify-content: space-between;
}

.notification-footer {
    padding: 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border);
}

.notification-footer a {
    color: var(--accent);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}