* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #0a0a0c; /* Latar gelap yang lebih solid */
    color: #f0f2f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.light-theme {
    background: #f0f2f5;
    color: #1e293b;
}

header {
    background-color: #ffffff;
    color: #212529;
    border-bottom: 1px solid #dee2e6;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

header h1 {
    margin: 0;
    font-size: 2.2em;
    font-weight: 800;
    letter-spacing: 2px;
    color: #212529;
    text-align: center;
    flex-grow: 1;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #212529;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}
.cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 35px;
    background-color: #ffd700;
    color: #0f0c29;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
    animation: none;
}
@media (max-width: 768px) {
    header {
        justify-content: center;
        padding: 20px 15px;
    }
    header h1 {
        font-size: 2em;
        order: 1;
        width: 100%;
    }
    .nav-links {
        order: 2;
        width: 100%;
        justify-content: center;
    }

    .hero-section {
        min-height: 60vh;
        padding: 40px 0;
    }

    .hero-content .subtitle {
        font-size: 1.1em;
    }

}

.dashboard-container {
    max-width: 1000px;
    width: 100%;
    padding: 20px;
}

.dashboard-container h2 {
    color: #ffd700;
    margin-bottom: 10px;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.market-button {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #f0f2f5;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.market-button:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 215, 0, 0.1);
}

.market-button h3 {
    margin: 0 0 10px 0;
    color: #ffd700;
}

.prediction-page-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.prediction-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    color: #ffd700;
    text-decoration: none;
    background-color: transparent;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.back-button:hover {
    background-color: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.prediction-display {
    background: linear-gradient(145deg, rgba(40, 35, 80, 0.4), rgba(15, 12, 41, 0.4));
    border-radius: 20px;
    padding: 30px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border: 1px solid rgba(255, 215, 0, 0.18);
}

.prediction-display h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.8em;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    letter-spacing: 1px;
}

.prediction-display p {
    opacity: 0.8;
    font-size: 0.9em;
}

@media (max-width: 480px) {
    .prediction-display {
        padding: 25px;
    }
    .prediction-display h3 {
        font-size: 1.5em;
    }
}

.landing-page-wrapper {
    width: 100%;
}

.landing-page-wrapper section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-page-wrapper h2 {
    text-align: center;
    font-size: 2.5em;
    color: #ffd700;
    margin-bottom: 50px;
}

.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    animation: fadeIn 1s ease-in-out;
}

.hero-content h1 {
    font-size: 3.8em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.hero-content .subtitle {
    font-size: 1.3em;
    color: #e0e0e0;
    max-width: 650px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.features-section {
    background-color: rgba(0, 0, 0, 0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    text-align: center;
}

.feature-item h3 {
    color: #ffd700;
    margin-top: 0;
    margin-bottom: 15px;
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.step-item {
    text-align: center;
    max-width: 300px;
}

.step-number {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: #ffd700;
    color: #0f0c29;
    font-size: 1.8em;
    font-weight: bold;
    margin: 0 auto 20px auto;
}

.step-item h3 {
    margin-bottom: 10px;
    color: #ffffff;
}

@media (max-width: 768px) {
    .landing-page-wrapper h2 {
        font-size: 2em;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }
}

.app-body main {
    justify-content: flex-start;
    padding-top: 40px;
}

.app-header {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    position: relative;
    z-index: 10;
}

.app-header-logo a {
    color: #ffd700;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
}

.app-nav {
    display: flex;
    gap: 30px;
}

.app-nav a {
    color: #f0f2f5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.app-nav a:hover {
    color: #ffd700;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 22px;
    height: 3px;
    height: 2px;
    background-color: #ffd700;
    margin: 4px 0;
    border-radius: 10px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 768px) {
    .app-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1e1a4e;
        padding: 20px;
        border-top: 1px solid rgba(255, 215, 0, 0.3);
        z-index: 1000;
    }

    .app-nav.active {
        display: flex;
    }

    .hamburger-menu {
        display: block;
    }
}

footer {
    background-color: transparent;
    color: #6c757d;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9em;
    opacity: 0.7;
}

.home-page {
    transition: background-color 0.3s ease;
    /* Selalu gunakan latar terang dan teks gelap untuk landing page */
    background: #f0f2f5 !important;
    color: #1e293b !important;
}

.home-page main {
    padding: 0;
    width: 100%;
    /* Pastikan main memenuhi layar agar tidak ada background body yang 'bocor' di bawah */
    min-height: 80vh; 
    display: block; /* Mematikan flex centering agar konten memenuhi lebar layar */
    background-color: #ffffff !important;
}

.landing-header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #212529 !important;
    border-bottom: none !important;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 5%;
    position: sticky;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-header.scrolled {
    left: 0;
    right: 0;
    margin-inline: auto;
    transform: none;
    top: 20px;
    width: 80% !important;
    max-width: 960px;
    border-radius: 16px;
    padding: 15px 25px !important;
    background: rgba(255, 255, 255, 1) !important;
    border: none !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

.logo-brand {
    font-size: 1.6rem;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: -1.5px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #60efff 0%, #0088ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-brand span {
    color: #ffffff;
    -webkit-text-fill-color: white;
    margin-left: 2px;
    transition: color 0.3s ease;
}

.logo-brand::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #ffd700;
    border-radius: 50%;
    margin-left: 5px;
    box-shadow: 0 0 15px #ffd700;
}

/* --- Landing Header Specific Logo Style --- */
.landing-header .logo-brand {
    background: linear-gradient(135deg, #0088ff 0%, #0061ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.landing-header .logo-brand span {
    color: #0f172a;
    -webkit-text-fill-color: #0f172a;
    font-weight: 700;
}

.landing-logo {
    flex: 1; /* Mengambil 1 bagian ruang di kiri */
}

.landing-menu-wrapper {
    display: flex;
    flex: 2; /* Mengambil 2 bagian ruang agar bisa menengahkan links */
    align-items: center;
}

.landing-nav {
    flex: 1; /* Mengambil 1 bagian ruang di kanan */
    display: flex;
    justify-content: flex-end; /* Mendorong tombol ke ujung kanan */
    align-items: center;
    gap: 30px;
}

.landing-links {
    flex: 1; /* Mengambil 1 bagian ruang di tengah */
    display: flex;
    justify-content: center; /* Menempatkan teks tepat di tengah */
    gap: 25px;
    margin-right: 0;
}

.landing-links a {
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

/* --- Professional Solutions Dropdown --- */
.nav-dropdown-container { position: relative; }
.nav-dropdown-trigger { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.dropdown-arrow { transition: transform 0.3s ease; opacity: 0.5; }
.nav-dropdown-container.active .dropdown-arrow { transform: rotate(180deg); color: #0088ff; opacity: 1; }

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 380px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.nav-dropdown-menu.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.dropdown-grid { display: flex; flex-direction: column; gap: 5px; }

.dropdown-item-pro {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 16px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.dropdown-item-pro:hover { background: #f8fafc; }

.item-icon {
    width: 40px; height: 40px;
    background: #f1f5f9;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.dropdown-item-pro:hover .item-icon { background: rgba(0, 136, 255, 0.1); }

.item-text { display: flex; flex-direction: column; text-align: left; }
.item-title { font-size: 0.9rem; font-weight: 800; color: #0f172a; margin-bottom: 2px; }
.item-desc { font-size: 0.75rem; color: #64748b; font-weight: 500; line-height: 1.3; }

.dropdown-footer-link {
    margin-top: 10px;
    padding: 12px 15px;
    border-top: 1px solid #f1f5f9;
    text-align: left;
}

.dropdown-footer-link a {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0088ff;
    text-decoration: none;
}

/* Dark Mode Support for Dropdown */
body:not(.light-theme) .nav-dropdown-menu {
    background: #0f172a;
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
body:not(.light-theme) .item-title { color: #fff; }
body:not(.light-theme) .item-icon { background: rgba(255,255,255,0.05); }
body:not(.light-theme) .dropdown-item-pro:hover { background: rgba(255,255,255,0.03); }

.landing-links a:hover {
    color: #212529;
}

.btn-login {
    text-decoration: none;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 50px;
}

.btn-login:hover { 
    color: #0088ff; 
    background: rgba(0, 136, 255, 0.05);
}

.btn-get-started {
    text-decoration: none;
    background: linear-gradient(135deg, #0088ff 0%, #0061ff 100%);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(0, 136, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.btn-get-started:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 136, 255, 0.25);
    filter: brightness(1.1);
}

.app-body main, .admin-body main {
    justify-content: flex-start;
    align-items: flex-start; /* Pastikan konten rata kiri agar tidak terdorong sidebar */
    padding-top: 40px;
    padding-bottom: 40px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1600px;
}

.admin-container {
    width: 100%;
    max-width: 1600px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.admin-box {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.admin-box h2 {
    color: #ffd700;
    margin-top: 0;
    font-size: 1.2em;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.table-wrapper { overflow-x: auto; }
.user-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.user-table th, .user-table td { padding: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); text-align: left; }
.user-table th { background-color: rgba(255, 215, 0, 0.1); }
.action-btn { color: #0f0c29; padding: 5px 10px; border-radius: 5px; text-decoration: none; font-size: 0.9em; margin-right: 5px; }
.approve-btn { background-color: #4CAF50; }
.reject-btn { background-color: #f44336; }
.renew-btn { background-color: #2196F3; }
.save-btn { background-color: #00bcd4; }
.delete-btn { background-color: #9c27b0; }

.user-table td {
    vertical-align: middle;
}

.action-form,
.other-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.expiry-input {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #1f57ac;
    padding: 4px 8px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.9em;
}

.expiry-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

.user-meta {
    margin-top: 10px;
    font-size: 0.85em;
    opacity: 0.7;
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.4;
}

@media (max-width: 992px) {
    .admin-grid {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    }
}

@media (max-width: 768px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .user-table thead {
        display: none;
    }

    .user-table tr {
        border: 1px solid rgba(255, 215, 0, 0.2);
        border-radius: 10px;
        display: block;
        margin-bottom: 15px;
        padding: 15px;
        background-color: rgba(0,0,0,0.1);
    }

    .user-table td {
        display: block;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
        padding: 12px 0;
        text-align: left;
    }

    .user-table tr td:first-child {
        padding-top: 0;
    }

    .user-table td:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .user-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #ffd700;
        display: block;
        margin-bottom: 8px;
        font-size: 0.8em;
        text-transform: uppercase;
        opacity: 0.8;
    }

    .user-table td[data-label="Info Pengguna"]::before {
        display: none;
    }
    .user-table td[data-label="Info Pengguna"] {
        padding-bottom: 15px;
    }
    .user-table td[data-label="Info Pengguna"] strong {
        font-size: 1.1em;
    }

    .user-table .action-form,
    .user-table .other-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
    }

    .user-table .expiry-input {
        padding: 10px;
    }

    .user-table tr.inactive-row {
        opacity: 0.5;
        background-color: rgba(100, 100, 100, 0.1);
    }
}

.datetime-container {
    color: #f0f2f5;
    font-size: 1em;
    font-weight: 500;
    text-align: center;
    flex-grow: 1;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

#time-display {
    font-weight: bold;
    color: #ffd700;
}

@media (max-width: 992px) {
    .app-header {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .datetime-container {
        order: 3;
        width: 100%;
        font-size: 0.9em;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 215, 0, 0.1);
    }

    .app-header-logo {
        flex-grow: 1;
    }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.page-header h2 {
    margin: 0;
    color: #ffd700;
}

.back-button-alt {
    color: #ffd700;
    text-decoration: none;
    background-color: rgba(255, 215, 0, 0.1);
    padding: 8px 15px;
    border-radius: 50px;
    transition: background-color 0.3s ease;
    font-size: 0.9em;
}

.back-button-alt:hover {
    background-color: rgba(255, 215, 0, 0.2);
}

.prediction-form {
    margin-top: 20px;
    display: flex;
    align-items: flex-end;
    gap: 15px;
    flex-wrap: wrap;
}

.prediction-form .form-group {
    flex-grow: 1;
    margin-bottom: 0;
    text-align: left;
}

.prediction-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9em;
    opacity: 0.8;
}

.prediction-form select option {
    background: #302b63;
    color: #f0f2f5;
}

.hasil-rumus-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    align-items: flex-start;
}

.hasil-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-family: monospace;
    font-size: 1.1em;
    color: #ffd700;
}
.rumus-4d-container {
    display: flex;
    gap: 5px;
}
.rumus-digit-box {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 5px;
    font-weight: bold;
}

.rumus-result {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.rumus-result-digit-box {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: normal;
    background-color: rgba(136, 136, 136, 0.1);
    color: #aaa;
    border: 1px solid rgba(136, 136, 136, 0.3);
}

.rumus-output-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.paito-table .digit-box-display {
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.row-control-form {
    display: flex;
    gap: 5px;
}

.row-control-input {
    width: 100%;
    flex-grow: 1;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f0f2f5;
    border-radius: 5px;
    text-align: center;
}

.row-control-input::-webkit-outer-spin-button,
.row-control-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.row-control-input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.prediction-menu-container {
    margin-top: 20px;
}

.prediction-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.prediction-menu-button {
    display: block;
    width: 100%;
    max-width: 300px;
    padding: 15px 20px;
    text-decoration: none;
    color: #0f0c29;
    background-color: #ffd700;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prediction-menu-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

/* --- Global Sync Toast System --- */
#global-toast-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 11000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.global-toast-item {
    pointer-events: auto;
    width: 400px;
    max-width: calc(100vw - 50px);
    transform: translateX(120%);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.3));
}

.global-toast-item.show {
    transform: translateX(0);
}

/* --- Aesthetic Sync Notification (Globalized) --- */
.sync-success-notif {
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.95) 0%, rgba(20, 30, 60, 0.9) 100%);
    border: 1px solid rgba(46, 213, 115, 0.3);
    padding: 20px;
    border-radius: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    text-align: left;
}

.sync-notif-header {
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #2ed573;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sync-pulse {
    width: 7px; height: 7px;
    background: #2ed573;
    border-radius: 50%;
}

.sync-pulse.anim {
    animation: pulse-green 2s infinite;
}

.sync-notif-body {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.sync-notif-footer {
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.4;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
}

.typewriter {
    overflow: hidden;
    display: block;
    max-width: fit-content;
    white-space: nowrap;
    border-right: 3px solid #2ed573;
    animation: typing 1.5s steps(30, end) forwards, blink-caret .75s step-end infinite;
}

@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: #2ed573; } }

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(46, 213, 115, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 213, 115, 0); }
}

/* VIP Modal Styling */
.vip-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(15px);
    z-index: 20000; display: none; align-items: center; justify-content: center; padding: 20px;
}
.vip-modal-card {
    background: #0f172a; border: 1px solid #ffd700; border-radius: 32px;
    width: 100%; max-width: 400px; padding: 40px; text-align: center;
    box-shadow: 0 50px 100px rgba(0,0,0,0.5); animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes modalPop { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
.vip-icon-crown { font-size: 4rem; margin-bottom: 20px; }
.vip-modal-header h2 { color: #fff; margin: 0 0 10px; font-weight: 900; }
.vip-modal-header p { color: #94a3b8; font-size: 0.9rem; margin-bottom: 25px; }
.vip-features-minimal { list-style: none; padding: 0; margin-bottom: 30px; text-align: left; }
.vip-features-minimal li { color: #fff; font-size: 0.85rem; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.btn-upgrade-now {
    display: block; width: 100%; padding: 16px; background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #000; text-decoration: none; border-radius: 14px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 15px; box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}
.btn-close-modal { background: none; border: none; color: #94a3b8; font-weight: 600; cursor: pointer; font-size: 0.8rem; }
body.light-theme .sync-success-notif { background: #ffffff; border-color: #bbf7d0; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
body.light-theme .sync-notif-body { color: #1e293b; }