:root {
    --bg-base: #080c14;
    --bg-surface: rgba(16, 24, 40, 0.75);
    --bg-surface-elevated: rgba(23, 34, 56, 0.85);
    --bg-surface-subtle: rgba(255, 255, 255, 0.03);
    
    --border-glass: rgba(255, 255, 255, 0.09);
    --border-glass-focus: rgba(0, 242, 254, 0.4);
    
    --primary: #00f2fe;
    --primary-glow: rgba(0, 242, 254, 0.35);
    --secondary: #7928ca;
    --accent-purple: #8a2be2;
    --accent-emerald: #10b981;
    --accent-coral: #fe2c55;
    --accent-amber: #f59e0b;
    --accent-blue: #3b82f6;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --shadow-glass: 0 10px 30px 0 rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 25px var(--primary-glow);
    --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.dark-theme {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
}

/* Ambient Ambient Background Glows */
.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.25;
}
.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #7928ca, #00f2fe);
    top: -100px;
    left: -150px;
}
.glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #00f2fe, #10b981);
    bottom: -150px;
    right: -150px;
}
.glow-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #fe2c55, #8a2be2);
    top: 40%;
    left: 45%;
    opacity: 0.15;
}

/* Glassmorphic Container */
.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
}
.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 12, 20, 0.82);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.85rem 1.5rem;
}
.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #00f2fe, #7928ca);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
}
.pulse-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    border: 2px solid var(--bg-base);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.brand-text h1 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.badge-sosmed {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, #fe2c55, #8a2be2);
    color: #fff;
    letter-spacing: 0.5px;
}
.brand-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

/* Status Pills */
.status-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-glass);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
}
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.status-indicator.green {
    background-color: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
}
.status-indicator.red {
    background-color: var(--accent-coral);
    box-shadow: 0 0 8px var(--accent-coral);
}
.status-indicator.yellow {
    background-color: var(--accent-amber);
    box-shadow: 0 0 8px var(--accent-amber);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-main);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    color: #0b0f19;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 6px 22px rgba(0, 242, 254, 0.5);
    transform: translateY(-2px);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
}
.btn-block {
    width: 100%;
}
.btn-lg {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
}
.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-text:hover {
    text-decoration: underline;
}
.btn-icon-xs {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 0.72rem;
    padding: 0.2rem 0.45rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-left: 0.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.btn-icon-xs:hover {
    background: var(--primary);
    color: #0b0f19;
}
.btn-danger-xs {
    background: rgba(254, 44, 85, 0.2);
    color: #fe2c55;
    border: 1px solid rgba(254, 44, 85, 0.3);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    cursor: pointer;
}
.btn-danger-xs:hover {
    background: #fe2c55;
    color: #fff;
}
.btn-danger-sm {
    background: rgba(254, 44, 85, 0.15);
    color: var(--accent-coral);
    border: 1px solid rgba(254, 44, 85, 0.3);
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}
.btn-danger-sm:hover {
    background: var(--accent-coral);
    color: #fff;
}
.btn-ai-sparkle {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.25), rgba(0, 242, 254, 0.25));
    border: 1px solid rgba(138, 43, 226, 0.4);
    color: #00f2fe;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
}
.btn-ai-sparkle:hover {
    background: linear-gradient(135deg, #8a2be2, #00f2fe);
    color: #0b0f19;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

/* Layout */
.main-container {
    max-width: 1440px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.5rem;
}
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Card Headers */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-glass);
}
.card-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.card-title h2 {
    font-size: 1.1rem;
    font-weight: 700;
}
.step-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 242, 254, 0.25);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}

/* Forms */
.composer-form {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
input[type="text"],
input[type="url"],
input[type="password"],
textarea,
select {
    width: 100%;
    background: rgba(10, 16, 28, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.875rem;
    padding: 0.65rem 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}
input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.15);
}
textarea {
    resize: vertical;
    min-height: 90px;
}
select {
    cursor: pointer;
}

/* Dropzone */
.upload-dropzone {
    border: 2px dashed rgba(0, 242, 254, 0.3);
    background: rgba(0, 242, 254, 0.02);
    border-radius: var(--radius-md);
    padding: 1.75rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: var(--primary);
    background: rgba(0, 242, 254, 0.07);
}
.upload-icon-wrapper {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.upload-main-text {
    font-size: 0.9rem;
    font-weight: 600;
}
.upload-main-text span {
    color: var(--primary);
    text-decoration: underline;
}
.upload-sub-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.dropzone-preview {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    max-height: 220px;
    display: flex;
    justify-content: center;
    background: #000;
}
.dropzone-preview img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
}
.preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#previewFilename {
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 0.35rem;
}
.btn-filter {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.btn-filter:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Platforms Grid */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.65rem;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 0.35rem;
}
.platform-card {
    background: rgba(16, 24, 40, 0.9);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.65rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
    position: relative;
}
.platform-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}
.platform-card.selected {
    border-color: var(--primary);
    background: rgba(0, 242, 254, 0.08);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}
.platform-icon {
    font-size: 1.4rem;
    margin-bottom: 0.15rem;
}
.platform-name {
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
}
.platform-badge {
    font-size: 0.62rem;
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
}
.platform-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: transparent;
}
.platform-card.selected .platform-check {
    background: var(--primary);
    border-color: var(--primary);
    color: #0b0f19;
}

/* RIGHT PANEL: Monitor */
.monitor-card {
    display: flex;
    flex-direction: column;
}
.live-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
}
.pulse-green {
    width: 7px;
    height: 7px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

/* Progress Box */
.monitor-progress-box {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.progress-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}
.progress-percent {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
}
.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00f2fe, #10b981);
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
}
.progress-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Results Summary */
.results-container {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    max-height: 180px;
    overflow-y: auto;
}
.results-container h3 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}
.results-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}
.result-item.success {
    border-left: 3px solid var(--accent-emerald);
}
.result-item.fail {
    border-left: 3px solid var(--accent-coral);
}
.result-link {
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.result-link:hover {
    text-decoration: underline;
}

/* Terminal Box */
.terminal-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    background: #060911;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}
.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.terminal-dots {
    display: flex;
    gap: 6px;
}
.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}
.btn-terminal-clear {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 0.75rem;
    cursor: pointer;
}
.btn-terminal-clear:hover {
    color: var(--text-main);
}
.terminal-body {
    flex: 1;
    padding: 0.85rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    overflow-y: auto;
    max-height: 350px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.log-line {
    word-break: break-all;
    line-height: 1.4;
}
.log-time {
    color: var(--text-dim);
    margin-right: 0.4rem;
}
.log-line.info { color: #cbd5e1; }
.log-line.success { color: #4ade80; }
.log-line.warn { color: #fbbf24; }
.log-line.error { color: #f87171; }

/* Table Section */
.tracker-card {
    margin-bottom: 2rem;
}
.table-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.search-input-wrapper i {
    position: absolute;
    left: 10px;
    font-size: 0.8rem;
    color: var(--text-dim);
}
.search-input-wrapper input {
    padding-left: 28px;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    font-size: 0.8rem;
    width: 190px;
}
.badge-count {
    background: rgba(138, 43, 226, 0.15);
    color: #c084fc;
    border: 1px solid rgba(138, 43, 226, 0.3);
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    font-weight: 700;
}

.table-responsive {
    overflow-x: auto;
}
.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.custom-table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-weight: 700;
    text-align: left;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-glass);
}
.custom-table td {
    padding: 0.8rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}
.custom-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}
.site-cell {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 600;
}
.site-icon {
    font-size: 1.15rem;
}
.cell-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}
.cell-badge.tier1 {
    background: rgba(0, 242, 254, 0.12);
    color: var(--primary);
}
.cell-badge.tier2 {
    background: rgba(138, 43, 226, 0.15);
    color: #c084fc;
}
.cell-badge.tier3 {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}
.link-truncated {
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
}
.link-truncated:hover {
    text-decoration: underline;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 7, 13, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 1.5rem;
}
.modal-card {
    width: 100%;
    max-width: 540px;
    background: rgba(16, 24, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    animation: modalAppear 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-sm {
    max-width: 420px;
}
@keyframes modalAppear {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-glass);
}
.btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}
.btn-close:hover {
    color: #fff;
}
.modal-body {
    padding: 1.5rem;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.alert-box {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    margin-bottom: 1.25rem;
}
.info-alert {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: #bae6fd;
}
.info-alert i {
    font-size: 1.1rem;
    color: var(--primary);
    margin-top: 2px;
}
.input-with-action {
    display: flex;
    position: relative;
}
.btn-addon {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0.4rem;
}
.btn-addon:hover {
    color: var(--text-main);
}
.help-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
.help-text a {
    color: var(--primary);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
}
.toast {
    background: rgba(16, 24, 40, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.2rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    animation: toastSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes toastSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.toast.success { border-left: 4px solid var(--accent-emerald); }
.toast.error { border-left: 4px solid var(--accent-coral); }
.toast.info { border-left: 4px solid var(--primary); }

/* Color Utilities */
.text-cyan { color: #00f2fe; }
.text-emerald { color: #10b981; }
.text-purple { color: #c084fc; }

/* Large Modal for Tutorial */
.modal-lg {
    max-width: 760px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}
.modal-lg .modal-body {
    overflow-y: auto;
    padding-top: 1rem;
}

/* Tutorial Tabs */
.tutorial-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.75rem;
}
.tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
}
.tab-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}
.tab-btn.active {
    background: rgba(0, 242, 254, 0.12);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
}

/* Tutorial Steps */
.tutorial-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.step-item {
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    transition: var(--transition-smooth);
}
.step-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.035);
}
.step-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00f2fe, #7928ca);
    color: #0b0f19;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}
.step-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.step-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}
.step-body p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}
.step-body code {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}
.step-tip {
    margin-top: 0.35rem;
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.15);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    color: #bae6fd;
}
.step-tip i {
    color: var(--primary);
    margin-top: 2px;
}

/* Concept Visual (Anti-Bentrok) */
.concept-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.concept-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.35);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
}
@media (max-width: 600px) {
    .concept-visual {
        flex-direction: column;
    }
}
.browser-badge {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
}
.browser-badge i {
    font-size: 2.2rem;
    margin-bottom: 0.25rem;
}
.browser-badge.chrome-user i {
    color: #4285F4;
}
.browser-badge.chrome-bot i {
    color: var(--primary);
}
.browser-badge strong {
    font-size: 0.9rem;
}
.browser-badge p {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.status-safe {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.12);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}
.status-bot {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(0, 242, 254, 0.12);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}
.divider-vs {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-dim);
    padding: 0.4rem 0.6rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}
.concept-explanation h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.concept-explanation ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.concept-explanation li {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.45;
}
.concept-explanation li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-emerald);
    font-weight: 800;
}

/* FAQ List */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.faq-item h4 {
    font-size: 0.88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.faq-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* ======================= EXPERIMENTAL: AI FLYER STUDIO ======================= */
.ai-studio-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15), rgba(0, 242, 254, 0.1));
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
    padding: 0.85rem 1.5rem;
    gap: 1rem;
}
.ai-studio-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.pulse-sparkle {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #8a2be2, #00f2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
    flex-shrink: 0;
}
.ai-studio-info strong {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.badge-experimental {
    font-size: 0.62rem;
    font-weight: 800;
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-full);
    background: rgba(138, 43, 226, 0.35);
    color: #c084fc;
    border: 1px solid rgba(138, 43, 226, 0.5);
    letter-spacing: 0.5px;
}
.ai-studio-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.btn-studio-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}
.btn-studio-toggle:hover {
    background: rgba(0, 242, 254, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

/* Studio Drawer */
.ai-studio-drawer {
    background: rgba(10, 15, 28, 0.95);
    border-bottom: 1px solid var(--border-glass);
    padding: 1.25rem 1.5rem;
    animation: drawerSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes drawerSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.studio-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.65rem;
}
.studio-tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
}
.studio-tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.studio-tab-btn.active {
    background: rgba(138, 43, 226, 0.2);
    border-color: #8a2be2;
    color: #c084fc;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

.studio-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}
@media (max-width: 650px) {
    .studio-options-grid {
        grid-template-columns: 1fr;
    }
}

.studio-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
@media (max-width: 650px) {
    .studio-action-row {
        flex-direction: column;
        align-items: stretch;
    }
}
.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    cursor: pointer;
}
.checkbox-inline input {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}
.btn-ai-generate {
    background: linear-gradient(135deg, #8a2be2, #00f2fe);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.65rem 1.3rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(138, 43, 226, 0.4);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-ai-generate:hover {
    box-shadow: 0 6px 25px rgba(0, 242, 254, 0.6);
    transform: translateY(-2px);
}

/* Samples Grid */
.sample-intro-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.samples-scroll-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 0.35rem;
}
.sample-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.sample-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 242, 254, 0.2);
}
.sample-card-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: #000;
}
.sample-card-info {
    padding: 0.5rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.sample-card-title {
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.btn-sample-pick {
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
}
.btn-sample-pick:hover {
    background: var(--primary);
    color: #0b0f19;
}

/* Studio Preview Box */
.studio-preview-box {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.preview-card-horizontal {
    display: flex;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1rem;
}
@media (max-width: 600px) {
    .preview-card-horizontal {
        flex-direction: column;
    }
}
.preview-thumb-wrapper {
    width: 150px;
    max-height: 200px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preview-thumb-wrapper img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}
.preview-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    justify-content: center;
}
.badge-source {
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(16, 185, 129, 0.15);
    color: #4ade80;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}
.preview-details h4 {
    font-size: 1rem;
    font-weight: 700;
}
.preview-details p {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.preview-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* ==========================================================================
   Browser Setup & Sosmed Login Modal Styles
   ========================================================================== */
.browser-status-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}
.browser-status-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 1;
    min-width: 250px;
}
.browser-status-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-main);
}
.browser-status-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.2rem 0 0 0;
}
.browser-status-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.sosmed-login-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.sosmed-login-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.9rem;
    transition: all 0.2s ease;
}
.sosmed-login-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 242, 254, 0.3);
    transform: translateY(-2px);
}
.sosmed-card-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.sosmed-card-info i {
    font-size: 1.4rem;
    width: 24px;
    text-align: center;
}
.sosmed-card-info strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text-main);
}
.sosmed-card-info span {
    font-size: 0.72rem;
    color: var(--text-dim);
}
.btn-xs {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
}
.setup-flow-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.step-badge-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-muted);
}
.step-num {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0b1120;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ==========================================================================
   AI VISION LIVE DEBUGGER & INSPECTOR STYLES
   ========================================================================== */
.vision-modal-card {
    max-width: 1140px;
    width: 96%;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-color: rgba(0, 242, 254, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 242, 254, 0.15);
}

.modal-sub {
    display: block;
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 0.15rem;
}

.vision-modal-body {
    overflow-y: auto;
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Control & Prompt Bar */
.vision-control-bar {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
}

.vision-prompt-container label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.vision-input-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.vision-input-row input {
    flex: 1;
    background: rgba(11, 17, 32, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: 0.65rem 1rem;
    color: var(--text-main);
    font-size: 0.88rem;
    transition: var(--transition-smooth);
}

.vision-input-row input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

/* Prompt Preset Chips */
.vision-chips-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.chip-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 600;
}

.btn-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-chip:hover {
    background: rgba(0, 242, 254, 0.12);
    border-color: rgba(0, 242, 254, 0.4);
    color: var(--primary);
    transform: translateY(-1px);
}

/* Main Grid Layout */
.vision-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 1.25rem;
    min-height: 480px;
}

@media (max-width: 960px) {
    .vision-grid {
        grid-template-columns: 1fr;
    }
}

/* Left: Viewport Stage */
.vision-col-left {
    display: flex;
    flex-direction: column;
    background: rgba(11, 17, 32, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.vision-view-tabs {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.7);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.4rem 0.75rem;
    gap: 0.5rem;
}

.vision-view-tabs .btn-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.vision-view-tabs .btn-tab.active {
    background: rgba(0, 242, 254, 0.12);
    border-color: rgba(0, 242, 254, 0.3);
    color: var(--primary);
}

.vision-meta-tag {
    margin-left: auto;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
}

.vision-image-stage {
    position: relative;
    flex: 1;
    min-height: 380px;
    max-height: 500px;
    overflow: auto;
    background: #060911;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.vision-image-stage img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
    transition: transform 0.2s ease;
    cursor: zoom-in;
}

.vision-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-dim);
    text-align: center;
    padding: 2rem;
}

.vision-placeholder p {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0;
}

.vision-placeholder span {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.vision-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 9, 17, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 10;
    color: var(--text-main);
    text-align: center;
    padding: 1.5rem;
}

.vision-image-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.7);
    border-top: 1px solid var(--border-glass);
    padding: 0.65rem 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.vision-coord-display {
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coord-label {
    color: var(--text-dim);
}

/* Right: AI Communication Panel */
.vision-col-right {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vision-api-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    padding: 0 0.25rem;
}

.vision-badge-model {
    font-family: var(--font-mono);
    color: var(--primary);
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.25);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
}

.vision-badge-time {
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.vision-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    max-height: 460px;
    padding-right: 0.25rem;
}

.vision-info-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.info-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.badge-state {
    font-size: 0.82rem;
    font-family: var(--font-mono);
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    width: fit-content;
}

.badge-modal {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.target-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.target-row label {
    color: var(--text-muted);
}

.badge-action {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
}

.callout-card {
    border-left: 3px solid var(--accent-amber);
    background: rgba(245, 158, 11, 0.05);
}

.feedback-text {
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--text-main);
    margin: 0;
}

/* Collapsible Pre Blocks */
.vision-collapsible {
    background: rgba(11, 17, 32, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.vision-collapsible summary {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.5rem 0.85rem;
    cursor: pointer;
    user-select: none;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vision-collapsible summary:hover {
    color: var(--text-main);
}

.vision-collapsible pre {
    margin: 0;
    padding: 0.75rem;
    max-height: 160px;
    overflow: auto;
    background: rgba(6, 9, 17, 0.7);
}

.vision-collapsible code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #a5f3fc;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Bottom History Timeline */
.vision-history-section {
    border-top: 1px solid var(--border-glass);
    padding-top: 1rem;
    margin-top: 0.25rem;
}

.vision-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.vision-history-header h4 {
    font-size: 0.85rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.vision-history-strip {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.history-card-item {
    flex: 0 0 160px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.history-card-item:hover, .history-card-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
    transform: translateY(-2px);
}

.history-card-thumb {
    width: 100%;
    height: 90px;
    border-radius: 4px;
    object-fit: cover;
    background: #000;
}

.history-card-meta {
    font-size: 0.72rem;
    display: flex;
    justify-content: space-between;
    color: var(--text-dim);
}

.history-card-tag {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Terminal Inline Vision Link */
.btn-terminal-vision-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.35);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-left: 0.4rem;
    vertical-align: middle;
    transition: var(--transition-smooth);
}

.btn-terminal-vision-link:hover {
    background: rgba(0, 242, 254, 0.25);
    box-shadow: 0 0 10px var(--primary-glow);
    transform: translateY(-1px);
    color: #fff;
}

