* {
    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;
}

.key-info-card {
    background: rgba(20,20,20,0.86);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 18px;
    padding: 16px;
    margin: -8px 0 22px;
}

.key-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.key-warning {
    color: #4cd964;
    font-size: 14px;
    font-weight: 700;
}

.key-warning.warning {
    color: #ff9f0a;
}

.key-warning.error {
    color: #ff3b30;
}

.change-key-btn {
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    padding: 9px 13px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    flex: 0 0 auto;
}

.key-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.key-info-item {
    min-width: 0;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    padding: 12px;
}

.key-info-item.wide {
    grid-column: 1 / -1;
}

.key-info-item span,
.key-info-item strong {
    display: block;
}

.key-info-item span {
    margin-bottom: 5px;
    color: #8f8f8f;
    font-size: 12px;
    letter-spacing: 1px;
}

.key-info-item strong {
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
    word-break: break-word;
}

.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;
}

.getkey-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 2000;
    width: 90%;
    max-width: 360px;
}

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

.getkey-selector {
    background: rgba(30,30,30,0.98);
    border: 2px solid #444;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.65);
}

.getkey-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.getkey-header h3 {
    margin: 0;
    color: #fff;
    font-size: 17px;
}

.getkey-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 24px;
    line-height: 1;
}

.getkey-options {
    display: grid;
    gap: 10px;
}

.getkey-option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    border: 1px solid #444;
    border-radius: 14px;
    padding: 15px;
    color: #fff;
    background: linear-gradient(135deg,#2a2a2a,#333);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.getkey-option:hover {
    transform: translateY(-2px);
    border-color: #4a90e2;
    box-shadow: 0 8px 24px rgba(74,144,226,0.25);
}

.getkey-option span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg,#4a90e2,#357abd);
    font-weight: 800;
    letter-spacing: 1px;
}

.getkey-option strong {
    font-size: 16px;
    letter-spacing: 1px;
}

.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;
}

.platform-title {
    margin-top: 18px;
}

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

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

.freefire-option,
.platform-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,
.platform-option span:first-child {
    font-size: 24px;
}

.freefire-option.active,
.platform-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;
}

/* PREMIUM UI REFRESH */
:root {
    --bg: #07080c;
    --surface: rgba(18, 22, 32, 0.88);
    --surface-strong: rgba(26, 32, 46, 0.94);
    --line: rgba(255,255,255,0.1);
    --line-strong: rgba(90,160,255,0.34);
    --text: #f7f9ff;
    --muted: #8e9bb0;
    --blue: #58a6ff;
    --blue-2: #2f6df6;
    --green: #49d17d;
    --red: #ff4d5f;
    --amber: #ffb84d;
    --shadow: 0 24px 70px rgba(0,0,0,0.48);
}

body {
    font-family: Inter, "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif;
    background:
        linear-gradient(180deg, rgba(10,13,20,0.96), rgba(3,4,8,0.98)),
        var(--bg);
    color: var(--text);
    letter-spacing: 0;
}

body::before {
    background:
        radial-gradient(circle at 18% 12%, rgba(88,166,255,0.22), transparent 28%),
        radial-gradient(circle at 90% 18%, rgba(73,209,125,0.14), transparent 24%),
        radial-gradient(circle at 50% 95%, rgba(255,184,77,0.10), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,0.03), transparent 28%);
}

.login-screen {
    justify-content: center;
    gap: 26px;
    padding: max(28px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
}

.login-header h1,
.header-title h1 {
    letter-spacing: 4px;
    background: linear-gradient(135deg,#ffffff 0%,#58a6ff 48%,#49d17d 100%);
    background-size: 160% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header h1 {
    margin-bottom: 28px;
    font-size: clamp(36px, 9vw, 52px);
}

.login-logo {
    margin-bottom: 12px;
}

.login-logo-placeholder img,
.main-logo img {
    border-radius: 28px;
    filter:
        drop-shadow(0 0 22px rgba(88,166,255,0.42))
        drop-shadow(0 16px 30px rgba(0,0,0,0.36));
}

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

.key-login-text,
.contact-section h3,
.start-buttons h3 {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 4px;
}

.login-form {
    max-width: 380px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.key-input {
    height: 56px;
    padding: 0 20px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    background: rgba(3,5,10,0.72);
    color: var(--text);
    margin-bottom: 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.key-input:focus {
    background: rgba(8,13,22,0.86);
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(88,166,255,0.16);
    transform: none;
}

.login-btn,
.getkey-btn {
    height: 54px;
    padding: 0 18px;
    border-radius: 16px;
    font-size: 15px;
    letter-spacing: 2px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.28);
}

.login-btn {
    background: linear-gradient(135deg,var(--blue),var(--blue-2));
}

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

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

.contact-section {
    margin-bottom: 0;
}

.social-buttons {
    gap: 18px;
}

.social-btn {
    width: 62px;
    height: 62px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255,255,255,0.06);
    box-shadow: 0 14px 30px rgba(0,0,0,0.24);
}

.social-btn img {
    width: 42px;
    height: 42px;
}

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

.footer-text {
    color: rgba(255,255,255,0.38);
}

.main-screen {
    background: transparent;
}

.header {
    padding: max(16px, env(safe-area-inset-top)) 18px 16px;
    background: rgba(5,7,12,0.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.back-btn,
.hamburger,
.close-btn,
.getkey-close {
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.06);
    color: var(--text);
}

.back-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 14px;
}

.hamburger {
    width: 42px;
    height: 42px;
    justify-content: center;
    gap: 5px;
    border-radius: 14px;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: var(--text);
}

.header-subtitle {
    color: var(--muted);
}

.main-content {
    padding: 22px 18px 30px;
}

.main-logo img {
    width: 112px;
    height: 112px;
    margin-bottom: 20px;
}

.account-card,
.key-info-card,
.toggle-section,
.freefire-selector,
.getkey-selector,
.boostram-modal,
.info-item,
.copyright {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
    box-shadow: 0 16px 44px rgba(0,0,0,0.30);
    backdrop-filter: blur(16px);
}

.account-card {
    border-color: var(--line-strong);
    border-radius: 22px;
    padding: 18px;
    margin-bottom: 16px;
}

.account-title,
.key-info-item span {
    color: var(--muted);
    letter-spacing: 1.6px;
    font-size: 12px;
    font-weight: 600;
}

.account-subtitle {
    font-weight: 700;
}

.account-badge {
    background: linear-gradient(135deg,var(--green),#20aa62);
    box-shadow: 0 10px 22px rgba(73,209,125,0.22);
}

.key-info-card {
    border-radius: 22px;
    margin: 0 0 18px;
    overflow: hidden;
}

.change-key-btn {
    border-color: var(--line);
    background: rgba(255,255,255,0.08);
}

.key-info-item {
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(5,8,14,0.42);
    border-radius: 14px;
}

.key-info-item strong {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0;
}

.key-warning {
    font-weight: 800;
    letter-spacing: 0;
}

.toggle-section {
    border-radius: 24px;
    padding: 8px;
}

.toggle-item {
    padding: 16px 12px;
}

.toggle-label {
    font-size: 15px;
    font-weight: 700;
}

.toggle-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: rgba(88,166,255,0.12);
}

.toggle-switch {
    width: 58px;
    height: 32px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.32);
}

.toggle-slider {
    top: 3px;
    width: 26px;
    height: 26px;
}

.toggle-switch.active {
    background: linear-gradient(135deg,var(--green),#1c9f5a);
}

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

.button-group {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    padding: 5px;
    gap: 5px;
}

.start-btn {
    border-radius: 15px;
    padding: 17px 12px;
}

.start-btn.on,
.start-btn.off {
    background: transparent;
}

.start-btn.active.on {
    background: linear-gradient(135deg,var(--green),#1ea85f);
}

.start-btn.active.off {
    background: linear-gradient(135deg,var(--red),#b72138);
}

.info-panel {
    background: linear-gradient(180deg, rgba(18,22,32,0.98), rgba(5,7,12,0.98));
    border-left: 1px solid var(--line);
}

.info-header {
    border-bottom-color: var(--line);
    background: rgba(255,255,255,0.04);
}

.info-item {
    border-radius: 18px;
}

.update-btn {
    border-radius: 18px;
    background: linear-gradient(135deg,var(--blue),var(--blue-2));
}

.modal-btn,
.freefire-option,
.platform-option,
.getkey-option {
    border-radius: 16px;
}

.modal-btn.success {
    background: linear-gradient(135deg,#ffffff,#d9e9ff);
}

.modal-btn.danger {
    color: var(--red);
}

.getkey-selector,
.freefire-selector,
.boostram-modal {
    border-radius: 22px;
}

.getkey-option,
.freefire-option,
.platform-option {
    border-color: var(--line);
    background: rgba(5,8,14,0.58);
}

.getkey-option span,
.freefire-option.active,
.platform-option.active {
    background: linear-gradient(135deg,var(--blue),var(--blue-2));
}

.boostram-header {
    background: linear-gradient(135deg,var(--blue),var(--blue-2));
}

.code-terminal {
    border-color: var(--line);
    background: rgba(2,4,8,0.92);
}

.toggle-toast {
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(24,32,46,0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.overlay {
    background: rgba(0,0,0,0.72);
}

@media (min-width: 769px) {
    body {
        max-width: 430px;
        background-color: #030408;
        box-shadow: 0 0 70px rgba(0,0,0,0.65);
    }
}

@media (max-width: 480px) {
    .login-header h1 {
        font-size: 34px;
    }

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

    .login-form {
        padding: 14px;
    }

    .main-content {
        padding-inline: 14px;
    }
}
