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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: Arial, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100svh;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.68;
    transform: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(74,144,226,0.15) 0%, transparent 45%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 45%),
        radial-gradient(circle at 40% 40%, rgba(76,217,100,0.08) 0%, transparent 45%);
    animation: backgroundShift 8s ease-in-out infinite;
    z-index: -2;
}

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

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

.page {
    display: none;
    min-height: 100vh;
    min-height: 100svh;
    width: 100%;
}

.page.active {
    display: flex;
}

/* LOGIN */
.login-screen {
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 20px;
}

.login-header {
    text-align: center;
    width: 100%;
}

.login-header h1 {
    font-size: 40px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 40px;
    background: linear-gradient(135deg,#4a90e2,#fff,#4a90e2);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% center;
    }

    50% {
        background-position: 200% center;
    }
}

.login-logo {
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.login-logo-placeholder img {
    width: 112px;
    height: 112px;
    object-fit: contain;
    cursor: pointer;
    filter: drop-shadow(0 0 20px rgba(74,144,226,0.5));
    transition: all 0.3s ease;
}

.login-logo-placeholder:hover img {
    filter: drop-shadow(0 0 30px rgba(74,144,226,0.8));
    transform: scale(1.05);
}

.key-login-text {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 3px;
}

.login-form {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
}

.key-input {
    width: 100%;
    padding: 18px 25px;
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 30px;
    color: #fff;
    font-size: 16px;
    text-align: center;
    margin-bottom: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.key-input:focus {
    border-color: #4a90e2;
    background: #333;
    box-shadow: 0 0 20px rgba(74,144,226,0.3);
    transform: translateY(-2px);
}

.key-input::placeholder {
    color: #888;
}

.login-btn,
.getkey-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 30px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.login-btn {
    background: linear-gradient(135deg,#4a90e2,#357abd);
}

.getkey-btn {
    background: linear-gradient(135deg,#ff9f0a,#ff6b00);
}

.login-btn:hover,
.getkey-btn:hover {
    transform: translateY(-3px);
}

.login-btn:hover {
    box-shadow: 0 8px 25px rgba(74,144,226,0.5);
}

.getkey-btn:hover {
    box-shadow: 0 8px 25px rgba(255,159,10,0.45);
}

.key-status {
    min-height: 24px;
    margin-top: 8px;
    text-align: center;
    color: #bbb;
    font-size: 14px;
    line-height: 1.5;
}

.contact-section {
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
}

.contact-section h3 {
    font-size: 18px;
    letter-spacing: 3px;
    margin-bottom: 25px;
    color: #888;
}

.social-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 12px;
    border: 0;
    background: transparent;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(255,255,255,0.1);
}

.social-btn img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

.facebook-img {
    width: 54px !important;
    height: 54px !important;
}

.footer-text {
    font-size: 13px;
    color: #666;
    margin-top: 25px;
    letter-spacing: 1px;
}

/* MAIN */
.main-screen {
    flex-direction: column;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    background: rgba(0,0,0,0.95);
    border-bottom: 1px solid #222;
}

.back-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
}

.back-btn:hover {
    background: rgba(255,255,255,0.1);
}

.header-title {
    text-align: center;
}

.header-title h1 {
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 2px;
}

.header-subtitle {
    font-size: 11px;
    color: #666;
    letter-spacing: 2px;
    margin-top: 2px;
}

.hamburger {
    width: 32px;
    height: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    border: 0;
    background: transparent;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

.hamburger:hover span {
    background: #4a90e2;
}

.main-content {
    padding: 28px 20px;
    overflow-y: auto;
    flex: 1;
}

.main-logo img {
    width: 126px;
    height: 126px;
    object-fit: contain;
    margin: 0 auto 30px;
    display: block;
    cursor: pointer;
    filter: drop-shadow(0 0 20px rgba(74,144,226,0.5));
}

.account-card {
    background: linear-gradient(135deg,rgba(74,144,226,0.18),rgba(255,255,255,0.05));
    border: 1px solid rgba(74,144,226,0.35);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.account-title {
    font-size: 13px;
    color: #999;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.account-subtitle {
    font-size: 15px;
    color: #fff;
    word-break: break-all;
}

.account-badge {
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg,#4cd964,#3ab54a);
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    flex: 0 0 auto;
}

.toggle-section {
    background: rgba(30,30,30,0.8);
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 30px;
    border: 1px solid #222;
}

.toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    gap: 16px;
}

.toggle-item:last-child {
    border-bottom: none;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 17px;
    font-weight: 500;
}

.toggle-icon {
    width: 35px;
    height: 35px;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-switch {
    position: relative;
    width: 65px;
    height: 34px;
    background: #444;
    border-radius: 17px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
    border: 0;
    flex: 0 0 auto;
}

.toggle-switch.active {
    background: linear-gradient(135deg,#4cd964,#3ab54a);
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    pointer-events: none;
}

.toggle-switch.active .toggle-slider {
    left: 34px;
}

.start-buttons {
    margin-top: 20px;
}

.start-buttons h3 {
    margin-bottom: 20px;
    font-size: 16px;
    letter-spacing: 3px;
    text-align: center;
    color: #888;
}

.button-group {
    display: flex;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #333;
}

.start-btn {
    flex: 1;
    padding: 20px;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 2px;
}

.start-btn.on {
    background: linear-gradient(135deg,#555,#666);
    color: #fff;
}

.start-btn.off {
    background: linear-gradient(135deg,#2a2a2a,#333);
    color: #888;
}

.start-btn.active.on {
    background: linear-gradient(135deg,#4cd964,#3ab54a);
}

.start-btn.active.off {
    background: linear-gradient(135deg,#ff3b30,#b82b23);
    color: #fff;
}

/* INFO */
.info-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    height: 100svh;
    background: linear-gradient(180deg,#1a1a1a,#0a0a0a);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
}

.info-panel.active {
    right: 0;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid #333;
    background: rgba(0,0,0,0.5);
}

.close-btn {
    color: #4a90e2;
    font-size: 18px;
    cursor: pointer;
    font-weight: 600;
    padding: 5px 15px;
    border: 0;
    background: transparent;
}

.info-content {
    padding: 25px;
}

.info-item {
    width: 100%;
    background: linear-gradient(135deg,#2a2a2a,#333);
    color: #fff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid #444;
    text-align: left;
}

.info-item:hover {
    transform: translateX(-5px);
    border-color: #4a90e2;
}

.info-item-text,
.info-item-subtext {
    display: block;
}

.info-item-text {
    font-size: 16px;
    font-weight: 500;
}

.info-item-subtext {
    font-size: 13px;
    color: #888;
    margin-top: 5px;
}

.info-icon {
    font-size: 28px;
    font-weight: 700;
}

.update-btn {
    background: linear-gradient(135deg,#4a90e2,#357abd);
    color: #fff;
    border: none;
    padding: 20px;
    border-radius: 15px;
    font-size: 17px;
    font-weight: bold;
    width: 100%;
    margin: 25px 0;
    cursor: pointer;
    letter-spacing: 2px;
}

.copyright {
    background: linear-gradient(135deg,#2a2a2a,#333);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    line-height: 1.8;
    font-size: 15px;
    border: 1px solid #444;
}

.copyright strong {
    display: block;
    font-size: 16px;
}

/* MODALS */
.success-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 2000;
    width: 90%;
    max-width: 340px;
}

.success-modal.active {
    display: block;
    animation: modalSlide 0.3s;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translate(-50%,-60%);
    }

    to {
        opacity: 1;
        transform: translate(-50%,-50%);
    }
}

.modal-btn {
    width: 100%;
    padding: 22px;
    border: none;
    border-radius: 15px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-btn.success {
    background: #fff;
    color: #000;
}

.modal-btn.danger {
    background: #fff;
    color: #ff3b30;
}

.freefire-selector {
    background: rgba(30,30,30,0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    border: 2px solid #444;
}

.freefire-selector h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #fff;
    font-size: 16px;
}

.freefire-options {
    display: flex;
    gap: 10px;
}

.freefire-option {
    flex: 1;
    min-width: 0;
    padding: 15px 10px;
    background: linear-gradient(135deg,#2a2a2a,#333);
    border: 2px solid #444;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.freefire-option span:first-child {
    font-size: 24px;
}

.freefire-option.active {
    background: linear-gradient(135deg,#4a90e2,#357abd);
    border-color: #4a90e2;
    box-shadow: 0 0 20px rgba(74,144,226,0.5);
}

.boostram-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 2000;
    width: 90%;
    max-width: 400px;
    background: linear-gradient(180deg,#1a1a1a,#0a0a0a);
    border-radius: 20px;
    border: 2px solid #333;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    overflow: hidden;
}

.boostram-modal.active {
    display: block;
}

.boostram-header {
    background: linear-gradient(135deg,#4a90e2,#357abd);
    padding: 20px;
    text-align: center;
}

.boostram-content {
    padding: 25px;
}

.code-terminal {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    font-family: "Courier New", monospace;
    font-size: 13px;
    line-height: 1.8;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
}

.code-line {
    color: #0f0;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateX(-20px);
}

.code-prompt {
    color: #4a90e2;
    font-weight: bold;
    margin-right: 8px;
}

.boostram-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg,#4cd964,#3ab54a);
    color: #fff;
    font-size: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.success-text {
    font-size: 22px;
    font-weight: bold;
    color: #4cd964;
    margin-bottom: 25px;
}

/* TOAST + OVERLAY */
.toggle-toast {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    min-width: 180px;
    max-width: 80vw;
    background: #3498db;
    color: #fff;
    border-radius: 16px;
    padding: 22px 32px;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s;
}

.toggle-toast.active {
    display: block;
    opacity: 1;
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 999;
    backdrop-filter: blur(5px);
}

.overlay.active {
    display: block;
}

/* EFFECTS */
.sparkle-container,
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    animation: sparkleFloat 3s ease-in-out infinite;
    box-shadow: 0 0 10px 2px rgba(255,255,255,0.8);
}

.sparkle:nth-child(2n) {
    background: #4a90e2;
}

.sparkle:nth-child(3n) {
    background: #ff6b6b;
}

@keyframes sparkleFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10%, 90% {
        opacity: 1;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(74,144,226,0.8);
    border-radius: 50%;
    animation: particleFloat 8s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    10%, 90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) translateX(60px);
        opacity: 0;
    }
}

.enhanced-glow {
    filter: drop-shadow(0 0 16px rgba(74,144,226,0.55));
}

/* RESPONSIVE */
@media (min-width: 769px) {
    body {
        max-width: 768px;
        margin: 0 auto;
        box-shadow: 0 0 50px rgba(0,0,0,0.5);
    }
}

@media (max-width: 480px) {
    .login-screen {
        padding: 20px 15px;
    }

    .login-header h1 {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .login-logo-placeholder img {
        width: 92px;
        height: 92px;
    }

    .key-login-text {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .login-form {
        max-width: 100%;
    }

    .key-input,
    .login-btn,
    .getkey-btn {
        padding: 15px;
        font-size: 16px;
    }

    .social-buttons {
        gap: 15px;
    }

    .facebook-img {
        width: 52px !important;
        height: 52px !important;
    }

    .header-title h1 {
        font-size: 20px;
    }

    .main-content {
        padding: 20px 15px;
    }

    .main-logo img {
        width: 104px;
        height: 104px;
    }

    .toggle-switch {
        width: 55px;
        height: 30px;
    }

    .toggle-slider {
        width: 24px;
        height: 24px;
    }

    .toggle-switch.active .toggle-slider {
        left: 28px;
    }

    .info-panel {
        width: 90%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

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

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
