* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.panel {
    background-color: #f5f5dc;
    width: 100%;
    padding: 30px 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.heading {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    text-align: left;
    margin-bottom: 10px;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.content p {
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    text-align: left;
}

.waiting-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.waiting-text {
    font-size: 16px;
    color: #000;
    font-weight: 500;
}

.authorize-text {
    font-size: 14px;
    color: #000;
}

.authorize-text.queue-full-message {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    color: #1a1a1a;
    max-width: 28em;
    margin-left: auto;
    margin-right: auto;
}

.continue-button {
    width: 100%;
    max-width: 500px;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.continue-button:hover {
    background-color: #333;
}

.continue-button:active {
    background-color: #1a1a1a;
}

.continue-button:disabled {
    background-color: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

.continue-button:disabled:hover {
    background-color: #666;
}

.arrow {
    font-size: 18px;
    font-weight: bold;
}

.loader {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.button-text {
    display: inline-block;
}

.retry-button {
    margin-top: 10px;
}

.reopen-auth-button {
    margin-top: 12px;
    background: #fff;
    color: #111;
    border: 2px solid #111;
}

.reopen-auth-button:hover:not(:disabled) {
    background: #f5f5f5;
}

.reopen-auth-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

body.premium .reopen-auth-button {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

/* Premium styles for indexen.html and index1.html */
body.premium {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

body.premium .panel {
    background: #ffffff;
    padding: 32px 24px;
    border-radius: 12px;
    gap: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.premium .heading {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

body.premium .content p {
    font-size: 15px;
    line-height: 1.7;
    color: #4a4a4a;
}

body.premium .content p:first-child {
    color: #1a1a1a;
    font-weight: 500;
}

body.premium .waiting-section {
    gap: 6px;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.premium .waiting-text {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.premium .authorize-text {
    font-size: 14px;
    color: #4a4a4a;
    font-weight: 400;
}

body.premium .continue-button {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    padding: 18px 28px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.2px;
}

body.premium .continue-button:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

body.premium .continue-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Tablet and larger screens */
@media (min-width: 768px) {
    .panel {
        padding: 40px 30px;
    }

    .heading {
        font-size: 28px;
    }

    .content p {
        font-size: 15px;
    }

    .continue-button {
        padding: 18px 28px;
        font-size: 17px;
    }

    body.premium .panel {
        padding: 40px 36px;
    }

    body.premium .heading {
        font-size: 30px;
    }

    body.premium .content p {
        font-size: 16px;
    }

    body.premium .continue-button {
        padding: 20px 32px;
        font-size: 17px;
    }
}

/* Profile page styles */
.profile-container {
    max-width: 600px;
}

.profile-panel {
    background-color: #f5f5dc;
    width: 100%;
    padding: 40px 30px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-name {
    font-size: 28px;
    font-weight: bold;
    color: #000;
    text-align: center;
    margin: 0;
}

.profile-description {
    font-size: 16px;
    color: #4a4a4a;
    text-align: center;
    line-height: 1.6;
    margin: 0;
    max-width: 500px;
}

.whatsapp-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.whatsapp-text {
    font-size: 16px;
    color: #000;
    text-align: center;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

.whatsapp-button {
    width: 100%;
    max-width: 400px;
    background-color: #25D366;
    color: #fff;
    border: none;
    padding: 18px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:hover {
    background-color: #20BA5A;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

.whatsapp-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

/* Tablet and larger screens for profile */
@media (min-width: 768px) {
    .profile-panel {
        padding: 50px 40px;
    }

    .profile-photo {
        width: 180px;
        height: 180px;
    }

    .profile-name {
        font-size: 32px;
    }

    .profile-description {
        font-size: 18px;
    }

    .whatsapp-text {
        font-size: 18px;
    }

    .whatsapp-button {
        padding: 20px 36px;
        font-size: 19px;
    }
}