.guest-popup-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.4);
backdrop-filter: blur(4px);
z-index: 1001;
display: none;
align-items: center;
justify-content: center;
padding: 1rem;
opacity: 0;
transition: opacity 0.3s ease;
}

@media (max-width: 640px) {
.guest-popup-overlay {
padding: 0;
align-items: flex-end;
}
}

.guest-popup-overlay.show {
display: flex;
opacity: 1;
}

.guest-popup-content {
width: 100%;
max-width: 28rem;
background: #1e2433;
border: 1px solid rgba(74, 158, 255, 0.1);
border-radius: 0.375rem;
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
overflow: hidden;
position: relative;
animation: guestPopupSlideIn 0.2s ease-out;
backdrop-filter: blur(12px);
}

@media (max-width: 640px) {
.guest-popup-content {
width: 100%;
max-width: none;
height: 100vh;
border-radius: 0;
border: none;
box-shadow: none;
animation: guestPopupSlideUp 0.3s ease-out;
}
}

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

@keyframes guestPopupSlideUp {
from {
opacity: 0;
transform: translateY(100%);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.guest-popup-close {
position: absolute;
top: 1rem;
right: 1rem;
padding: 0.5rem;
border-radius: 50%;
background: transparent;
border: none;
color: rgba(255, 255, 255, 0.7);
cursor: pointer;
transition: all 0.2s ease;
z-index: 10;
}

.guest-popup-close:hover {
background: rgba(255, 255, 255, 0.1);
color: white;
}

.guest-popup-body {
padding: 1.5rem;
}

@media (max-width: 640px) {
.guest-popup-body {
padding: 2rem 1.5rem;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
}
}

.guest-popup-logo {
display: flex;
justify-content: center;
margin-bottom: 0.5rem;
}

.guest-popup-title {
text-align: center;
margin-bottom: 0.75rem;
}

.guest-popup-title h2 {
margin: 0;
color: white;
}

.guest-popup-title p {
margin: 0.125rem 0 0 0;
color: rgba(255, 255, 255, 0.7);
font-size: 0.875rem;
font-style: italic;
}

.guest-popup-buttons {
display: flex;
flex-direction: column;
gap: 0.5rem;
margin-top: 0.75rem;
}

.guest-popup-button {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
padding: 0.75rem 1rem;
border-radius: 0.5rem;
background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
border: 1px solid rgba(255, 255, 255, 0.1);
color: white;
font-weight: 500;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
backdrop-filter: blur(8px);
}

.guest-popup-button:hover {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
border-color: rgba(255, 255, 255, 0.25);
transform: translateY(-1px) scale(1.02);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.guest-popup-button:disabled {
opacity: 0.5;
cursor: not-allowed;
}

.guest-popup-divider {
position: relative;
padding: 0.375rem 0;
margin: 0.25rem 0;
}

.guest-popup-divider-line {
position: absolute;
top: 50%;
left: 0;
right: 0;
height: 1px;
background: rgba(74, 158, 255, 0.1);
}

.guest-popup-divider-text {
position: relative;
display: flex;
justify-content: center;
padding: 0 1rem;
background: #1e2433;
color: rgba(255, 255, 255, 0.5);
font-size: 0.75rem;
transform: translateY(15px);
}

.guest-popup-coming-soon {
display: flex;
justify-content: center;
gap: 1rem;
margin-top: 0.75rem;
}

.guest-popup-coming-button {
padding: 0.5rem;
border-radius: 0.5rem;
background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
border: 1px solid rgba(255, 255, 255, 0.1);
opacity: 0.5;
cursor: not-allowed;
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
backdrop-filter: blur(8px);
}

.guest-popup-coming-button:hover {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
transform: scale(1.02);
}

.guest-popup-terms {
display: flex;
align-items: flex-start;
gap: 0.5rem;
margin-top: 1.2rem;
}

.guest-popup-checkbox {
position: relative;
margin-top: 0.125rem;
background: transparent;
border: none;
cursor: pointer;
padding: 0;
}

.guest-popup-checkbox-inner {
width: 1rem;
height: 1rem;
border-radius: 0.25rem;
border: 1px solid rgba(74, 158, 255, 0.2);
background: transparent;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.guest-popup-checkbox-inner.checked {
background: #4a9eff;
border-color: #4a9eff;
}

.guest-popup-checkbox-inner svg {
opacity: 0;
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.guest-popup-checkbox-inner.checked svg {
opacity: 1;
}

.guest-popup-terms-text {
font-size: 0.875rem;
color: rgba(255, 255, 255, 0.7);
line-height: 1.4;
}

.guest-popup-link {
color: inherit;
text-decoration: underline;
background: none;
border: none;
cursor: pointer;
padding: 0;
}

.guest-popup-link:hover {
color: white;
}

.guest-popup-button.loading {
opacity: 0.7;
cursor: not-allowed;
}

.guest-popup-button.loading .iconify {
animation: spin 1s linear infinite;
}

@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}

.guest-popup-checkbox.shake {
animation: shake 0.65s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
0%, 100% { transform: translateX(0); }
20% { transform: translateX(-2px); }
40% { transform: translateX(2px); }
60% { transform: translateX(-2px); }
80% { transform: translateX(2px); }
}

/* toast styles */
.toast {
position: fixed;
bottom: 20px;
right: 20px;
padding: 6px 12px;
border-radius: 4px;
font-size: 13px;
font-weight: 400;
z-index: 1001;
max-width: 280px;
word-wrap: break-word;
animation: toastSlideIn 0.25s ease-out;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-error {
background: rgba(239, 68, 68, 0.15);
color: #fca5a5;
border: 1px solid rgba(239, 68, 68, 0.2);
}

.toast-success {
background: rgba(16, 185, 129, 0.15);
color: #6ee7b7;
border: 1px solid rgba(16, 185, 129, 0.2);
}

.toast-info {
background: rgba(74, 158, 255, 0.15);
color: #93c5fd;
border: 1px solid rgba(74, 158, 255, 0.2);
}

.toast-hide {
animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideIn {
from {
opacity: 0;
transform: translateY(100%);
}
to {
opacity: 1;
transform: translateY(0);
}
}

@keyframes toastSlideOut {
from {
opacity: 1;
transform: translateY(0);
}
to {
opacity: 0;
transform: translateY(100%);
}
}
