/* --- FONT DEFINITIONS FOR SELF-HOSTING (FINAL) --- */

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/Lato-Light.ttf') format('truetype');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400; /* 'regular' is weight 400 */
  src: url('fonts/Lato-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/Lato-Bold.ttf') format('truetype');
}

/* Playfair Display */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/PlayfairDisplay-SemiBold.ttf') format('truetype');
}

:root {
    --color-background: #03081A;
    --color-text: #FFFFFF; /* Changed to pure white for better pop */
    --color-accent: #00D4FF; /* A vibrant Cyan that matches the ripples */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-sans);
    margin: 0;
    padding: 2rem;
    box-sizing: border-box;

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

/* --- Privacy Modal (MODIFIED FOR READABILITY) --- */
#privacy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

#privacy-modal {
    background: #f8f9fa; /* Slightly darker white for the modal box */
    color: #212529; /* Set a dark default text color for the modal */
    padding: 25px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

#privacy-modal h2 {
    margin-top: 0;
    text-align: center;
}

#privacy-content {
    background-color: #ffffff; /* Brighter white for the text area */
    border: 1px solid #dee2e6; /* Softer border */
    border-radius: 4px;
    padding: 15px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    flex-grow: 1;
    color: #343a40; /* --- (KEY CHANGE) Darker text for readability --- */
}

#privacy-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

#privacy-buttons button {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 500; /* Bolder button text */
    cursor: pointer;
}

#user-input {
    flex-grow: 1;
}

/* --- Spinner (Unchanged) --- */
#spinnerOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
}
.spinner {
    border: 12px solid #f3f3f3;
    border-top: 12px solid #3498db;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Logo (Unchanged, its position is good) --- */
#background-svg {
    width: 90%;
    max-width: 550px;
    height: auto;
    margin-bottom: 2rem;
    order: -2;
}

/* --- (MODIFIED) - Status Text has improved contrast --- */
#status-text {
    /*This is now handled by the progress meter during load*/
}

/* --- (MODIFIED) - Redesigned button to use the new Cyan accent --- */
.start-button {
    font-family: var(--font-sans);
    font-weight: 700; /* Bold */
    font-size: 1.1rem;
    background-color: var(--color-accent); /* VIBRANT CYAN */
    color: var(--color-background); /* Dark text for contrast */
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3); /* Add a glow effect */
}

.start-button:hover {
    background-color: #33eaff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

/* --- (MODIFIED) - Reset Button now has a subtle background for contrast --- */
.reset-button {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.reset-button:hover {
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
}

#sales-contact {
    order: -2; /* Places it directly below the logo */
    font-size: 1.3rem; /* Larger font size */
    font-weight: 400;  /* Clear, but not overly bold */
    color: #FFFFFF;
    text-shadow: 0px 1px 5px rgba(0, 0, 0, 0.7); /* Strong shadow for readability */
    margin-bottom: 2rem; /* Give it space before the next element */
}

#sales-contact p {
    margin: 0;
}

/* --- (MODIFIED) - Offer text now has a background for guaranteed readability --- */
.offer-text {
    order: -1; /* Pushes it below the email */
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text);
    padding: 0.6rem 1.5rem;
    border: 1px solid rgba(251, 251, 251, 0.1);
    border-radius: 30px;
    background-color: rgba(10, 25, 60, 0.5); /* Dark blue transparent background */
    margin-bottom: 2rem;
    text-shadow: none;
}

#accept-policy-button, #deny-button {
    font-weight: bold;
}
/* Styles for accept/deny buttons remain the same */

#logo-link {
text-decoration: none; /* Removes underline */
line-height: 0; /* Prevents extra spacing */
}

#action-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-top: 1rem;
}

#language-prompt-overlay {
    position: fixed;
    inset: 0; /* A modern shorthand for top: 0; right: 0; bottom: 0; left: 0; */
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75); /* Example background */

    display: none;
    justify-content: center;
    align-items: center;

    /* Prevent overlay from creating scrollbars */
    overflow: hidden;
}

#language-prompt-text p {
    margin: 0.5em 0;
}

.separator-text {
    font-size: 0.8em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
