/* =====================================================
   CHECK MÃ ĐẠI LÝ - MAIN STYLES
   ===================================================== */

/* Reset & Base */
*,
*:before,
*:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
}

img,
video {
    max-width: 100%;
    display: block;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =====================================================
   USER PAGE STYLES
   ===================================================== */

.app-container {
    -webkit-overflow-scrolling: touch;
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: #030810;
}

/* Animated Background */
.app-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.app-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/bg-cyber.png');
    background-size: cover;
    background-position: center;
    animation: bgPan 30s linear infinite;
    opacity: 0.8;
}

.app-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(3, 8, 16, 0.7) 70%, rgba(3, 8, 16, 0.95) 100%);
    pointer-events: none;
}

@keyframes bgPan {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

/* Floor Glow Effect */
.app-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 40%;
    background: radial-gradient(ellipse at bottom center, rgba(0, 172, 228, 0.3) 0%, rgba(0, 172, 228, 0.1) 30%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.app-video {
    object-fit: cover;
    z-index: 0;
    width: 100%;
    min-width: 100%;
    height: 100%;
    min-height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.app-content {
    z-index: 10;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 1rem;
    display: flex;
    position: relative;
}

/* Modal Container */
.modal {
    flex-direction: column;
    width: 587px;
    max-width: 95vw;
    padding: 0 1.5rem 1.5rem;
    display: flex;
    position: relative;
}

.modal-bg-image {
    z-index: 0;
    background: linear-gradient(180deg, rgba(0, 77, 193, 0.92) 0%, rgba(15, 183, 228, 0.88) 50%, rgba(0, 131, 239, 0.92) 100%);
    backdrop-filter: blur(10px);
    border: 3px solid transparent;
    border-radius: 1rem;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 0 60px rgba(15, 183, 228, 0.4), 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 0 60px rgba(0, 179, 255, 0.15);
}

.modal-bg-image::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(90deg, #0083ef, #009df4, #00bcf9, #01c0fa, #015eea, #01c0fa, #005fea);
    border-radius: 1rem;
    z-index: -1;
}

/* Banner */
.modal-banner {
    z-index: 1;
    justify-content: center;
    margin-top: -1.5rem;
    margin-bottom: 1rem;
    display: flex;
    position: relative;
}

.modal-banner-content {
    position: relative;
    background: linear-gradient(180deg, rgba(0, 50, 80, 0.95) 0%, rgba(0, 80, 120, 0.9) 50%, rgba(0, 50, 80, 0.95) 100%);
    border: 2px solid;
    border-image: linear-gradient(135deg, #00d4ff 0%, #00ffff 25%, #87ceeb 50%, #00ffff 75%, #00d4ff 100%) 1;
    padding: 0.75rem 2.5rem;
    clip-path: polygon(0% 20%, 5% 0%, 95% 0%, 100% 20%,
            100% 80%, 95% 100%, 5% 100%, 0% 80%);
    box-shadow:
        0 0 20px rgba(0, 212, 255, 0.5),
        0 0 40px rgba(0, 212, 255, 0.3),
        inset 0 0 30px rgba(0, 212, 255, 0.2);
}

/* Corner accents */
.modal-banner-content::before,
.modal-banner-content::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid #00ffff;
}

.modal-banner-content::before {
    top: -5px;
    left: -5px;
    border-right: none;
    border-bottom: none;
    box-shadow: -3px -3px 10px rgba(0, 255, 255, 0.5);
}

.modal-banner-content::after {
    top: -5px;
    right: -5px;
    border-left: none;
    border-bottom: none;
    box-shadow: 3px -3px 10px rgba(0, 255, 255, 0.5);
}

.modal-banner-text {
    letter-spacing: 3px;
    text-align: center;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow:
        0 0 10px rgba(0, 255, 255, 0.8),
        0 0 20px rgba(0, 212, 255, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* Form Styles */
.modal-form {
    z-index: 1;
    flex-direction: column;
    flex: 1;
    gap: 1.25rem;
    margin-top: 0.5rem;
    display: flex;
    position: relative;
}

.form-group {
    flex-direction: column;
    gap: 0.5rem;
    display: flex;
}

.form-label {
    letter-spacing: 0.5px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.input-wrapper {
    align-items: center;
    gap: 0.5rem;
    display: flex;
    position: relative;
}

.form-input {
    color: #1f2937;
    background-color: #fffbeb;
    background-image: linear-gradient(#fffbeb, #fffbeb), linear-gradient(90deg, #0083ef, #009df4, #00bcf9, #01c0fa, #015eea, #01c0fa, #005fea);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border: 3px solid transparent;
    border-radius: 50px;
    outline: none;
    width: 100%;
    height: 56px;
    padding: 0 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    transition: box-shadow 0.2s;
}

.form-input::placeholder {
    color: rgba(0, 77, 193, 0.5);
    font-weight: 500;
}

.form-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 172, 228, 0.3);
}

.form-input[readonly] {
    color: #1f2937;
    background-color: #fffbeb;
    cursor: default;
}

/* Toggle Buttons */
.input-mode-toggle {
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    display: flex;
}

.toggle-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
    position: relative;
    z-index: 1;
}

.toggle-btn:not(.active) {
    background: #fff;
    color: #00ace4;
    border: 3px solid transparent;
    background-image: linear-gradient(#fff, #fff), linear-gradient(90deg, #0083ef, #009df4, #00bcf9, #01c0fa, #015eea, #01c0fa, #005fea);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.toggle-btn.active {
    background: linear-gradient(180deg, #00ace4, #4be5e4);
    color: #fff;
    border: 3px solid transparent;
    box-shadow: inset 0 0 30px rgba(0, 179, 255, 0.2), 0 8px 20px rgba(27, 183, 227, 0.4);
}

.toggle-btn:hover {
    transform: translateY(-2px);
}

/* Select/Paste Buttons */
.select-casino-button,
.paste-button {
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    background: linear-gradient(180deg, #00ace4, #4be5e4);
    border: 3px solid transparent;
    border-radius: 50px;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    min-width: 100px;
    height: 56px;
    padding: 0 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    box-shadow: inset 0 0 30px rgba(0, 179, 255, 0.2), 0 8px 20px rgba(27, 183, 227, 0.4);
}

.select-casino-button:hover,
.paste-button:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 0 30px rgba(0, 179, 255, 0.3), 0 12px 25px rgba(27, 183, 227, 0.5);
}

/* Main Check Button */
.form-button {
    cursor: pointer;
    background: transparent;
    border: none;
    border-radius: 0;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    margin-top: 0.5rem;
    padding: 0;
    transition: all 0.2s;
    display: flex;
    position: relative;
    overflow: visible;
}

.form-button:hover {
    transform: translateY(-3px) scale(1.02);
    filter: brightness(1.1);
}

.form-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-button-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 25px rgba(0, 172, 228, 0.5));
}

/* Social Icons */
.social-icons {
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    display: flex;
}

.social-icon {
    cursor: pointer;
    transition: transform 0.2s;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* =====================================================
   CASINO MODAL
   ===================================================== */

.casino-modal-overlay {
    z-index: 1000;
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    display: none;
    position: fixed;
    inset: 0;
}

.casino-modal-overlay.active {
    display: flex;
}

.casino-modal {
    background: linear-gradient(180deg, rgba(0, 172, 228, 0.2), rgba(0, 77, 193, 0.9));
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 1rem;
    flex-direction: column;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 77, 193, 0.3);
}

.casino-modal-header {
    border-bottom: none;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    display: flex;
    position: relative;
    background: linear-gradient(180deg, #00ace4 0%, #4be5e4 100%);
}

.casino-modal-title {
    color: #fff;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.casino-modal-close {
    color: #fff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.2s;
    display: flex;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.casino-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.casino-search-wrapper {
    padding: 1rem 1.5rem;
}

.casino-search-input {
    color: #1f2937;
    background: #fff;
    border: 2px solid #00bcf9;
    border-radius: 50px;
    outline: none;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.casino-search-input:focus {
    border-color: #facc15;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.casino-search-input::placeholder {
    color: #64748b;
}

.casino-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    overflow-y: auto;
    max-height: 400px;
}

.casino-item {
    background: #fff;
    color: #02c0fa;
    border: 2px solid #00bcf9;
    border-radius: 50px;
    padding: 0.75rem 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.casino-item:hover {
    background: linear-gradient(180deg, #00ace4, #4be5e4);
    color: #fff;
    transform: translateY(-2px);
}

.casino-no-results {
    text-align: center;
    color: #fff;
    grid-column: 1 / -1;
    padding: 2rem;
    font-size: 1rem;
    opacity: 0.7;
}

/* =====================================================
   OTP MODAL
   ===================================================== */

.otp-overlay {
    z-index: 1001;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    display: none;
    position: fixed;
    inset: 0;
}

.otp-overlay.active {
    display: flex;
}

.otp-modal {
    color: #1f2937;
    background: linear-gradient(135deg, #fef9c3, #facc15);
    border-radius: 1.25rem;
    width: 380px;
    max-width: 90%;
    padding: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(250, 204, 21, 0.6);
}

.otp-header {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    display: flex;
}

.otp-title {
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #92400e;
    font-size: 1.2rem;
    font-weight: 800;
}

.otp-close {
    cursor: pointer;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    transition: all 0.2s;
}

.otp-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.otp-body {
    flex-direction: column;
    gap: 0.75rem;
    display: flex;
}

.otp-desc {
    color: #451a03;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.otp-input {
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    color: #1f2937;
    background: #fefce8;
    border: 2px solid rgba(180, 83, 9, 0.5);
    border-radius: 0.75rem;
    outline: none;
    width: 100%;
    height: 3.5rem;
    padding: 0 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.2s;
}

.otp-input::placeholder {
    letter-spacing: 0.1em;
    color: #a16207;
    font-size: 1rem;
}

.otp-input:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.4);
}

.otp-error-text {
    color: #b91c1c;
    font-size: 0.85rem;
    font-weight: 600;
    display: none;
}

.otp-error-text.show {
    display: block;
}

.otp-actions {
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
    display: flex;
}

.otp-button {
    cursor: pointer;
    border: none;
    border-radius: 50px;
    min-width: 100px;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
}

.otp-button-cancel {
    color: #7c2d12;
    background: rgba(120, 53, 15, 0.1);
}

.otp-button-cancel:hover {
    background: rgba(120, 53, 15, 0.2);
}

.otp-button-confirm {
    color: #fff;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    box-shadow: 0 8px 15px rgba(16, 185, 129, 0.4);
}

.otp-button-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(16, 185, 129, 0.5);
}

/* =====================================================
   PROCESSING MODAL
   ===================================================== */

.processing-overlay {
    z-index: 1002;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    display: none;
    position: fixed;
    inset: 0;
}

.processing-overlay.active {
    display: flex;
}

.processing-modal {
    text-align: center;
    color: #fff;
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, rgba(0, 77, 193, 0.95), rgba(15, 183, 228, 0.9), rgba(0, 131, 239, 0.95));
    border: 3px solid transparent;
    border-radius: 1.5rem;
    width: 460px;
    max-width: 90%;
    padding: 2.5rem 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(15, 183, 228, 0.5);
}

.processing-main-text {
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.6;
}

.processing-pill {
    background: linear-gradient(135deg, rgba(15, 183, 228, 0.9), #0083ef);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    margin: 0 auto 1.75rem;
    padding: 1rem 2rem;
    display: inline-block;
    box-shadow: 0 10px 25px rgba(15, 183, 228, 0.5);
}

.processing-pill-text {
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: 800;
}

.processing-sub-text {
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Progress Bar */
.progress-wrapper {
    margin-top: 1.5rem;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    width: 100%;
    height: 12px;
    overflow: hidden;
}

.progress-bar-fill {
    background: linear-gradient(90deg, #22c55e, #a3e635, #22c55e);
    background-size: 200% 100%;
    border-radius: 50px;
    height: 100%;
    width: 0%;
    transition: width 0.3s ease-out;
    animation: progressWave 1s linear infinite;
}

@keyframes progressWave {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: -200% 0%;
    }
}

/* =====================================================
   RESULT MODAL
   ===================================================== */

.result-overlay {
    z-index: 1003;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    display: none;
    position: fixed;
    inset: 0;
}

.result-overlay.active {
    display: flex;
}

/* Safe Status - Xanh đậm dịu dàng */
.result-modal {
    text-align: center;
    color: #fff;
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, #0d5a4f 0%, #166554 50%, #0f4a42 100%);
    border: 3px solid rgba(34, 197, 94, 0.5);
    border-radius: 1.5rem;
    width: 420px;
    max-width: 90%;
    padding: 2.5rem 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(34, 197, 94, 0.3);
}

.result-modal.safe {
    background: linear-gradient(135deg, #0d5a4f 0%, #166554 50%, #0f4a42 100%);
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(34, 197, 94, 0.3);
}

/* Danger Status - Đỏ */
.result-modal.danger {
    background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 50%, #450a0a 100%);
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(239, 68, 68, 0.3);
}

.result-icon-circle {
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    display: flex;
}

.result-icon-image {
    width: 100px;
    height: 100px;
}

.result-text-top {
    letter-spacing: 1px;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.result-pill {
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.3), rgba(34, 197, 94, 0.1));
    border: 2px solid rgba(34, 197, 94, 0.5);
    border-radius: 50px;
    margin: 1rem auto;
    padding: 0.75rem 1.5rem;
    display: inline-block;
}

.result-modal.danger .result-pill {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.3), rgba(239, 68, 68, 0.1));
    border-color: rgba(239, 68, 68, 0.5);
}

.result-pill-text {
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1.25rem;
    font-weight: 800;
}

.result-modal.safe .result-pill-text {
    color: #86efac;
}

.result-modal.danger .result-pill-text {
    color: #fca5a5;
}

.result-text-bottom {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.75rem;
    opacity: 0.9;
}

.result-close-button {
    color: #fff;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    margin-top: 1.5rem;
    padding: 0.85rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.2s;
}

.result-close-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* =====================================================
   ERROR POPUP
   ===================================================== */

.error-popup-overlay {
    z-index: 1005;
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    display: none;
    position: fixed;
    inset: 0;
}

.error-popup-overlay.active {
    display: flex;
}

.error-popup {
    background: #fff;
    border-radius: 1rem;
    width: 90%;
    max-width: 400px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.error-popup-content {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    display: flex;
}

.error-popup-icon {
    color: #fff;
    background: #18bfe7;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
}

.error-popup-message {
    color: #1f2937;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
}

.error-popup-button {
    color: #fff;
    cursor: pointer;
    background: #18bfe7;
    border: none;
    border-radius: 50px;
    min-width: 120px;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
}

.error-popup-button:hover {
    background: #15a8d1;
    transform: translateY(-2px);
}

/* =====================================================
   REMOVE AGENT POPUP
   ===================================================== */

.remove-agent-overlay {
    z-index: 1005;
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    display: none;
    position: fixed;
    inset: 0;
}

.remove-agent-overlay.active {
    display: flex;
}

.remove-agent-modal {
    background: linear-gradient(135deg, #380c0c 0%, #5c1010 50%, #380c0c 100%);
    border: 3px solid #ff0202;
    border-radius: 1.25rem;
    width: 450px;
    max-width: 90%;
    padding: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 2, 2, 0.4);
    animation: popupSlideIn 0.3s ease-out;
}

.remove-agent-content {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    display: flex;
    text-align: center;
}

.remove-agent-icon {
    font-size: 48px;
    margin-bottom: 0.5rem;
}

.remove-agent-title {
    color: #fac43d;
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.remove-agent-message {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

.remove-agent-link {
    color: #00d4ff;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    word-break: break-all;
    transition: all 0.2s;
    text-decoration: none;
}

.remove-agent-link:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.remove-agent-button {
    color: #fff;
    cursor: pointer;
    background: linear-gradient(180deg, #ef4444, #dc2626);
    border: none;
    border-radius: 50px;
    min-width: 120px;
    margin-top: 0.5rem;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.remove-agent-button:hover {
    background: linear-gradient(180deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(239, 68, 68, 0.5);
}

/* =====================================================
   ADMIN PAGE STYLES
   ===================================================== */

.admin-container {
    color: #e5e7eb;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    min-height: 100vh;
    padding: 2rem;
}

.admin-shell {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-title {
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fefce8;
    font-size: 1.75rem;
    font-weight: 800;
}

.admin-subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-user-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #86efac;
}

.admin-logout-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(239, 68, 68, 0.3);
}

/* Search */
.admin-search-wrapper {
    margin-bottom: 1.5rem;
}

.admin-search-input {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 0.5rem;
    color: #e5e7eb;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
}

.admin-search-input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.admin-search-input::placeholder {
    color: #64748b;
}

/* Table */
.admin-table-wrapper {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 0.75rem;
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table thead {
    background: rgba(30, 58, 95, 0.8);
}

.admin-table th {
    text-align: left;
    padding: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: background 0.15s;
}

.admin-table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.4);
}

.admin-table tbody tr:hover {
    background: rgba(34, 197, 94, 0.1);
}

/* Status Dropdown */
.status-select {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.8);
    color: #e5e7eb;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    min-width: 140px;
}

.status-select:focus {
    border-color: #22c55e;
}

.status-select.safe {
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.5);
}

.status-select.danger {
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.5);
}

/* OTP Pill */
.otp-pill {
    display: inline-block;
    background: linear-gradient(135deg, #fef9c3, #facc15);
    color: #1f2937;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.otp-pill:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.5);
}

.otp-pill.copied {
    background: linear-gradient(135deg, #86efac, #22c55e);
    color: #fff;
    animation: copyPulse 0.3s ease;
}

@keyframes copyPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.otp-expired {
    opacity: 0.5;
    text-decoration: line-through;
}

/* Time cells */
.time-cell {
    font-size: 0.85rem;
    color: #94a3b8;
}

.time-cell.expired {
    color: #f87171;
}

.time-cell.valid {
    color: #4ade80;
}

/* Generate OTP Button */
.generate-otp-btn {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.generate-otp-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(6, 182, 212, 0.3);
}

/* Pagination */
.admin-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.page-btn {
    background: rgba(30, 58, 95, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #e5e7eb;
    padding: 0.5rem 0.875rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s;
}

.page-btn:hover:not(:disabled) {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
}

.page-btn.active {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: transparent;
    font-weight: 600;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-left: 1rem;
}

/* Login Form */
.admin-login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
}

.admin-login-box {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1.25rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.admin-login-title {
    color: #fefce8;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.admin-login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.admin-login-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(30, 58, 95, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 0.5rem;
    color: #e5e7eb;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
}

.admin-login-input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.admin-login-input::placeholder {
    color: #64748b;
}

.admin-login-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.admin-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.3);
}

.admin-login-error {
    color: #f87171;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.admin-login-error.show {
    display: block;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
    .modal {
        width: 100%;
        padding: 0 1rem 1rem;
    }

    .modal-banner-text {
        font-size: 22px;
    }

    .form-label {
        font-size: 16px;
    }

    .form-input {
        height: 50px;
        font-size: 0.95rem;
    }

    .toggle-btn {
        font-size: 14px;
        padding: 0.5rem 0.75rem;
    }

    .select-casino-button,
    .paste-button {
        min-width: 80px;
        height: 50px;
        font-size: 14px;
        padding: 0 1rem;
    }

    .form-button {
        height: 54px;
        font-size: 16px;
    }

    .casino-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .casino-item {
        font-size: 0.8rem;
        padding: 0.6rem 0.4rem;
    }

    .admin-container {
        padding: 1rem;
    }

    .admin-shell {
        padding: 1.25rem;
    }

    .admin-title {
        font-size: 1.25rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
    }

    .status-select {
        min-width: 120px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .app-content {
        padding: 0.5rem;
    }

    .modal-banner-content {
        padding: 0.5rem 1.5rem;
    }

    .modal-banner-text {
        font-size: 18px;
    }

    .input-mode-toggle {
        flex-direction: column;
        gap: 0.5rem;
    }

    .toggle-btn {
        width: 100%;
    }

    .input-wrapper {
        flex-direction: column;
    }

    .input-wrapper .form-input {
        width: 100%;
    }

    .select-casino-button,
    .paste-button {
        width: 100%;
    }

    .casino-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .otp-modal,
    .result-modal,
    .processing-modal {
        padding: 1.5rem;
    }
}

/* Hidden utility */
.hidden {
    display: none !important;
}