/**
 * GB Hosting Portal Styles
 * Navy (#10315B) & Sky (#3092C9) branding — matches gb-hosting.de payment page
 */

:root {
    --gb-primary: #10315B;
    --gb-secondary: #3092C9;
    --gb-gray: #f2f3f5;
    --gb-dark: #1a1a1a;
    --gb-light-gray: #e5e7eb;
    --gb-text: #374151;
    --gb-border: #d1d5db;
    --gb-success: #10b981;
    --gb-danger: #ef4444;
    --gb-warning: #f59e0b;
    /* Layout dimensions */
    --sidebar-width: 240px;
    --main-content-padding: 32px;
    /* Consistent radius tokens — classic/sharp enterprise look */
    --radius-sm: 2px;
    --radius-md: 3px;
    --radius-lg: 4px;

}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f6f8;
    color: var(--gb-text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   LAYOUT SYSTEM (Two-Column)
   ============================================================ */
.portal-layout {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
}

.portal-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--gb-primary);
    color: white;
    overflow-y: auto;
    z-index: 1002;
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(48, 146, 201, 0.4) transparent;
}

/* WebKit (Chrome, Safari, Edge) */
.portal-sidebar::-webkit-scrollbar {
    width: 4px;
}

.portal-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.portal-sidebar::-webkit-scrollbar-thumb {
    background: rgba(48, 146, 201, 0.35);
    border-radius: 2px;
}

.portal-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(48, 146, 201, 0.65);
}

.portal-main {
    margin-left: var(--sidebar-width);
    padding: var(--main-content-padding);
    max-width: calc(100vw - var(--sidebar-width));
    overflow-x: hidden;
}

/* REMOVED - Right sidebar no longer needed
.portal-info-panel {
    position: fixed;
    right: 0;
    top: 0;
    width: var(--info-panel-width);
    height: 100vh;
    background: #f9fafb;
    padding: 24px;
    overflow-y: auto;
    z-index: 900;
}
*/

/* ============================================================
   SIDEBAR STYLES
   ============================================================ */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}



.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.sidebar-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
}

/* Mobile header bar */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--gb-primary);
    color: white;
    z-index: 1003;
    align-items: center;
    padding: 0 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-header-brand {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    transition: background 0.2s;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.mobile-menu-toggle:active {
    background: rgba(255, 255, 255, 0.2);
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.sidebar-nav {
    padding: 16px 0;
}

.nav-section {
    margin-bottom: 16px;
}

.nav-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    padding: 8px 16px;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-item.active {
    background: rgba(48, 146, 201, 0.15);
    color: white;
    border-left-color: var(--gb-secondary);
}

.nav-icon {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.version-info {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   ACCOUNT INFO PANEL
   ============================================================ */
.panel-header h3 {
    font-size: 1.1rem;
    color: var(--gb-primary);
    margin-bottom: 16px;
}

.info-widget {
    background: white;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--gb-border);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.info-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gb-text);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.4;
    letter-spacing: 0.01em;
    vertical-align: middle;
}

.badge-admin {
    background: var(--gb-secondary);
    color: white;
}

.badge-user {
    background: var(--gb-gray);
    color: var(--gb-text);
    border: 1px solid var(--gb-light-gray);
}

.badge-primary {
    background: var(--gb-primary);
    color: #fff;
}

.badge-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.badge-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.badge-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.badge-neutral {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.quick-stats {
    background: white;
    border-radius: 6px;
    padding: 16px;
    border: 1px solid var(--gb-border);
}

.quick-stats h4 {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--gb-primary);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.stat-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gb-secondary);
}

/* ============================================================
   CONTENT HEADER
   ============================================================ */
.content-header {
    margin-bottom: 24px;
}

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

/* ============================================================
   DASHBOARD CATEGORY SYSTEM
   ============================================================ */
.dashboard-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    border: 1px solid var(--gb-border);
    border-top: 3px solid var(--gb-primary);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    font-size: 2.2rem;
    color: var(--gb-secondary);
    opacity: 0.85;
    flex-shrink: 0;
    width: 44px;
    text-align: center;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-card .stat-label {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-card .stat-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gb-primary);
    line-height: 1.3;
    word-break: break-word;
}

/* Special styling for status values */
.stat-card .stat-value.status-running {
    color: var(--gb-success);
}

.stat-card .stat-value.status-stopped {
    color: var(--gb-danger);
}

/* Style for secondary info in stat values (like "Unlimited", limits, etc) */
.stat-value .stat-secondary {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: #6b7280;
    margin-top: 3px;
}

.dashboard-category {
    margin-bottom: 32px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gb-light-gray);
}

.category-header h2 {
    font-size: 1.15rem;
    color: var(--gb-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-weight: 600;
}

.category-header h2 i {
    color: var(--gb-secondary);
    font-size: 1rem;
}

.collapse-toggle {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 0.85rem;
    transition: transform 0.2s, color 0.2s;
    padding: 4px;
}

.collapse-toggle:hover {
    color: var(--gb-secondary);
}

.category-tools {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.category-tools.collapsed {
    display: none;
}

.tool-card {
    background: white;
    border: 1px solid var(--gb-border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: border-color 0.15s, background 0.15s;
    cursor: pointer;
}

.tool-card:hover {
    border-color: var(--gb-secondary);
    background: #fafbfd;
}

.tool-card.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.tool-card.disabled:hover {
    border-color: var(--gb-border);
    background: white;
}

.tool-icon-wrapper {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(48, 146, 201, 0.08);
    border-radius: var(--radius-lg);
}

.tool-icon {
    font-size: 1.3rem;
    color: var(--gb-secondary);
}

.tool-content {
    flex: 1;
    min-width: 0;
}

.tool-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gb-primary);
    margin-bottom: 2px;
}

.tool-desc {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0;
}

.tool-arrow {
    color: #9ca3af;
    font-size: 1rem;
}

.tool-card:hover .tool-arrow {
    color: var(--gb-secondary);
}

/* Tool card featured variant */
.tool-card.featured {
    background: linear-gradient(135deg, #10315B 0%, #3878b1 100%);
    color: white;
    border-color: #3c608d;
}

.tool-card.featured:hover {
    background: linear-gradient(135deg, #0c2848 0%, #235a87 100%);
}

.tool-card.featured .tool-icon-wrapper {
    background: rgba(255, 255, 255, 0.15);
}

.tool-card.featured .tool-icon,
.tool-card.featured .tool-title,
.tool-card.featured .tool-desc,
.tool-card.featured .tool-arrow {
    color: white;
}

.tool-card.featured .tool-desc {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.portal-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px;
}

.portal-footer {
    text-align: center;
    padding: 24px;
    color: #9ca3af;
    font-size: 0.8rem;
    margin-top: 24px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: white;
    border: 1px solid var(--gb-border);
    border-top: 3px solid var(--gb-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gb-light-gray);
}

.card-header h2 {
    color: var(--gb-primary);
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    line-height: 1.5;
    letter-spacing: 0.01em;
    user-select: none;
}

.btn-primary {
    background: var(--gb-primary);
    color: white;
    border-color: var(--gb-primary);
}

.btn-primary:hover {
    background: #0c2848;
    border-color: #0c2848;
}

.btn-secondary {
    background: var(--gb-secondary);
    color: white;
    border-color: var(--gb-secondary);
}

.btn-secondary:hover {
    background: #2580b5;
    border-color: #2580b5;
}

.btn-outline {
    background: transparent;
    color: var(--gb-primary);
    border: 1px solid var(--gb-border);
}

.btn-outline:hover {
    background: var(--gb-primary);
    color: white;
    border-color: var(--gb-primary);
}

.btn-danger {
    background: var(--gb-danger);
    color: white;
    border-color: var(--gb-danger);
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.btn-success {
    background: var(--gb-success);
    color: white;
    border-color: var(--gb-success);
}

.btn-success:hover {
    background: #059669;
    border-color: #059669;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    border-color: #e5e7eb;
    cursor: not-allowed;
}

/* ============================================================
   TABLE ACTION BUTTONS
   ============================================================ */
.table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.action-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: #f8f9fa;
    color: #6b7280;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    font-size: 0.82rem;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
    cursor: pointer;
}

.action-icon-btn:hover {
    background: var(--gb-primary);
    color: #fff;
    border-color: var(--gb-primary);
}

.action-icon-btn.action-files:hover {
    background: var(--gb-secondary);
    border-color: var(--gb-secondary);
}

/* Hoverable table rows */
.data-table tbody tr {
    transition: background 0.12s;
}

.data-table tbody tr:hover {
    background: #f9fafb;
}

.data-table .domain-name {
    font-weight: 600;
    color: var(--gb-primary);
    text-decoration: none;
}

.data-table .domain-name:hover {
    text-decoration: underline;
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-left: 3px solid;
    font-size: 0.875rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: var(--gb-danger);
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border-color: var(--gb-success);
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-color: var(--gb-secondary);
}

/* ============================================================
   FORM
   ============================================================ */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--gb-dark);
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--gb-border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-family: inherit;
    background: white;
    color: var(--gb-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.5;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gb-secondary);
    box-shadow: 0 0 0 3px rgba(48, 146, 201, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236b7280'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(150deg, #10315B 0%, #1e4d7e 50%, #2a6496 100%);
    padding: 20px;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: white;
    border: 1px solid var(--gb-border);
    border-top: 3px solid var(--gb-primary);
    border-radius: var(--radius-lg);
    padding: 44px 40px 36px;
}


@keyframes loginFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-brand {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    background: var(--gb-secondary);
    color: white;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin: 0 auto 14px;
}

.login-title {
    font-size: 1.25rem;
    color: var(--gb-primary);
    font-weight: 600;
}

.login-subtitle {
    color: #6b7280;
    font-size: 0.88rem;
    margin-top: 4px;
}

/* Login form inputs */
.login-card .form-group input {
    border-radius: var(--radius-md);
    padding: 11px 14px;
    border: 1px solid var(--gb-border);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-card .form-group input:focus {
    border-color: var(--gb-secondary);
    box-shadow: 0 0 0 3px rgba(48, 146, 201, 0.1);
}

/* Password field wrapper */
.password-field-wrapper {
    position: relative;
}

.password-field-wrapper input {
    padding-right: 46px !important;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 4px;
    font-size: 1rem;
    line-height: 1;
    transition: color 0.15s;
}

.password-toggle-btn:hover {
    color: var(--gb-secondary);
}

/* Demo hint banner */
.login-demo-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #1e40af;
}

.login-demo-hint i {
    flex-shrink: 0;
}

/* Login submit button */
.login-card .btn-primary {
    padding: 13px 20px;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    letter-spacing: 0.2px;
}

.login-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: #9ca3af;
}

.login-footer a {
    color: var(--gb-secondary);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Footer below the card */
.login-body .portal-footer {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.78rem;
    padding: 12px;
}

/* ============================================================
   DASHBOARD — CLIENT GRID
   ============================================================ */
.page-title {
    font-size: 1.5rem;
    color: var(--gb-primary);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.client-card {
    background: white;
    border: 1px solid var(--gb-border);
    border-top: 3px solid var(--gb-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.client-card-header {
    background: var(--gb-primary);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.client-card-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.client-card-header .client-domain {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #9ca3af;
}

.status-indicator.running {
    background: var(--gb-success);
}

.status-indicator.stopped {
    background: var(--gb-danger);
}

.client-card-body {
    padding: 20px;
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.status-item {
    background: var(--gb-gray);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
}

.status-item .status-label {
    font-size: 0.72rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.status-item .status-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gb-dark);
}

.status-item .status-loading {
    color: #9ca3af;
    font-style: italic;
}

.client-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============================================================
   DB CREDENTIALS
   ============================================================ */
.db-info {
    background: var(--gb-gray);
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gb-light-gray);
}

.db-info-title {
    font-size: 0.72rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 600;
}

.db-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    padding: 3px 0;
}

.db-info-row .db-label {
    color: #6b7280;
}

.db-info-row .db-value {
    font-weight: 500;
    color: var(--gb-dark);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.db-pass-masked {
    color: #9ca3af;
    letter-spacing: 3px;
    cursor: pointer;
    user-select: none;
}

.db-pass-masked:hover {
    color: var(--gb-secondary);
}

/* ============================================================
   FILE MANAGER
   ============================================================ */
.file-manager-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    background: white;
    border: 1px solid var(--gb-border);
    border-top: 3px solid var(--gb-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    min-height: 600px;
}

.file-tree-panel {
    border-right: 1px solid var(--gb-border);
    overflow-y: auto;
    max-height: 720px;
}

.file-tree-header {
    background: var(--gb-primary);
    color: white;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2;
}

.file-tree-header .tree-actions {
    display: flex;
    gap: 6px;
}

.tree-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 3px 8px;
    font-size: 0.72rem;
    cursor: pointer;
    transition: background 0.15s;
}

.tree-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.file-tree {
    padding: 8px 0;
}

.tree-node {
    padding: 5px 12px 5px 0;
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background 0.1s;
    user-select: none;
}

.tree-node:hover {
    background: #f0f9ff;
}

.tree-node.selected {
    background: #dbeafe;
    font-weight: 500;
}

.tree-node .tree-indent {
    display: inline-block;
}

.tree-node .tree-icon {
    width: 16px;
    color: #6b7280;
    flex-shrink: 0;
    text-align: center;
}

.tree-node.is-dir .tree-icon {
    color: var(--gb-secondary);
}

.tree-node .tree-name {
    overflow: hidden;
    text-overflow: ellipsis;
}

.tree-node .tree-expand {
    width: 12px;
    color: #9ca3af;
    flex-shrink: 0;
    font-size: 0.7rem;
}

/* Editor panel */
.editor-panel {
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

.editor-toolbar {
    background: var(--gb-gray);
    border-bottom: 1px solid var(--gb-border);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.editor-toolbar .current-file {
    font-size: 0.82rem;
    color: #6b7280;
    font-family: 'SF Mono', 'Fira Code', monospace;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.editor-toolbar .current-file.unsaved::after {
    content: ' •';
    color: var(--gb-secondary);
}

.editor-container {
    flex: 1;
    min-height: 0;
}

.editor-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.9rem;
    background: #fafafa;
}

/* Upload drop area */
.upload-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(16, 49, 91, 0.85);
    z-index: 999;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
}

.upload-overlay.active {
    display: flex;
}

/* ============================================================
   BACKUPS PAGE
   ============================================================ */
.backups-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: start;
}

.backups-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.backup-btn-card {
    background: white;
    border: 1px solid var(--gb-border);
    border-top: 3px solid var(--gb-primary);
    padding: 18px;
}

.backup-btn-card h4 {
    color: var(--gb-primary);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.backup-btn-card p {
    color: #6b7280;
    font-size: 0.78rem;
    margin-bottom: 12px;
}

.backups-table {
    background: white;
    border: 1px solid var(--gb-border);
    border-top: 3px solid var(--gb-primary);
    overflow: hidden;
}

.backups-table-header {
    background: var(--gb-primary);
    color: white;
    padding: 14px 20px;
}

.backups-table-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

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

table th {
    text-align: left;
    padding: 11px 16px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    border-bottom: 1px solid var(--gb-border);
    font-weight: 600;
    background: #fafbfc;
}

table td {
    padding: 11px 16px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--gb-light-gray);
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover td {
    background: #f8f9fb;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
}

.table-empty {
    padding: 40px 32px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.88rem;
}

/* ============================================================
   SPINNER
   ============================================================ */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

.spinner.dark {
    border-color: rgba(16, 49, 91, 0.2);
    border-top-color: var(--gb-primary);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Large screens - no changes needed (right panel removed) */
@media (max-width: 1399px) {
    .portal-layout {
        grid-template-columns: 1fr;
    }
}

/* Tablets and below - collapsible sidebar */
@media (max-width: 899px) {
    .mobile-header {
        display: flex;
    }

    .portal-sidebar {
        top: 60px;
        height: calc(100vh - 60px);
        transform: translateX(-100%);
        transition: transform 0.3s;
        z-index: 1001;
    }

    .portal-sidebar.open {
        transform: translateX(0);
    }

    /* Hide sidebar header on mobile since we have mobile-header */
    .sidebar-header {
        display: none;
    }

    .portal-layout {
        grid-template-columns: 1fr;
    }

    .portal-main {
        margin-left: 0;
        margin-top: 60px;
        padding: 16px;
        max-width: 100vw;
    }

    .sidebar-toggle {
        display: none;
    }

    .sidebar-overlay {
        top: 60px;
        height: calc(100vh - 60px);
    }

    .file-manager-layout {
        grid-template-columns: 1fr;
    }

    .file-tree-panel {
        border-right: none;
        border-bottom: 1px solid var(--gb-border);
        max-height: 300px;
    }

    .backups-layout {
        grid-template-columns: 1fr;
    }
}

/* Mobile - smaller adjustments */
@media (max-width: 640px) {
    .portal-container {
        padding: 20px 12px;
    }

    .clients-grid {
        grid-template-columns: 1fr;
    }

    .client-card-actions {
        flex-direction: column;
    }

    .portal-main {
        margin-top: 56px;
        padding: 12px;
    }

    .mobile-header {
        height: 56px;
        padding: 0 12px;
    }

    .mobile-menu-toggle {
        font-size: 1.3rem;
        margin-right: 8px;
    }

    .portal-sidebar {
        top: 56px;
        height: calc(100vh - 56px);
    }

    .sidebar-overlay {
        top: 56px;
        height: calc(100vh - 56px);
    }

    .page-title {
        font-size: 1.3rem;
    }

    .dashboard-overview {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   PAGE HEADER SYSTEM
   ============================================================ */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.page-header .page-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.page-subtitle {
    color: #6b7280;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}



/* ============================================================
   DATA TABLE (universal)
   ============================================================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.data-table thead {
    background: #f8f9fb;
}

.data-table th {
    text-align: left;
    padding: 11px 16px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    border-bottom: 2px solid var(--gb-light-gray);
    font-weight: 600;
}

.data-table th:last-child {
    text-align: right;
}

.data-table td {
    padding: 11px 16px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--gb-light-gray);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background 0.15s ease;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: #f5f7fa;
}

.data-table td:last-child {
    text-align: right;
    white-space: nowrap;
}

/* WordPress table cells */
.wp-domain {
    font-weight: 600;
    color: var(--gb-primary);
    font-size: 0.9rem;
}

.wp-path {
    font-size: 0.75rem;
    color: #9ca3af;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

#wp-table {
    table-layout: auto;
}

#wp-table th:nth-child(1),
#wp-table td:nth-child(1) {
    width: 25%;
}

#wp-table th:nth-child(2),
#wp-table td:nth-child(2) {
    width: 15%;
}

#wp-table th:nth-child(3),
#wp-table td:nth-child(3) {
    width: auto;
}

#wp-table th:nth-child(4),
#wp-table td:nth-child(4) {
    width: 100px;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gb-light-gray);
}

/* ============================================================
   MODAL SYSTEM
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    align-items: center;
    justify-content: center;
}



.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 6px;
    padding: 28px;
    max-width: 520px;
    width: 92%;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-content.modal-wide {
    max-width: 560px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gb-light-gray);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--gb-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: color 0.15s, background 0.15s;
}

.close-modal:hover {
    color: var(--gb-danger);
    background: #fef2f2;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--gb-light-gray);
}

/* ============================================================
   INFO GRID
   ============================================================ */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.info-grid-item {
    background: #f8f9fb;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid #e9ecef;
}

.info-grid-item .info-item-label {
    font-size: 0.72rem;
    color: #6b7280;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-grid-item .info-item-label i {
    color: var(--gb-secondary);
    font-size: 0.8rem;
}

.info-grid-item .info-item-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gb-primary);
}

/* Seamless variant (domain-detail style with 1px gap borders) */
.info-grid-seamless {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: var(--gb-light-gray);
    border: 1px solid var(--gb-light-gray);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.info-grid-seamless .info-grid-item {
    background: white;
    padding: 16px 20px;
    border-radius: 0;
    border: none;
}

.info-grid-seamless .info-item-label {
    font-size: 0.72rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    margin-bottom: 5px;
}

.info-grid-seamless .info-item-value {
    font-weight: 600;
    color: var(--gb-primary);
    font-size: 1rem;
}

/* ============================================================
   STATUS BANNER
   ============================================================ */
.status-banner {
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.status-banner-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.3rem;
}

.status-banner-text strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.status-banner-text span {
    font-size: 0.85rem;
}

.status-banner.success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.status-banner.success .status-banner-icon {
    background: #d1fae5;
    color: #059669;
}

.status-banner.success .status-banner-text strong {
    color: #065f46;
}

.status-banner.success .status-banner-text span {
    color: #047857;
}

.status-banner.warning {
    background: #fffbeb;
    border: 1px solid #fcd34d;
}

.status-banner.warning .status-banner-icon {
    background: #fef3c7;
    color: #d97706;
}

.status-banner.warning .status-banner-text strong {
    color: #92400e;
}

.status-banner.warning .status-banner-text span {
    color: #b45309;
}

.status-banner.danger {
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.status-banner.danger .status-banner-icon {
    background: #ffedd5;
    color: #ea580c;
}

.status-banner.danger .status-banner-text strong {
    color: #7c2d12;
}

.status-banner.danger .status-banner-text span {
    color: #9a3412;
}

.status-banner.info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.status-banner.info .status-banner-icon {
    background: #dbeafe;
    color: #2563eb;
}

.status-banner.info .status-banner-text strong {
    color: #1e40af;
}

.status-banner.info .status-banner-text span {
    color: #1d4ed8;
}

/* ============================================================
   DETAIL CARD
   ============================================================ */
.detail-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.detail-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.detail-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
    color: #fff;
}

.detail-card-icon.primary {
    background: var(--gb-primary);
}

.detail-card-icon.secondary {
    background: var(--gb-secondary);
}

.detail-card-header .detail-card-title {
    font-size: 1rem;
    font-weight: 600;
}

.detail-card-header .detail-card-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
}

.detail-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.detail-info-table td {
    padding: 6px 0;
}

.detail-info-table td:first-child {
    color: #6b7280;
    width: 120px;
}

.detail-info-table td:last-child {
    font-weight: 600;
}

/* ============================================================
   SETTINGS ROW + TOGGLE SWITCH
   ============================================================ */
.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 12px;
}

.settings-row-label {
    flex: 1;
    min-width: 0;
}

.settings-row-label strong {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
}

.settings-row-label span {
    font-size: 0.85rem;
    color: #6b7280;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-track {
    position: absolute;
    inset: 0;
    border-radius: 26px;
    transition: background 0.3s;
    background: #d1d5db;
}

.toggle-thumb {
    position: absolute;
    left: 3px;
    top: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked~.toggle-track {
    background: #10b981;
}

.toggle-switch input:checked~.toggle-thumb {
    left: 25px;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar-container {
    margin-bottom: 4px;
}

.progress-bar-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #6b7280;
}

.progress-bar-labels strong {
    color: var(--gb-dark);
}

.progress-track {
    height: 8px;
    background: var(--gb-light-gray);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gb-primary);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-fill.secondary {
    background: var(--gb-secondary);
}

.progress-percent {
    text-align: right;
    margin-top: 4px;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    z-index: 2000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 420px;
}


.toast.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.toast.info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.toast.error {
    background: #fef2f2;
    color: #7f1d1d;
    border: 1px solid #fca5a5;
}

/* ============================================================
   DOMAIN SWITCHER PILLS
   ============================================================ */
.domain-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.domain-switcher .domain-switcher-label {
    font-size: 0.85rem;
    color: #6b7280;
}

.domain-pill {
    font-size: 0.82rem;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: 500;
}

.domain-pill:hover {
    border-color: var(--gb-secondary);
    background: #e8f4fd;
    color: var(--gb-primary);
}

.domain-pill.active {
    background: var(--gb-primary);
    color: #fff;
    font-weight: 600;
    border-color: var(--gb-primary);
}

/* ============================================================
   SERVICE LIST
   ============================================================ */
.service-list {
    display: flex;
    flex-direction: column;
}

.service-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--gb-light-gray);
}

.service-list-item:last-child {
    border-bottom: none;
}

.service-list-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-list-item-info .service-icon {
    color: var(--gb-secondary);
    width: 18px;
    text-align: center;
}

.service-list-item-info .service-name {
    font-weight: 600;
    color: var(--gb-primary);
    font-size: 0.9rem;
}

.service-list-item-info .service-desc {
    font-size: 0.78rem;
    color: #9ca3af;
}

.service-list-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ============================================================
   MISCELLANEOUS UTILITIES
   ============================================================ */
.form-group small {
    display: block;
    margin-top: 4px;
    color: #6c757d;
    font-size: 0.82rem;
}

.text-mono {
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.text-muted {
    color: #6b7280;
}

.text-danger {
    color: var(--gb-danger);
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 7px;
    border-radius: var(--radius-sm);
    color: #6c757d;
    transition: color 0.15s, background 0.15s;
    font-size: 0.9rem;
    line-height: 1;
}

.btn-icon:hover {
    color: var(--gb-primary);
    background: #edf2f7;
}

.password-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.password-masked {
    font-family: monospace;
    letter-spacing: 2px;
    color: #6c757d;
    cursor: pointer;
    user-select: none;
}

.password-visible {
    font-family: monospace;
}

.password-input-group {
    display: flex;
    gap: 8px;
}

.password-input-group input {
    flex: 1;
}

.password-input-group button {
    white-space: nowrap;
    padding: 10px 12px;
    background: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #495057;
    transition: background 0.2s;
}

.password-input-group button:hover {
    background: #dee2e6;
}

.action-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Card count badge in card headers */
.card-header .card-count {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 400;
}

/* ============================================================
   WORDPRESS INSTALLER (moved from page-level styles)
   ============================================================ */
.wp-domain {
    font-family: monospace;
    font-weight: 600;
    color: var(--gb-primary);
}

.wp-path {
    font-family: monospace;
    font-size: 0.875rem;
    color: #6c757d;
}

.wp-version-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #e8f4fd;
    color: #0d6efd;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.wp-update-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #fff3cd;
    color: #856404;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.path-preview {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 10px 14px;
    font-family: monospace;
    font-size: 0.875rem;
    color: var(--gb-primary);
    margin-bottom: 4px;
    word-break: break-all;
}

.wizard-steps {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0;
}

.wizard-step {
    flex: 1;
    text-align: center;
    padding: 10px 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #adb5bd;
    position: relative;
    cursor: default;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.wizard-step.active {
    color: var(--gb-secondary);
    border-bottom-color: var(--gb-secondary);
}

.wizard-step.done {
    color: var(--gb-success);
    border-bottom-color: var(--gb-success);
}

.wizard-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.75rem;
    background: #dee2e6;
    color: #6c757d;
    margin-right: 5px;
    transition: background 0.2s, color 0.2s;
}

.wizard-step.active .wizard-step-num {
    background: var(--gb-secondary);
    color: white;
}

.wizard-step.done .wizard-step-num {
    background: var(--gb-success);
    color: white;
}

.wizard-panel {
    display: none;
}

.wizard-panel.active {
    display: block;
}

.install-progress {
    margin: 16px 0;
}

.progress-bar-wrap {
    background: #e9ecef;
    border-radius: 6px;
    height: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gb-secondary);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-log {
    background: #1a1a2e;
    color: #a8d8f0;
    border-radius: 6px;
    padding: 14px;
    font-family: monospace;
    font-size: 0.8rem;
    line-height: 1.7;
    max-height: 180px;
    overflow-y: auto;
    margin-top: 12px;
}

.progress-log .log-ok {
    color: #6fe06f;
}

.progress-log .log-info {
    color: #a8d8f0;
}

.progress-log .log-warn {
    color: #f0c070;
}

.delete-warning-box {
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.info-row-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.info-card {
    background: white;
    border-radius: 8px;
    padding: 18px;
    border: 1px solid var(--gb-border);
    display: flex;
    align-items: center;
    gap: 14px;
}

.info-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #e8f4fd;
    color: var(--gb-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-card-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
}

.info-card-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gb-primary);
}

.cred-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 16px;
    font-size: 0.875rem;
}

.cred-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.cred-row:last-child {
    margin-bottom: 0;
}

.cred-label {
    color: #6b7280;
    min-width: 100px;
    font-weight: 500;
}

.cred-value {
    font-family: monospace;
    color: var(--gb-primary);
    font-weight: 600;
    flex: 1;
    word-break: break-all;
}

.btn-copy-inline {
    background: none;
    border: 1px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
    padding: 2px 7px;
    font-size: 0.75rem;
    color: #6c757d;
    transition: background 0.2s, color 0.2s;
}

.btn-copy-inline:hover {
    background: var(--gb-secondary);
    color: white;
    border-color: var(--gb-secondary);
}

/* ============================================================
   RESPONSIVE — New Components
   ============================================================ */
@media (max-width: 899px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-grid,
    .info-grid-seamless {
        grid-template-columns: 1fr;
    }

    .service-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 640px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .domain-switcher {
        flex-direction: column;
        align-items: flex-start;
    }
}