:root {
    --primary-color: #FFD700;
    --bg-color: #1A0D2E;
    --card-bg: rgba(40, 25, 70, 0.9);
    --text-color: #E6E6E6;
    --placeholder-color: #A0A0A0;
    --underline-color: #FFD700;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --hover-shadow: rgba(255, 215, 0, 0.4);
    --error-color: #FF4136;
}




* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1A0D2E 0%, #2A1B4A 100%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 450px;
    padding: 0 20px;
}

.login-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px var(--shadow-color);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.login-card:hover {
    box-shadow: 0 15px 50px var(--shadow-color);
    transform: translateY(-4px);
}

h1 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 84px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5),
                 0 0 10px rgba(255, 215, 0, 0.5);
    background: linear-gradient(180deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding: 10px 0;
    font-family: 'Montserrat', sans-serif;
}

h1::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0) 70%);
    z-index: -1;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0), var(--primary-color), rgba(255, 215, 0, 0));
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px;
        letter-spacing: 2px;
    }
}

.login-form {
    display: flex;
    flex-direction: column;
}

.input-container {
    position: relative;
    margin-bottom: 35px;
}

input {
    width: 100%;
    padding: 14px 16px;
    font-size: 22px;
    font-weight: 700;
    background: transparent;
    border: none;
    outline: none;
    color: var(--primary-color);
    border-bottom: 1px solid var(--underline-color);
    letter-spacing: 1px;
    -webkit-text-fill-color: var(--primary-color);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--primary-color);
    -webkit-box-shadow: 0 0 0 1000px var(--card-bg) inset;
    transition: background-color 5000s ease-in-out 0s;
}

label {
    position: absolute;
    left: 16px;
    top: -20px;
    font-size: 14px;
    color: var(--placeholder-color);
    pointer-events: none;
    transition: all 0.3s ease;
}

input:focus ~ label,
input:not(:placeholder-shown) ~ label {
    top: -36px;
    font-size: 14px;
    color: var(--primary-color);
}

.input-underline {
    display: none;
}

.btn-start {
    background: linear-gradient(90deg, #FFD700, #FFA500);
    color: #1A0D2E;
    border: none;
    border-radius: 25px;
    padding: 16px 30px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    align-self: center;
    min-width: 180px;
    text-transform: uppercase;
}

.btn-start:hover {
    box-shadow: 0 8px 20px var(--hover-shadow);
    transform: translateY(-2px);
}

.btn-start:active {
    transform: translateY(2px);
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.btn-start:hover .arrow-icon {
    transform: translateX(6px);
}

@keyframes glow {
    0% { box-shadow: 0 0 5px var(--primary-color); }
    50% { box-shadow: 0 0 20px var(--primary-color); }
    100% { box-shadow: 0 0 5px var(--primary-color); }
}

input:focus {
    animation: glow 1.5s infinite;
}

.input-error {
    border-bottom: 2px solid var(--error-color) !important;
    animation: shake 0.5s linear;
}

@keyframes shake {
    0%, 100% {transform: translateX(0);}
    10%, 30%, 50%, 70%, 90% {transform: translateX(-5px);}
    20%, 40%, 60%, 80% {transform: translateX(5px);}
}

.error-message {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 5px;
    position: absolute;
    bottom: -20px;
    left: 16px;
}

.auth-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

.btn-auth {
    flex: 1;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    color: #1A0D2E;
    border: none;
    border-radius: 25px;
    padding: 14px 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-auth:hover {
    box-shadow: 0 6px 15px var(--hover-shadow);
    transform: translateY(-2px);
}

.btn-auth:active {
    transform: translateY(1px);
}

.auth-icon {
    transition: transform 0.3s ease;
}

.btn-auth:hover .auth-icon {
    transform: translateX(3px);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 15px 30px var(--shadow-color);
    border: 1px solid rgba(255, 215, 0, 0.2);
    animation: fadeIn 0.3s ease-out;
    overflow: hidden;
    position: relative;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    background: linear-gradient(90deg, rgba(40, 25, 70, 0.9), rgba(50, 35, 80, 0.9));
}

.modal-header h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 24px;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.close-modal {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-modal:hover {
    color: #FFA500;
    transform: scale(1.1);
}

.modal-form {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.btn-modal {
    background: linear-gradient(90deg, #FFD700, #FFA500);
    color: #1A0D2E;
    border: none;
    border-radius: 25px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    margin-top: 15px;
    align-self: center;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-modal:hover {
    box-shadow: 0 8px 20px var(--hover-shadow);
    transform: translateY(-2px);
}

.btn-modal:active {
    transform: translateY(1px);
}

.modal-form .input-container {
    position: relative;
    margin-bottom: 15px;
}

.modal-form input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    background-color: rgba(26, 13, 46, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.modal-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.modal-form label {
    top: 12px;
    left: 16px;
    color: var(--placeholder-color);
    transition: all 0.3s ease;
}

.modal-form input:focus ~ label,
.modal-form input:not(:placeholder-shown) ~ label {
    top: -28px;
    left: 10px;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
}

.btn-auth,
.btn-modal {
    position: relative;
    overflow: hidden;
}

.btn-auth:after,
.btn-modal:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.btn-auth:focus:not(:active)::after,
.btn-modal:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}


@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        max-width: 350px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .btn-auth {
        padding: 12px 8px;
        font-size: 14px;
    }

    .modal-form {
        padding: 20px;
    }

    .btn-modal {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 180px;
    }
    
    .floating-chat-btn {
        width: 60px;
        height: 60px;
    }
    
    .floating-chat-btn i {
        font-size: 24px;
    }
}

.floating-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-chat-btn i {
    color: #1A0D2E;
    font-size: 28px;
    transition: transform 0.3s ease;
}

.floating-chat-btn:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.4);
}

.floating-chat-btn:hover i {
    transform: scale(1.1);
}

.floating-chat-btn:active {
    transform: scale(0.95);
}

.floating-chat-btn::before,
.floating-chat-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(255, 215, 0, 0.4);
    z-index: -1;
}

.floating-chat-btn::before {
    animation: pulse 2s infinite;
}

.floating-chat-btn::after {
    animation: pulse 2s infinite 0.3s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    70% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.floating-chat-btn .chat-tooltip {
    position: absolute;
    top: -45px;
    right: 0;
    background-color: var(--card-bg);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.floating-chat-btn:hover .chat-tooltip {
    opacity: 1;
    transform: translateY(0);
}

#chat-login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.chat-modal-content {
    background-color: var(--card-bg);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 15px 30px var(--shadow-color);
    border: 1px solid rgba(255, 215, 0, 0.2);
    animation: modalFadeIn 0.3s ease-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-modal-header {
    margin-bottom: 20px;
}

.chat-modal-header h3 {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.chat-modal-header p {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 14px;
    line-height: 1.5;
}

.chat-modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.chat-modal-btn {
    background: linear-gradient(90deg, #FFD700, #FFA500);
    color: #1A0D2E;
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
}

.chat-modal-btn:hover {
    box-shadow: 0 8px 20px var(--hover-shadow);
    transform: translateY(-2px);
}

.chat-modal-btn i {
    font-size: 16px;
}

.chat-modal-btn.cancel {
    background: transparent;
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: var(--primary-color);
}

.chat-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--primary-color);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-modal-close:hover {
    transform: rotate(90deg);
    color: #FFA500;
}
.premium-notice {
    background-color: #000;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    padding: 20px;
    border: 2px solid #444;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    line-height: 1.6;
}
