/* Global Variables (Themeable) */
:root {
    --primary-bg: #0f0f0f;
    --card-bg: rgba(20, 20, 20, 0.6);
    --accent-color: #ff6b6b; /* Light Red */
    --text-color: #ffffff;
    --border-radius: 12px;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Glass Panel */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.nav-links button {
    background: none;
    border: none;
    color: var(--text-color);
    margin: 0 10px;
    cursor: pointer;
    font-size: 1rem;
    padding: 5px 10px;
}

.nav-links button.active {
    border-bottom: 2px solid var(--accent-color);
}

/* Buttons */
.btn-primary, .btn-large {
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: var(--text-color);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.btn-large {
    font-size: 1.5rem;
    padding: 15px 40px;
    margin-top: 20px;
}

/* Layout */
#app-container {
    padding: 20px;
    max-width: 100%; /* Expanded for Market View */
    margin: 0 auto;
}

.hidden-view { display: none !important; }
.active-view { display: block; }

/* Hero */
.hero {
    text-align: center;
    padding: 60px 0;
}

/* Grid */
.token-grid, .design-grid, .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Stats Card */
.stat-card {
    text-align: center;
}
.stat-value {
    font-size: 2rem;
    font-weight: bold;
    margin: 10px 0;
}
.highlight { color: var(--accent-color); }

/* Forms */
input:not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    color: white;
}

/* Checkbox & Radio — compact, never full-width */
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin: 0 6px 0 0;
    padding: 0;
    accent-color: var(--accent-color);
    cursor: pointer;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Custom Checkbox (Slider Style) */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin-right: 10px;
}

.toggle-switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

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

.feature-label {
    font-weight: bold;
}

.feature-desc {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Stickers */
.sticker-img {
    width: 100px;
    height: auto;
    pointer-events: none;
}

/* Profile Header */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.profile-info {
    display: flex;
    align-items: center;
    gap: 20px;
}
.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
}

/* =========================================
   NEW MARKET LAYOUT (OpenSea Style)
   ========================================= */

.market-layout {
    margin-top: -20px; /* Adjust for nav spacing */
}

/* 1. Collection Banner */
.collection-banner {
    position: relative;
    margin-bottom: 30px;
}
.banner-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    border-radius: 0 0 12px 12px;
    opacity: 0.8;
}
.collection-info-container {
    max-width: 1200px;
    margin: -60px auto 0;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
}
.collection-logo {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    border: 4px solid var(--primary-bg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    background: #222;
}
.collection-details {
    margin-top: 15px;
}
.collection-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.collection-title-row h1 {
    font-size: 2rem;
    margin: 0;
}
.social-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5rem;
    margin-left: 15px;
    opacity: 0.7;
}
.social-links a:hover { opacity: 1; }
.collection-meta {
    margin: 10px 0;
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}
.collection-stats {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    width: fit-content;
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-label { font-size: 0.8rem; opacity: 0.6; }
.stat-value { font-size: 1.2rem; font-weight: bold; }

/* 2. Tabs */
.market-tabs-nav {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin: 20px 0;
    padding: 0 20px;
}
.market-tab {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: bold;
    padding: 15px 0;
    cursor: pointer;
    opacity: 0.6;
}
.market-tab.active {
    opacity: 1;
    border-bottom: 2px solid var(--text-color);
}

/* 3. Split View */
.market-split-view {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    min-height: 80vh;
}

/* Sidebar */
.market-sidebar {
    width: 280px;
    flex-shrink: 0;
    border-right: 1px solid rgba(255,255,255,0.1);
    padding-right: 20px;
}
.sidebar-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 15px;
    font-weight: bold;
}
.filter-accordion {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 15px 0;
}
.accordion-header {
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}
.accordion-body {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.filter-option {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    cursor: pointer;
}
.filter-option input { width: auto; margin-right: 10px; }
.price-range { display: flex; align-items: center; gap: 10px; }
.price-range input { width: 80px; padding: 8px; text-align: center; }

/* Main Content */
.market-main-content {
    flex: 1;
}
.grid-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}
.search-wrapper {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    width: 400px;
}
.search-wrapper span {
    margin-right: 15px;
}
.search-wrapper input {
    background: none;
    border: none;
    margin: 0;
    padding: 12px;
}
.sort-wrapper {
    display: flex;
    gap: 10px;
}
#market-sort {
    background: rgba(255,255,255,0.05);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 8px;
}
.view-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}
.view-btn.active { background: rgba(255,255,255,0.1); }

.active-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}
.tag {
    background: rgba(255,255,255,0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tag button { background: none; border: none; color: white; cursor: pointer; font-size: 1rem; }
.clear-all { background: none; border: none; color: var(--accent-color); cursor: pointer; }

/* NFT Grid & Cards */
.nft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    min-height: 200px; /* Ensure loading state is visible */
}
.nft-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.nft-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.2);
}
.card-image-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    position: relative;
    background: #222;
}
.card-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.card-details {
    padding: 12px;
}
.card-title {
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}
.card-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.stat-price {
    font-size: 1rem;
    font-weight: bold;
}
.stat-label-24h {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Simple Chart Bar on Card */
.card-chart-bar {
    height: 24px;
    width: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-left: 5px;
}
.chart-fill {
    height: 100%;
    background: #333;
}

.hidden-search {
    display: none !important;
}

/* Buy Button Overlay (appears on hover) */
.buy-overlay {
    background: var(--accent-color);
    color: black;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    border-radius: 0 0 12px 12px;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.2s;
}
.nft-card:hover .buy-overlay { opacity: 1; }


/* Bottom Sticky Bar */
.market-footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    box-sizing: border-box;
}
.bar-left, .bar-center, .bar-right { display: flex; gap: 20px; align-items: center; }
.info-pill {
    background: rgba(255,255,255,0.05);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}
.toggle-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.3);
    padding: 5px 15px;
    border-radius: 20px;
}
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* Responsive Mobile */
@media (max-width: 768px) {
    nav { flex-direction: column; padding: 15px; }
    .nav-links { 
        margin: 15px 0; 
        display: flex; 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 10px;
    }
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .profile-info { flex-direction: column; }
    
    /* Ensure grids stack nicely */
    .token-grid, .design-grid, .stats-grid {
        grid-template-columns: 1fr; 
    }
    
    /* Market Specific Mobile */
    .market-split-view { flex-direction: column; padding: 0 10px; }
    .market-sidebar { width: 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 20px; }
    .market-footer-bar { flex-direction: column; gap: 15px; padding: 15px; }
    .bar-left, .bar-right { width: 100%; justify-content: space-between; }
    .bar-center { display: none; } /* Hide stats on mobile */
    .collection-banner { height: auto; }
    .collection-stats { flex-wrap: wrap; width: 100%; }
    
    /* Increase touch targets */
    button {
        padding: 12px 20px;
    }
}
.chart-placeholder {
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: #666;
    letter-spacing: 1px;
    background: rgba(255,255,255,0.02);
    border-radius: 4px;
}
/* List View Styles */
.nft-grid.list-mode {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nft-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 20px;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.nft-list-row:hover {
    background: #252525;
}

.list-col {
    display: flex;
    align-items: center;
    gap: 15px;
}

.list-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.list-info {
    display: flex;
    flex-direction: column;
}

.list-name {
    font-weight: bold;
    font-size: 1rem;
}

.list-sub {
    font-size: 0.8rem;
    color: #888;
}

.list-price {
    font-weight: bold;
    text-align: right;
}

.list-change {
    font-size: 0.9rem;
    text-align: right;
}

/* ── Interface App Cards ─────────────────────────────────────── */

.interface-app-card {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: default;
    display: flex;
    flex-direction: column;
}
.interface-app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255,255,255,0.06);
}
.app-status-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}
.app-status-badge.active {
    color: #4ade80;
    background: rgba(74,222,128,0.12);
}
.app-status-badge.maintenance {
    color: #fbbf24;
    background: rgba(251,191,36,0.12);
}
.app-status-badge.coming {
    color: #94a3b8;
    background: rgba(148,163,184,0.12);
}
.app-tag {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.app-launch-btn {
    transition: all 0.2s;
}
.app-launch-btn:not(:disabled):hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(255,107,107,0.3);
}

/* ── CREATE Nav Button ───────────────────────────────────────── */

.nav-create-btn {
    background: linear-gradient(135deg, #ff6b6b, #ff3d3d) !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 8px 18px !important;
    letter-spacing: 0.5px;
    border: none !important;
    box-shadow: 0 0 15px rgba(255,107,107,0.3);
    transition: all 0.2s;
}
.nav-create-btn:hover {
    box-shadow: 0 0 25px rgba(255,107,107,0.5);
    transform: translateY(-1px);
}

/* ── Page Builder Layout ─────────────────────────────────────── */

.pb-layout {
    display: flex;
    height: calc(100vh - 70px);
    overflow: hidden;
    background: #060608;
}

.pb-sidebar {
    width: 280px;
    min-width: 280px;
    background: #0c0c10;
    border-right: 1px solid rgba(255,255,255,0.06);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}
.pb-sidebar-right {
    border-right: none;
    border-left: 1px solid rgba(255,255,255,0.06);
}
.pb-sidebar.collapsed { width: 0; min-width: 0; overflow: hidden; }

.pb-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    background: #0c0c10;
    z-index: 10;
}
.pb-sidebar-header h3 { font-size: 0.95rem; color: #fff; }

.pb-panel {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pb-panel-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 10px;
    font-weight: 600;
}

.pb-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin: 8px 0 4px 0;
}

.pb-panel input[type="text"],
.pb-panel input[type="number"],
.pb-panel input[type="color"],
.pb-panel select,
.pb-panel textarea {
    width: 100%;
    padding: 7px 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    box-sizing: border-box;
}
.pb-panel input:focus, .pb-panel select:focus, .pb-panel textarea:focus {
    border-color: rgba(255,107,107,0.4);
}

/* Tool Grid */
.pb-tool-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.pb-tool-btn {
    aspect-ratio: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pb-tool-btn:hover {
    background: rgba(255,107,107,0.15);
    border-color: rgba(255,107,107,0.3);
}

/* Image Library */
.pb-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    max-height: 200px;
    overflow-y: auto;
}
.pb-img-thumb {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.15s;
}
.pb-img-thumb:hover { border-color: rgba(255,107,107,0.5); }
.pb-img-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Small Buttons */
.pb-btn-sm {
    padding: 6px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #ccc;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s;
}
.pb-btn-sm:hover { background: rgba(255,255,255,0.1); color: #fff; }
.pb-btn-sm.pb-btn-accent {
    background: rgba(255,107,107,0.15);
    border-color: rgba(255,107,107,0.3);
    color: #ff6b6b;
}
.pb-btn-sm.pb-btn-accent:hover { background: rgba(255,107,107,0.25); }
.pb-btn-icon {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px;
}
.pb-btn-icon:hover { color: #fff; }
.pb-divider-v {
    display: inline-block;
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.1);
}

/* Page Tabs */
.pb-page-tabs {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.pb-page-tab {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #aaa;
    transition: all 0.15s;
}
.pb-page-tab:hover { background: rgba(255,255,255,0.06); color: #fff; }
.pb-page-tab.active {
    background: rgba(255,107,107,0.1);
    color: #ff6b6b;
    border-left: 3px solid #ff6b6b;
}

/* Canvas */
.pb-canvas-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.pb-canvas-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: #0a0a0e;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.pb-canvas {
    flex: 1;
    position: relative;
    overflow: auto;
    min-height: 600px;
    background: #0a0a0a;
    background-image: 
        radial-gradient(circle, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 20px 20px;
}
.pb-canvas-empty {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: rgba(255,255,255,0.2);
    font-size: 1.1rem;
}

.pb-code-editor {
    flex: 1;
    background: #0a0a0e;
    color: #b5e853;
    border: none;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    resize: none;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}
.pb-preview-frame {
    flex: 1;
    width: 100%;
    border: none;
    background: #fff;
}

/* Canvas Elements */
.pb-element {
    box-sizing: border-box;
    transition: box-shadow 0.1s;
}
.pb-element:hover {
    outline: 1px dashed rgba(255,107,107,0.3);
}
.pb-element.selected {
    outline: 2px solid #ff6b6b !important;
    box-shadow: 0 0 0 1px rgba(255,107,107,0.3), 0 0 20px rgba(255,107,107,0.1);
}
.pb-resize-handle {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: #ff6b6b;
    border-radius: 2px;
    cursor: se-resize;
    display: none;
}
.pb-element.selected .pb-resize-handle { display: block; }

/* ── Admin Panel ─────────────────────────────────────────────── */

.admin-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}
.admin-login-card {
    position: relative;
    background: #0c0c10;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 50px 40px;
    width: 380px;
    overflow: hidden;
}
.admin-login-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,107,107,0.05) 0%, transparent 60%);
    pointer-events: none;
}
.admin-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 12px;
    box-sizing: border-box;
}
.admin-input:focus { border-color: rgba(255,107,107,0.4); }
.admin-login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff6b6b, #ff3d3d);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.2s;
}
.admin-login-btn:hover {
    box-shadow: 0 4px 20px rgba(255,107,107,0.3);
}

/* Dashboard */
.admin-dashboard {
    max-width: 100%;
    overflow: hidden;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.admin-btn {
    padding: 10px 18px;
    background: linear-gradient(135deg, #ff6b6b, #ff3d3d);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.admin-btn:hover { box-shadow: 0 4px 15px rgba(255,107,107,0.3); }
.admin-btn-ghost {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
}
.admin-btn-ghost:hover { background: rgba(255,255,255,0.1); box-shadow:none; }

/* Card Carousel */
.admin-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
}
.admin-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
    padding: 10px 0 20px 0;
    flex: 1;
}
.admin-carousel-arrow {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #888;
    font-size: 1.2rem;
    padding: 0 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s;
    border-radius: 8px;
    margin: 10px 4px 20px;
}
.admin-carousel-arrow:hover { background: rgba(255,255,255,0.1); color: #fff; }

.admin-card {
    min-width: 380px;
    max-width: 420px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    scroll-snap-align: start;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.admin-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.admin-card-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}
.admin-card-body {
    padding: 16px 20px;
    flex: 1;
    overflow-y: auto;
    max-height: 55vh;
}

.admin-field-section {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.3);
    margin: 16px 0 8px 0;
    padding-left: 10px;
    font-weight: 600;
}
.admin-field-section:first-child { margin-top: 0; }

.admin-field-row {
    margin-bottom: 10px;
}
.admin-field-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 4px;
}
.admin-field-input {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    box-sizing: border-box;
}
.admin-field-input:focus { border-color: var(--card-accent, #ff6b6b); }
.admin-textarea {
    min-height: 80px;
    resize: vertical;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}
.admin-eye-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px;
}

/* Toggle Switch */
.admin-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.admin-toggle input { opacity: 0; width: 0; height: 0; }
.admin-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 24px;
    transition: 0.3s;
}
.admin-toggle-slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}
.admin-toggle input:checked + .admin-toggle-slider {
    background: var(--card-accent, #ff6b6b);
}
.admin-toggle input:checked + .admin-toggle-slider:before {
    transform: translateX(20px);
}

.admin-status-bar {
    padding: 10px 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* Admin Image Fields */
.admin-image-field { padding: 4px 0; }
.admin-img-preview { margin-bottom: 6px; }
.admin-img-upload-btn {
    display:inline-flex;align-items:center;gap:4px;padding:6px 12px;
    background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.1);
    border-radius:6px;color:#ccc;font-size:0.75rem;cursor:pointer;transition:all 0.15s;
}
.admin-img-upload-btn:hover { background:rgba(255,255,255,0.1);border-color:rgba(255,255,255,0.2); }
.admin-img-gen-btn {
    padding:6px 12px;background:rgba(171,99,255,0.1);border:1px solid rgba(171,99,255,0.25);
    border-radius:6px;color:#ab63ff;font-size:0.75rem;cursor:pointer;transition:all 0.15s;
}
.admin-img-gen-btn:hover { background:rgba(171,99,255,0.2);border-color:rgba(171,99,255,0.4); }
.admin-img-clear-btn {
    padding:6px 10px;background:rgba(248,113,113,0.1);border:1px solid rgba(248,113,113,0.25);
    border-radius:6px;color:#f87171;font-size:0.75rem;cursor:pointer;transition:all 0.15s;
}
.admin-img-clear-btn:hover { background:rgba(248,113,113,0.2); }
@keyframes adminSpin { to { transform:rotate(360deg); } }
.admin-spinner { width:20px;height:20px;border:2px solid rgba(255,255,255,0.1);border-top-color:#ab63ff;border-radius:50%;display:inline-block;animation:adminSpin 0.6s linear infinite; }

/* Speed Toggle Buttons */
.pb-speed-btn {
    flex: 1;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}
.pb-speed-btn.active {
    background: rgba(255,107,107,0.2) !important;
    border-color: rgba(255,107,107,0.4) !important;
    color: #ff6b6b !important;
}
.pb-speed-btn[data-speed="fast"].active {
    background: rgba(59,130,246,0.2) !important;
    border-color: rgba(59,130,246,0.4) !important;
    color: #3b82f6 !important;
}

/* ── CTO SIDES ───────────────────────────────────────────────── */

.nav-cto-btn {
    background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    border: none !important;
    box-shadow: 0 0 12px rgba(245,158,11,0.3);
    letter-spacing: 0.5px;
}
.nav-cto-btn:hover {
    box-shadow: 0 0 22px rgba(245,158,11,0.5);
}
.nav-agg-btn {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53) !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    border: none !important;
    box-shadow: 0 0 12px rgba(255,107,107,0.3);
    letter-spacing: 0.5px;
}
.nav-agg-btn:hover {
    box-shadow: 0 0 22px rgba(255,107,107,0.5);
}

/* Header */
.cto-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}
.cto-title {
    margin: 0;
    font-size: 1.6rem;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cto-subtitle { opacity: 0.5; font-size: 0.85rem; margin: 4px 0 0 0; }
.cto-header-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cto-info-btn {
    padding: 8px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #ccc;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s;
}
.cto-info-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.cto-btn { padding: 8px 16px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; color: #ddd; cursor: pointer; font-size: 0.85rem; transition: all 0.15s; text-decoration: none; display: inline-flex; align-items: center; }
.cto-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.cto-btn-primary { background: linear-gradient(135deg, #f59e0b, #ef4444); border: none; color: #fff; font-weight: 600; }
.cto-btn-primary:hover { box-shadow: 0 4px 15px rgba(245,158,11,0.3); }
.cto-btn-scan { background: linear-gradient(135deg, #f59e0b, #ef4444); border: none; color: #fff; font-weight: 600; }
.cto-btn-scan:hover { box-shadow: 0 4px 15px rgba(245,158,11,0.3); }
.cto-auto-label { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; opacity: 0.6; cursor: pointer; }

/* Filters */
.cto-filters {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
}
.cto-filter-group { display: flex; flex-direction: column; gap: 4px; }
.cto-filter-group label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.4; }
.cto-filter-group select {
    padding: 8px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
}
.cto-scan-status {
    margin-left: auto;
    font-size: 0.85rem;
    opacity: 0.5;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cto-scan-status #cto-count { font-weight: 700; color: #f59e0b; opacity: 1; }

/* Card Grid */
.cto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.cto-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    opacity: 0.4;
    font-size: 1rem;
}
.cto-error { color: #f87171; opacity: 0.8; }
.cto-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top: 3px solid #f59e0b;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

/* Cards */
.cto-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.cto-card:hover {
    border-color: rgba(245,158,11,0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(245,158,11,0.08);
}
.cto-card-grade {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    color: #fff;
}
.cto-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cto-card-img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: #222; flex-shrink: 0; }
.cto-card-info { flex: 1; min-width: 0; }
.cto-card-name { margin: 0; font-size: 1rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cto-card-symbol { font-size: 0.75rem; opacity: 0.4; font-weight: 600; text-transform: uppercase; }
.cto-card-score {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 28px;
}
.cto-card-stats { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.cto-stat { text-align: center; }
.cto-stat-label { display: block; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.35; margin-bottom: 2px; }
.cto-stat-value { display: block; font-size: 0.85rem; font-weight: 600; }
.cto-green { color: #4ade80; }
.cto-yellow { color: #fbbf24; }
.cto-red { color: #f87171; }

.cto-card-bar { width: 100%; height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; margin-bottom: 4px; }
.cto-card-bar-fill { height: 100%; background: linear-gradient(90deg, #f59e0b, #ef4444); border-radius: 2px; transition: width 0.3s; }
.cto-card-bar-label { font-size: 0.65rem; opacity: 0.35; text-align: right; margin-bottom: 10px; }
.cto-card-reasons { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.cto-reason-tag {
    font-size: 0.65rem;
    padding: 2px 8px;
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 4px;
    color: #f59e0b;
}
.cto-card-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(239,68,68,0.15));
    border: 1px solid rgba(245,158,11,0.25);
    border-radius: 8px;
    color: #f59e0b;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.15s;
}
.cto-card-btn:hover {
    background: linear-gradient(135deg, rgba(245,158,11,0.25), rgba(239,68,68,0.25));
    box-shadow: 0 4px 15px rgba(245,158,11,0.15);
}

/* Modal */
.cto-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 60000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    overflow-y: auto;
}
.cto-modal {
    background: #0e0e12;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    width: 100%;
    max-width: 720px;
    padding: 28px;
    position: relative;
}
.cto-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 1.3rem;
    cursor: pointer;
    color: #666;
    transition: color 0.15s;
    z-index: 5;
}
.cto-modal-close:hover { color: #ff6b6b; }
.cto-modal-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.cto-modal-img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: #222; flex-shrink: 0; }
.cto-modal-name { margin: 0; font-size: 1.4rem; }
.cto-modal-symbol { font-size: 0.85rem; opacity: 0.4; font-weight: 600; margin-left: 8px; }
.cto-grade-badge { padding: 4px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; color: #fff; }

/* Modal Tabs */
.cto-modal-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 0;
}
.cto-tab {
    padding: 10px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #888;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s;
    white-space: nowrap;
}
.cto-tab:hover { color: #ccc; }
.cto-tab.active { color: #f59e0b; border-bottom-color: #f59e0b; }
.cto-tab-content { animation: fadeIn 0.2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Analysis */
.cto-analysis-rec {
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(239,68,68,0.05));
    border: 1px solid rgba(245,158,11,0.15);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.5;
}
.cto-analysis-section {
    padding: 12px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    margin-bottom: 10px;
}
.cto-analysis-section h4 { margin: 0 0 6px 0; font-size: 0.85rem; }
.cto-analysis-section p { margin: 0; font-size: 0.85rem; opacity: 0.8; line-height: 1.4; }
.cto-highlight { color: #f59e0b; font-weight: 600; margin-top: 4px !important; }
.cto-point { font-size: 0.8rem; padding: 4px 0; line-height: 1.4; }
.cto-point-good { color: rgba(74,222,128,0.9); }
.cto-point-bad { color: rgba(248,113,113,0.9); }
.cto-link { display: inline-block; margin: 8px 8px 0 0; padding: 6px 12px; background: rgba(255,255,255,0.05); border-radius: 6px; color: #aaa; font-size: 0.8rem; text-decoration: none; }
.cto-link:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* Action Steps */
.cto-action-steps { margin-top: 16px; }
.cto-action-step {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 3px solid rgba(245,158,11,0.3);
}
.cto-step-num {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.cto-action-step h5 { margin: 0 0 4px 0; font-size: 0.95rem; }
.cto-action-step p { margin: 0; font-size: 0.8rem; opacity: 0.6; line-height: 1.4; }
.cto-input {
    padding: 8px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 0.85rem;
    width: 120px;
    outline: none;
}
.cto-hint { font-size: 0.75rem; opacity: 0.4; margin-top: 6px !important; }

/* Score Breakdown */
.cto-score-bar-full { width: 100%; height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; margin: 12px 0 16px; }
.cto-score-bar-inner { height: 100%; border-radius: 4px; transition: width 0.5s; }
.cto-score-row { padding: 10px 12px; background: rgba(255,255,255,0.02); border-radius: 8px; margin-bottom: 6px; }
.cto-score-row-header { display: flex; justify-content: space-between; align-items: center; }
.cto-score-factor { font-weight: 600; font-size: 0.9rem; }
.cto-score-pts { color: #4ade80; font-weight: 700; font-size: 0.85rem; }
.cto-score-detail { margin: 4px 0 0 0; font-size: 0.8rem; opacity: 0.5; }

/* Trades */
.cto-trades-list { max-height: 300px; overflow-y: auto; }
.cto-trade-row { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 6px; margin-bottom: 4px; font-size: 0.85rem; }
.cto-trade-buy { background: rgba(74,222,128,0.05); }
.cto-trade-sell { background: rgba(248,113,113,0.05); }
.cto-trade-type { font-weight: 700; width: 40px; font-size: 0.75rem; }
.cto-trade-buy .cto-trade-type { color: #4ade80; }
.cto-trade-sell .cto-trade-type { color: #f87171; }

/* Guide Modal */
.cto-guide-modal { max-width: 640px; max-height: 80vh; overflow-y: auto; }
.cto-guide-section {
    padding: 16px;
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    margin-bottom: 12px;
}
.cto-guide-section h3 { margin: 0 0 10px 0; font-size: 1rem; }
.cto-guide-section p { margin: 4px 0; font-size: 0.85rem; opacity: 0.8; line-height: 1.5; }
.cto-guide-checklist { display: flex; flex-direction: column; gap: 6px; }
.cto-guide-item { font-size: 0.85rem; padding: 6px 0; opacity: 0.85; }
.cto-guide-bad { opacity: 0.7; }
.cto-guide-steps { display: flex; flex-direction: column; gap: 8px; }
.cto-guide-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.cto-guide-step span {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.cto-guide-step div { font-size: 0.85rem; opacity: 0.85; line-height: 1.4; }

/* X (Twitter) link style */
.cto-link-x {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.cto-link-x:hover {
    background: #fff !important;
    color: #000 !important;
}

/* ── Background Media Controls ── */
.pb-bg-section { display:flex; flex-direction:column; gap:6px; }
.pb-bg-type-toggle { display:flex; gap:2px; }
.pb-bg-type-btn {
    flex:1; padding:6px 8px; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1);
    color:#aaa; cursor:pointer; font-size:0.75rem; text-align:center; transition:all 0.2s; border-radius:4px;
}
.pb-bg-type-btn.active { background:rgba(139,92,246,0.3); color:#fff; border-color:rgba(139,92,246,0.6); }
.pb-bg-type-btn:hover { background:rgba(255,255,255,0.12); color:#fff; }
#pb-publish-btn:hover { background:rgba(34,197,94,0.5) !important; color:#fff !important; }

.pb-bg-options-row {
    display:flex; align-items:center; gap:8px;
}
.pb-bg-options-row select {
    flex:1; background:#1a1a2e; border:1px solid rgba(255,255,255,0.1); color:#ccc;
    padding:5px 6px; border-radius:4px; font-size:0.72rem;
}
.pb-toggle-label {
    display:flex; align-items:center; gap:6px; font-size:0.72rem; color:#999; white-space:nowrap;
}

/* Toggle Switch */
.pb-toggle-switch { position:relative; display:inline-block; width:34px; height:18px; flex-shrink:0; }
.pb-toggle-switch input { opacity:0; width:0; height:0; }
.pb-toggle-slider {
    position:absolute; cursor:pointer; top:0; left:0; right:0; bottom:0;
    background:rgba(255,255,255,0.15); transition:0.3s; border-radius:20px;
}
.pb-toggle-slider:before {
    position:absolute; content:""; height:12px; width:12px; left:3px; bottom:3px;
    background:#fff; transition:0.3s; border-radius:50%;
}
.pb-toggle-switch input:checked + .pb-toggle-slider { background:rgba(139,92,246,0.7); }
.pb-toggle-switch input:checked + .pb-toggle-slider:before { transform:translateX(16px); }

/* Mobile Lines Overlay */
.pb-mobile-overlay { position:absolute; top:0; left:0; width:100%; height:100%; pointer-events:none; z-index:9999; }
.pb-mobile-line {
    position:absolute; top:0; height:100%; width:1px;
    border-left:2px dashed rgba(139,92,246,0.5);
}
.pb-mobile-line-l { left:calc(50% - 187px); }
.pb-mobile-line-r { left:calc(50% + 187px); }
.pb-mobile-label {
    position:absolute; top:6px; left:50%; transform:translateX(-50%);
    background:rgba(139,92,246,0.3); color:#c4b5fd; padding:2px 10px; border-radius:10px;
    font-size:0.65rem; letter-spacing:0.5px; white-space:nowrap;
}

/* Video bg in canvas */
.pb-canvas-video-bg { border-radius:inherit; }

/* Market Source Tabs */
.market-source-tab.active { background: rgba(255,255,255,0.1) !important; color: #fff !important; }
.market-source-tab:not(.active):hover { background: rgba(255,255,255,0.05) !important; color: #aaa !important; }

/* ═══ EXAMPLE SERVICE CARDS ═══ */
.example-cards-scroll { display:flex;gap:12px;overflow-x:auto;padding:4px 0 16px;scrollbar-width:thin; }
.example-cards-scroll::-webkit-scrollbar { height:4px; }
.example-cards-scroll::-webkit-scrollbar-thumb { background:rgba(255,255,255,0.1);border-radius:4px; }
.example-card { flex:0 0 160px;background:rgba(20,20,25,0.95);border:1px solid rgba(255,255,255,0.06);border-radius:14px;padding:16px;text-align:center;cursor:pointer;transition:all 0.2s; }
.example-card:hover { border-color:rgba(255,255,255,0.15);transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,0.3); }
.example-card-img { width:56px;height:56px;border-radius:50%;margin:0 auto 10px;display:flex;align-items:center;justify-content:center;font-size:1.5rem; }
.example-card-name { font-weight:700;font-size:0.85rem;margin-bottom:2px; }
.example-card-tag { font-size:0.65rem;opacity:0.4;text-transform:uppercase;letter-spacing:1px;margin-bottom:6px; }
.example-card-stats { font-size:0.7rem;opacity:0.5; }
