/* MineX - Design Casino */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0066FF;
    --success-green: #00E701;
    --bg-darkest: #0A1628;
    --bg-dark: #14213D;
    --bg-medium: #1E3A5F;
    --text-muted: #8B9DC3;
    --text-light: #E8F1FF;
    --border: #2E4A6D;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-darkest);
    color: var(--text-light);
    line-height: 1.5;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    background: var(--bg-dark);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 36px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.balance {
    background: var(--bg-medium);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 700;
}

/* Buttons */
.btn {
    padding: 0.625rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary-blue);
    color: #fff;
}

.btn-primary:hover {
    background: #0052CC;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover {
    color: var(--text-light);
}

.btn-full {
    width: 100%;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.modal {
    background: var(--bg-dark);
    border-radius: 1rem;
    max-width: 420px;
    width: 90%;
    border: 1px solid var(--border);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

.modal-header h2 {
    color: var(--text-light);
    font-size: 1.25rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-darkest);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    color: var(--text-light);
}

.error {
    background: rgba(255, 59, 59, 0.1);
    border: 1px solid #ff3b3b;
    color: #ff3b3b;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.modal-footer a {
    color: var(--primary-blue);
    text-decoration: none;
}

/* Footer - Style SportKing */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    height: 36px;
    width: auto;
}

.footer-copyright,
.footer-email {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-medium);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.footer-social a:hover {
    color: var(--text-light);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-col a:hover {
    color: var(--text-light);
}

.footer-payments {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.footer-payments img {
    height: 28px;
    opacity: 0.7;
}

.footer-license {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin: 2rem 0;
}

.license-badge {
    height: 50px;
    width: auto;
}

.license-text {
    flex: 1;
}

.license-text p {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.footer-age {
    display: flex;
    justify-content: center;
}

.age-badge {
    background: #ffa800;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
}

/* LiveChat */
.livechat-bubble {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00e5ff 0%, #0066FF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.4);
    z-index: 999;
    transition: transform 0.2s;
}

.livechat-bubble:hover {
    transform: scale(1.1);
}

.livechat-panel {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 380px;
    height: 550px;
    background: var(--bg-dark);
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
}

.chat-header {
    padding: 1.25rem;
    background: linear-gradient(135deg, #00e5ff 0%, #0066FF 100%);
    border-radius: 1rem 1rem 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    color: #fff;
    font-weight: 700;
}

.chat-title small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
}

.chat-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.chat-welcome {
    text-align: center;
    padding: 2rem 1rem;
}

.chat-welcome h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.chat-message {
    margin-bottom: 1rem;
}

.chat-message.user {
    text-align: right;
}

.message-bubble {
    display: inline-block;
    padding: 0.75rem;
    border-radius: 0.75rem;
    max-width: 80%;
    text-align: left;
}

.message-bubble .time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.chat-message.admin .message-bubble {
    background: var(--bg-medium);
    color: var(--text-light);
}

.chat-message.user .message-bubble {
    background: var(--primary-blue);
    color: #fff;
}

.chat-footer {
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.chat-footer form {
    display: flex;
    gap: 0.5rem;
}

.chat-footer input {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-darkest);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-light);
}

.chat-send {
    padding: 0.75rem 1rem;
    background: var(--primary-blue);
    border: none;
    border-radius: 0.5rem;
    color: #fff;
    cursor: pointer;
}

.chat-login-notice {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.hidden {
    display: none !important;
}

/* Hero responsive */
.hero h1 {
    font-size: 3rem;
}

.hero .btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .cta {
        flex-direction: column;
        width: 100%;
    }
    
    .cta .btn {
        width: 100%;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-payments {
        flex-wrap: wrap;
    }
    
    .footer-license {
        flex-direction: column;
    }
    
    .livechat-panel {
        width: calc(100% - 2rem);
        height: calc(100% - 2rem);
    }
    
    .livechat-bubble {
        bottom: 1rem;
        right: 1rem;
    }
}

