:root {
    --bg-space: #07080c;
    --bg-widget: rgba(10, 12, 20, 0.75);
    --bg-inner: rgba(5, 6, 10, 0.8);
    --border-color: rgba(255, 255, 255, 0.05);
    
    /* Cyber/Neon accents */
    --accent-purple: #c084fc;
    --accent-purple-glow: rgba(192, 132, 252, 0.25);
    --accent-cyan: #22d3ee;
    --accent-cyan-glow: rgba(34, 211, 238, 0.25);
    
    --text-white: #f8fafc;
    --text-slate: #94a3b8;
    --text-dark: #64748b;
    
    --font-outfit: 'Outfit', 'Inter', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

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

body {
    background-color: var(--bg-space);
    font-family: var(--font-inter);
    color: var(--text-white);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* cyber ambient background glows */
.cyber-glow-left {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 70%;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.08) 0%, rgba(0,0,0,0) 70%);
    filter: blur(80px);
    z-index: -2;
    pointer-events: none;
}

.cyber-glow-right {
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 70%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.06) 0%, rgba(0,0,0,0) 70%);
    filter: blur(80px);
    z-index: -2;
    pointer-events: none;
}

.cyber-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.005) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.005) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

/* Perfect Centering */
.launcher-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

/* Floating Launcher Card */
.launcher-widget {
    width: 440px;
    height: 560px;
    background: var(--bg-widget);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.6), 
        0 0 40px rgba(192, 132, 252, 0.03),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    animation: launcherSpawn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Title / Header Bar */
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
}

.header-brand {
    font-family: var(--font-outfit);
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-glow {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.widget-version {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    letter-spacing: 0;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.1);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.pulsing-green {
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: statusPulse 1.8s infinite;
}

.status-text {
    font-size: 0.68rem;
    font-weight: 700;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Nav Tabs Bar */
.widget-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-slate);
    padding: 0.85rem;
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.015);
}

.tab-btn.active {
    color: var(--accent-purple);
    border-bottom-color: var(--accent-purple);
    background: rgba(192, 132, 252, 0.02);
}

/* Widget Scrollable Body */
.widget-body {
    flex-grow: 1;
    height: 395px;
    overflow: hidden;
    position: relative;
    background: rgba(0,0,0,0.1);
}

.widget-view {
    display: none;
    height: 100%;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.widget-view.active {
    display: block;
    opacity: 1;
}

/* Changelog/Updates List View */
.widget-updates-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.update-row {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--accent-purple);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
    animation: slideDown 0.3s ease;
}

.update-row:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(2px);
}

.update-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.update-row-title {
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.row-badge {
    background: var(--accent-purple-glow);
    border: 1px solid var(--accent-purple);
    color: var(--accent-purple);
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.05rem 0.3rem;
    border-radius: 3px;
    text-transform: uppercase;
}

.update-row-date {
    font-size: 0.72rem;
    color: var(--text-slate);
}

.update-row-list {
    list-style: none;
    font-size: 0.8rem;
    color: var(--text-slate);
    line-height: 1.4;
}

.update-row-list li {
    padding-left: 0.9rem;
    position: relative;
    margin-bottom: 0.25rem;
    color: var(--text-white);
}

.update-row-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

.feed-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 250px;
    color: var(--text-slate);
    font-size: 0.85rem;
    gap: 0.5rem;
}

.feed-spinner i {
    font-size: 1.25rem;
    color: var(--accent-purple);
}

/* Horizontal Pricing Shop List */
.shop-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.shop-item-row {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 0.9rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.25s ease;
    animation: slideDown 0.3s ease;
}

.shop-item-row:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--accent-purple-glow);
    transform: translateY(-1px);
}

.shop-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex-grow: 1;
    min-width: 0;
    padding-right: 0.5rem;
}

.shop-item-title {
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.shop-tag-badge {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    color: #000;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 0.05rem 0.35rem;
    border-radius: 3px;
}

.shop-item-desc {
    font-size: 0.72rem;
    color: var(--text-slate);
}

.shop-item-price-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.shop-item-price {
    font-family: var(--font-outfit);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
}

.btn-purchase-mini {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.shop-item-row:hover .btn-purchase-mini {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    color: #000;
    border-color: transparent;
    box-shadow: 0 0 10px var(--accent-cyan-glow);
}

/* Footer Toolbar */
.widget-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background: rgba(5, 6, 10, 0.5);
}

.footer-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

/* Modals General */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 4, 6, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-inner);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(192, 132, 252, 0.05);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.modal-header h3 {
    font-family: var(--font-outfit);
    font-size: 1.1rem;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #fff;
}

/* Mini verification login modal */
.mini-modal {
    width: 320px;
}

.input-group {
    margin-bottom: 0.9rem;
}

.input-group label {
    display: block;
    font-size: 0.68rem;
    color: var(--text-slate);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 0.75rem;
    color: var(--text-dark);
    font-size: 0.8rem;
}

.input-wrapper input {
    width: 100%;
    padding: 0.65rem 0.75rem 0.65rem 2.2rem;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    color: #fff;
    font-size: 0.82rem;
    transition: all 0.3s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 8px var(--accent-purple-glow);
}

.btn-primary-widget {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    color: #000;
    border: none;
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary-widget:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px var(--accent-cyan-glow);
}

/* Compact admin panel modal settings */
.compact-admin-modal {
    width: 440px;
    height: 480px;
    display: flex;
    flex-direction: column;
}

.admin-top-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-logout-mini {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #ef4444;
    padding: 0.25rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
}

.btn-logout-mini:hover {
    background: #ef4444;
    color: #fff;
}

.admin-mini-nav {
    display: flex;
    gap: 0.4rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 0.85rem;
}

.mini-nav-btn {
    background: none;
    border: none;
    color: var(--text-slate);
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.mini-nav-btn.active {
    background: rgba(192, 132, 252, 0.08);
    color: var(--accent-purple);
    border: 1px solid rgba(192, 132, 252, 0.15);
}

.admin-mini-body {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.admin-mini-tab {
    display: none;
    animation: tabFadeIn 0.3s ease;
}

.admin-mini-tab.active {
    display: block;
}

.form-row-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.form-row-mini input, .admin-mini-tab input {
    width: 100%;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.55rem;
    font-size: 0.8rem;
    border-radius: 4px;
    color: #fff;
}

.form-row-mini input:focus, .admin-mini-tab input:focus {
    outline: none;
    border-color: var(--accent-purple);
}

.admin-mini-tab textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.55rem;
    font-size: 0.8rem;
    border-radius: 4px;
    color: #fff;
    margin-bottom: 0.5rem;
    font-family: inherit;
    resize: none;
}

.admin-mini-tab textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
}

.mini-list-header {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1rem;
    margin-bottom: 0.4rem;
}

.mini-scroll-list {
    max-height: 120px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mini-list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 0.45rem 0.75rem;
    border-radius: 4px;
    font-size: 0.78rem;
}

.mini-list-row button {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
}

/* Sync settings */
.input-group-mini {
    margin-bottom: 0.75rem;
}

.input-group-mini label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-slate);
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.input-group-mini input, .input-group-mini select {
    width: 100%;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.55rem;
    border-radius: 4px;
    color: #fff;
    font-size: 0.8rem;
}

.input-group-mini select:focus {
    outline: none;
    border-color: var(--accent-purple);
}

.mini-info-box {
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 0.55rem;
    border-radius: 4px;
    font-size: 0.68rem;
    color: var(--text-slate);
    line-height: 1.35;
}

.mini-info-box a {
    color: var(--accent-cyan);
    text-decoration: none;
}

/* Compact Checkout screen modal */
.compact-checkout {
    width: 340px;
}

.checkout-widget-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.checkout-product-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.85rem;
    border-radius: 6px;
}

.checkout-product-title {
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}

.checkout-product-price {
    font-family: var(--font-outfit);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--accent-cyan);
    margin-top: 0.2rem;
}

.checkout-methods-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.checkout-btn {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    text-decoration: none;
}

.checkout-btn.discord {
    background: rgba(88, 101, 242, 0.1);
    border-color: rgba(88, 101, 242, 0.2);
    color: #fff;
}

.checkout-btn.discord:hover {
    background: #5865F2;
    box-shadow: 0 0 10px rgba(88, 101, 242, 0.4);
}

.checkout-btn.crypto {
    background: rgba(255, 255, 255, 0.015);
    color: #fff;
}

.checkout-btn.crypto:hover {
    background: rgba(255, 255, 255, 0.035);
    border-color: var(--accent-purple-glow);
}

.checkout-crypto-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 0.75rem;
    border-radius: 6px;
    animation: slideDown 0.3s ease;
}

.crypto-hint {
    font-size: 0.68rem;
    color: var(--text-slate);
    line-height: 1.3;
    margin-bottom: 0.55rem;
}

.wallet-copy-box {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.wallet-label {
    font-size: 0.62rem;
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
}

.wallet-code {
    background: #000;
    color: var(--accent-cyan);
    font-size: 0.72rem;
    padding: 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.03);
}

.wallet-code:hover {
    border-color: var(--accent-cyan-glow);
}

/* Animations */
@keyframes statusPulse {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { transform: scale(1.15); opacity: 0.6; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes launcherSpawn {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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

@keyframes tabFadeIn {
    from { opacity: 0; transform: scale(0.99); }
    to { opacity: 1; transform: scale(1); }
}

/* Premium Shopier & Binance Checkout Styles */
.checkout-btn.shopier {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    color: #000;
    border: none;
}
.checkout-btn.shopier:hover {
    box-shadow: 0 0 12px var(--accent-cyan-glow);
    transform: translateY(-1px);
}

.checkout-btn.binance {
    background: rgba(240, 185, 11, 0.1);
    border-color: rgba(240, 185, 11, 0.25);
    color: #f0b90b;
}
.checkout-btn.binance:hover {
    background: #f0b90b;
    color: #000;
    box-shadow: 0 0 10px rgba(240, 185, 11, 0.4);
    transform: translateY(-1px);
}

.binance-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}
.binance-step {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.72rem;
    color: var(--text-white);
    text-align: left;
}
.binance-step .step-num {
    background: rgba(240, 185, 11, 0.15);
    color: #f0b90b;
    border: 1px solid rgba(240, 185, 11, 0.3);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: bold;
    flex-shrink: 0;
}
.checkout-btn-mini-discord {
    background: #5865F2;
    border: none;
    color: #fff;
    font-family: var(--font-outfit);
    font-weight: bold;
    font-size: 0.72rem;
    padding: 0.45rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    transition: all 0.3s;
}
.checkout-btn-mini-discord:hover {
    background: #4752c4;
    box-shadow: 0 0 8px rgba(88, 101, 242, 0.4);
}

