/* ==========================================================================
   1. Design Foundation & Variables
   ========================================================================== */

/* Import a modern, friendly font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Define a consistent color palette and other variables for easy theme management */
:root {
  --primary-blue: #4a00e0;
  --primary-purple: #8e2de2;
  --background-light: #f0f2f5;
  --card-background: rgba(255, 255, 255, 0.95);
  --text-dark: #1c1e21;
  --text-light: #606770;
  --border-color: #dddfe2;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --error-color: #e74c3c;
  --info-color: #3498db;
  --border-radius: 16px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Universal box-sizing for intuitive layout that includes padding and borders in width/height */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/* ==========================================================================
   2. Body & Background Styles
   ========================================================================== */

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--background-light);
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
  padding: 40px 20px;
  overflow-x: hidden; /* Prevent horizontal scroll from background shapes */
  position: relative;
}

/* Abstract background shapes for a modern, dynamic feel */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(74, 0, 224, 0.1), transparent 70%);
  border-radius: 50%;
  z-index: -1;
  filter: blur(50px);
}
body::after {
  content: '';
  position: fixed;
  bottom: -20%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(142, 45, 226, 0.1), transparent 70%);
  border-radius: 50%;
  z-index: -1;
  filter: blur(50px);
}

/* ==========================================================================
   3. Layout & Core Components
   ========================================================================== */

.main-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  padding: 0; 
  overflow: hidden;
}
.content-padding {
    padding: 40px;
}
.navbar {
  max-width: 1000px;
  margin: 0 auto 30px auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}
.nav-brand-link {
    text-decoration: none;
}

/* Logo Styles */
.logo-container {
    position: relative;
    animation: floatAnimation 6s ease-in-out infinite;
}
.logo-container img {
    display: block;
    height: 50px; /* Standard height for the navbar */
    width: auto;
}
.logo-sub-text {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Poppins', sans-serif;
    font-size: 0.45rem;
    font-weight: 500;
    color: #606770;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    white-space: nowrap;
}
@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.nav-links a { margin-left: 1.5rem; text-decoration: none; color: var(--text-light); font-weight: 500; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--primary-blue); }

.auth-container {
    display: flex;
    min-height: 70vh;
}
.auth-form-container {
    flex-basis: 55%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-visual-container {
    flex-basis: 45%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
}
#auth-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.visual-text { position: relative; z-index: 1; }
.visual-text h3 { color: white; font-size: 1.8rem; font-weight: 700; }
.visual-text p { color: rgba(255, 255, 255, 0.8); }
.social-login-container { 
    display: flex; 
    gap: 1rem; 
    flex-wrap: wrap; /* Allow wrapping if needed */
}
.social-login-container .button { 
    margin-top: 0; 
}

/* Mobile responsive - stack social buttons vertically on small screens */
@media (max-width: 768px) {
    .social-login-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .social-google,
    .social-apple,
    .social-discord {
        width: 100%;
        margin: 0;
    }
}

footer.site-footer {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
}
.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}
.footer-nav a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
}
.footer-nav a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .auth-visual-container { display: none; }
    .auth-form-container { flex-basis: 100%; }
    .main-container {
        padding: 20px;
    }
}

/* ==========================================================================
   4. Typography & Buttons
   ========================================================================== */
h1, h2, h3, h4 { color: var(--text-dark); font-weight: 600; }
h1 { font-size: 2.5rem; text-align: center; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--border-color); padding-bottom: 0.5rem; }
h3 { font-size: 1.5rem; margin: 0; }
h4 { font-size: 1.2rem; margin-top: 0; }
p { color: var(--text-light); margin-bottom: 1rem; }

.button {
  display: block;
  width: 100%;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple));
  color: #fff;
  padding: 14px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(74, 0, 224, 0.3); }
.button:disabled { background: #bdc3c7; cursor: not-allowed; transform: none; box-shadow: none; }
.button-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.button-secondary:hover { background-color: var(--primary-blue); color: #fff; }

/* ==========================================================================
   5. Forms, Alerts & Specific Components
   ========================================================================== */
.alert { padding: 1rem; margin-bottom: 1rem; border-radius: 8px; color: #fff; font-weight: 500; }
.alert-success { background-color: var(--success-color); }
.alert-danger { background-color: var(--error-color); }
.alert-info { background-color: var(--info-color); }
.alert-warning { background-color: var(--warning-color); }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: .5rem; font-weight: 500; color: var(--text-light); }
.form-control { width: 100%; padding: .75rem 1rem; font-size: 1rem; border: 1px solid var(--border-color); border-radius: 8px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.form-control:focus { border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(74, 0, 224, 0.1); outline: none; }
.legal-checkbox {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}
.legal-checkbox input {
    margin-right: 0.5rem;
}
.legal-checkbox a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}
.legal-checkbox a:hover {
    text-decoration: underline;
}

.chat-window-wrapper {
    position: relative;
}
#chat-container { 
    height: 60vh; 
    overflow-y: auto; 
    background-color: var(--background-light); 
    border: 1px solid var(--border-color); 
    padding: 15px; 
    border-radius: var(--border-radius); 
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.chat-message { 
    display: flex;
    gap: 0.75rem;
    max-width: 85%; 
    align-items: flex-end;
    animation: fadeIn 0.5s ease-in-out;
}
.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}
.chat-bubble {
    padding: 12px 18px;
    border-radius: 18px;
    line-height: 1.5;
}
.chat-message.model { 
    align-self: flex-start; 
}
.chat-message.model .chat-bubble {
    background-color: #fff; 
    color: var(--text-dark); 
    border-bottom-left-radius: 4px;
}
.chat-message.user { 
    align-self: flex-end; 
    flex-direction: row-reverse;
}
.chat-message.user .chat-bubble {
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple)); 
    color: #fff; 
    border-bottom-right-radius: 4px;
}
.chat-message.user .chat-bubble p { 
    color: #fff; 
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.scroll-indicator.visible {
    opacity: 1;
    visibility: visible;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#chat-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: linear-gradient(to right, #f8f9ff, #ffffff);
    padding: 0.75rem;
    border-radius: 12px;
    border: 2px solid var(--primary-blue);
    box-shadow: 0 4px 20px rgba(74, 0, 224, 0.15);
    transition: box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

#chat-input {
    flex-grow: 1;
    margin-bottom: 0;
    min-height: 80px;
    border-radius: 8px;
    border: none;
    padding: 15px;
    resize: vertical;
    font-family: 'Poppins', sans-serif;
    background: transparent;
    font-size: 1rem;
}
#chat-input:focus {
    outline: none;
}

#chat-input:focus + #send-btn,
#chat-input:focus {
    border-color: var(--primary-purple);
}

#chat-input-container:has(#chat-input:focus) {
    border-color: var(--primary-purple);
    box-shadow: 0 6px 30px rgba(142, 45, 226, 0.25);
}
#send-btn {
    width: auto;
    margin-top: 0;
    flex-shrink: 0;
}

.counter-message { text-align: center; margin-bottom: 1.5rem; padding: 0.75rem; background-color: rgba(74, 0, 224, 0.05); color: var(--primary-blue); border-radius: 8px; font-weight: 500; }
.counter-message strong { color: var(--primary-blue); font-weight: 700; }

.limit-reached-message { text-align: center; margin-top: 1rem; padding: 1rem; background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; border-radius: 8px; }
.limit-reached-message .button { margin-top: 1rem; }

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.account-header h2 {
    margin-bottom: 0.5rem;
}
.account-actions { 
    display: flex; 
    gap: 1rem; 
}
.account-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.credit-visualizer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.5rem 0;
}
.credit-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    background-color: var(--success-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}
.credit-circle.low {
    background-color: var(--warning-color);
}
.credit-circle.empty {
    background-color: var(--error-color);
}
.credit-label {
    margin-top: 0.5rem;
    font-weight: 500;
    color: var(--text-light);
}

.quiz-list-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.quiz-list-item:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}
.quiz-link {
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding: 1rem;
    text-decoration: none;
    color: var(--text-dark);
}
.quiz-info {
    display: flex;
    flex-direction: column;
}
.quiz-primary-result {
    font-weight: 600;
    color: var(--text-dark);
}
.quiz-date {
    font-size: 0.9rem;
    color: var(--text-light);
}
.quiz-actions {
    display: flex;
    align-items: center;
    padding-right: 0.5rem;
    gap: 0.5rem;
}
.view-results {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    padding: 0.5rem;
}
.delete-quiz-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--primary-blue);
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.delete-quiz-btn:hover {
    color: var(--error-color);
    background-color: rgba(231, 76, 60, 0.1);
}
.delete-quiz-btn svg {
    display: block;
}

.spinner { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; border: 0.15em solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spinner-border .75s linear infinite; margin-left: 0.5rem; }
@keyframes spinner-border { to { transform: rotate(360deg); } }

.chat-wrapper { position: relative; }
.chat-wrapper.locked .analysis-container { max-height: 400px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%); mask-image: linear-gradient(to bottom, black 50%, transparent 100%); }
.unlock-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; text-align: center; }
.unlock-message { background: var(--card-background); backdrop-filter: blur(5px); padding: 2rem; border-radius: var(--border-radius); box-shadow: var(--shadow); max-width: 80%; }
.unlock-message h3 { margin-top: 0; color: var(--text-dark); }

.conversation-starters {
    text-align: center;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid */
    gap: 0.75rem;
    max-width: 600px;
    margin: 2rem auto;
}
.starter-button {
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--primary-blue);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    margin: 0;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.starter-button:hover { background: rgba(74, 0, 224, 0.05); border-color: var(--primary-blue); }
.starter-button-custom {
    background: transparent;
    border-style: dashed;
    color: var(--text-light);
}
.starter-button-custom:hover {
    color: var(--primary-blue);
    background: rgba(74, 0, 224, 0.05);
    border-style: solid;
}

.chat-message.model h1, .chat-message.model h2, .chat-message.model h3 { margin-top: 0; margin-bottom: 0.5rem; }
.chat-message.model ul, .chat-message.model ol { padding-left: 1.5rem; margin-top: 0.5rem; margin-bottom: 0.5rem; }
.chat-message.model p { margin-top: 0; margin-bottom: 0.5rem; }
.chat-message.model p:last-child { margin-bottom: 0; }

/* Table styling for chat messages */
.chat-message.model table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.chat-message.model th {
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple));
    color: white;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
}

.chat-message.model td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    line-height: 1.4;
}

.chat-message.model tr:last-child td {
    border-bottom: none;
}

.chat-message.model tr:nth-child(even) {
    background-color: rgba(74, 0, 224, 0.02);
}

.chat-message.model td strong {
    color: var(--primary-blue);
}

/* Mobile responsive tables */
@media (max-width: 768px) {
    .chat-message.model table {
        font-size: 0.8rem;
    }
    
    .chat-message.model th,
    .chat-message.model td {
        padding: 8px 6px;
    }
}

.credit-history-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.credit-history-table th, .credit-history-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--border-color); }
.credit-history-table th { font-weight: 600; }
.credit-add { color: var(--success-color); font-weight: bold; }
.credit-spend { color: var(--error-color); font-weight: bold; }

.analysis-container { margin-top: 2rem; }
.collapsible-section {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}
.collapsible-header {
    background-color: #fff;
    width: 100%;
    border: none;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
}
.collapsible-header:hover { background-color: var(--background-light); }
.collapse-icon.chevron {
    border: solid var(--text-light);
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 4px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transition: transform 0.3s ease;
}
.collapsible-header.collapsed .collapse-icon.chevron {
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
}

.collapsible-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Add scrolling for mobile when content is tall */
@media (max-width: 768px) {
    .collapsible-content {
        max-height: 60vh; /* Limit to 60% of viewport height */
        overflow-y: auto; /* Enable vertical scrolling */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    .collapsible-content:not(.collapsed) {
        /* Add subtle scroll indicator */
        background: linear-gradient(white 30%, rgba(255,255,255,0)),
                    linear-gradient(rgba(255,255,255,0), white 70%) 0 100%,
                    radial-gradient(50% 0, farthest-side, rgba(0,0,0,.1), rgba(0,0,0,0)),
                    radial-gradient(50% 100%,farthest-side, rgba(0,0,0,.1), rgba(0,0,0,0)) 0 100%;
        background-color: white;
        background-repeat: no-repeat;
        background-attachment: local, local, scroll, scroll;
        background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
    }
}

.collapsible-content.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.analysis-card { background: var(--background-light); padding: 1.5rem; border-radius: var(--border-radius); }
.analysis-card.full-width { grid-column: 1 / -1; }
.analysis-card img { height: 40px; margin-bottom: 1rem; }

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}
.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    animation: scaleUp 0.3s forwards;
}
.modal-content h3 {
    margin-top: 0;
}
.modal-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.modal-actions .button, .modal-actions .button-secondary {
    margin-top: 0;
    width: auto;
    padding: 10px 20px;
}
.button.button-danger {
    background: var(--error-color);
}
.button.button-danger:hover {
    background: #c0392b;
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.3);
}

/* ==========================================================================
   6. Responsive Design (Mobile First Approach)
   ========================================================================== */

/* --- Hamburger Menu for Mobile --- */
.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}
.hamburger-menu span {
    width: 2rem;
    height: 0.25rem;
    background: var(--text-dark);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}
.mobile-nav-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 2rem;
    margin: 0 auto 2rem auto;
    max-width: 1000px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.mobile-nav-menu a {
    padding: 1rem 0;
    font-size: 1.2rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}
.mobile-nav-menu.active {
    display: flex;
}

/* --- Media Query for Tablets and Phones --- */
@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }
    .main-container {
        padding: 0;
    }
    .content-padding {
        padding: 20px;
    }

    /* Navbar adjustments */
    .nav-links {
        display: none; /* Hide desktop links */
    }
    .hamburger-menu {
        display: flex; /* Show hamburger icon */
    }

    .navbar {
        padding: 1.25rem 1.5rem; /* Add this line */
    }

    /* Login/Register page: stack columns */
    .auth-container {
        flex-direction: column;
    }
    .auth-visual-container {
        display: none; /* Hide the visual hook on mobile */
    }
    .auth-form-container {
        flex-basis: 100%;
    }

    /* Results page: stack grid */
    .analysis-grid {
        grid-template-columns: 1fr; /* Change to a single column */
    }

    /* Account page adjustments */
    .account-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .account-actions {
        width: 100%;
        flex-direction: column;
    }
    
    /* Responsive table for Credit History */
    .credit-history-table {
        border: 0;
    }
    .credit-history-table thead {
        display: none; /* Hide the table header */
    }
    .credit-history-table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 0.5rem;
    }
    .credit-history-table td {
        display: block;
        text-align: right;
        border-bottom: 1px dotted var(--border-color);
        padding: 0.75rem;
    }
    .credit-history-table td:last-child {
        border-bottom: 0;
    }
    .credit-history-table td::before {
        content: attr(data-label); /* Use data-label for context */
        float: left;
        font-weight: bold;
        text-transform: uppercase;
        font-size: 0.85em;
    }

    /* Mobile Chat Improvements */
    .chat-message {
        max-width: 95%;
        font-size: 0.9rem;
    }
    .chat-avatar {
        width: 30px;
        height: 30px;
    }
    #chat-input-container {
        flex-direction: column; /* Stacks the input and button vertically */
        padding: 0.75rem;
    }
    #send-btn {
        width: 100%; /* Makes the button full-width */
        margin-top: 0.5rem; /* Adds space between the input and the button */
    }

}

.char-counter {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: right;
    margin-top: 0.25rem;
    padding-right: 0.5rem;
}

.char-counter.warning {
    color: var(--warning-color);
}

.char-counter.danger {
    color: var(--error-color);
}

@media (max-width: 768px) {
    .conversation-starters {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* ==========================================================================
   7. Styles exclusively for the Questionnaire Page (Re-merged)
   ========================================================================== */

.progress-bar-container {
    width: 100%;
    background-color: var(--border-color);
    border-radius: 99px;
    height: 10px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple));
    border-radius: 99px;
    transition: width 0.5s ease-in-out;
}

.progress-text {
    text-align: center;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.question-block {
    margin-bottom: 25px;
    padding: 10px;
    border: 2px solid transparent;
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.question-text {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.question-block label {
    display: block;
    background: var(--background-light);
    border: 2px solid var(--border-color);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.question-block label:hover {
    border-color: var(--primary-purple);
    transform: scale(1.02);
}

.question-block input[type="radio"]:checked+label {
    border-color: var(--primary-blue);
    background-color: rgba(74, 0, 224, 0.05);
    font-weight: 500;
}

.question-block input[type="radio"] {
    display: none;
}

.question-block.unanswered,
.question-block.enhanced.unanswered {
    border-color: var(--error-color);
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

#quiz-step-container {
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.quiz-step-enter {
    opacity: 0;
    transform: translateX(20px);
}

.quiz-step-exit {
    opacity: 0;
    transform: translateX(-20px);
}

.quiz-error-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

/* ADD THE NEW MOTIVATIONAL BAR STYLES HERE: */
.quiz-motivation-bar {
    background: #fff;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border-left: 4px solid var(--primary-purple);
    box-shadow: var(--shadow);
}

.quiz-motivation-bar .step-title {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.quiz-motivation-bar .step-subtitle {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.quiz-motivation-bar .progress-with-encouragement {
    margin-top: 1.5rem;
}

.quiz-motivation-bar .progress-text {
    margin-top: 0.5rem;
    font-weight: 500;
    color: var(--primary-purple);
}

/* Mobile responsive for motivation bar */
@media (max-width: 768px) {
    .progress-bar-container.enhanced {
        height: 18px; /* Slightly smaller on mobile but still bigger */
    }
    
    .progress-step {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .progress-text-enhanced .current-step {
        font-size: 1rem;
    }
    
    .quiz-motivation-header {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .step-title {
        font-size: 1.5rem;
    }
}

.ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ranking-item {
    background: var(--background-light);
    border: 2px solid var(--border-color);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: grab;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    color: var(--text-dark);
}

.ranking-item:hover {
    border-color: var(--primary-purple);
}

.ranking-item.sortable-ghost {
    background-color: rgba(74, 0, 224, 0.1);
    border-style: dashed;
}

.rank-handle {
    color: var(--text-light);
}

/* ==========================================================================
   8. New Styles for Pricing Table on Account Page
   ========================================================================== */

.pricing-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    gap: 1rem;
    margin-top: 1.5rem;
}

.pricing-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--background-light);
}

.pricing-option .button {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.price-details {
    font-size: 0.85rem;
    color: var(--text-light);
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--warning-color);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Responsive adjustments for the pricing table on smaller screens */
@media (max-width: 500px) {
    .pricing-table {
        grid-template-columns: 1fr; /* Stack to a single column */
    }
}

/* ==========================================================================
   9. Updated Styles for Blog Pages - Compact Design
   ========================================================================== */

.blog-header {
    text-align: center;
    margin-bottom: 1.5rem; /* Reduced from 2rem */
}

.blog-header h1 {
    margin-bottom: 0.5rem;
    font-size: 2rem; /* Reduced from default 2.5rem */
}

.blog-header p {
    font-size: 0.95rem; /* Slightly smaller */
    color: var(--text-light);
}

.blog-container {
    display: grid;
    gap: 1rem; /* Reduced from 1.5rem */
}

.blog-post-card {
    background: #fff;
    border-radius: 12px; /* Slightly smaller border radius */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); /* Softer shadow */
    overflow: hidden;
    display: flex;
    flex-direction: row; /* Change to horizontal layout */
    min-height: 140px; /* Set minimum height */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.blog-post-card img {
    width: 160px; /* Fixed width for images */
    height: 140px; /* Fixed height */
    object-fit: cover;
    flex-shrink: 0; /* Prevent image from shrinking */
}

.blog-post-card .card-content {
    padding: 1rem; /* Reduced from 1.25rem */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.blog-post-card h2 {
    font-size: 1.2rem; /* Reduced from 1.3rem */
    margin-bottom: 0.5rem;
    line-height: 1.3; /* Tighter line height */
    font-weight: 600;
}

.post-meta {
    font-size: 0.8rem; /* Reduced from 0.85rem */
    color: var(--text-light);
    margin-bottom: 0.5rem; /* Reduced from 0.75rem */
}

.blog-post-card .excerpt {
    font-size: 0.9rem; /* Smaller excerpt text */
    line-height: 1.4;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
}

.blog-post-card .button-secondary {
    margin-top: auto; /* Push button to bottom */
    align-self: flex-start;
    font-size: 0.85rem; /* Reduced button text */
    padding: 8px 16px; /* Reduced padding */
    border-radius: 6px; /* Smaller border radius */
}

/* Styles for a single blog post page */
.blog-post-full h1 {
    font-size: 2.2rem; /* Reduced from default 2.5rem */
    margin-bottom: 1rem;
    text-align: center;
}

.blog-post-full .post-meta {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.blog-post-full .featured-image {
    width: 100%;
    max-height: 350px; /* Reduced from 400px */
    object-fit: cover;
    border-radius: var(--border-radius);
    margin: 1.5rem 0; /* Reduced from 2rem */
}

.post-body {
    line-height: 1.6; /* Reduced from 1.8 */
    font-size: 1rem; /* Reduced from 1.1rem */
}

.post-body h2 {
    font-size: 1.5rem; /* Reduced from 1.8rem */
    margin-top: 2rem; /* Reduced from 2.5rem */
    margin-bottom: 1rem;
    border-bottom: none; /* Remove default h2 border */
    padding-bottom: 0; /* Remove default h2 padding */
}

.post-body h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.post-body p {
    margin-bottom: 1.25rem; /* Reduced from 1.5rem */
    font-size: 1rem;
}

.post-body a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.post-body ul, .post-body ol {
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.post-body blockquote {
    border-left: 4px solid var(--primary-blue);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    background-color: var(--background-light);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
}

/* Mobile adjustments for blog */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 1.8rem;
    }
    
    .blog-post-card {
        flex-direction: column; /* Stack vertically on mobile */
        min-height: auto;
    }
    
    .blog-post-card img {
        width: 100%;
        height: 160px;
    }
    
    .blog-post-card h2 {
        font-size: 1.1rem;
    }
    
    .blog-post-full h1 {
        font-size: 1.9rem;
    }
    
    .post-body {
        font-size: 0.95rem;
    }
    
    .post-body h2 {
        font-size: 1.35rem;
    }
    
    .post-body h3 {
        font-size: 1.15rem;
    }
}

/* ==========================================================================
   10. Social Login Button Styles
   ========================================================================== */

/* Google button with white background and purple border */
.social-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #fff;
    color: #757575;
    border: 2px solid var(--primary-purple);
    background: linear-gradient(90deg, transparent, transparent); /* Override the default gradient */
}

.social-google:hover {
    background-color: #f8f9fa;
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(142, 45, 226, 0.15);
    transform: translateY(-2px);
}

.social-google span {
    color: #757575;
    font-weight: 500;
}

/* Apple button with white background and purple border */
.social-apple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #fff;
    color: #333;
    border: 2px solid var(--primary-purple);
    background: linear-gradient(90deg, transparent, transparent); /* Override the default gradient */
}

.social-apple:hover {
    background-color: #f8f9fa;
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(142, 45, 226, 0.15);
    transform: translateY(-2px);
}

.social-apple span {
    color: #333;
    font-weight: 500;
}

/* Discord Sign-In button */
.social-discord {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #fff;
    color: #5865F2;
    border: 2px solid var(--primary-purple);
    background: linear-gradient(90deg, transparent, transparent); /* Override the default gradient */
}

.social-discord:hover {
    background-color: #f8f9fa;
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(142, 45, 226, 0.15);
    transform: translateY(-2px);
}

.social-discord span {
    color: #5865F2;
    font-weight: 500;
}

/* ==========================================================================
   11. Enhanced Quiz Styles for Anonymous Users
   ========================================================================== */

/* Quiz Motivation Header */
.quiz-motivation-header {
    background: #fff; /* Change from purple to white */
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border-left: 4px solid var(--primary-purple); /* Keep purple accent */
    box-shadow: var(--shadow);
}

.step-title {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.step-subtitle {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Enhanced Progress Section */
.progress-section {
    max-width: 600px;
    margin: 0 auto;
}

.progress-bar-container.enhanced {
    width: 100%;
    background-color: var(--border-color);
    border-radius: 99px;
    height: 20px; /* Increased from default to make it taller */
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    position: relative; /* For positioning step numbers */
}

.progress-steps {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px; /* Add padding so circles don't touch edges */
}

.progress-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    /* REMOVED: z-index: 2; - not needed unless overlapping */
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.progress-step.completed {
    background-color: var(--success-color);
    color: white;
}

.progress-step.active {
    background-color: var(--primary-purple);
    color: white;
}

.progress-step.upcoming {
    background-color: #f8f9fa;
    color: var(--text-light);
    border-color: var(--border-color);
}

.step-number {
    font-weight: 700; /* Make numbers bold and visible */
}

.progress-text-enhanced {
    text-align: center;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.current-step {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.motivation-tip {
    font-size: 0.9rem;
    color: var(--primary-purple);
    font-style: italic;
}

/* Enhanced Question Blocks */
.question-block.enhanced {
    margin-bottom: 25px;
    padding: 20px;
    border: 2px solid transparent;
    border-radius: 12px;
    background-color: #fff; /* Force white background */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: border-color 0.3s ease;
}

.question-block.enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

.question-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.question-number {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.question-text {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Enhanced Options Container */
.options-container {
    padding: 1.5rem;
}

.option-wrapper.enhanced {
    margin-bottom: 0.75rem;
    position: relative;
}

.option-wrapper.enhanced:last-child {
    margin-bottom: 0;
}

.option-label.enhanced {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-label.enhanced:hover {
    border-color: var(--primary-purple);
    background: rgba(74, 0, 224, 0.02);
    transform: translateX(5px);
}

.option-label.enhanced:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-blue);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.option-wrapper.enhanced input[type="radio"]:checked + .option-label.enhanced:before {
    transform: scaleY(1);
}

.option-letter {
    background: white;
    color: var(--primary-blue);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 1rem;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.option-text {
    flex-grow: 1;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--text-dark);
}

/* IMPORTANT: Hide checkbox by default, only show when selected */
.option-check {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    color: var(--success-color);
    margin-left: 1rem;
    flex-shrink: 0;
}

/* Show checkbox only when radio is selected */
.option-wrapper.enhanced input[type="radio"]:checked + .option-label.enhanced .option-check {
    opacity: 1;
    transform: scale(1);
}

.option-wrapper.enhanced input[type="radio"]:checked + .option-label.enhanced {
    border-color: var(--primary-blue);
    background: rgba(74, 0, 224, 0.05);
}

.option-wrapper.enhanced input[type="radio"]:checked + .option-label.enhanced .option-letter {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* Enhanced Ranking Container */
.ranking-container {
    padding: 1.5rem;
}

.ranking-instructions {
    background: rgba(74, 0, 224, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.ranking-instructions p {
    margin: 0;
    color: var(--primary-blue);
    font-weight: 500;
}

.ranking-list.enhanced {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ranking-item.enhanced {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: grab;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ranking-item.enhanced:hover {
    border-color: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ranking-item.enhanced.sortable-ghost {
    background: rgba(74, 0, 224, 0.1);
    border-style: dashed;
    opacity: 0.7;
}

.rank-handle {
    color: var(--text-light);
    cursor: grab;
    padding: 0.25rem;
}

.rank-handle:active {
    cursor: grabbing;
}

.rank-position {
    background: var(--primary-blue);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Enhanced Navigation */
.quiz-navigation.enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

.nav-button.primary {
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple));
    color: white;
    border: none;
}

.nav-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(74, 0, 224, 0.3);
}

/* Quiz Encouragement */
.quiz-encouragement {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(46, 204, 113, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.encouragement-text {
    margin: 0;
    color: var(--success-color);
    font-weight: 500;
    font-size: 1rem;
}

/* Better keyboard accessibility */
.option-label.enhanced:focus-within {
    border-color: var(--primary-blue);
    background: rgba(74, 0, 224, 0.05);
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .quiz-motivation-header {
        margin: -20px -20px 2rem -20px;
        padding: 1.5rem 20px;
    }
    
    .step-title {
        font-size: 1.6rem;
    }
    
    .question-header {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .question-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .option-label.enhanced {
        padding: 1.25rem 1rem;
    }
    
    .option-label.enhanced:hover {
        transform: none; /* Remove hover transforms on mobile */
    }
    
    .ranking-item.enhanced:hover {
        transform: none; /* Remove hover transforms on mobile */
    }
    
    .progress-text-enhanced {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .nav-button {
        padding: 0.875rem 1.5rem;
        min-width: 100px;
    }
}

/* ==========================================================================
   12. Registration Gate Styles
   ========================================================================== */
/* ==========================================================================
   Registration Gate Styles
   ========================================================================== */

.registration-gate-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.gate-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(74, 0, 224, 0.05), rgba(142, 45, 226, 0.05));
    border-radius: var(--border-radius);
    position: relative;
}

.completion-badge {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success-color), #27ae60);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: white;
    box-shadow: 0 4px 20px rgba(46, 204, 113, 0.3);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.urgency-message {
    font-size: 1.2rem;
    color: var(--warning-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.completion-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.stat {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Results Preview Section */
.results-preview-section {
    margin-bottom: 3rem;
}

.preview-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.preview-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.preview-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.card-header {
    background: linear-gradient(135deg, 
        rgba(74, 0, 224, 0.08) 0%,     /* Very light purple */
        rgba(142, 45, 226, 0.08) 100%  /* Very light purple */
    );
    color: var(--text-dark);  /* Dark text instead of white */
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-icon {
    font-size: 1.5rem;
}

.card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-dark);  /* Ensure dark text */
    font-weight: 600;
}

.result-preview {
    padding: 1.5rem;
    text-align: center;
}

.result-badge-large {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
}

.result-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
}

.strength-preview,
.career-preview {
    padding: 1.5rem;
    position: relative;
}

.preview-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.preview-text.visible {
    position: relative;
    z-index: 1;
}

.blur-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.unlock-content {
    text-align: center;
    padding: 1rem;
}

.unlock-text {
    margin: 0.5rem 0 0 0;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.9rem;
}

/* Social Proof Section */
.social-proof-section {
    margin-bottom: 3rem;
    text-align: center;
}

.social-proof-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.3;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-blue);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.testimonial-content {
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    opacity: 0.3;
    position: absolute;
    top: -1rem;
    left: -0.5rem;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    text-align: right;
}

.testimonial-author strong {
    color: var(--primary-blue);
}

.author-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

/* Value Proposition Section */
.value-proposition-section {
    margin-bottom: 3rem;
    text-align: center;
}

.value-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.benefit-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--success-color);
    text-align: left;
}

.benefit-text {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin: 0;
}

/* Registration Section */
.registration-section {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--primary-blue);
}

.registration-title {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.registration-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.social-registration-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-reg-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-reg-button:hover {
    border-color: var(--primary-blue);
    background: rgba(74, 0, 224, 0.02);
    transform: translateY(-2px);
}

.social-reg-button.google {
    border-color: #4285F4;
}

.social-reg-button.google:hover {
    background: rgba(66, 133, 244, 0.05);
}

.social-reg-button.apple {
    border-color: #333;
}

.social-reg-button.apple:hover {
    background: rgba(51, 51, 51, 0.05);
}

.social-reg-button.discord {
    border-color: #5865F2;
}

.social-reg-button.discord:hover {
    background: rgba(88, 101, 242, 0.05);
}

.registration-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.registration-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.registration-divider span {
    background: white;
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    position: relative;
}

.email-registration {
    text-align: center;
}

.email-reg-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    background: transparent;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.email-reg-button:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: rgba(74, 0, 224, 0.02);
}

.email-form-container {
    margin-top: 1rem;
}

.terms-acceptance {
    margin: 1rem 0;
    font-size: 0.85rem;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.terms-acceptance input[type="checkbox"] {
    margin-top: 0.2rem;
}

.terms-acceptance a {
    color: var(--primary-blue);
    text-decoration: none;
}

.terms-acceptance a:hover {
    text-decoration: underline;
}

.registration-submit {
    width: 100%;
    margin-top: 1rem;
}

.trust-signals {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .registration-gate-container {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .completion-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .trust-signals {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .preview-cards {
        gap: 1rem;
    }
}

/* ==========================================================================
   LIGHT PURPLE SOLUTION - Add this to your CSS
   ========================================================================== */

/* Option A: Much lighter purple backgrounds */
.quiz-motivation-header {
    background: linear-gradient(135deg, 
        rgba(74, 0, 224, 0.08) 0%,     /* Very light purple */
        rgba(142, 45, 226, 0.08) 100%  /* Very light purple */
    );
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border-left: 4px solid var(--primary-purple);
    box-shadow: var(--shadow);
}

/* Keep question text dark and readable */
.quiz-motivation-header .step-title,
.quiz-motivation-header .step-subtitle {
    color: var(--text-dark);
}

/* Question header - lighter purple */
.question-header {
    background: linear-gradient(135deg, 
        rgba(74, 0, 224, 0.12) 0%,     /* Slightly darker than header but still light */
        rgba(142, 45, 226, 0.12) 100%
    );
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Keep question text dark and readable */
.question-header .question-text,
.question-header .question-number {
    color: var(--text-dark);
    font-weight: 600;
}

/* Alternative Option B: Keep purple but make text white */
.quiz-motivation-header-white-text {
    /* Keep existing purple background */
    color: white;
}

.quiz-motivation-header-white-text .step-title,
.quiz-motivation-header-white-text .step-subtitle {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3); /* Add shadow for better readability */
}

.question-header-white-text {
    /* Keep existing purple background */
    color: white;
}

.question-header-white-text .question-text,
.question-header-white-text .question-number {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.registration-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: registration-spin 1s linear infinite;
}

@keyframes registration-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Footnote for registration gate */
.free-footnote {
    text-align: center;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.free-footnote p {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
    font-style: italic;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .free-footnote p {
        font-size: 0.7rem;
        line-height: 1.3;
    }
}
.universal-terms-acceptance {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(74, 0, 224, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(74, 0, 224, 0.2);
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.universal-terms-acceptance input {
    margin-top: 0.2rem;
}

.universal-terms-acceptance label {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ==========================================================================
   13. New Homepage Styles - Mobile First Design
   ========================================================================== */

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    margin: -40px -20px 0 -20px; /* Extend to screen edges */
    padding: 60px 20px 40px 20px;
    text-align: center;
    color: white;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: floating 6s ease-in-out infinite;
}

.shape-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 40px;
    height: 40px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.hero-icon {
    margin-bottom: 2rem;
    animation: heroIconFloat 4s ease-in-out infinite;
}

.career-icon {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

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

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.typing-text {
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-cta {
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.3);
}

.cta-button.pulse {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }
    50% { box-shadow: 0 0 30px rgba(255, 255, 255, 0.6); }
}

.cta-button span {
    display: block;
    font-weight: 700;
}

.cta-button small {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 2px;
}

.credit-info {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.social-proof-mini {
    font-size: 1rem;
    opacity: 0.9;
}

/* Features Section */
.features-section {
    padding: 4rem 1rem;
    background: var(--background-light);
    margin: 0 -20px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon svg {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Social Proof Section */
.social-proof-section {
    padding: 3rem 1rem;
    background: white;
    margin: 0 -20px;
    text-align: center;
}

.testimonial-card {
    max-width: 500px;
    margin: 0 auto 2rem auto;
    background: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    position: relative;
}

.quote-mark {
    font-size: 4rem;
    color: var(--primary-blue);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: -1rem;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.testimonial-author {
    color: var(--text-light);
}

.testimonial-author strong {
    color: var(--primary-blue);
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Final CTA Section */
.final-cta-section {
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    margin: 0 -20px -40px -20px;
    text-align: center;
    color: white;
}

.final-cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border: none;
    padding: 0;
}

.cta-button.secondary {
    background: white;
    color: var(--primary-blue);
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
}

/* Tablet Styles */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .career-icon {
        width: 100px;
        height: 100px;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .stats-row {
        gap: 4rem;
    }
    
    .shape-1 {
        width: 100px;
        height: 100px;
    }
    
    .shape-2 {
        width: 60px;
        height: 60px;
    }
    
    .shape-3 {
        width: 120px;
        height: 120px;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .hero-section {
        min-height: 70vh;
        padding: 80px 40px 60px 40px;
        margin: -40px -40px 0 -40px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .features-section {
        padding: 5rem 2rem;
        margin: 0 -40px;
    }
    
    .social-proof-section {
        padding: 4rem 2rem;
        margin: 0 -40px;
    }
    
    .final-cta-section {
        padding: 4rem 2rem;
        margin: 0 -40px -40px -40px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .floating-shape,
    .hero-icon,
    .cta-button.pulse {
        animation: none;
    }
    
    .feature-card {
        opacity: 1;
        transform: none;
    }
    
    .typing-text {
        border-right: none;
    }
}

/* Performance Optimizations */
.hero-section,
.features-section,
.social-proof-section,
.final-cta-section {
    will-change: transform;
}

.feature-card,
.cta-button {
    will-change: transform;
}