/* ============================================================
   ZIWOCONNECT v1.0.0 — Complete Styles (Single File)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ===== CSS Variables ===== */
:root {
    --navy: #030719;
    --gold: #cda757;
    --gray: #737373;
    --dark: #1e1e1e;
    --white: #ffffff;
    --black: #000000;
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --bg-primary: #030719;
    --bg-secondary: #0a0f2e;
    --bg-card: #111638;
    --bg-card-hover: #1a1f4a;
    --bg-input: rgba(10, 15, 46, 0.8);
    --border-color: rgba(205, 167, 87, 0.15);
    --border-color-strong: rgba(205, 167, 87, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #a0a3b5;
    --text-muted: #6b6e80;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --font-primary: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 9999px;
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --sidebar-width: 72px;
}

[data-theme="light"] {
    --bg-primary: #f8f9fc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f1f5;
    --bg-input: #f0f1f5;
    --border-color: rgba(3, 7, 25, 0.1);
    --border-color-strong: rgba(3, 7, 25, 0.2);
    --text-primary: #030719;
    --text-secondary: #4a4d5e;
    --text-muted: #8b8e9e;
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; height: 100%; }
body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.5;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    transition: background var(--transition-base), color var(--transition-base);
}
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; color: var(--text-primary); }
p { color: var(--text-secondary); line-height: 1.6; }
a { color: var(--gold); text-decoration: none; }
button { font-family: var(--font-primary); cursor: pointer; border: none; outline: none; background: none; font-size: inherit; color: inherit; }
input, select, textarea { font-family: var(--font-primary); font-size: 0.875rem; outline: none; border: none; background: none; color: var(--text-primary); }
ul, ol { list-style: none; }
::selection { background: rgba(205, 167, 87, 0.3); color: var(--white); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(205, 167, 87, 0.2); border-radius: 3px; }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Header ===== */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px var(--space-lg);
    padding-left: calc(var(--sidebar-width) + var(--space-lg));
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    height: 56px;
    min-height: 56px;
    z-index: 50;
}
.header-left { display: flex; align-items: center; gap: var(--space-md); }
.header-right { display: flex; align-items: center; gap: var(--space-md); }
.brand { font-size: 1.125rem; color: var(--gold); letter-spacing: -0.5px; }
.brand strong { font-weight: 700; }
.header-page-title { font-size: 0.875rem; color: var(--text-muted); }
.session-timer {
    font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-muted);
    padding: 6px 12px; background: var(--bg-card); border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}
.theme-btn {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-md); color: var(--text-muted);
}
.theme-btn:hover { background: var(--bg-card); color: var(--text-secondary); }

/* ===== Active Toggle ===== */
.active-toggle {
    display: flex; align-items: center; gap: var(--space-sm);
    padding: 8px 16px; border-radius: var(--radius-pill);
    font-size: 0.8125rem; font-weight: 600;
    cursor: pointer; transition: all var(--transition-base);
}
.active-toggle.inactive {
    background: rgba(107, 110, 128, 0.1); border: 1px solid rgba(107, 110, 128, 0.2); color: var(--text-muted);
}
.active-toggle.active {
    background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); color: var(--success);
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.1);
}
.active-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); transition: all var(--transition-base); }
.active-toggle.active .active-dot { background: var(--success); animation: pulse 2s infinite; }
@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* ===== Call Banner ===== */
.call-banner {
    display: none;
    align-items: center;
    gap: var(--space-md);
    padding: 10px var(--space-lg);
    padding-left: calc(var(--sidebar-width) + var(--space-lg));
    background: rgba(245, 158, 11, 0.08);
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}
.call-banner.call-active {
    background: rgba(34, 197, 94, 0.08);
    border-bottom-color: rgba(34, 197, 94, 0.2);
}
.call-banner-info { display: flex; align-items: center; gap: var(--space-sm); flex: 1; }
.call-banner-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-primary); }
.call-banner-number { font-family: var(--font-mono); font-size: 0.875rem; color: var(--text-secondary); }
.call-banner-timer { font-family: var(--font-mono); font-size: 1.125rem; font-weight: 500; color: var(--text-primary); }
.btn-call-end {
    padding: 6px 16px; border-radius: var(--radius-md); background: var(--error); color: white;
    font-size: 0.75rem; font-weight: 600; cursor: pointer;
}
.btn-call-end:hover { background: #dc2626; }
.btn-call-cancel {
    padding: 6px 10px; border-radius: var(--radius-md); background: rgba(239, 68, 68, 0.1); color: var(--error);
    font-size: 0.75rem; cursor: pointer;
}
.btn-call-cancel:hover { background: rgba(239, 68, 68, 0.2); }
.banner-ziwo-btn {
    background: var(--gold); color: #030719; border: none;
    padding: 6px 14px; border-radius: var(--radius-md);
    font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.banner-ziwo-btn:hover { opacity: 0.9; }

/* ===== Call Banner ===== extra */
.call-banner { height: 48px; min-height: 48px; }

/* ===== App Layout ===== */
.app-layout { display: flex; height: calc(100vh - 56px); overflow: hidden; }
.app-layout.with-banner { height: calc(100vh - 56px - 48px); }

/* ===== Sidebar ===== */
.sidebar {
    width: var(--sidebar-width); min-width: var(--sidebar-width);
    background: var(--bg-secondary); border-right: 1px solid var(--border-color);
    display: flex; flex-direction: column; align-items: center;
    padding: var(--space-md) 0; position: fixed; top: 0; left: 0;
    z-index: 100; height: 100%; overflow-y: auto;
}
.nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: var(--space-sm) var(--space-xs); border-radius: var(--radius-md);
    color: var(--text-muted); font-size: 0.625rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.5px; transition: all var(--transition-base);
    width: calc(100% - 16px); margin: 2px 8px; text-decoration: none; position: relative;
}
.nav-item svg { width: 22px; height: 22px; }
.nav-item:hover { color: var(--text-secondary); background: var(--bg-card); }
.nav-item.active { color: var(--gold); background: rgba(205, 167, 87, 0.08); }
.nav-item.active::before {
    content: ''; position: absolute; left: -8px; top: 50%; transform: translateY(-50%);
    width: 3px; height: 20px; background: var(--gold); border-radius: 0 2px 2px 0;
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    height: 100%;
    overflow: hidden;
}

/* ===== Page Sections ===== */
.page-section {
    height: 100%;
    overflow: hidden;
    animation: fadeIn 200ms ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== DASH Layout ===== */
#page-dash { display: flex; }
.dash-layout {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.dash-col {
    height: 100%;
    overflow-y: auto;
    padding: 16px;
    box-sizing: border-box;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.pipeline-col {
    flex: 1;
    min-width: 200px;
}

/* Column Resizers */
.col-resizer {
    width: 6px;
    cursor: col-resize;
    background: var(--border-color);
    transition: background 0.2s;
    flex-shrink: 0;
    position: relative;
}
.col-resizer:hover, .col-resizer.active {
    background: var(--gold);
}
.col-resizer::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 30px;
    background: var(--text-muted);
    border-radius: 1px;
    opacity: 0;
    transition: opacity 0.2s;
}
.col-resizer:hover::after {
    opacity: 1;
}

@media (max-width: 1200px) {
    .feed-col, #resizer-2 { display: none; }
}
@media (max-width: 900px) {
    .dash-layout { flex-direction: column; overflow-y: auto; }
    .dash-col { width: 100% !important; min-width: 0 !important; max-width: 100% !important; }
    .col-resizer { display: none; }
}

/* ===== Card ===== */
.card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); padding: var(--space-lg); transition: all var(--transition-base);
}
.card:hover { border-color: var(--border-color-strong); }
.card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: var(--space-md);
}
.card-title {
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; color: var(--text-muted);
}

/* ===== Dialpad ===== */
.dialpad-card { padding: 20px; }
.dialpad-input-row {
    display: flex; gap: 6px; align-items: center; margin-bottom: 12px;
}
.btn-plus {
    flex-shrink: 0; width: 40px; height: 40px; font-size: 1.25rem; font-weight: 700;
    border-radius: var(--radius-md); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
}
.btn-plus:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.btn-backspace {
    flex-shrink: 0; width: 40px; height: 40px;
    border-radius: var(--radius-md); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
}
.btn-backspace:hover { background: var(--bg-card-hover); color: var(--text-primary); }

#dialpad-input {
    flex: 1; width: 100%; text-align: center;
    font-family: var(--font-mono); font-size: 18px; font-weight: 500;
    padding: 12px; background: var(--bg-input); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); color: var(--text-primary); letter-spacing: 1px;
    transition: border-color var(--transition-base);
}
#dialpad-input:focus { border-color: var(--gold); }
#dialpad-input:disabled { opacity: 0.5; }

.dialpad-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); margin-bottom: 12px;
}
.dialpad-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 14px; border-radius: var(--radius-md);
    background: var(--bg-card); border: 1px solid var(--border-color);
    font-family: var(--font-mono); font-size: 1.25rem; font-weight: 500;
    color: var(--text-primary); cursor: pointer; transition: all var(--transition-base);
    user-select: none; line-height: 1;
}
.dialpad-btn:hover { background: var(--bg-card-hover); border-color: var(--border-color-strong); }
.dialpad-btn:active { transform: scale(0.96); }
.dialpad-btn small { font-size: 0.5rem; color: var(--text-muted); margin-top: 2px; letter-spacing: 2px; font-family: var(--font-primary); }

/* Dialpad actions */
.dialpad-actions { margin-top: 4px; }
.btn-call-start {
    width: 100%; padding: 14px; border-radius: var(--radius-md);
    background: var(--gold); color: var(--navy); font-size: 0.875rem; font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: var(--space-sm);
    cursor: pointer;
}
.btn-call-start:hover { background: #d4b06a; box-shadow: 0 4px 20px rgba(205, 167, 87, 0.3); }
.btn-call-start svg { width: 18px; height: 18px; }

.end-call-section { gap: 8px; }

/* ===== Recent Calls ===== */
.recent-calls-list { max-height: 200px; overflow-y: auto; }
.recent-call-item {
    display: flex; align-items: center; gap: var(--space-sm);
    padding: 8px 0; cursor: pointer; transition: background var(--transition-base); border-radius: var(--radius-md);
}
.recent-call-item:hover { background: var(--bg-card-hover); padding: 8px; margin: 0 -8px; }
.recent-call-dir { font-size: 0.875rem; width: 20px; text-align: center; }
.recent-call-dir.outbound { color: var(--info); }
.recent-call-dir.inbound { color: var(--success); }
.recent-call-dir.missed { color: var(--error); }
.recent-call-info { flex: 1; min-width: 0; }
.recent-call-number { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; color: var(--text-primary); }
.recent-call-time { font-size: 0.6875rem; color: var(--text-muted); }
.recent-call-dur { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-muted); }

/* ===== Pipeline ===== */
.pipeline-card { flex: 1; display: flex; flex-direction: column; }
.pipeline-list { flex: 1; overflow-y: auto; }
.deal-card {
    display: flex; align-items: center; gap: var(--space-md);
    padding: var(--space-md); border-radius: var(--radius-lg);
    background: var(--bg-card); border: 1px solid var(--border-color);
    cursor: pointer; transition: all var(--transition-base); margin-bottom: var(--space-sm);
}
.deal-card:hover { background: var(--bg-card-hover); border-color: var(--border-color-strong); }
.deal-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(205, 167, 87, 0.1); display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-weight: 600; font-size: 0.875rem; flex-shrink: 0;
}
.deal-info { flex: 1; min-width: 0; }
.deal-title { font-size: 0.875rem; font-weight: 500; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deal-stage { font-size: 0.75rem; color: var(--text-muted); }
.deal-amount { font-size: 0.6875rem; padding: 2px 8px; border-radius: var(--radius-pill); background: rgba(59, 130, 246, 0.1); color: var(--info); font-weight: 500; }

.btn-icon {
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-md); color: var(--text-muted);
}
.btn-icon:hover { background: var(--bg-card-hover); color: var(--text-primary); }

/* ===== Session Feed ===== */
.feed-card { flex: 1; display: flex; flex-direction: column; }
.session-feed-list { flex: 1; overflow-y: auto; max-height: calc(100vh - 220px); }
.badge-live {
    font-size: 0.5625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
    padding: 3px 8px; border-radius: var(--radius-pill);
    background: rgba(34, 197, 94, 0.1); color: var(--success);
}
.feed-entry {
    display: flex; gap: var(--space-sm); padding: 8px 0;
    border-bottom: 1px solid var(--border-color); font-size: 0.8125rem;
}
.feed-entry:last-child { border-bottom: none; }
.feed-time { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-muted); min-width: 42px; flex-shrink: 0; padding-top: 2px; }
.feed-body { flex: 1; color: var(--text-primary); line-height: 1.4; }
.feed-body small, .feed-sub { font-size: 0.6875rem; color: var(--text-muted); font-family: var(--font-mono); }
.feed-dir { font-size: 0.875rem; }
.feed-dir.outbound { color: var(--info); }
.feed-dir.inbound { color: var(--success); }
.feed-crm-link {
    color: var(--gold, #cda757); text-decoration: none;
    display: inline-flex; align-items: center; gap: 4px; transition: opacity 0.2s;
}
.feed-crm-link:hover { opacity: 0.8; text-decoration: underline; }
.feed-crm-new { color: var(--success, #22c55e); }
.feed-link-icon { font-size: 10px; opacity: 0.6; }

/* ===== INTEL Layout ===== */
#page-intel { overflow-y: auto; padding: var(--space-lg); }
.intel-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md);
}
@media (max-width: 900px) { .intel-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
    display: flex; flex-direction: column; gap: var(--space-xs);
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-family: var(--font-mono); font-size: 2rem; font-weight: 600; color: var(--text-primary); }

/* ===== Settings Layout ===== */
#page-settings { overflow-y: auto; padding: 20px; height: 100%; box-sizing: border-box; }
.settings-sections {
    display: flex; flex-direction: column; gap: 16px;
    max-width: 580px; margin: 0 auto; box-sizing: border-box;
}
.settings-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 20px; margin-bottom: 0;
    box-sizing: border-box; width: 100%; overflow: hidden;
}
.settings-card * { box-sizing: border-box; max-width: 100%; }
.settings-card h3 { font-size: 1rem; margin-bottom: var(--space-sm); }
.settings-desc { font-size: 0.75rem; color: var(--text-muted); margin-bottom: var(--space-lg); }
.settings-form { display: flex; flex-direction: column; gap: var(--space-xs); }
.settings-label {
    font-size: 0.75rem; font-weight: 500; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.5px; display: block;
}
.settings-input {
    width: 100%; padding: 10px 14px; background: var(--bg-input); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); color: var(--text-primary); font-size: 0.875rem;
    transition: all var(--transition-base); margin-bottom: var(--space-sm);
    box-sizing: border-box; max-width: 100%;
}
.settings-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(205, 167, 87, 0.1); }
.settings-hint { font-size: 0.75rem; color: var(--text-muted); margin-bottom: var(--space-md); }
.settings-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.settings-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0; border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem; color: var(--text-primary);
}
.settings-row:last-of-type { border-bottom: none; }
.settings-row-label { color: var(--text-secondary); }
.settings-row-value { font-family: var(--font-mono); color: var(--text-muted); font-size: 0.8125rem; }

/* Buttons */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
    padding: 10px 20px; border-radius: var(--radius-md); background: var(--gold); color: var(--navy);
    font-size: 0.875rem; font-weight: 600; transition: all var(--transition-base); cursor: pointer;
}
.btn-primary:hover { background: #d4b06a; box-shadow: 0 4px 16px rgba(205, 167, 87, 0.3); }
.btn-primary.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
    padding: 10px 20px; border-radius: var(--radius-md);
    background: transparent; color: var(--gold); border: 1px solid var(--gold);
    font-size: 0.875rem; font-weight: 500; transition: all var(--transition-base); cursor: pointer;
}
.btn-secondary:hover { background: rgba(205, 167, 87, 0.1); }
.btn-danger {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
    padding: 10px 20px; border-radius: var(--radius-md);
    background: rgba(239, 68, 68, 0.1); color: var(--error); border: 1px solid rgba(239, 68, 68, 0.2);
    font-size: 0.875rem; font-weight: 500; transition: all var(--transition-base); cursor: pointer;
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.2); }

/* Status badge */
.status-badge { font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: var(--radius-pill); }
.status-badge.logged-in { background: rgba(34, 197, 94, 0.1); color: var(--success); }
.status-badge.not-logged-in { background: rgba(239, 68, 68, 0.1); color: var(--error); }

#connection-status { margin-top: var(--space-sm); font-size: 0.8125rem; }

/* About */
.about-brand { font-size: 1.25rem; color: var(--gold); margin-bottom: var(--space-xs); }
.about-brand strong { font-weight: 700; }
.about-version { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); margin-left: var(--space-sm); }
.about-desc { font-size: 0.8125rem; color: var(--text-secondary); margin-top: var(--space-sm); }
.about-credit { font-size: 0.75rem; color: var(--text-muted); margin-top: var(--space-xs); }

/* ===== ZIWO Softphone Panel ===== */
.ziwo-panel {
    display: none;
    position: fixed; bottom: 20px; right: 20px; width: 400px; height: 650px;
    border-radius: 16px; overflow: hidden; z-index: 99999;
    background: #ffffff; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(205, 167, 87, 0.3);
    flex-direction: column;
    animation: ziwoSlideUp 300ms ease;
}
.ziwo-panel.visible { display: flex; }
@keyframes ziwoSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.ziwo-panel-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 16px; background: #030719; border-bottom: 1px solid rgba(205, 167, 87, 0.3);
    flex-shrink: 0;
}
.ziwo-panel-title { font-size: 11px; font-weight: 700; color: #cda757; letter-spacing: 1.5px; }
.ziwo-panel-controls { display: flex; gap: 4px; }
.ziwo-panel-controls button {
    background: none; border: none; color: #737373;
    cursor: pointer; font-size: 18px; padding: 2px 6px; border-radius: 4px; line-height: 1;
}
.ziwo-panel-controls button:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.panel-login-btn {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #22c55e !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    padding: 2px 10px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}
.panel-login-btn:hover { background: rgba(34, 197, 94, 0.3) !important; }

/* Panel Body */
.ziwo-panel-body {
    flex: 1;
    overflow: hidden;
    background: #1a1a2e;
}
.ziwo-panel-body ziwo-root {
    display: block;
    width: 100%;
    height: 100%;
}

/* ===== ZIWO Mode Badge ===== */
.ziwo-mode-badge {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.ziwo-mode-badge.mode-component {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.ziwo-mode-badge.mode-iframe {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ===== FAB ===== */
.ziwo-fab {
    display: none;
    position: fixed; bottom: 20px; right: 20px;
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, #cda757, #b8923e); color: #030719;
    border: none; cursor: pointer; z-index: 99998;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(205, 167, 87, 0.5);
    align-items: center; justify-content: center; transition: all 200ms ease;
}
.ziwo-fab.visible { display: flex; }
.ziwo-fab:hover { box-shadow: 0 6px 28px rgba(205, 167, 87, 0.6); transform: scale(1.05); }

/* ===== Toast ===== */
.toast-container {
    position: fixed; top: var(--space-lg); right: var(--space-lg);
    z-index: 100001; display: flex; flex-direction: column; gap: var(--space-sm);
}
.toast {
    padding: 12px 20px; border-radius: var(--radius-md);
    background: var(--bg-card); border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card); font-size: 0.875rem; color: var(--text-primary);
    animation: slideIn 200ms ease; max-width: 360px;
    transition: opacity 200ms ease, transform 200ms ease;
}
.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--error); }
.toast-info { border-left: 3px solid var(--info); }
.toast-warning { border-left: 3px solid var(--warning); }
@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===== ZIWO Login Form ===== */
#ziwo-login-result { margin-top: var(--space-sm); font-size: 0.8125rem; }

/* ===== Manual Log Section ===== */
.manual-log-section { padding: var(--space-md); }
.manual-log-section .card-header { margin-bottom: var(--space-sm); }
.log-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}
.log-row {
    margin-bottom: var(--space-sm);
}
.log-row .settings-label {
    margin-bottom: 2px;
}
.log-row .settings-input {
    margin-bottom: 0;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center; padding: var(--space-xl); color: var(--text-muted); font-size: 0.8125rem;
}

/* ===== Spinner ===== */
.spinner {
    width: 20px; height: 20px; border: 2px solid var(--border-color);
    border-top-color: var(--gold); border-radius: 50%;
    animation: spin 0.7s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
