:root {
    --primary-color: #0078d4;
    --primary-hover: #106ebe;
    --primary-active: #005a9e;
    --secondary-color: #424242;
    --secondary-hover: #535353;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --background-color: #1e1e1e;
    --surface-color: #252526;
    --border-color: #3a3a3a;
    --text-color: #ffffff;
    --text-secondary: #cccccc;
    --input-bg: #2d2d30;
    --card-bg: #2d2d30;
    --header-bg: #323233;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    height: 300px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.game-overlay h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.game-overlay p {
    color: var(--text-secondary);
    font-size: 14px;
}

.game-actions {
    padding: 20px;
    display: flex;
    gap: 10px;
}

.game-actions .btn {
    flex: 1;
}

.premium-features {
    max-width: 700px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-color);
}

.feature-card h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.feature-list {
    margin-bottom: 30px;
}

.feature-item {
    margin-bottom: 15px;
}

.feature-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.feature-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.feature-actions {
    display: flex;
    gap: 10px;
}

.feature-actions .btn {
    flex: 1;
}

.premium-purchase {
    max-width: 600px;
    margin: 0 auto;
}

.purchase-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.purchase-icon {
    font-size: 48px;
    color: var(--warning-color);
    margin-bottom: 20px;
}

.purchase-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.purchase-card p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.purchase-card .btn {
    width: 100%;
    margin-bottom: 15px;
}

.features-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.features-link:hover {
    text-decoration: underline;
}

.stats-container, .locker-container {
    max-width: 1000px;
    margin: 0 auto;
}

.account-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.account-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.account-input-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    max-width: 100%;
    min-height: 48px;
}

.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 16px;
}

.input-with-icon input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 14px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-card h4 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.stat-card input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    text-align: center;
}

.stat-apply-btn {
    width: 100%;
    padding: 10px;
    font-size: 14px;
}

.locker-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--border-color);
}

.locker-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.locker-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.app-footer {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.discord-icon {
    color: #7289da;
    font-size: 24px;
    transition: all 0.4s ease;
    background-color: rgba(114, 137, 218, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    width: 45px;
    height: 45px;
    text-decoration: none;
}

.discord-icon:hover {
    transform: scale(1.1);
    background-color: rgba(114, 137, 218, 0.2);
    color: #7289da;
    text-decoration: none;
}

.logout-btn {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 8px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.4s ease;
    cursor: pointer;
}

.logout-btn:hover {
    background-color: rgba(231, 76, 60, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.2);
}

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

.modal-content {
    background: var(--card-bg);
    border-radius: 12px;
    width: 400px;
    border: 1px solid var(--border-color);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 30px;
}

.modal-header i {
    font-size: 24px;
    color: var(--primary-color);
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--text-color);
}

.modal-body {
    padding: 20px;
    color: var(--text-secondary);
}

.modal-footer {
    padding: 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid var(--border-color);
}

.modal .btn {
    min-width: 100px;
    padding: 10px 20px;
}

.notification {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 16px 25px 16px 20px;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    max-width: 350px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification i {
    font-size: 22px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    background-color: #27ae60;
    border-left: 5px solid #219653;
}

.notification.error {
    background-color: #e74c3c;
    border-left: 5px solid #c0392b;
}

.notification.info {
    background-color: #3498db;
    border-left: 5px solid #2980b9;
}

.btn.loading {
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

#premiumFeaturesModal .modal-content {
    width: 600px;
    max-width: 90%;
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
    z-index: 1;
}

.modal-close:hover {
    color: var(--text-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.feature-item-modal {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item-modal:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.feature-item-modal i {
    font-size: 20px;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
}

.feature-item-modal span {
    font-size: 14px;
    color: var(--text-color);
}

#viewFeaturesBtn {
    text-decoration: none;
    width: 100%;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
}

#viewFeaturesBtn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes twinkle {
    0% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.2; transform: scale(0.8); }
}

@keyframes driftHorizontal {
    0% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    100% { transform: translateX(-10px); }
}

@keyframes driftDiagonal {
    0% { transform: translate(-5px, -5px); }
    50% { transform: translate(5px, 5px); }
    100% { transform: translate(-5px, -5px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes scaleIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes scaleOut {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0; }
}

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

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

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

.scale-in {
    animation: scaleIn 0.5s ease forwards;
}

.scale-out {
    animation: scaleOut 0.5s ease forwards;
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.fade-out {
    animation: fadeOut 0.3s ease-out;
}

.modal-fade-out {
    animation: modalSlideOut 0.3s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

.slide-out {
    animation: slideIn 0.3s ease-out reverse;
}

.slide-in-up {
    animation: slideIn 0.3s ease-out;
}

.slide-out-down {
    animation: slideIn 0.3s ease-out reverse;
}

.shake {
    animation: shake 0.6s cubic-bezier(.36,.07,.19,.97) both;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .locker-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .login-box {
        width: 90%;
        padding: 30px 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .locker-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-image {
        height: 200px;
    }
    
    .game-actions {
        flex-direction: column;
    }
    
    .feature-actions {
        flex-direction: column;
    }
    
    .discord-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .logout-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .locker-actions {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .account-input-group {
        flex-direction: column;
    }
    
    .input-with-icon {
        width: 100%;
    }
    
    .submit-btn {
        width: 100%;
    }
}

.star-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background-color: var(--background-color);
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 4px 2px rgba(255, 255, 255, 0.1);
    animation: twinkle 4s ease-in-out infinite;
}

.star.twinkle {
    animation: twinkle 4s ease-in-out infinite;
}

.star.drift-horizontal {
    animation: driftHorizontal 8s ease-in-out infinite;
}

.star.drift-diagonal {
    animation: driftDiagonal 8s ease-in-out infinite;
}

.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: transparent;
    z-index: 1;
}

.login-container .top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
    -webkit-app-region: drag;
    user-select: none;
}

.login-container > .login-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(37, 37, 38, 0.95);
    border-radius: 16px;
    padding: 40px;
    width: 420px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    z-index: 2;
}

.login-box:hover {
    transform: translate(-50%, -50%) translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 32px;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 30px;
    font-weight: 600;
    background: linear-gradient(135deg, #0063b1, #0091ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.login-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.login-tab {
    flex: 1;
    padding: 10px 15px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-tab:hover {
    background: rgba(255, 255, 255, 0.05);
}

.login-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.login-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.login-content.active {
    display: block;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 18px;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 16px 16px 16px 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 15px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 120, 215, 0.2);
    transform: translateY(-2px);
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--text-color);
}

.btn {
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #0063b1, #0091ff);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 120, 215, 0.4);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-hover);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-warning {
    background: var(--warning-color);
    color: #212529;
}

.submit-btn {
    padding: 8px 16px;
    font-size: 14px;
    width: auto;
    min-width: 100px;
}

.full-width-login-btn {
    width: 100%;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 15px;
    position: relative;
    display: inline-block;
}

.login-footer a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.login-footer a:hover:after {
    width: 100%;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--background-color);
    position: relative;
    z-index: 1;
}

.top-bar {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    -webkit-app-region: drag;
    user-select: none;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar-left i {
    font-size: 20px;
    color: var(--primary-color);
}

.app-title {
    font-size: 16px;
    font-weight: 600;
}

.top-bar-right {
    -webkit-app-region: no-drag;
    display: flex;
    gap: 5px;
}

.close-btn, .minimize-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.minimize-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.close-btn:hover {
    color: white;
    background: rgba(220, 53, 69, 0.8);
}

.tab-nav {
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    display: flex;
}

.tab-btn {
    flex: 1;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.tab-btn:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 1px;
    background-color: var(--border-color);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

.tab-btn.active {
    background: rgba(0, 120, 212, 0.1);
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.content-area {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: var(--background-color);
}

.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

.game-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.game-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.game-overlay h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.game-overlay p {
    color: var(--text-secondary);
    font-size: 14px;
}

.game-actions {
    padding: 20px;
    display: flex;
    gap: 10px;
}

.game-actions .btn {
    flex: 1;
}

.disabled-btn {
    background-color: #ccc !important;
    color: #888 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    pointer-events: none !important;
}


