:root {
    --background-color: #000000;
    --surface-color: #1E1E1E;
    --primary-color: #E0007A;
    --on-primary: #FFFFFF;
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --accent-gold: #FFD700;
    --sparkle-color: #FF69B4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    color: var(--text-primary);
    background-image: url('https://cdn.pixabay.com/photo/2015/05/08/17/55/space-857272_1280.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#app-container {
    width: 100%;
    max-width: 420px;
    height: 850px;
    max-height: 100dvh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

@keyframes glow-pulse {
    0% { box-shadow: 0 20px 50px rgba(0,0,0,0.7), inset 0 0 30px rgba(224, 0, 122, 0.3); }
    100% { box-shadow: 0 20px 50px rgba(0,0,0,0.7), inset 0 0 30px rgba(224, 0, 122, 0.6), 0 0 10px rgba(224, 0, 122, 0.5); }
}

.screen {
    padding: 20px;
    padding-bottom: 90px;
    overflow-y: auto;
    flex-grow: 1;
    position: relative;
}

.hidden {
    display: none !important;
}

/* --- Login Screen (UPDATED) --- */
#login-screen {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Moves content to the bottom */
    align-items: center;
    text-align: center;
    flex-grow: 1;
    background-image: url('a-la-orden.jpg'); /* New background image */
    background-size: 95%;
	background-repeat: no-repeat;
    background-position: top;
    position: relative;
    overflow: hidden;
    padding-bottom: 40px; /* Adds spacing from the bottom edge */
}

.login-content {
    background: rgba(0, 0, 0, 0.5); /* Darker background for contrast */
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    width: 90%;
    max-width: 380px;
}

.logo {
    max-width: 100%;
    height: auto;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#login-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#login-form input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(224, 0, 122, 0.5);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 0 10px rgba(224, 0, 122, 0.2);
}

#login-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(224, 0, 122, 0.5);
}

#login-form button {
    background: linear-gradient(45deg, var(--primary-color), #8e004a);
    color: var(--on-primary);
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(224, 0, 122, 0.4);
    position: relative;
    overflow: hidden;
}

#login-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 0, 122, 0.6);
}

#login-form button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

#login-form button:hover::after {
    left: 100%;
}

/* --- Main App --- */
#main-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(135deg, #000000, #1a1a1a);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(224, 0, 122, 0.3);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(224, 0, 122, 0.1), transparent 70%);
    z-index: -1;
}

header .user-info p {
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 0 0 5px rgba(224, 0, 122, 0.5);
}

header .user-info span {
    color: var(--accent-gold);
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
	line-height: 1.5rem;
}

header .profile-icon {
    font-size: 2.2rem;
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

main {
    flex-grow: 1;
    position: relative;
    overflow-y: hidden;
}

main .screen {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    padding: 20px;
	padding-bottom: 90px;
    transition: opacity 0.5s ease;
}

main h2 {
    margin-bottom: 5px;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-shadow: 0 0 5px rgba(224, 0, 122, 0.5);
    animation: fadeInUp 0.8s ease;
}

main .subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
	line-height: 1.5rem;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(224, 0, 122, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(224, 0, 122, 0.1));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card.interactive {
    background: linear-gradient(45deg, var(--primary-color), #8e004a);
    border: 1px solid rgba(224, 0, 122, 0.5);
    color: var(--on-primary);
    box-shadow: 0 5px 20px rgba(224, 0, 122, 0.4);
    transition: all 0.3s ease;
}

.card.interactive:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(224, 0, 122, 0.6);
}

.card h3 {
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 0 0 5px rgba(224, 0, 122, 0.5);
}

.card p {
    color: var(--text-secondary);
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
	line-height: 1.5rem;
}

.card button {
    background-color: var(--on-primary);
    color: var(--primary-color);
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    font-weight: 600;
    margin-top: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(224, 0, 122, 0.3);
    position: relative;
    overflow: hidden;
}

.card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 0, 122, 0.5);
}

.card button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.card button:hover::after {
    left: 100%;
}

.entradatext {
    font-size: 1em;
    text-align: right;
    padding-right: 15px;
    flex-grow: 1;
    color: var(--text-primary);
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
}

.qr-code {
    display: block;
    margin: 5px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.qr-code:hover {
    transform: scale(1.05);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #444;
    border-radius: 5px;
    margin-top: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.progress {
    height: 100%;
    background-color: var(--accent-gold);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(255, 215, 0, 0.4);
    transition: width 0.5s ease;
}

/* --- Tickets Screen --- */
.tabs {
    display: flex;
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 2px solid #444;
    color: var(--text-secondary);
    padding: 15px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.tab-button:hover::after {
    width: 100%;
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

.tab-button.active::after {
    width: 100%;
}

.event-item, .ticket {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(224, 0, 122, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
	line-height: 1.5rem;
}

.event-item:hover, .ticket:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.buy-ticket-btn {
    background-color: var(--primary-color);
    color: var(--on-primary);
    border: none;
    border-radius: 25px;
    padding: 10px 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(224, 0, 122, 0.4);
    position: relative;
    overflow: hidden;
}

.buy-ticket-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 0, 122, 0.6);
}

.buy-ticket-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.buy-ticket-btn:hover::after {
    left: 100%;
}

/* --- Passport Screen --- */
.passport-levels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.level {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    opacity: 0.5;
    transition: all 0.3s ease;
    border: 1px solid rgba(224, 0, 122, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.level.active {
    opacity: 1;
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(224, 0, 122, 0.4);
}

.level span {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.level p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.level.active:nth-child(3) span {
    color: var(--accent-gold);
}

.level.active:nth-child(4) span {
    color: #c9f7ff;
}

.stamps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.stamp {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 2.2rem;
    transition: all 0.3s ease;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* --- NEW: Ambiente Screen --- */
.feedback-control {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(224, 0, 122, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.feedback-control h4 {
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 0 0 5px rgba(224, 0, 122, 0.5);
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
}

input[type="range"].feedback-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    background: #444;
    border-radius: 5px;
    outline: none;
    transition: all 0.3s ease;
}

input[type="range"].feedback-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid var(--on-primary);
    box-shadow: 0 0 10px rgba(224, 0, 122, 0.5);
    transition: all 0.3s ease;
}

input[type="range"].feedback-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid var(--on-primary);
    box-shadow: 0 0 10px rgba(224, 0, 122, 0.5);
    transition: all 0.3s ease;
}

input[type="range"].feedback-slider:hover::-webkit-slider-thumb,
input[type="range"].feedback-slider:hover::-moz-range-thumb {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(224, 0, 122, 0.7);
}

/* --- Social Screen --- */
.game-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(224, 0, 122, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.game-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 0 0 5px rgba(224, 0, 122, 0.5);
}

.selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 20px 0;
}

.selectable-item {
    background-color: #333;
    border: 2px solid #444;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
	min-height: 80px;
}

.selectable-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.selectable-item.selected {
    background-color: var(--primary-color);
    color: var(--on-primary);
    border-color: var(--on-primary);
    font-weight: 600;
    box-shadow: 0 0 15px rgba(224, 0, 122, 0.5);
}

.brand-selection .selectable-item {
    font-weight: bold;
    text-transform: uppercase;
}

.selection-counter {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
}

.find-connection-btn {
    width: 100%;
    background-color: var(--accent-gold);
    color: #000;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
	box-shadow: 0 4px 15px #e0007a;
    position: relative;
    overflow: hidden;
}

.find-connection-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.find-connection-btn:disabled {
    background-color: #444;
    color: #888;
    cursor: not-allowed;
}

.anonymous-chat-view {
    margin-top: 20px;
    border: 1px solid rgba(224, 0, 122, 0.2);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.anonymous-chat-view h3 {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(224, 0, 122, 0.2);
    color: var(--text-primary);
    text-shadow: 0 0 5px rgba(224, 0, 122, 0.5);
}

.chat-body-anon {
    height: 200px;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-footer-anon {
    display: flex;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
}

.chat-footer-anon input {
    flex-grow: 1;
    background-color: #333;
    border: 1px solid #555;
    border-radius: 20px;
    padding: 10px;
    color: var(--text-primary);
    margin-right: 10px;
    transition: all 0.3s ease;
}

.chat-footer-anon input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(224, 0, 122, 0.5);
}

.chat-footer-anon button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-footer-anon button:hover {
    transform: scale(1.1);
}

/* --- Copas & Cartera Screen --- */
.drink-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 70px; /* Space for order summary */
}

.drink-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(224, 0, 122, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.drink-info h4 {
    margin: 0;
    color: var(--text-primary);
}

.drink-info p {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.drink-price-control {
    text-align: right;
}

.drink-price-control .price {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    color: var(--accent-gold);
}

.quantity-control {
    display: flex;
    align-items: center;
    background-color: #333;
    border-radius: 20px;
}

.quantity-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    width: 35px;
    height: 35px;
    line-height: 35px;
}

.quantity-btn:disabled {
    color: #666;
    cursor: not-allowed;
}

.quantity {
    font-size: 1rem;
    font-weight: 600;
    padding: 0 10px;
    min-width: 15px;
    text-align: center;
}

.order-summary {
    position: absolute; /* Changed from fixed to be contained within the screen */
    bottom: 75px; /* Above nav bar */
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(45deg, var(--primary-color), #8e004a);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.4);
    border-top: 1px solid var(--primary-color);
    animation: slideInUp 0.5s ease;
    z-index: 100;
}


@keyframes slideInUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

#order-details {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--on-primary);
}

#pay-with-wallet-btn {
    background-color: var(--on-primary);
    color: var(--primary-color);
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
#pay-with-wallet-btn:disabled {
    background-color: #aaa;
    color: #666;
    cursor: not-allowed;
}


.wallet-card .wallet-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-gold);
    text-align: center;
    margin-top: 10px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.add-funds-container {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
}

.add-funds-btn {
    background-color: #333;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-funds-btn:hover {
    background-color: var(--primary-color);
    color: var(--on-primary);
}

#order-history-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
#order-history-container .ticket {
    background-color: #333;
}


/* --- Navigation Bar --- */
nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-start;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 10px 0;
    border-top: 1px solid rgba(224, 0, 122, 0.3);
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
    backdrop-filter: blur(10px);
}

nav::-webkit-scrollbar {
    display: none;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 0 15px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1; /* Ensure the link content is above the pseudo-element */
}

/* The ::after element is the sliding overlay */
.nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: transform 0.3s ease;
    transform: scaleX(0); /* Start hidden by scaling to 0 width */
    transform-origin: left center; /* Scale from the left */
    z-index: -1; /* Place it behind the link content */
}

/* Show the overlay only during hover AND only if NOT active */
.nav-link:hover::after {
    transform: scaleX(1); /* Scale to full width on hover */
}

.nav-link i {
    font-size: 1.3rem;
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.nav-link span {
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

/* Active link styling */
.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active i {
    transform: scale(1.1);
}

.nav-link.active span {
    font-weight: 600;
}

/* CRITICAL FIX: Ensure the active link never shows the hover overlay */
/* This rule has higher specificity and overrides the hover state */
.nav-link.active::after,
.nav-link.active:hover::after {
    transform: scaleX(0) !important; /* Force it to stay hidden */
}

/* --- Chatbot & Toast --- */
@keyframes spin-progress {
    to { transform: rotate(360deg); }
}

@keyframes fade-in-out {
    0% { opacity: 0; transform: translateY(20px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

#fab-chatbot {
    position: absolute;
    bottom: 80px;
    right: 20px;
    width: 87.5px;
    height: 87.5px;
    background-image: url('a-la-orden-button.small.png');
    background-size: cover;
    background-position: center;
    border: none;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(224, 0, 122, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
	box-shadow: 3px 3px 25px rgb(255, 255, 255);
}

#fab-chatbot img {
    max-width: 135%;
    max-height: 135%;
    object-fit: contain;
}

#fab-chatbot::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    z-index: -1;
    border-radius: 50%;
    background: conic-gradient(from 180deg, var(--accent-gold), #ff0095, var(--primary-color), var(--accent-gold));
    animation: spin-progress 2.5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

#fab-chatbot:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(224, 0, 122, 0.6);
}

#chatbot-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--background-color); /* Solid background */
    z-index: 1001;
    display: flex; /* Kept flex for container alignment */
    flex-direction: column;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.chatbot-container {
    display: flex;
    flex-direction: column;
    height: 100%; 
    background-color: var(--background-color);

}

/* MODIFIED: Removed border-radius */
.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--surface-color);
    padding: 15px;
    backdrop-filter: none;
}

.chatbot-header h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    text-shadow: 0 0 5px rgba(224, 0, 122, 0.5);
}

#close-chatbot {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#close-chatbot:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* MODIFIED: Made the body flexible to fill space */
.chatbot-body {
    flex: 1; /* Allow body to grow/shrink */
    min-height: 0; /* Important for flex shrinking */
    background-color: var(--background-color);
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-bottom: 1px solid rgba(224, 0, 122, 0.2);
}

.chat-bubble {
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 80%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bot {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    align-self: flex-start;
    border: 1px solid rgba(224, 0, 122, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	line-height: 1.5rem;
}

.user {
    background-color: var(--primary-color);
    color: var(--on-primary);
    align-self: flex-end;
    border: 1px solid rgba(224, 0, 122, 0.5);
    box-shadow: 0 2px 10px rgba(224, 0, 122, 0.4);
}

.chat-bot-bubble {
    animation: slideInLeft 0.5s ease forwards;
}

.chat-user-bubble {
    animation: slideInRight 0.5s ease forwards;
}

@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.chatbot-footer {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.chat-option {
    background-color: #333;
    border: 1px solid #555;
    color: var(--text-primary);
    padding: 7px;
    border-radius: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	margin: 4px;
}

.chat-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.chat-input-container {
    display: flex;
    padding-top: 10px;
    border-top: 1px solid rgba(224, 0, 122, 0.2);
    margin-top: 0px;
}

#chat-input {
    flex-grow: 1;
    background-color: #333;
    border: 1px solid #555;
    border-radius: 20px;
    padding: 10px 15px;
    color: var(--text-primary);
    margin-right: 10px;
    outline: none;
    transition: all 0.3s ease;
    
    /* --- ADD THESE LINES --- */
    font-family: inherit;
    font-size: 1rem;
    font-weight: normal;
    font-style: normal;
}

#chat-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(224, 0, 122, 0.5);
}

#chat-send-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 5px;
    display: flex;
    align-items: center;
}

#chat-send-btn:hover {
    transform: scale(1.1);
    color: var(--accent-gold);
}


/* NEW: Toast Notification */
#toast-notification {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-gold);
    color: #000;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    z-index: 2000;
    animation: fade-in-out 3s forwards;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

#toast-notification.hidden {
    display: none;
}