/* Modern Premium Sweepstakes System Styles */

:root {
    --primary-color: #FFD700;
    --primary-dark: #FFA500;
    --secondary-color: #1a1a2e;
    --accent-color: #16213e;
    --text-light: #ffffff;
    --text-dark: #333333;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --border-radius: 12px;
    --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Desktop container improvements */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
        padding: 40px 30px;
    }
}

/* Authentication Forms */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 50px 60px;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Desktop improvements */
@media (min-width: 1024px) {
    .auth-box {
        max-width: 550px;
        padding: 60px 70px;
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-header h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.auth-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Desktop auth improvements */
@media (min-width: 1024px) {
    .auth-header h1 {
        font-size: 2.5rem;
    }
    
    .auth-header p {
        font-size: 1.05rem;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
}

/* Desktop form improvements */
@media (min-width: 1024px) {
    .form-control {
        padding: 16px 20px;
        font-size: 1.05rem;
    }
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn {
    padding: 14px 35px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Desktop button improvements */
@media (min-width: 1024px) {
    .btn {
        padding: 16px 40px;
        font-size: 1.05rem;
    }
    
    .spin-button {
        padding: 18px 70px !important;
        font-size: 1.3rem !important;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--secondary-color);
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.auth-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Alert Messages */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none;
}

.alert.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid var(--success-color);
    color: #90ee90;
}

.alert-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid var(--error-color);
    color: #ff6b6b;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid var(--warning-color);
    color: #ffd700;
}

/* Dashboard */
.dashboard-header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 25px 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info h2 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.8rem;
}

.user-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Desktop dashboard grid layout */
@media (min-width: 1024px) {
    .dashboard-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: start;
    }
    
    .dashboard-left {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    
    .dashboard-right {
        position: sticky;
        top: 20px;
    }
}

.bonus-display {
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    padding: 35px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border: 2px solid var(--primary-color);
}

.bonus-display h3 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.bonus-amount {
    font-size: 3.5rem;
    color: var(--primary-color);
    font-weight: bold;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

/* Desktop bonus display */
@media (min-width: 1024px) {
    .bonus-display {
        padding: 45px;
    }
    
    .bonus-amount {
        font-size: 4.5rem;
    }
}

/* Spin Wheel Container */
.spin-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wheel-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 30px auto;
}

/* Desktop spin wheel */
@media (min-width: 1024px) {
    .spin-container {
        padding: 50px;
    }
    
    .wheel-wrapper {
        width: 500px;
        height: 500px;
    }
}

.spin-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 10px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    position: relative;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid var(--primary-color);
    z-index: 10;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.spin-button {
    margin-top: 30px;
    padding: 15px 60px;
    font-size: 1.2rem;
}

.countdown-timer {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 20px;
    font-weight: bold;
}

/* Result Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 50px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
}

.modal-content h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.win-amount-display {
    font-size: 4.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin: 20px 0;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    animation: pulse 2s infinite;
}

/* Desktop modal */
@media (min-width: 1024px) {
    .modal-content {
        max-width: 600px;
        padding: 60px;
    }
    
    .modal-content h2 {
        font-size: 2.5rem;
    }
    
    .win-amount-display {
        font-size: 5rem;
    }
}

.spin-code-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.spin-code-display p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.spin-code-display .code {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 3px;
}

/* Spin History */
.history-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.history-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 8px;
    font-size: 0.95rem;
}

.history-table th,
.history-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-table th {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
}

.history-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Desktop table improvements */
@media (min-width: 1024px) {
    .history-table {
        font-size: 1rem;
    }
    
    .history-table th,
    .history-table td {
        padding: 16px 20px;
    }
    
    .history-table th {
        font-size: 1.05rem;
    }
}

/* Admin Panel */
.admin-header {
    background: rgba(220, 53, 69, 0.2);
    border: 2px solid var(--error-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.stat-card h4 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 10px;
}

.stat-card .value {
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* Desktop stats improvements */
@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 30px;
    }
    
    .stat-card {
        padding: 35px 30px;
    }
    
    .stat-card .value {
        font-size: 2.5rem;
    }
}

.search-box {
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    max-width: 500px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-box {
        padding: 30px 20px;
    }
    
    .dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    
    .user-info h2 {
        font-size: 1.5rem;
    }
    
    .wheel-wrapper {
        width: 300px;
        height: 300px;
    }
    
    .bonus-amount {
        font-size: 2.5rem;
    }
    
    .win-amount-display {
        font-size: 3rem;
    }
    
    .history-table {
        font-size: 0.85rem;
    }
    
    .history-table th,
    .history-table td {
        padding: 8px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .wheel-wrapper {
        width: 450px;
        height: 450px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .wheel-wrapper {
        width: 550px;
        height: 550px;
    }
    
    .spin-container {
        padding: 60px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Game Section Styles */
.games-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--border-radius);
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.games-section h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.mode-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.mode-tab {
    padding: 14px 45px;
    background: rgba(20, 25, 35, 0.9);
    border: 2px solid rgba(100, 100, 120, 0.3);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
}

.mode-tab::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(40, 200, 100, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.mode-tab:active::before {
    width: 300px;
    height: 300px;
}

.mode-tab:hover {
    background: rgba(30, 35, 45, 0.95);
    border-color: rgba(40, 200, 100, 0.4);
    transform: translateY(-2px);
    color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 15px rgba(40, 200, 100, 0.2);
}

.mode-tab.active {
    background: rgba(20, 30, 40, 0.95);
    border: 3px solid #00FF88;
    color: #FFFFFF;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.8),
                0 0 40px rgba(0, 255, 136, 0.6),
                0 0 60px rgba(0, 255, 136, 0.4),
                0 0 80px rgba(0, 255, 136, 0.3),
                0 0 100px rgba(0, 255, 136, 0.2),
                inset 0 0 30px rgba(0, 255, 136, 0.15);
    animation: tabGlowGreen 2s ease-in-out infinite;
}

.mode-tab.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.9),
                0 0 50px rgba(0, 255, 136, 0.7),
                0 0 75px rgba(0, 255, 136, 0.5),
                0 0 100px rgba(0, 255, 136, 0.4),
                0 0 125px rgba(0, 255, 136, 0.3),
                inset 0 0 35px rgba(0, 255, 136, 0.2);
}

@keyframes tabGlowGreen {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.8),
                    0 0 40px rgba(0, 255, 136, 0.6),
                    0 0 60px rgba(0, 255, 136, 0.4),
                    0 0 80px rgba(0, 255, 136, 0.3),
                    0 0 100px rgba(0, 255, 136, 0.2),
                    inset 0 0 30px rgba(0, 255, 136, 0.15);
        border-color: #00FF88;
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 136, 1),
                    0 0 60px rgba(0, 255, 136, 0.8),
                    0 0 90px rgba(0, 255, 136, 0.6),
                    0 0 120px rgba(0, 255, 136, 0.4),
                    0 0 150px rgba(0, 255, 136, 0.3),
                    inset 0 0 40px rgba(0, 255, 136, 0.2);
        border-color: #00FFAA;
    }
}

.games {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    margin-top: 25px;
}

.game-card {
    background: rgba(40, 45, 60, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 0;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.25),
                0 0 20px rgba(255, 215, 0, 0.15);
}

.game-card:active {
    transform: translateY(-5px) scale(1.0);
}

.game-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    margin-bottom: 0;
    display: block;
}

.game-name {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 10px;
    width: 100%;
    background: rgba(30, 35, 50, 0.8);
    border-radius: 0 0 20px 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Payment Footer */
.payment-footer {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-top: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.payment-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.payment-row img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.9);
    transition: var(--transition);
}

.payment-row img:hover {
    filter: brightness(1.2);
    transform: scale(1.1);
}

/* Telegram Float Button */
.telegram-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #0088cc, #00aaff);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
}

.telegram-float:before {
    content: "✈️";
    font-size: 1.2rem;
}

.telegram-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.6);
}

/* Desktop games grid */
@media (min-width: 768px) {
    .games {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .game-card img {
        aspect-ratio: 1 / 1;
    }
    
    .game-name {
        font-size: 1rem;
        padding: 18px 10px;
    }
}

@media (min-width: 1024px) {
    .games {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .game-card img {
        aspect-ratio: 1 / 1;
    }
    
    .game-name {
        font-size: 1.1rem;
    }
    
    .games-section {
        padding: 50px;
    }
}

@media (max-width: 767px) {
    .games {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .mode-tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .mode-tab {
        width: 100%;
        padding: 12px 20px;
    }
    
    .telegram-float {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}




/* JUST ADDING */

.game-actions {
    display: none !important;
}

