/* INSTANTNODE UI FRAMEWORK v8.0 
   Full-Scale CSS for Auth, Dashboard, Tables & Components
*/

:root {
    --bg-main: #0a0a0a;
    --bg-card: rgba(18, 18, 18, 0.7);
    --border: rgba(255, 255, 255, 0.05);
    --accent: #3b82f6;
    --success: #10b981;
    --danger: #ef4444;
    --text-primary: #ffffff;
    --text-mute: #888888;
    --radius: 12px;
}

body.dn-auth-scene,
body.dn-body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* Das markante Punkt-Gitter aus dem Screenshot */
.dn-bg {
    position: fixed;
    inset: 0;
    background-size: 24px 24px;
    z-index: -2;
}

.dn-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    z-index: -1;
    pointer-events: none;
}

/* Status Badge unten rechts */
.dn-status-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-mute);
    z-index: 1000;
}

.dn-status-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 12px;
}

/* Typography aus dem Screenshot */
h1 {
    font-weight: 900;
    letter-spacing: -2px;
    font-size: 2.5rem;
    margin: 0;
}

.dn-kicker {
    color: var(--accent);
    font-family: monospace;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Dashboard Cards & Layout */
.dn-main-content {
    padding: 40px;
    flex: 1;
}

.dn-grid-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dn-instance-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
}

:root {
    /* Colors */
    --bg-main: #0a0a0a;
    --bg-card: #111111;
    --bg-input: #0d0d0d;
    --border: #1f1f1f;
    --border-bright: #2a2a2a;

    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.2);

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #475569;

    --danger: #ef4444;
    --success: #10b981;

    /* Layout */
    --sidebar-width: 260px;
    --radius: 6px;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --- Base Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Background System (Procedural Dot Grid) --- */
.dn-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(var(--border) 1px, transparent 0);
    background-size: 24px 24px;
}

.dn-glow {
    position: fixed;
    top: 0;
    right: 0;
    width: 50vw;
    height: 50vh;
    pointer-events: none;
    z-index: -1;
}

/* --- Branding & Top Bar --- */
.dn-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.8);
    z-index: 100;
}

.dn-brand {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    text-decoration: none;
}

/* --- Login / Auth Layout --- */
.dn-auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 60px;
}

.dn-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.dn-card h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* --- Forms --- */
.dn-form-group {
    margin-bottom: 1.25rem;
}

.dn-turnstile-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

.dn-turnstile-wrap .cf-turnstile {
    display: flex;
    justify-content: center;
}

.dn-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.dn-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-bright);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    outline: none;
    transition: all 0.2s;
}

.dn-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.dn-btn {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 0.5rem;
}

.dn-btn:hover {
    opacity: 0.9;
}

.dn-auth-footer {
    margin-top: 1.5rem;
    font-size: 0.8rem;
}
.dn-bg-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
}
}
.dn-link {
    color: var(--accent);
    text-decoration: none;
}

.dn-link:hover {
    text-decoration: underline;
}

/* --- Status Toast (Bottom Right) --- */
.dn-status-badge {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: #1a1a1a;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.dn-status-icon {
    width: 14px;
    height: 14px;
    background: var(--danger);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
}

/* --- Dashboard & Sidebar --- */
.dn-layout {
    display: flex;
    padding-top: 60px;
}

.dn-sidebar {
    width: var(--sidebar-width);
    height: calc(100vh - 60px);
    border-right: 1px solid var(--border);
    padding: 1.5rem;
    background: rgba(10, 10, 10, 0.5);
}

.dn-nav-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: background 0.2s;
}

.dn-nav-item.active {
    background: #fff;
    color: #000;
    font-weight: 700;
}

/* --- Tables --- */
.dn-table-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    margin-top: 2rem;
    overflow: hidden;
}

.dn-table {
    width: 100%;
    border-collapse: collapse;
}

.dn-table th {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.dn-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

/* --- Mobile Utility --- */
@media (max-width: 768px) {
    .dn-sidebar {
        display: none;
    }

    .dn-auth-wrapper {
        padding: 1rem;
    }

    .dn-card {
        padding: 1.5rem;
    }

    .dn-table-responsive {
        overflow-x: auto;
    }
}

/* --- Utilities --- */
.mt-1 {
    margin-top: 0.25rem;
}

.text-mute {
    color: var(--text-muted);
}

/* --- Social Login Extensions --- */

/* Der "OR" Trenner */
.dn-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dn-divider::before,
.dn-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.dn-divider:not(:empty)::before {
    margin-right: 1rem;
}

.dn-divider:not(:empty)::after {
    margin-left: 1rem;
}

/* Das Grid für die Icons */
.dn-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Die Social-Buttons (Icons) */
.dn-btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border: 1px solid var(--border-bright);
    color: var(--text-secondary);
    padding: 0.8rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
}

.dn-btn-social:hover {
    background: var(--bg-card);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-1px);
}

/* Optional: Dezentere Alerts für EJS */
.dn-alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
}

.dn-alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

/* Sidebar Layout Fixes */
.panel-sidebar {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

/* Wallet Card Styling */
.dn-balance-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.dn-balance-icon {
    width: 35px;
    height: 35px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.dn-balance-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

/* Content Area Header */
.dn-main-content {
    flex: 1;
    padding: 40px;
    position: relative;
    overflow-y: auto;
}

.dn-content-header h1 {
    font-size: 2.2rem;
    font-weight: 850;
    letter-spacing: -1.5px;
    margin-bottom: 5px;
}

.dn-activity-row {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 15px;
}

.dn-activity-icon {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Bento Grid Layout */
.dn-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

/* Instance List */
.dn-instance-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dn-instance-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
}

.dn-instance-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}

.dn-instance-status-pill {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.dn-instance-status-pill.active {
    background: var(--success);
    color: var(--success);
}

.dn-instance-status-pill.offline {
    background: var(--danger);
    color: var(--danger);
}

/* Timeline Activity */
.dn-activity-timeline {
    position: relative;
    padding-left: 20px;
}

.dn-activity-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.dn-timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.dn-timeline-marker {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--text-muted);
    border: 2px solid var(--bg-main);
}

.dn-timeline-marker.credit {
    background: var(--success);
}

.dn-timeline-marker.debit {
    background: var(--danger);
}

/* Responsive */
@media (max-width: 1200px) {
    .dn-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Core */
.dn-sidebar {
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(25px);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Header Branding */
.dn-sidebar-header {
    padding: 30px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.dn-sidebar-logo {
    font-size: 1.5rem;
    color: #fff;
}

.dn-sidebar-brand h2 {
    font-size: 1.1rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: -0.5px;
}

.dn-sidebar-brand p {
    font-size: 0.7rem;
    color: var(--text-mute);
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
}

/* Navigation Items */
.dn-sidebar-nav {
    flex: 1;
    padding: 0 15px;
}

.dn-nav-section {
    margin-bottom: 25px;
}

.dn-nav-title {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-mute);
    text-transform: uppercase;
    padding: 0 15px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.dn-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-mute);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.dn-nav-item i {
    width: 18px;
    text-align: center;
}

.dn-nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.dn-nav-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Footer & User Badge */
.dn-sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.dn-connection-status {
    font-size: 0.7rem;
    color: var(--text-mute);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-weight: 700;
}

.dn-status-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
}

.dn-user-badge {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dn-user-avatar {
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.8rem;
}

.dn-user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dn-username {
    font-size: 0.8rem;
    font-weight: 800;
    color: #fff;
}

.dn-user-role {
    font-size: 0.65rem;
    color: var(--text-mute);
}

.dn-footer-links {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.dn-footer-links a {
    font-size: 0.65rem;
    color: var(--text-mute);
    text-decoration: none;
}

/* Layout Container */
.dn-main-content {
    padding: 60px;
    /* Mehr Platz zu den Rändern */
    max-width: 1600px;
    margin: 0 auto;
}

.dn-huge-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -3px;
    margin: 10px 0;
}

/* Mini Stats Grid */
.dn-mini-stats {
    display: flex;
    gap: 30px;
    margin: 40px 0;
}

.dn-mini-stat {
    font-size: 0.85rem;
    color: var(--text-mute);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dn-mini-stat strong {
    color: #fff;
    font-size: 1rem;
}

/* Dashboard Grid System */
.dn-dashboard-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    /* Fixe Breite für die Activity-Spalte */
    gap: 50px;
    align-items: start;
}

/* Instance Cards */
.dn-instance-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 18px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
    transition: 0.2s ease;
}

.dn-instance-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(5px);
}

.dn-status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.is-online {
    background: #10b981;
    box-shadow: 0 0 12px #10b981;
}

.is-offline {
    background: #ef4444;
}

.dn-instance-name {
    font-weight: 800;
    font-size: 1.1rem;
    display: block;
}

.dn-instance-ip {
    font-size: 0.8rem;
    color: var(--text-mute);
    font-family: monospace;
}

/* Activity Timeline */
.dn-timeline-item {
    position: relative;
    padding-left: 25px;
    padding-bottom: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.dn-timeline-dot {
    position: absolute;
    left: -5px;
    top: 5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
}

/* --- Dashboard & Server Selection Radikal Neu --- */

/* 1. DEPLOY INSTANCE: Neu als "Action-Card" im Header */
.dn-deploy-card {
    display: flex;
    align-items: center;
    background: rgba(59, 130, 246, 0.03);
    border: 1px solid rgba(59, 130, 246, 0.1);
    padding: 15px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #fff;
    max-width: 320px;
}

.dn-deploy-card:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--accent);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

.dn-deploy-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dn-deploy-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dn-deploy-label {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.3px;
}

.dn-deploy-desc {
    font-size: 0.75rem;
    color: var(--text-mute);
}

.dn-deploy-arrow {
    margin-left: 15px;
    font-size: 1rem;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.dn-deploy-card:hover .dn-deploy-arrow {
    transform: translateX(5px);
    color: #fff;
}


/* 2. VIEW ALL: Neu als minimalistischer, flacher Button */
.dn-btn-view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-mute);
    padding: 6px 12px;
    border-radius: 100px;
    /* Pille-Shape */
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.dn-btn-view-all:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}


/* 3. SERVER SELECTION (Pfeile & Interaktion) NEU */
.dn-instance-item {
    /* ... bestehende Styles ... */
    text-decoration: none;
    /* WICHTIG: A-Tag Reset */
    color: #fff;
    /* WICHTIG: A-Tag Reset */
}

/* Neuer OS-Icon Slot */
.dn-instance-os-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
    width: 30px;
    text-align: center;
}

/* Neuer PFEIL (Action Indicator) als SVG */
.dn-instance-action {
    margin-left: auto;
    color: var(--text-muted);
    opacity: 0.5;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dn-instance-item:hover .dn-instance-action {
    opacity: 1;
    color: var(--accent);
    transform: translate(2px, -2px);
    /* Diagonaler Move */
}

/* Hover-Effekt für die gesamte Zeile */
.dn-instance-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
    /* Subtiler Slide-In */
}

.code-editor {
    background: rgba(0, 0, 0, 0.4) !important;
}

.code-gutter {
    color: #555 !important;
    /* Dunkelgraue Zeilenzahlen auf fast schwarzem Grund */
    font-weight: 600;
}

.code-highlight {
    color: #d1d5db !important;
    /* Heller Text für die Ansicht */
}

/* Hover Effekt für Dateizeilen wie im SSH Terminal */
.dn-file-row {
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.dn-file-row:hover {
    background: rgba(57, 125, 242, 0.05) !important;
}

.dn-file-row i {
    font-size: 1.1rem;
}

.dn-breadcrumb-item {
    color: var(--text-mute);
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.2s;
}

.dn-breadcrumb-item:hover {
    color: var(--accent);
}

.dn-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    /* Links flexibel, rechts 380px fest */
    gap: 40px;
    margin-top: 30px;
    align-items: start;
}

@media (max-width: 1100px) {
    .dn-dashboard-grid {
        grid-template-columns: 1fr;
        /* Auf Handys untereinander */
    }
}

.dn-timeline {
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    padding-left: 20px;
    margin-left: 5px;
}

.dn-timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.dn-timeline-dot {
    position: absolute;
    left: -25px;
    top: 5px;
    width: 9px;
    height: 9px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.dn-tx-desc {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
}

.dn-tx-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-top: 4px;
}

.dn-tx-amount.is-minus {
    color: #ef4444;
}

.dn-tx-amount.is-plus {
    color: #10b981;
}

.dn-tx-date {
    color: var(--text-mute);
}

.dn-content-header-main {
    display: flex;
    justify-content: space-between;
    /* Schiebt Button nach rechts */
    align-items: flex-start;
    /* Hält beide oben auf einer Linie */
    margin-bottom: 40px;
    width: 100%;
}

.dn-header-actions-top {
    padding-top: 15px;
    /* Gleicht den Abstand zur großen H1-Schrift aus */
}

/* Der leise Button-Stil */
.dn-btn-quiet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-mute);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dn-btn-quiet:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Damit es auf kleinen Bildschirmen nicht kaputt geht */
@media (max-width: 768px) {
    .dn-content-header-main {
        flex-direction: column;
        gap: 20px;
    }
}

/* Container Page Specifics */
.dn-deploy-group {
    display: flex;
    gap: 10px;
}

.dn-infra-section {
    margin-bottom: 30px;
}

.dn-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 5px;
}

.dn-section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-mute);
    font-weight: 800;
}

.dn-count-badge {
    font-size: 0.7rem;
    color: var(--text-mute);
    background: rgba(255, 255, 255, 0.03);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Die Zeile (Instance Item) */
.dn-instance-item {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
}

.dn-instance-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.dn-instance-status-pill {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 20px;
}

.dn-instance-status-pill.active {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.dn-instance-status-pill.offline {
    background: #ef4444;
}

.dn-instance-info {
    flex: 1;
}

.dn-instance-name {
    font-weight: 700;
    font-size: 1rem;
    display: block;
}

.dn-instance-meta {
    font-size: 0.8rem;
    color: var(--text-mute);
    font-family: monospace;
}

.dn-instance-resources {
    font-size: 0.85rem;
    color: var(--text-mute);
    margin: 0 30px;
    font-weight: 500;
}

.dn-instance-action {
    opacity: 0.3;
    transition: 0.2s;
}

.dn-instance-item:hover .dn-instance-action {
    opacity: 1;
    color: var(--accent);
}

/* Styling für die neuen Side-Elemente */
.dn-side-stat {
    margin-bottom: 20px;
}

.dn-stat-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.dn-stat-info span {
    color: var(--text-mute);
}

.dn-progress-mini {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.dn-progress-bar {
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.dn-action-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    margin-bottom: 10px;
    transition: 0.2s;
}

.dn-action-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}

.dn-action-item i {
    color: var(--text-mute);
    font-size: 1.1rem;
}

.dn-action-item strong {
    display: block;
    font-size: 0.85rem;
}

.dn-action-item span {
    font-size: 0.7rem;
    color: var(--text-mute);
}

.dn-create-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.dn-card-dark {
    border-radius: 16px;
    padding: 30px;
}

/* Custom Slider Styling */
.dn-range {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
}

.dn-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent);
}

.dn-slider-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Billing Sidebar */
.dn-summary-card {
    background: #fff;
    color: #000;
    border-radius: 16px;
    padding: 30px;
    position: sticky;
    top: 30px;
}

.dn-summary-card .dn-section-label {
    color: rgba(0, 0, 0, 0.5);
}

.dn-total-amount {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: -2px;
}

.dn-btn-primary-large {
    width: 100%;
    padding: 15px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s;
}

.dn-btn-primary-large:hover {
    transform: scale(1.02);
}

.dn-preset-group-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-mute);
    margin-bottom: 12px;
    font-weight: 800;
}

.dn-presets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

/* Badges für die Pläne */
.dn-badge-blue,
.dn-badge-green,
.dn-badge-gold {
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 8px;
    display: inline-block;
}

.dn-badge-blue {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.dn-badge-green {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.dn-badge-gold {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

/* Ultra Plan Styling */
.full-width {
    grid-column: span 3;
}

.ultra-glow {
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, transparent 100%) !important;
}

.dn-preset-specs-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Sidebar Card Base */
.dn-summary-card {
    background: #ffffff;
    color: #000000;
    padding: 40px 30px;
    /* Viel Innenabstand */
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 40px;
}

.dn-section-label-dark {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
}

/* Billing Toggle */
.dn-billing-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.05);
    padding: 6px;
    border-radius: 14px;
    gap: 4px;
}

.dn-toggle-option {
    flex: 1;
    cursor: pointer;
}

.dn-toggle-option input {
    display: none;
}

.dn-toggle-option span {
    display: block;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: 0.2s;
}

.dn-toggle-option input:checked+span {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Breakdown Items */
.dn-summary-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dn-summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
}

.dn-item-label {
    color: rgba(0, 0, 0, 0.5);
}

.dn-summary-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 10px 0;
}

/* Price Focus Area */
.dn-price-focus {
    padding: 15px 0;
}

.dn-focus-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.3);
}

.dn-focus-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.dn-huge-price {
    font-size: 3.2rem;
    /* Extrem groß für Fokus */
    font-weight: 900;
    letter-spacing: -3px;
    margin: 0;
    color: #000;
}

.dn-focus-cycle {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.4);
}

/* Voucher & Button */
.dn-input-wrapper-light {
    position: relative;
    display: flex;
    align-items: center;
}

.dn-input-wrapper-light i {
    position: absolute;
    left: 15px;
    color: rgba(0, 0, 0, 0.3);
}

.dn-input-wrapper-light input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    font-weight: 600;
    outline: none;
    transition: 0.2s;
}

.dn-input-wrapper-light input:focus {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.03);
}

.dn-btn-checkout {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 20px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dn-btn-checkout:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.dn-summary-footer {
    text-align: center;
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.4);
    font-weight: 600;
    line-height: 1.4;
}

/* Abstände zwischen den Haupt-Karten (Links) */
.dn-create-settings section {
    margin-bottom: 40px !important;
    /* Mehr Abstand zwischen Plan-Wahl und Settings */
}

/* Abstand zwischen Voucher und Deploy Button (Rechts) */
.dn-summary-actions {
    display: flex;
    flex-direction: column;
    gap: 25px;
    /* Erhöht den Abstand zwischen Input und Button deutlich */
}

/* Dropdown / Select Styling */
.dn-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    outline: none;
    appearance: none;
    /* Entfernt Standard-Browser-Pfeil */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    transition: 0.2s;
}

.dn-select:focus {
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Fix für die Options (Dunkler Hintergrund im Dropdown) */
.dn-select option {
    background: #1a1a1a;
    /* Muss hart gesetzt sein für manche Browser */
    color: #fff;
}

/* --- DONAREV DASHBOARD CORE LAYOUT --- */

:root {
    --accent: #3d44ff;
    --bg-dark: #0f0f12;
    --card-bg: rgba(20, 20, 23, 0.8);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-muted: rgba(255, 255, 255, 0.6);
}

/* Haupt-Container Grid */
.dn-create-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    /* Linke Seite flexibel, rechts fixiert */
    gap: 30px;
    align-items: start;
    margin-top: 20px;
}

/* Responsive Fix für Mobile */
@media (max-width: 1100px) {
    .dn-create-grid {
        grid-template-columns: 1fr;
    }

    .dn-create-sidebar {
        order: -1;
        /* Sidebar oben anzeigen auf Mobile */
    }
}

/* Linke Spalte Karten */
.dn-card-dark {
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
}

.dn-section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Rechte Sidebar (Die weiße Karte) */
.dn-summary-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    color: #000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 20px;
}

.dn-section-label-dark {
    color: #000;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* Preis Anzeige */
.dn-price-focus {
    margin: 20px 0;
}

.dn-huge-price {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin: 0;
    color: #000;
}

.dn-focus-cycle {
    color: #666;
    font-weight: 600;
    font-size: 1rem;
}

/* Buttons */
.dn-btn-checkout {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.dn-btn-checkout:hover {
    background: #222;
    transform: translateY(-2px);
}

/* Status Dots */
.dn-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.is-online {
    background: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.is-offline {
    background: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

/* SSH & Inputs */
.dn-ssh-block {
    background: #000;
    border: 1px solid var(--accent);
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dn-ssh-block code {
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

.dn-input-wrapper-light {
    position: relative;
    background: #f4f4f7;
    border-radius: 12px;
    overflow: hidden;
}

.dn-input-wrapper-light i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.dn-input-wrapper-light input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 14px 14px 14px 45px;
    font-weight: 700;
    color: #000;
}

/* Der Save Button (Dark UI) */
.dn-btn-primary-glow {
    background: #397df2;
    color: #fff;
    border: none;
    padding: 0 25px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(57, 125, 242, 0.2);
}

.dn-btn-primary-glow:hover {
    background: #4a8dfa;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(57, 125, 242, 0.4);
}

/* Der Extend Button (White Sidebar) */
.dn-btn-checkout {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 15px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.dn-btn-checkout:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Modal Input Styling */
.dn-modal-input {
    border: none;
    background: transparent;
    font-size: 1.8rem;
    font-weight: 900;
    width: 80px;
    outline: none;
    color: #000;
}

.dn-modal-overlay {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    /* Das macht den Hintergrund milchig-unscharf */
    transition: all 0.3s ease;
}

/* 1. Die 3 Control Buttons weiter auseinander */
.dn-action-buttons-row {
    display: flex;
    gap: 18px;
    /* Von 12px auf 18px erhöht für mehr "Luft" */
}

.dn-btn-square {
    height: 62px;
    border-radius: 16px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    width: 100%;
}

/* Hover-Effekt für die 3 Buttons */
.dn-btn-square:hover {
    transform: translateY(-4px);
    filter: brightness(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* 2. Style für den Auto-Renew Button */
.dn-btn-link-gray {
    background: rgba(0, 0, 0, 0.04);
    /* Ganz leichter Hintergrund */
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #777;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    width: 100%;
    margin-top: 10px;
}

.dn-btn-link-gray:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Falls Auto-Renew AKTIV ist, könnte man eine Klasse hinzufügen (optional) */
.is-renew-active {
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.2);
}

/* Der Container für das SSH-Terminal (falls noch nicht definiert) */
.dn-ssh-terminal {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Fira Code', 'Courier New', monospace;
}

/* Der Copy Button Style */
.dn-copy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dn-copy-btn i {
    font-size: 0.9rem;
}

.dn-copy-btn:hover {
    background: #397df2;
    /* Dein Blau-Ton */
    color: #fff;
    border-color: #397df2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(57, 125, 242, 0.4);
}

.dn-copy-btn:active {
    transform: translateY(0);
    filter: brightness(0.9);
}

/* Security Note Blur Style */
.dn-input-password-blur {
    filter: blur(5px);
    transition: filter 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

/* Blur aufheben wenn man mit der Maus drüber geht oder reinklickt */
.dn-input-password-blur:hover,
.dn-input-password-blur:focus {
    filter: blur(0);
    background: rgba(255, 255, 255, 0.1);
    /* Leicht helleres Feedback */
}

/* Optional: Ein kleines Icon oder Hinweis, dass es geblurred ist */
.dn-input-password-blur::placeholder {
    filter: blur(0);
    /* Placeholder soll lesbar bleiben */
}

/* ── Suspended Warning ── */
.dn-suspended-warning {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 22px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(127, 29, 29, 0.55), rgba(17, 17, 17, 0.95));
    border: 1px solid rgba(248, 113, 113, 0.24);
}

.dn-suspended-warning__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 113, 113, 0.14);
    color: #fca5a5;
    font-size: 1.2rem;
    flex: 0 0 auto;
}

.dn-suspended-warning__content {
    flex: 1;
}

.dn-suspended-warning__content h3 {
    margin: 0 0 8px 0;
    font-size: 1.15rem;
}

.dn-suspended-warning__content p {
    margin: 0 0 8px 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
}

.dn-suspended-warning__actions {
    display: grid;
    gap: 10px;
    min-width: 220px;
}

/* ── Card Basis (Outer) ── */
.dn-card-dark {
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 16px;
}

/* ── Section Label ── */
.dn-section-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

/* ── Performance Boxes ── */
.dn-perf-flex {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.dn-perf-box {
    border-radius: 12px;
    padding: 16px;
}

.dn-mini-label {
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.dn-huge-stat {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: block;
    margin-bottom: 10px;
}

.dn-progress-bg {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    height: 4px;
    overflow: hidden;
}

.dn-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s;
}

.dn-progress-fill.cpu {
    background: #3b82f6;
}

.dn-progress-fill.ram {
    background: #10b981;
}

.dn-progress-fill.disk {
    background: #a855f7;
}

/* ── Chart ── */
.dn-chart-wrap {
    margin-top: 14px;
    min-height: 200px;
    position: relative;
    background: var(--bg-card) border:1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
}

/* ── System Config Grid ── */
.dn-config-grid-mini {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.dn-config-grid-mini .dn-conf-item {
    border-radius: 12px;
    padding: 16px;
}

.dn-config-grid-mini .dn-conf-item .dn-mini-label {
    margin-bottom: 6px;
}

.dn-config-grid-mini .dn-conf-item strong {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

/* ── SSH Terminal ── */
.dn-ssh-terminal {
    background: #18181b;
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.dn-ssh-terminal code {
    color: #3b82f6;
    font-size: 0.92rem;
    font-weight: 700;
}

.dn-copy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #666;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dn-copy-btn:hover {
    background: #397df2;
    color: #fff;
    border-color: #397df2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(57, 125, 242, 0.4);
}

/* ── Security Note ── */
.dn-input-group-row {
    display: flex;
    gap: 12px;
}

.dn-input-dark {
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #fff;
    padding: 14px;
    border-radius: 12px;
    flex: 1;
    outline: none;
    font-size: 0.9rem;
}

.dn-input-password-blur {
    filter: blur(5px);
    transition: filter 0.3s ease;
    cursor: pointer;
}

.dn-input-password-blur:hover,
.dn-input-password-blur:focus {
    filter: blur(0);
    background: rgba(255, 255, 255, 0.09);
}

.dn-btn-primary-glow {
    background: #397df2;
    color: #fff;
    border: none;
    padding: 0 25px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(57, 125, 242, 0.3);
    transition: 0.2s;
    white-space: nowrap;
}

.dn-btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(57, 125, 242, 0.5);
}

/* ── Instance Control Buttons ── */
.dn-action-buttons-row {
    display: flex;
    gap: 10px;
}

.dn-btn-control {
    flex: 1;
    height: 68px;
    border-radius: 16px;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ffffff;
    width: 100%;
}

.dn-btn-control svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.dn-btn-control span {
    color: #ffffff;
}

.dn-btn-control:hover {
    transform: translateY(-3px);
}

.dn-btn-control:active {
    transform: translateY(0);
    filter: brightness(0.88);
}

.dn-btn-control.is-stop {
    background: #111111;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.dn-btn-control.is-stop:hover {
    background: #222;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.65);
}

.dn-btn-control.is-restart {
    background: #397df2;
    box-shadow: 0 4px 14px rgba(57, 125, 242, 0.4);
}

.dn-btn-control.is-restart:hover {
    box-shadow: 0 8px 22px rgba(57, 125, 242, 0.55);
}

.dn-btn-control.is-vnc {
    background: #7c3aed;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.dn-btn-control.is-vnc:hover {
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.55);
}

.dn-btn-control.is-disabled {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.25);
    box-shadow: none;
    cursor: not-allowed;
}

.dn-btn-control.is-disabled span {
    color: rgba(0, 0, 0, 0.25);
}

.dn-btn-control.is-disabled svg {
    opacity: 0.3;
}

.dn-btn-control.is-disabled:hover {
    transform: none;
    filter: none;
}

/* ── Sidebar Pricing ── */
.dn-focus-label-dark {
    font-size: 0.72rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.dn-huge-price-dark {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: -2px;
    color: #000;
    margin: 2px 0;
    line-height: 1;
}

.dn-focus-cycle-dark {
    color: #777;
    font-weight: 600;
    font-size: 0.95rem;
}

.dn-focus-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

/* ── Mini Detail Rows ── */
.dn-mini-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dn-mini-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
}

.dn-mini-row span {
    color: #777;
}

.dn-mini-row strong {
    font-weight: 700;
    color: #000;
}

/* ── Sidebar Buttons ── */
.dn-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dn-btn-checkout {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dn-btn-checkout:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.dn-btn-reinstall-outline {
    width: 100%;
    padding: 13px;
    background: transparent;
    border: 2px solid #ff4d4d;
    color: #ff4d4d;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
    font-size: 0.95rem;
}

.dn-btn-reinstall-outline:hover {
    background: rgba(255, 77, 77, 0.08);
}

.dn-btn-link-gray {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #777;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.2s;
    width: 100%;
}

.dn-btn-link-gray:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* ── Modals ── */
.dn-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.dn-modal-card {
    background: #fff;
    color: #000;
    padding: 35px;
    border-radius: 28px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.dn-modal-input-wrap {
    background: #f5f5f5;
    border-radius: 18px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.dn-modal-input {
    border: none;
    background: transparent;
    font-size: 2.2rem;
    font-weight: 900;
    color: #000;
    width: 120px;
    outline: none;
}

.dn-modal-quote {
    background: #fafafa;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid #eee;
    margin-top: 20px;
}

.dn-quote-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .dn-suspended-warning {
        flex-direction: column;
    }

    .dn-suspended-warning__actions {
        min-width: 0;
        width: 100%;
    }

    .dn-perf-flex {
        grid-template-columns: repeat(2, 1fr);
    }

    .dn-create-grid {
        grid-template-columns: 1fr;
    }

    .dn-create-sidebar {
        order: -1;
    }
}

.dn-btn-control i {
    font-size: 0.85rem;
    opacity: 0.8;
}

.dn-btn-primary-glow i {
    font-size: 0.9rem;
}

/* Verhindert, dass Buttons bei langem Text umbrechen */
.content-header button {
    white-space: nowrap;
}

/* Fix für die kompakten Steuerungs-Buttons */
.dn-btn-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    /* WICHTIG */
    align-items: center;
    justify-content: center;
    width: auto;
    /* Verhindert das Strecken */
}

.dn-btn-control:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: var(--accent);
}

/* Keep power action buttons equal-width and preserve their color variants. */
.dn-action-buttons-row > form,
.dn-action-buttons-row > button,
.dn-action-buttons-row > a {
    flex: 1 1 0;
    min-width: 0;
}

.dn-action-buttons-row .dn-btn-control {
    width: 100%;
    height: 68px;
    border: none;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #fff;
}

.dn-action-buttons-row .dn-btn-control span {
    color: inherit;
}

.dn-action-buttons-row .dn-btn-control:hover {
    color: #fff;
}

.dn-action-buttons-row .dn-btn-control.is-stop:hover {
    background: #222;
    border-color: transparent;
}

.dn-action-buttons-row .dn-btn-control.is-restart:hover {
    background: #397df2;
    border-color: transparent;
}

.dn-action-buttons-row .dn-btn-control.is-vnc:hover {
    background: #7c3aed;
    border-color: transparent;
}

/* Icons in kleinen Buttons normalisieren */
.dn-btn-control i,
.dn-btn-primary-glow i {
    font-size: 0.9rem;
}
