/* ==========================================================
   ToniCore VPS Panel • Ultra-Modern Dark Theme & Glassmorphism
   ========================================================== */

:root {
    --bg-base: #07090e;
    --bg-card: rgba(17, 24, 39, 0.72);
    --bg-card-hover: rgba(24, 33, 53, 0.85);
    --bg-card-solid: #111827;
    --bg-sidebar: rgba(11, 15, 25, 0.95);
    --bg-topbar: rgba(11, 15, 25, 0.8);
    --bg-input: rgba(15, 21, 35, 0.85);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(99, 102, 241, 0.4);
    --border-color-focus: #6366f1;

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

    --accent-primary: #6366f1;
    --accent-primary-hover: #4f46e5;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --accent-gradient-cyan: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --accent-ai: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.12);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.12);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, 0.65);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);

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

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.14) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.12) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(6, 182, 212, 0.05) 0px, transparent 60%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* App Container Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 255px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    backdrop-filter: blur(20px);
    z-index: 100;
}

.sidebar-brand {
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-brand .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.sidebar-brand .brand-text {
    display: flex;
    flex-direction: column;
}

.sidebar-brand .brand-text .title {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-brand .brand-text .badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #818cf8;
}

.nav-menu {
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.nav-item svg {
    color: var(--text-dim);
    transition: color 0.2s;
}

.nav-item:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.nav-item:hover svg {
    color: var(--text-main);
}

.nav-item.active {
    color: #fff;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.nav-item.active svg {
    color: #818cf8;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-footer .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-footer .avatar {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.sidebar-footer .details {
    display: flex;
    flex-direction: column;
}

.sidebar-footer .uname {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.sidebar-footer .role {
    font-size: 0.7rem;
    color: var(--text-dim);
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: transparent;
}

/* Topbar */
.topbar {
    height: 64px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-topbar);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quick-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.quick-pill strong {
    color: var(--text-main);
    font-weight: 600;
}

.quick-pill .label {
    color: var(--text-dim);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.host-pill {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
    font-weight: 600;
    font-family: var(--font-mono);
}

/* Pulse animation on CTA */
.btn-pulse {
    animation: pulseButton 3s infinite ease-in-out;
}
@keyframes pulseButton {
    0%, 100% { box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35); }
    50% { box-shadow: 0 4px 20px rgba(168, 85, 247, 0.6); }
}

/* Announcement Banner */
.announcement-banner {
    margin: 20px 32px 0 32px;
    padding: 12px 18px;
    background: rgba(99, 102, 241, 0.09);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    color: #e0e7ff;
}

.announcement-banner .banner-icon {
    font-size: 1.2rem;
}

/* Cluster Summary Grid */
.cluster-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.summary-card {
    background: rgba(17, 24, 39, 0.65);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(12px);
    transition: transform 0.2s, border-color 0.2s;
}

.summary-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
}

.sum-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.04);
}

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

.sum-title {
    font-size: 0.76rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sum-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.text-success { color: #34d399 !important; }

/* Views & Containers */
.view-panel {
    display: none;
    padding: 24px 32px 48px 32px;
}

.view-panel.active {
    display: block;
    animation: fadeIn 0.25s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.dashboard-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.dashboard-header-row h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dashboard-header-row .subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Controls Toolbar (Search & Filter) */
.controls-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

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

.search-input-wrapper svg {
    position: absolute;
    left: 12px;
    color: var(--text-dim);
    pointer-events: none;
}

.search-input-wrapper input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 8px 14px 8px 36px;
    color: var(--text-main);
    font-size: 0.85rem;
    font-family: inherit;
    width: 230px;
    transition: all 0.2s ease;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    width: 260px;
}

.filter-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 2px;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    color: var(--text-main);
}

.filter-btn.active {
    background: rgba(99, 102, 241, 0.25);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Server Grid */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
    gap: 18px;
}

/* Server Card */
.server-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    backdrop-filter: blur(16px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.server-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.server-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.server-icon-wrap {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.server-card:hover .server-icon-wrap {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
}

.server-meta {
    flex: 1;
    min-width: 0;
}

.server-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.server-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.server-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Action Buttons */
.card-action-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.server-card:hover .card-action-btns {
    opacity: 1;
}

.btn-card-ai {
    background: var(--accent-ai);
    border: none;
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35);
    transition: all 0.2s;
}

.btn-card-ai:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.5);
}

.btn-card-ide {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    border: none;
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    transition: all 0.2s;
}

.btn-card-ide:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.55);
}

.btn-card-icon {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-card-icon:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #fff;
    border-color: var(--accent-primary);
}

/* Status Indicator */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
}

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

.status-dot.online {
    background-color: var(--success);
    box-shadow: 0 0 10px var(--success);
    animation: pulseGlow 2s infinite ease-in-out;
}

.status-dot.offline {
    background-color: var(--danger);
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

/* 3-Pill Status Row */
.server-pills-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 12px;
}

.stat-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.78rem;
    font-family: var(--font-mono);
    color: var(--text-main);
}

.stat-pill .pill-icon {
    color: var(--text-dim);
    display: flex;
    align-items: center;
}

.stat-pill:nth-child(1) .pill-icon { color: #38bdf8; }
.stat-pill:nth-child(2) .pill-icon { color: #c084fc; }
.stat-pill:nth-child(3) .pill-icon { color: #34d399; }

.stat-pill .pill-val {
    font-weight: 500;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 6, 12, 0.8);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: modalFadeIn 0.2s ease forwards;
}

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

.modal {
    background: #0e1422;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 45px rgba(0, 0, 0, 0.7);
    width: 100%;
    overflow: hidden;
}

.login-box {
    max-width: 400px;
    padding: 32px;
}

.brand-icon-wrap {
    width: 52px;
    height: 52px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 12px;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.45);
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-badge-pill {
    font-size: 0.65rem;
    font-weight: 700;
    color: #818cf8;
    background: rgba(99, 102, 241, 0.15);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    margin-left: 8px;
    letter-spacing: 0.05em;
}

.login-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.login-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Detail Modal */
.server-detail-modal {
    max-width: 980px;
    height: 85vh;
    display: flex;
    flex-direction: column;
}

.create-project-modal {
    max-width: 620px;
}

.modal-header {
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.modal-title-with-edit {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-title-with-edit h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.btn-icon-edit {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.btn-icon-edit:hover {
    color: #818cf8;
    background: rgba(99, 102, 241, 0.15);
}

.modal-server-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.modal-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.power-buttons {
    display: flex;
    gap: 8px;
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    gap: 8px;
}

.modal-tabs .tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    padding: 12px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-tabs .tab-btn:hover {
    color: var(--text-main);
}

.modal-tabs .tab-btn.active {
    color: #818cf8;
    border-bottom-color: #818cf8;
}

.server-detail-modal .tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.server-detail-modal .tab-content.active {
    display: flex;
    flex-direction: column;
}

/* Workspace Grid & Hero */
.workspace-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.workspace-hero-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ws-logo-icon {
    width: 46px;
    height: 46px;
    background: var(--accent-ai);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.workspace-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.workspace-path-preview {
    background: #080b12;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #93c5fd;
    word-break: break-all;
}

/* Template Selector in Project Creator */
.template-selector-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 6px;
}

.template-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.template-option input {
    position: absolute;
    opacity: 0;
}

.template-option .tpl-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.template-option .tpl-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: #fff;
}

.template-option .tpl-sub {
    font-size: 0.68rem;
    color: var(--text-dim);
}

.template-option:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(99, 102, 241, 0.3);
}

.template-option.selected {
    background: rgba(99, 102, 241, 0.15);
    border-color: #818cf8;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

/* Terminal & Console */
.terminal-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #080b12;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.terminal-toolbar {
    padding: 10px 14px;
    background: #0c101a;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}

.terminal-traffic-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.t-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.t-dot.red { background: #ef4444; }
.t-dot.yellow { background: #f59e0b; }
.t-dot.green { background: #10b981; }

.terminal-title {
    margin-left: 8px;
    color: var(--text-dim);
    font-size: 0.78rem;
    font-weight: 500;
}

.terminal-tools {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-tool-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-tool-sm:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Quick Command Chips */
.quick-cmd-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #090e17;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    overflow-x: auto;
}

.cmd-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.cmd-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #93c5fd;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s;
}

.cmd-chip:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    color: #fff;
}

.terminal-screen {
    flex: 1;
    padding: 14px 16px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: #cbd5e1;
    overflow-y: auto;
    line-height: 1.55;
    background: #060910;
    letter-spacing: -0.01em;
}

.terminal-screen::-webkit-scrollbar {
    width: 6px;
}
.terminal-screen::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.term-line {
    word-break: break-all;
    white-space: pre-wrap;
    padding: 1px 0;
}

.term-line.info { color: #38bdf8; }
.term-line.success { color: #34d399; font-weight: 500; }
.term-line.error { color: #f87171; font-weight: 500; }

/* Enhanced ANSI Styling */
.ansi-bold { font-weight: 700; color: #ffffff; }
.ansi-dim { opacity: 0.65; }
.ansi-italic { font-style: italic; }
.ansi-underline { text-decoration: underline; }

.ansi-gray, .ansi-bright-black { color: #94a3b8; }
.ansi-gold { color: #facc15; font-weight: 600; text-shadow: 0 0 10px rgba(250, 204, 21, 0.35); }
.ansi-cyan, .ansi-bright-cyan { color: #38bdf8; }
.ansi-yellow, .ansi-bright-yellow { color: #fde047; }
.ansi-green, .ansi-bright-green { color: #4ade80; }
.ansi-red, .ansi-bright-red { color: #f87171; }
.ansi-blue, .ansi-bright-blue { color: #60a5fa; }
.ansi-magenta, .ansi-bright-magenta { color: #f472b6; }
.ansi-white, .ansi-bright-white { color: #f8fafc; }

.log-tag-casino {
    display: inline-block;
    padding: 0 6px;
    border-radius: 4px;
    background: rgba(234, 179, 8, 0.16);
    border: 1px solid rgba(234, 179, 8, 0.4);
    color: #facc15;
    font-weight: 700;
    font-size: 0.76rem;
    margin-right: 5px;
    letter-spacing: 0.02em;
}
.log-tag-system {
    display: inline-block;
    padding: 0 6px;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-weight: 700;
    font-size: 0.76rem;
    margin-right: 5px;
}
.log-timestamp {
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
    margin-right: 4px;
}

.terminal-prompt {
    display: flex;
    align-items: center;
    background: #090e18;
    border-top: 1px solid var(--border-color);
    padding: 8px 12px;
}

.terminal-prompt .prompt-sign {
    color: #818cf8;
    font-family: var(--font-mono);
    font-weight: 700;
    margin-right: 10px;
}

.terminal-prompt input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.terminal-prompt input:focus {
    outline: none;
}

/* File Manager */
.filemanager-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 16px;
    flex: 1;
    min-height: 480px;
}

.file-tree {
    background: #0a0e18;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.15s;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.file-item .file-name-group {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item .f-size {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.file-editor {
    display: flex;
    flex-direction: column;
    background: #0a0e18;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.editor-header {
    padding: 10px 14px;
    background: #0d121f;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

.file-editor textarea {
    flex: 1;
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 14px;
    resize: none;
}

.file-editor textarea:focus {
    outline: none;
}

/* Security & Audit Cards */
.security-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 14px;
}

.security-status-card {
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid var(--border-color);
    padding: 18px;
    border-radius: var(--radius-md);
}

.sec-badge-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sec-icon {
    font-size: 1.5rem;
}

/* Modals & Forms */
.form-modal {
    max-width: 520px;
    padding: 24px;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.input-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.input-group input, .input-group select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: #fff;
    font-family: inherit;
    font-size: 0.88rem;
    transition: all 0.2s;
}

.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.danger-zone {
    border-color: rgba(239, 68, 68, 0.3) !important;
    background: rgba(239, 68, 68, 0.05) !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: var(--accent-primary-hover);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; }

.btn-warning { background: var(--warning); color: #000; font-weight: 700; }
.btn-warning:hover { background: #d97706; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

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

.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

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

.btn-link {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.78rem;
}

.btn-link:hover {
    color: var(--text-main);
}

/* Tables */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    backdrop-filter: blur(16px);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
}

.data-table th {
    padding: 12px 16px;
    color: var(--text-dim);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.key-token-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: #93c5fd;
}

.token-copy-box {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

.token-copy-box input {
    flex: 1;
    background: #080b12;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    color: #93c5fd;
    font-family: var(--font-mono);
    font-size: 0.88rem;
}

/* VPS Health Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.stat-box .stat-title {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.stat-box .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 8px;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
}

.stat-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Badges */
.badge-success {
    background: var(--success-bg);
    color: var(--success);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.badge-primary {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.badge-neutral {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
}

.toast {
    padding: 12px 18px;
    border-radius: var(--radius-md);
    background: #1e293b;
    border: 1px solid var(--border-color);
    color: #fff;
    font-size: 0.85rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    animation: toastSlideIn 0.25s ease forwards;
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-info { border-left: 4px solid var(--accent-primary); }

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.toast.fade-out {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.error-msg {
    color: var(--danger);
    font-size: 0.8rem;
    margin-bottom: 12px;
    min-height: 18px;
}

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.p-4 { padding: 16px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
pre {
    background: #090e17;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: #cbd5e1;
}

/* Live Indicator Pill */
.live-indicator-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: default;
}

.live-indicator-pill .pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: livePulse 1.2s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); opacity: 0.7; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); opacity: 0.7; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.btn-outline-cyan {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: #06b6d4;
    transition: all 0.2s ease;
}
.btn-outline-cyan:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: #06b6d4;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
    color: #fff;
}

/* Cloudflare View Styles */
.cf-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.cf-metric-card {
    background: rgba(17, 24, 39, 0.75);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    backdrop-filter: blur(12px);
    transition: transform 0.2s, border-color 0.2s;
}

.cf-metric-card:hover {
    border-color: rgba(246, 130, 31, 0.4);
    transform: translateY(-2px);
}

.cf-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cf-badge {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #f6821f;
    font-weight: 700;
}

.cf-status-pill {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 9999px;
    font-weight: 600;
}
.cf-status-pill.online { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.cf-status-pill.info { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.cf-status-pill.secure { background: rgba(139, 92, 246, 0.15); color: #a855f7; }

.cf-val {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cf-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.cf-sections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 900px) {
    .cf-sections-grid {
        grid-template-columns: 1fr;
    }
}

.card-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.card-section-title h3 {
    font-size: 1.05rem;
    color: #fff;
    margin: 0;
}

.cf-zones-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cf-zone-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.cf-zone-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(246, 130, 31, 0.3);
}

.cf-zone-info h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cf-zone-ns {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.tunnel-detail-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tunnel-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

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

.route-tag {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #10b981;
    padding: 2px 8px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

/* SSL Activation Card */
.ssl-activation-card {
    background: linear-gradient(135deg, rgba(16, 24, 40, 0.85), rgba(30, 27, 75, 0.6));
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.ssl-card-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.ssl-icon-wrap {
    font-size: 2.2rem;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ssl-text-wrap {
    flex: 1;
}

.ssl-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 800px) {
    .ssl-options-grid {
        grid-template-columns: 1fr;
    }
}

.ssl-option-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}

.opt-badge {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e0e7ff;
}

.code-snippet-box {
    background: #090e17;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 10px;
}

.code-snippet-box .snippet-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.code-snippet-box code {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: #38bdf8;
    word-break: break-all;
}

.cname-badge {
    background: rgba(246, 130, 31, 0.1);
    border: 1px solid rgba(246, 130, 31, 0.25);
    color: #f6821f;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin: 8px 0;
}

.install-steps-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.step-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #6366f1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    flex-shrink: 0;
}

/* Cloudflare Direct IP Alert Strip */
.cf-alert-strip {
    margin: 16px 32px 0 32px;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(239, 68, 68, 0.08) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1);
}

.cf-strip-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cf-strip-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.cf-strip-sub {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.cf-strip-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Cloudflare Verified Domain Cards in Modal */
.cf-status-box {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 14px 16px;
    border-radius: var(--radius-md);
}

.cf-status-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #10b981;
    font-size: 0.95rem;
}

.cf-pulse-green {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: livePulse 1.2s infinite;
}

.domain-direct-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.domain-direct-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
}

.domain-direct-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.d-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.d-item-icon {
    font-size: 1.2rem;
}

.d-item-left strong {
    display: block;
    color: var(--text-main);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

.d-item-left small {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.domain-verify-badge {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #10b981;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

.ip-notice-box {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
}

/* --- ToniCore Cyber Shield Logo & Fortress Styles --- */
.topbar-brand-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.12);
}

.top-mini-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.6));
}

.top-brand-text {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-main);
}

.top-brand-text strong {
    color: #38bdf8;
    text-transform: uppercase;
    font-size: 0.72rem;
    margin-left: 4px;
    letter-spacing: 0.06em;
}

.tc-logo-cyber {
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.5));
    animation: tcLogoPulse 4s infinite ease-in-out;
}

@keyframes tcLogoPulse {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.4)); }
    50% { filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.8)); }
}

.lock-symbol {
    font-size: 0.85rem;
    color: #10b981;
}

/* Fortress Card */
.fortress-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.8) 0%, rgba(10, 16, 30, 0.95) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 24px rgba(56, 189, 248, 0.05);
}

.fortress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.fortress-title-group {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.fortress-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.5));
}

.fortress-title-group h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #fff;
    font-weight: 700;
}

.fortress-title-group p {
    margin: 4px 0 0 0;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.fortress-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #64748b;
    display: inline-block;
    margin-right: 6px;
    transition: all 0.3s ease;
}

.fortress-status-dot.active {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

#btn-toggle-fortress.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #10b981;
}

.fortress-ip-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.accent-text {
    color: #38bdf8;
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.ip-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ip-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #e2e8f0;
    padding: 5px 12px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.current-badge {
    color: #10b981;
    font-weight: 700;
}

.btn-remove-ip {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0 2px;
    transition: transform 0.2s ease;
}

.btn-remove-ip:hover {
    transform: scale(1.2);
}

/* Sidebar Host & Action Enhancements */
.sidebar-host-badge {
    margin: 12px 16px 6px 16px;
    padding: 7px 12px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #10b981;
    font-family: var(--font-mono);
    font-weight: 600;
}

.sidebar-action-wrap {
    padding: 6px 16px 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-action-wrap .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 9px 16px;
}

/* Unified Single Workspace Button on Server Card */
.btn-card-workspace {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 60%, #7c3aed 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #ffffff;
    border-radius: var(--radius-sm);
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.02em;
}

.btn-card-workspace:hover {
    transform: translateY(-1px) scale(1.04);
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 60%, #8b5cf6 100%);
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.6);
    border-color: rgba(56, 189, 248, 0.8);
    color: #fff;
}

/* Terminal Endpoint Badge */
.terminal-endpoint-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-family: var(--font-mono);
    color: #38bdf8;
    margin-left: 12px;
}

.terminal-endpoint-badge .endpoint-link {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.terminal-endpoint-badge .endpoint-link:hover {
    color: #fff;
    text-decoration: underline;
}

.endpoint-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    display: inline-block;
}

.modal-server-sub .modal-link {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
}

.modal-server-sub .modal-link:hover {
    color: #fff;
    text-decoration: underline;
}

.sub-sep {
    margin: 0 6px;
    color: var(--text-dim);
}

/* Card Endpoint Row & Interactive Pill */
.server-endpoint-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 6px 0;
}

.card-endpoint-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.22);
    padding: 2px 9px;
    border-radius: var(--radius-sm);
    font-size: 0.74rem;
    font-family: var(--font-mono);
    color: #38bdf8;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 100%;
}

.card-endpoint-pill:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: rgba(56, 189, 248, 0.6);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.25);
}

.endpoint-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.85);
    display: inline-block;
    flex-shrink: 0;
}

.srv-endpoint-val {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


