/* ═══════════════════════════════════════════════
   EagleEye — Premium Dark Design System
   ═══════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161e;
    --bg-card-hover: #1c1c26;
    --bg-input: #1a1a24;

    --border: #2a2a3a;
    --border-light: #333348;

    --text-primary: #e8e8f0;
    --text-secondary: #9898b0;
    --text-muted: #606078;

    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.25);
    --accent-subtle: rgba(99, 102, 241, 0.08);

    --green: #22c55e;
    --green-bg: rgba(34, 197, 94, 0.1);
    --red: #ef4444;
    --red-bg: rgba(239, 68, 68, 0.1);
    --amber: #f59e0b;
    --amber-bg: rgba(245, 158, 11, 0.1);
    --blue: #3b82f6;
    --blue-bg: rgba(59, 130, 246, 0.1);

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --shadow: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);

    --sidebar-width: 240px;
    --header-height: 64px;

    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

/* ════════════════════════════════════════
   LOGIN PAGE
   ════════════════════════════════════════ */

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.login-bg-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}
.orb-1 { width: 400px; height: 400px; background: #6366f1; top: -10%; left: -5%; animation-delay: 0s; }
.orb-2 { width: 350px; height: 350px; background: #8b5cf6; bottom: -10%; right: -5%; animation-delay: -7s; }
.orb-3 { width: 250px; height: 250px; background: #a855f7; top: 50%; left: 50%; animation-delay: -14s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.login-card {
    position: relative;
    z-index: 1;
    background: rgba(22, 22, 30, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}
.login-logo svg { margin-bottom: 12px; }
.login-logo h1 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #e8e8f0, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.login-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.login-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="url"],
select,
textarea {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.93rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
input::placeholder { color: var(--text-muted); }

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: #fff;
    box-shadow: 0 2px 12px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    background: var(--accent-subtle);
    color: var(--accent-hover);
    border-color: var(--accent);
}

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

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all var(--transition);
    border: none;
    background: none;
    cursor: pointer;
}
.btn-icon:hover {
    background: var(--accent-subtle);
    color: var(--accent-hover);
}

/* ── Alert ── */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    animation: slideIn 0.3s ease;
}
.alert-error {
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-footer {
    text-align: center;
    margin-top: 24px;
}
.login-version {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ════════════════════════════════════════
   APP LAYOUT
   ════════════════════════════════════════ */

.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}
.sidebar-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}
.nav-item:hover {
    background: var(--accent-subtle);
    color: var(--text-primary);
}
.nav-item.active {
    background: var(--accent-subtle);
    color: var(--accent);
}
.nav-item.active svg { color: var(--accent); }

.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 12px;
}

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

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

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
}

.user-meta { display: flex; flex-direction: column; }
.user-name { font-size: 0.85rem; font-weight: 600; }
.user-role {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Main content ── */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.main-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-left { display: flex; align-items: center; gap: 12px; }
.header-left h2 { font-size: 1.15rem; font-weight: 700; }
.header-breadcrumb {
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 3px 10px;
    background: var(--accent-subtle);
    border-radius: 999px;
}

.header-right { display: flex; align-items: center; gap: 8px; }
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
.status-indicator.online { background: var(--green); box-shadow: 0 0 8px rgba(34,197,94,0.4); }
.status-text { color: var(--text-secondary); font-size: 0.8rem; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ── Dashboard Grid ── */
.dashboard-grid {
    padding: 24px 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition);
}
.stat-card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-icon.servers { background: var(--blue-bg); color: var(--blue); }
.stat-icon.domains { background: rgba(99,102,241,0.1); color: var(--accent); }
.stat-icon.live { background: var(--green-bg); color: var(--green); }
.stat-icon.backups { background: var(--amber-bg); color: var(--amber); }

.stat-data { display: flex; flex-direction: column; }
.stat-value { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* ── Cards ── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.card-wide { grid-column: span 2; }

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.card-header h3 { font-size: 0.95rem; font-weight: 600; }

.card-body { padding: 20px; }

.empty-state {
    color: var(--text-muted);
    text-align: center;
    padding: 32px 16px;
    font-size: 0.9rem;
}

/* ── Lifecycle Pipeline ── */
.lifecycle-pipeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 0;
}
.pipeline-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 20px;
    border-radius: var(--radius);
    background: var(--bg-input);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.pipeline-stage.highlight {
    background: var(--green-bg);
    border-color: rgba(34, 197, 94, 0.3);
}
.stage-count { font-size: 1.2rem; font-weight: 700; }
.stage-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.pipeline-arrow { color: var(--text-muted); font-size: 1.1rem; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
    .card-wide { grid-column: span 2; }
}
@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .card-wide { grid-column: span 1; }
}

/* ════════════════════════════════════════
   CONTENT AREA & TABLES
   ════════════════════════════════════════ */

.content-area { padding: 24px 28px; }

.table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.data-table thead { background: var(--bg-secondary); }
.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
}
.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.data-table tbody tr { transition: background var(--transition); }
.data-table tbody tr:hover { background: var(--bg-card-hover); }
.data-table tbody tr:last-child td { border-bottom: none; }

.table-link { color: var(--text-primary); font-weight: 500; }
.table-link:hover { color: var(--accent-hover); }

.mono { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.85rem; }
.tag-code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    background: var(--accent-subtle);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
}

.action-group { display: flex; align-items: center; gap: 4px; }

.htmx-indicator { display: none; color: var(--accent); font-size: 1.1rem; }
.htmx-request .htmx-indicator { display: inline; }
.htmx-request.htmx-indicator { display: inline; }

/* ── Badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.badge-success { background: var(--green-bg); color: var(--green); }
.badge-error { background: var(--red-bg); color: var(--red); }
.badge-warning { background: var(--amber-bg); color: var(--amber); }
.badge-muted { background: rgba(96,96,120,0.1); color: var(--text-muted); }
.badge-subtle { background: var(--accent-subtle); color: var(--accent); }

/* ── Forms ── */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 720px;
}

.form-section { margin-bottom: 32px; }
.form-section:last-of-type { margin-bottom: 16px; }
.form-section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.form-grid .form-group:has(textarea) { grid-column: span 2; }

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.form-actions {
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239898b0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* ── Detail Views ── */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.detail-list { display: grid; gap: 0; }
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.detail-row:last-child { border-bottom: none; }
.detail-row dt { color: var(--text-secondary); font-size: 0.85rem; }
.detail-row dd { font-weight: 500; font-size: 0.9rem; }

.domain-mini-list { list-style: none; display: grid; gap: 0; }
.domain-mini-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.domain-mini-list li:last-child { border-bottom: none; }

.text-muted { color: var(--text-muted); font-size: 0.85rem; }

/* ── Danger Zone ── */
.card-danger { border-color: rgba(239, 68, 68, 0.2); }
.card-danger .card-header { border-bottom-color: rgba(239, 68, 68, 0.2); }
.card-danger .card-header h3 { color: var(--red); }

.danger-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.btn-danger {
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

/* ── Empty States ── */
.empty-state-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
}
.empty-state-large .empty-icon { color: var(--text-muted); margin-bottom: 16px; opacity: 0.4; }
.empty-state-large h3 { font-size: 1.1rem; margin-bottom: 8px; }
.empty-state-large p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }

@media (max-width: 1024px) {
    .detail-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════
   DOMAIN-SPECIFIC STYLES
   ════════════════════════════════════════ */

.table-link-subtle { color: var(--text-secondary); font-weight: 400; }
.table-link-subtle:hover { color: var(--accent-hover); }

.tag-code-sm {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.7rem;
    background: var(--accent-subtle);
    color: var(--accent);
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 4px;
}

.text-error { color: var(--red); font-size: 0.85rem; word-break: break-all; }

.filter-group select {
    font-size: 0.85rem;
    padding: 6px 28px 6px 10px;
    background-color: var(--bg-input);
}

/* ── Tabs ── */
.add-domain-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px;
    width: fit-content;
}
.tab-btn {
    padding: 8px 20px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}
.tab-btn.active {
    background: var(--accent);
    color: #fff;
}

/* ── Lifecycle Visual Track ── */
.lifecycle-visual { padding: 8px 0; }
.lifecycle-track {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    padding: 8px 0;
}
.lifecycle-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.lifecycle-dot .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--border);
    border: 2px solid var(--border);
    transition: all var(--transition);
}
.lifecycle-dot.completed .dot {
    background: var(--green);
    border-color: var(--green);
}
.lifecycle-dot.current .dot {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
    animation: pulse 2s ease-in-out infinite;
}
.dot-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    max-width: 70px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lifecycle-line {
    width: 24px;
    height: 2px;
    background: var(--border);
    flex-shrink: 0;
    transition: background var(--transition);
}
.lifecycle-line.completed { background: var(--green); }

.lifecycle-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ── Credential Mask ── */
.credential-mask {
    font-family: 'SF Mono', 'Fira Code', monospace;
    letter-spacing: 0.1em;
}

/* ════════════════════════════════════════
   OPERATIONS & BULK JOBS
   ════════════════════════════════════════ */

.bulk-action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.bulk-action-grid .card-body p { margin-bottom: 16px; }

/* ── Progress Bar ── */
.progress-bar-wrap {
    height: 8px;
    background: var(--bg-input);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 12px;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--green));
    border-radius: 99px;
    transition: width 0.3s ease;
}

.progress-stats {
    display: flex;
    gap: 24px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.progress-stats strong { color: var(--text-primary); }

.progress-log {
    max-height: 300px;
    overflow-y: auto;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
}
.log-entry {
    padding: 2px 0;
    border-bottom: 1px solid rgba(42,42,58,0.3);
}
.log-entry:last-child { border-bottom: none; }
.log-ok { color: var(--green); }
.log-error { color: var(--red); }

/* ── Settings ── */
.settings-form .form-actions {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
}

@media (max-width: 1024px) {
    .bulk-action-grid { grid-template-columns: 1fr; }
}

/* ── Quick Actions ── */
.quick-action-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
    text-decoration: none;
}
.quick-action-btn:hover {
    background: var(--accent-subtle);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}
.qa-icon { font-size: 1.2rem; }

/* ── PEM Key Upload ── */
.pem-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    background: var(--bg-input);
    cursor: pointer;
    transition: all var(--transition);
    min-height: 120px;
}
.pem-upload-area:hover, .pem-upload-area.drag-over {
    border-color: var(--accent);
    background: var(--accent-subtle);
}
.pem-upload-area.has-file {
    border-color: var(--color-success);
    border-style: solid;
    background: rgba(16, 185, 129, 0.05);
}
.pem-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}
.pem-upload-content svg { opacity: 0.5; }
.pem-upload-text { font-size: 0.95rem; font-weight: 500; color: var(--text-secondary); }
.pem-upload-hint { font-size: 0.8rem; color: var(--text-muted); }
.pem-upload-success {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-success);
    font-weight: 500;
}
.pem-filename {
    font-family: 'SF Mono', 'Cascadia Code', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.btn-sm { padding: 4px 10px; font-size: 0.8rem; }
