/* =====================================================
   DASHBOARD (clientareahome) - matches React DashboardView
===================================================== */

.app-dash {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ---------- اطلاعیه‌های بنری (از ماژول مدیریت می‌شن) ---------- */
.ob-announce-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    padding: .9rem 1.25rem;
    border-radius: var(--app-radius-md);
    border: 1px solid;
    font-size: .82rem;
}
.ob-announce-text strong {
    margin-left: .5rem;
    font-weight: 800;
}
.ob-announce-text img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    vertical-align: middle;
    border-radius: .4rem;
}
.ob-announce-btn {
    padding: .45rem 1rem;
    border-radius: .6rem;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    color: #fff !important;
}
.ob-announce-info { background: rgba(37,99,235,.1); border-color: rgba(37,99,235,.3); color: #93c5fd; }
.ob-announce-info .ob-announce-btn { background: var(--app-accent); }
.ob-announce-success { background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.3); color: #6ee7b7; }
.ob-announce-success .ob-announce-btn { background: #059669; }
.ob-announce-warning { background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.3); color: #fcd34d; }
.ob-announce-warning .ob-announce-btn { background: #d97706; }
.ob-announce-danger { background: rgba(251,113,133,.1); border-color: rgba(251,113,133,.3); color: #fca5b1; }
.ob-announce-danger .ob-announce-btn { background: #e11d48; }

/* ---------- Metric cards ---------- */
.app-dash-metrics {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .app-dash-metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .app-dash-metrics { grid-template-columns: repeat(4, 1fr); }
}

.app-dash-card {
    display: block;
    background-color: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(8px);
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px solid var(--app-border-lifted);
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.app-dash-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    text-decoration: none;
    transform: translateY(-1px);
}

.app-dash-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.app-dash-card-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--app-text-muted);
}

.app-dash-card-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.icon-blue { background-color: rgba(37, 99, 235, 0.15); color: #60a5fa; }
.icon-emerald { background-color: rgba(16, 185, 129, 0.15); color: #34d399; }
.icon-cyan { background-color: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.icon-purple { background-color: rgba(168, 85, 247, 0.15); color: #c084fc; }
.icon-amber { color: #fbbf24; }

.app-dash-card-value {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.app-dash-card-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.app-dash-card-sub {
    font-size: 0.75rem;
    color: var(--app-text-muted);
}

.app-dash-progress {
    margin-top: 0.75rem;
    height: 0.375rem;
    width: 100%;
    background-color: #0f172a;
    border-radius: 999px;
    overflow: hidden;
}

.app-dash-progress-bar {
    height: 100%;
    border-radius: 999px;
    transition: width 0.5s ease;
}

.bar-blue { background-color: #3b82f6; }
.bar-emerald { background-color: #10b981; }
.bar-cyan { background-color: #06b6d4; }
.bar-purple { background-color: #a855f7; }

/* ---------- Panels (table + shortcuts + datacenters) ---------- */
.app-dash-panel {
    background-color: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    border: 1px solid var(--app-border-lifted);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    overflow: hidden;
}

.app-dash-panel-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--app-border-lifted);
    background-color: #0f172a;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.app-dash-panel-header h3 {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.app-dash-panel-header h3 i { color: #60a5fa; font-size: 0.8rem; }

.app-dash-panel-header p {
    font-size: 0.75rem;
    color: var(--app-text-muted);
    margin: 0.15rem 0 0;
}

.app-dash-panel-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-app-ghost {
    font-size: 0.75rem;
    font-weight: 700;
    color: #e2e8f0;
    background-color: #1e293b;
    padding: 0.5rem 0.9rem;
    border-radius: 0.75rem;
    border: 1px solid var(--app-border-lifted);
    text-decoration: none;
}

.btn-app-ghost:hover { color: #fff; text-decoration: none; }

.btn-app-primary-sm {
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    background-color: var(--app-accent);
    padding: 0.5rem 0.9rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.btn-app-primary-sm:hover { background-color: var(--app-accent-hover); color: #fff; text-decoration: none; }

/* ---------- Table ---------- */
.app-dash-table-wrap { overflow-x: auto; }

.app-dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    text-align: right;
}

.app-dash-table thead {
    background-color: #0f172a;
    color: var(--app-text-muted);
    text-transform: uppercase;
    font-weight: 800;
    border-bottom: 1px solid var(--app-border-lifted);
}

.app-dash-table th,
.app-dash-table td {
    padding: 1rem;
}

.app-dash-table td.text-start,
.app-dash-table th.text-start { text-align: left; }

.app-dash-table tbody tr {
    border-bottom: 1px solid var(--app-border-lifted);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.app-dash-table tbody tr:hover { background-color: rgba(59, 130, 246, 0.1); }

.app-dash-table tbody tr.app-dash-empty-row { cursor: default; }
.app-dash-table tbody tr.app-dash-empty-row:hover { background-color: transparent; }
.app-dash-empty-row td { text-align: center; color: var(--app-text-muted); padding: 2rem 1rem; }

.app-dash-server-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    color: #fff;
}

.app-dash-server-name i { color: #60a5fa; font-size: 0.8rem; }

.app-dash-server-os {
    font-size: 0.65rem;
    color: var(--app-text-muted);
    font-family: 'JetBrains Mono', monospace;
    display: block;
    margin-top: 0.2rem;
}

.mono { font-family: 'JetBrains Mono', monospace; }

.app-dash-table td.mono { color: #e2e8f0; font-weight: 700; }

.app-dash-dc { display: flex; align-items: center; gap: 0.4rem; }
.app-dash-dc-name { color: #e2e8f0; font-weight: 700; }
.app-dash-dc-code {
    font-size: 0.6rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--app-text-muted);
    background-color: #0f172a;
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
    border: 1px solid var(--app-border-lifted);
}

.app-dash-specs { display: flex; gap: 0.4rem; flex-wrap: wrap; font-family: 'JetBrains Mono', monospace; }
.app-dash-specs span {
    background-color: #0f172a;
    padding: 0.1rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid var(--app-border-lifted);
    color: #cbd5e1;
}

.app-dash-status {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    padding: 0.4rem 0.9rem !important;
    border-radius: 999px !important;
    text-transform: none !important;
    font-size: 0.75rem !important;
}

.app-dash-status .dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px currentColor;
}

.app-status-active { color: #34d399 !important; background: rgba(52, 211, 153, 0.12) !important; border: 1px solid rgba(52, 211, 153, 0.35) !important; }
.app-status-active .dot { background-color: #34d399; }

.app-status-pending { color: #fbbf24 !important; background: rgba(251, 191, 36, 0.12) !important; border: 1px solid rgba(251, 191, 36, 0.35) !important; }
.app-status-pending .dot { background-color: #fbbf24; }

.app-status-suspended { color: #fb7185 !important; background: rgba(251, 113, 133, 0.12) !important; border: 1px solid rgba(251, 113, 133, 0.35) !important; }
.app-status-suspended .dot { background-color: #fb7185; }

.app-status-terminated { color: #94a3b8 !important; background: rgba(148, 163, 184, 0.12) !important; border: 1px solid rgba(148, 163, 184, 0.35) !important; }
.app-status-terminated .dot { background-color: #94a3b8; }

.btn-app-manage {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background-color: var(--app-accent);
    color: #fff;
    border-radius: 0.75rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-decoration: none;
}

.btn-app-manage:hover { background-color: var(--app-accent-hover); color: #fff; text-decoration: none; }

/* ---------- Pagination ---------- */
.app-dash-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background-color: #0f172a;
    border-top: 1px solid var(--app-border-lifted);
    font-size: 0.75rem;
    font-weight: 700;
    color: #cbd5e1;
}

.app-dash-pagination-info .mono { color: #fff; }
.app-dash-pagination-info .text-blue { color: #60a5fa; }

.app-dash-pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    border-radius: 0.75rem;
    background-color: #1e293b;
    border: 1px solid var(--app-border-lifted);
    color: #cbd5e1;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.75rem;
}

.page-btn:hover { color: #fff; background-color: rgba(37, 99, 235, 0.2); text-decoration: none; }
.page-btn.active { background-color: var(--app-accent); color: #fff; border-color: transparent; }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }

.page-btn-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    color: var(--app-text-muted);
    font-size: 0.8rem;
}

/* ---------- Bottom grid: datacenters + shortcuts ---------- */
.app-dash-bottom-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .app-dash-bottom-grid { grid-template-columns: 2fr 1fr; }
}

.app-dash-dc-panel {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-dash-dc-panel h3 {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.app-dash-dc-panel h3 i { color: #60a5fa; }

.app-dash-dc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .app-dash-dc-grid { grid-template-columns: repeat(3, 1fr); }
}

.app-dash-dc-card {
    background-color: #0f172a;
    padding: 0.9rem;
    border-radius: 0.75rem;
    border: 1px solid var(--app-border-lifted);
}

.app-dash-dc-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.app-dash-dc-card-top .flag { font-size: 1.1rem; }

.status-pill {
    font-size: 0.6rem;
    font-weight: 700;
    color: #34d399;
    background-color: rgba(16, 185, 129, 0.1);
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.app-dash-dc-card .city {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0.25rem 0 0;
}

.app-dash-dc-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.6rem;
    color: var(--app-text-muted);
    margin-top: 0.5rem;
}

.app-dash-dc-card-bottom .ping { color: #cbd5e1; font-weight: 700; }

.app-dash-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--app-text-muted);
    padding: 1.5rem;
    font-size: 0.8rem;
}

/* ---------- Shortcuts ---------- */
.app-dash-shortcuts {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.app-dash-shortcuts h3 {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.2rem;
}

.app-dash-shortcut {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background-color: #0f172a;
    border: 1px solid var(--app-border-lifted);
    border-radius: 0.75rem;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.app-dash-shortcut:hover { background-color: #1e293b; text-decoration: none; }

.app-dash-shortcut-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #e2e8f0;
}

.app-dash-shortcut:hover .app-dash-shortcut-label { color: #fff; }
.app-dash-shortcut > i { color: #64748b; font-size: 0.75rem; }
.app-dash-shortcut:hover > i { color: var(--app-accent-hover); }

/* Inline SVG icon sizing within dashboard (!important needed to beat base .app-icon !important rule) */
.app-dash-card-icon .app-icon { width: 1rem !important; height: 1rem !important; }
.app-dash-panel-header h3 .app-icon { width: 0.85rem !important; height: 0.85rem !important; }
.app-dash-server-name .app-icon { width: 0.85rem !important; height: 0.85rem !important; }
.app-dash-dc-panel h3 .app-icon { width: 0.9rem !important; height: 0.9rem !important; }
.app-dash-shortcut-label .app-icon { width: 1rem !important; height: 1rem !important; }
.app-dash-shortcut > .app-icon { width: 0.85rem !important; height: 0.85rem !important; color: #64748b; }
.app-dash-shortcut:hover > .app-icon { color: var(--app-accent-hover); }
.btn-app-manage .app-icon, .btn-app-primary-sm .app-icon { width: 0.8rem !important; height: 0.8rem !important; }
.page-btn .app-icon { width: 0.8rem !important; height: 0.8rem !important; }

/* ---------- Services list page (VPS view) ---------- */
.app-services-header {
    align-items: flex-start;
}

.app-services-header-title {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.app-services-header-title .app-dash-card-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-services-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--app-border-lifted);
    background-color: var(--app-panel-bg-alt);
}

.app-services-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.app-tab {
    -webkit-appearance: none !important;
    appearance: none !important;
    padding: 0.45rem 0.85rem !important;
    border-radius: 0.65rem !important;
    background-color: transparent !important;
    border: 1px solid var(--app-border-lifted) !important;
    color: var(--app-text-muted) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    font-family: 'Vazirmatn', sans-serif !important;
    cursor: pointer;
    box-shadow: none !important;
    line-height: 1.4 !important;
}

.app-tab:hover {
    color: #fff !important;
    background-color: rgba(255,255,255,0.05) !important;
}

.app-tab.active {
    background-color: var(--app-accent) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25) !important;
}

.app-services-search {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--app-panel-bg) !important;
    border: 1px solid var(--app-border-lifted) !important;
    border-radius: 0.65rem !important;
    padding: 0.5rem 0.8rem !important;
    min-width: 260px;
    color: var(--app-text-muted);
}

.app-services-search input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--app-text) !important;
    font-size: 0.75rem !important;
    font-family: 'Vazirmatn', sans-serif !important;
}

.app-services-search input::placeholder {
    color: var(--app-text-muted);
}

.app-services-cycle {
    color: var(--app-text-muted);
    font-size: 0.65rem;
}

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

/* ---------- IP click-to-copy button ---------- */
.app-ip-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent !important;
    border: 1px dashed var(--app-border-lifted) !important;
    color: #e2e8f0 !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.75rem !important;
    padding: 0.25rem 0.55rem !important;
    border-radius: 0.5rem !important;
    cursor: pointer;
}

.app-ip-copy:hover {
    border-color: var(--app-accent) !important;
    color: #fff !important;
    background-color: rgba(37, 99, 235, 0.08) !important;
}

.app-ip-copy .app-ip-copy-icon {
    color: var(--app-text-muted);
    width: 0.75rem !important;
    height: 0.75rem !important;
}

.app-ip-copy:hover .app-ip-copy-icon {
    color: var(--app-accent-hover);
}

.app-ip-copy.copied {
    border-color: #34d399 !important;
    color: #34d399 !important;
}

.app-ip-copy.copied .app-ip-copy-icon {
    color: #34d399;
}

/* ---------- Profile / Account Details page ---------- */
.app-profile-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
}

.app-profile-avatar {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.app-profile-summary-info h2 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.3rem;
}

.app-profile-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    font-size: 0.75rem;
    color: var(--app-text-muted);
}

.app-profile-panel {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.app-profile-panel .app-dash-panel-header {
    padding: 0 0 1rem;
    border-bottom: 1px solid var(--app-border-lifted);
    margin-bottom: 1rem;
    background: transparent;
}

.app-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .app-profile-grid { grid-template-columns: 1fr; }
}

.app-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.app-field label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--app-text-muted);
}

.app-input,
.app-select-wrap select {
    background-color: var(--app-bg) !important;
    border: 1px solid var(--app-border-lifted) !important;
    border-radius: 0.65rem !important;
    color: var(--app-text) !important;
    font-size: 0.8rem !important;
    padding: 0.55rem 0.8rem !important;
    font-family: 'Vazirmatn', sans-serif !important;
    width: 100%;
}

.app-input:focus,
.app-select-wrap select:focus {
    outline: none;
    border-color: var(--app-accent) !important;
}

.app-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.app-select-wrap select { width: 100%; }

.app-profile-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.app-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #e2e8f0;
    cursor: pointer;
}

.app-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--app-accent);
}

.app-profile-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.5rem 0 1.5rem;
}

.app-profile-alert {
    padding: 0.8rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.app-profile-alert-success {
    background-color: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.app-profile-alert-error {
    background-color: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #fb7185;
}

/* ---------- Security & Password pages ---------- */
.app-profile-grid-1col {
    grid-template-columns: 1fr;
    max-width: 420px;
}

.app-2fa-panel .app-dash-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-2fa-status {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background-color: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.app-2fa-status-off {
    background-color: rgba(148, 163, 184, 0.12);
    color: var(--app-text-muted);
    border-color: var(--app-border-lifted);
}

.app-profile-alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    margin-bottom: 1rem;
}

.app-profile-actions-start {
    justify-content: flex-start;
    padding-top: 0;
}

.btn-app-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.35);
    color: #fb7185;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 0.9rem;
    border-radius: 0.65rem;
    text-decoration: none;
}

.btn-app-danger:hover {
    background-color: rgba(244, 63, 94, 0.2);
    color: #fecdd3;
    text-decoration: none;
}

.app-generate-pw {
    align-self: flex-start;
    margin-top: 0.3rem;
}

.app-profile-linked-accounts {
    color: var(--app-text);
    font-size: 0.8rem;
}

.app-profile-linked-accounts .list-group-item {
    background-color: var(--app-bg) !important;
    border-color: var(--app-border-lifted) !important;
    color: var(--app-text) !important;
}

/* ---------- Tickets: list, thread, submit ---------- */
.app-ticket-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
}

.app-ticket-banner-title {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.app-ticket-banner-title h2 {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.2rem;
}

.app-ticket-banner-title p {
    font-size: 0.75rem;
    color: var(--app-text-muted);
    margin: 0;
}

.app-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.app-ticket-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background-color: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--app-border-lifted);
    border-radius: var(--app-radius-md);
    padding: 0.9rem 1.1rem;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.app-ticket-card:hover {
    border-color: var(--app-accent);
    text-decoration: none;
}

.app-ticket-card.unread .app-ticket-card-subject {
    color: #fff;
    font-weight: 800;
}

.app-ticket-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.7rem;
}

.app-ticket-card-top .mono {
    color: var(--app-text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.app-ticket-status {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background-color: var(--app-panel-bg-alt);
    color: var(--app-text-muted);
    border: 1px solid var(--app-border-lifted);
}

.app-ticket-card-subject {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-ticket-card-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--app-text-muted);
}

.app-ticket-card-bottom .mono { font-family: 'JetBrains Mono', monospace; }

/* Thread view */
.app-ticket-thread {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-ticket-thread-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background-color: var(--app-panel-bg);
    border-bottom: 1px solid var(--app-border-lifted);
}

.app-ticket-thread-header h3 {
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.2rem;
}

.app-ticket-thread-header span {
    font-size: 0.75rem;
    color: var(--app-text-muted);
}

.app-ticket-thread-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.app-ticket-id-badge {
    background-color: var(--app-panel-bg-alt);
    border: 1px solid var(--app-border-lifted);
    color: #cbd5e1;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 0.5rem;
}

.app-ticket-thread-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 560px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--app-border-lifted) transparent;
}

.app-ticket-thread-body::-webkit-scrollbar {
    width: 8px;
}

.app-ticket-thread-body::-webkit-scrollbar-track {
    background: transparent;
}

.app-ticket-thread-body::-webkit-scrollbar-thumb {
    background-color: var(--app-border-lifted);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.app-ticket-thread-body::-webkit-scrollbar-thumb:hover {
    background-color: var(--app-accent);
    background-clip: padding-box;
}

.app-ticket-msg-row {
    display: flex;
}

.app-ticket-msg-row.from-user { justify-content: flex-start; }
.app-ticket-msg-row.from-staff { justify-content: flex-end; }

.app-ticket-msg-bubble {
    max-width: 34rem;
    padding: 0.9rem 1.1rem;
    border-radius: var(--app-radius-md);
    font-size: 0.8rem;
}

.from-user .app-ticket-msg-bubble {
    background-color: var(--app-panel-bg-alt);
    border: 1px solid var(--app-border-lifted);
    color: #e2e8f0;
    border-top-left-radius: 0;
}

.from-staff .app-ticket-msg-bubble {
    background-color: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.35);
    color: #e2e8f0;
    border-top-right-radius: 0;
}

.app-ticket-msg-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.65rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 0.4rem;
    margin-bottom: 0.5rem;
    color: var(--app-text-muted);
}

.app-ticket-msg-name { font-weight: 800; color: #e2e8f0; }

.app-ticket-msg-text {
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.app-ticket-msg-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.app-ticket-attachment {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background-color: var(--app-bg);
    border: 1px solid var(--app-border-lifted);
    color: var(--app-text-muted);
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.4rem;
    text-decoration: none;
}

.app-ticket-attachment:hover { color: #fff; text-decoration: none; }

.app-ticket-reply-form {
    padding: 0.9rem 1.25rem;
    background-color: var(--app-panel-bg);
    border-top: 1px solid var(--app-border-lifted);
}

.app-ticket-reply-input {
    width: 100%;
    resize: vertical;
    min-height: 4rem;
}

.app-ticket-reply-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.app-ticket-attach-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-ticket-attach-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    margin: 0;
}

/* Department selection */
.app-dept-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.app-dept-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1.1rem;
    background-color: var(--app-bg);
    border: 1px solid var(--app-border-lifted);
    border-radius: var(--app-radius-md);
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.app-dept-card:hover {
    border-color: var(--app-accent);
    text-decoration: none;
}

.app-dept-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    background-color: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-dept-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.app-dept-name {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
}

.app-dept-desc {
    font-size: 0.7rem;
    color: var(--app-text-muted);
}

.app-dept-card > .app-icon:last-child {
    color: var(--app-text-muted);
    flex-shrink: 0;
}

.app-dash-panel-header-sub {
    font-size: 0.75rem;
    color: var(--app-text-muted);
    margin: 0.2rem 0 0;
}

/* ---------- Multi-file attachment blocks (real WHMCS markup, restyled) ---------- */
.app-ticket-attachments-block {
    margin-top: 0.75rem;
}

.app-attach-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--app-text-muted);
    margin-bottom: 0.4rem;
}

.app-ticket-attachments-block .attachment-group,
.app-field .attachment-group {
    display: flex;
    align-items: stretch;
    gap: 0.4rem;
}

.app-ticket-attachments-block .custom-file,
.app-field .custom-file {
    flex: 1;
    position: relative !important;
    overflow: hidden;
    height: calc(1.5em + .75rem + 2px);
}

.app-ticket-attachments-block .custom-file-input,
.app-field .custom-file-input,
#fileUploadsContainer .custom-file-input {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    z-index: 2 !important;
    margin: 0 !important;
    cursor: pointer;
}

.app-ticket-attachments-block .custom-file-label,
.app-field .custom-file-label,
#fileUploadsContainer .custom-file-label {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    z-index: 1 !important;
    pointer-events: none;
    display: flex;
    align-items: center;
    margin: 0 !important;
    height: 100% !important;
}

.app-ticket-attachments-block .input-group-append button,
.app-field .input-group-append button {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

#fileUploadsContainer .attachment-group {
    margin-top: 0.4rem;
}

/* ---------- Ticket list panel wrapper (search + pagination) ---------- */
.app-ticket-list-panel {
    padding: 0;
}

.app-ticket-search-toolbar {
    padding: 1rem 1.25rem;
}

.app-ticket-list-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--app-text-muted);
}

.app-ticket-list-panel .app-ticket-list {
    padding: 1rem 1.25rem;
}

.app-ticket-list-panel .app-dash-pagination {
    border-radius: 0 0 var(--app-radius-lg) var(--app-radius-lg);
}

/* ---------- Billing / Invoices page ---------- */
.app-billing-stats {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .app-billing-stats { grid-template-columns: repeat(3, 1fr); }
}

.app-billing-wallet-card,
.app-billing-stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.app-billing-wallet-amount {
    font-size: 1.15rem;
    font-weight: 800;
    color: #34d399;
    margin-top: 0.25rem;
}

.app-billing-stat-amount {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-top: 0.25rem;
}

.app-billing-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.app-billing-header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-billing-header-title .app-icon { color: var(--app-accent-hover); }

.app-billing-header-title h3 {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.app-invoice-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
}

.app-invoice-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
}

.app-invoice-view-btn .app-icon { color: var(--app-accent-hover); }

.app-invoice-pay-btn {
    font-size: 0.7rem;
}

/* ---------- Domain management page ---------- */
.app-domain-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.app-domain-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--app-border-lifted);
    border-radius: var(--app-radius-lg);
    padding: 1rem 1.25rem;
    text-decoration: none;
    flex-wrap: wrap;
}

.app-domain-card:hover {
    border-color: var(--app-accent);
    text-decoration: none;
}

.app-domain-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    flex-shrink: 0;
}

.app-domain-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 10rem;
}

.app-domain-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
}

.app-domain-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: var(--app-text-muted);
}

.app-domain-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.app-domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    border: 1px solid;
}

.app-domain-badge-on {
    background-color: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}

.app-domain-badge-off {
    background-color: rgba(148, 163, 184, 0.1);
    color: var(--app-text-muted);
    border-color: var(--app-border-lifted);
}

.app-domain-manage-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

/* ---------- Auth pages (login / register) ---------- */
.app-auth-wrap {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.app-auth-card {
    width: 100%;
    max-width: 26rem;
    background-color: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--app-border-lifted);
    border-radius: var(--app-radius-lg);
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-auth-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--app-border-lifted);
}

.app-auth-brand-mark {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--app-radius-md);
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.app-auth-brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.app-auth-brand h1 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.app-auth-brand-sub {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--app-accent-hover);
    letter-spacing: 0.05em;
}

.app-auth-heading h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.25rem;
}

.app-auth-heading p {
    font-size: 0.75rem;
    color: var(--app-text-muted);
    margin: 0;
}

.app-field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-auth-link-sm {
    font-size: 0.7rem;
    color: var(--app-accent-hover);
    text-decoration: none;
}

.app-auth-link-sm:hover { color: #93c5fd; text-decoration: none; }

.app-input-icon-group {
    position: relative;
    display: flex;
    align-items: center;
}

.app-input-icon-group > .app-icon:first-child {
    position: absolute;
    right: 0.8rem;
    color: var(--app-text-muted);
    pointer-events: none;
    z-index: 2;
}

.app-input-icon-group .app-input {
    padding-right: 2.4rem !important;
    width: 100%;
}

.app-input-reveal {
    position: absolute;
    left: 0.6rem;
    background: transparent;
    border: none;
    color: var(--app-text-muted);
    padding: 0.25rem;
    cursor: pointer;
    z-index: 2;
}

.app-input-reveal:hover { color: #fff; }

.app-auth-remember {
    font-size: 0.75rem;
}

.app-auth-submit {
    width: 100%;
    justify-content: center;
    padding: 0.65rem !important;
    font-size: 0.85rem !important;
}

.app-auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.1rem 0;
    color: var(--app-text-muted);
    font-size: .72rem;
}
.app-auth-divider::before,
.app-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--app-border-lifted);
}

.app-auth-mobile-btn {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.app-flash-message {
    padding: .75rem 1rem;
    border-radius: .8rem;
    font-size: .78rem;
    line-height: 1.7;
    margin-bottom: 1.1rem;
}
.app-flash-error {
    background: rgba(244, 63, 94, .1);
    border: 1px solid rgba(244, 63, 94, .3);
    color: #fb7185;
}
.app-flash-warning {
    background: rgba(245, 158, 11, .1);
    border: 1px solid rgba(245, 158, 11, .3);
    color: #fbbf24;
}

.app-auth-captcha {
    display: flex;
    justify-content: center;
}

.app-auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--app-border-lifted);
    font-size: 0.75rem;
    color: var(--app-text-muted);
}

.app-auth-footer a {
    color: var(--app-accent-hover);
    font-weight: 700;
    text-decoration: none;
}

.app-auth-footer a:hover { color: #93c5fd; text-decoration: none; }

/* ---------- Add funds page ---------- */
.app-addfunds-stats { margin-bottom: 1.25rem; }

.app-addfunds-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.7rem 0.9rem;
    background-color: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: var(--app-radius-md);
    font-size: 0.72rem;
    color: #cbd5e1;
}

.app-addfunds-note .app-icon { color: var(--app-accent-hover); flex-shrink: 0; }

/* ---------- Auth card v2: centered brand + login/register tabs ---------- */
.app-auth-wrap-wide { padding-top: 3rem; }

.app-auth-card-wide {
    max-width: 42rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.app-auth-brand-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding-bottom: 1rem;
}

.app-auth-brand-centered .app-auth-brand-mark {
    width: 3rem;
    height: 3rem;
    font-size: 1.2rem;
}

.app-auth-brand-centered h1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin: 0.5rem 0 0;
}

.app-auth-brand-centered h1 .app-icon { color: var(--app-accent-hover); }

.app-auth-brand-centered p {
    font-size: 0.75rem;
    color: var(--app-text-muted);
    margin: 0;
}

.app-auth-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem;
    background-color: var(--app-bg);
    border: 1px solid var(--app-border-lifted);
    border-radius: var(--app-radius-md);
}

.app-auth-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem;
    border-radius: 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--app-text-muted);
    text-decoration: none;
    background: transparent;
}

.app-auth-tab:hover {
    color: #fff;
    text-decoration: none;
}

.app-auth-tab.active {
    background-color: var(--app-accent);
    color: #fff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

/* Icon-on-left variant (matches reference exactly, for RTL fields where icon sits at input's left edge) */
.app-input-icon-left {
    position: relative;
}

.app-input-icon-left .app-input {
    padding-left: 2.4rem !important;
    padding-right: 0.8rem !important;
    width: 100%;
}

.app-input-icon-left > svg.app-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--app-text-muted);
    pointer-events: none;
}

.app-input-reveal-left {
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--app-text-muted);
    padding: 0.2rem;
    cursor: pointer;
    z-index: 2;
}

.app-input-reveal-left:hover { color: #fff; }

/* When a field has both a reveal button AND a static icon (password fields),
   push the static icon further in and widen the input's left padding */
.app-input-icon-left:has(.app-input-reveal-left) > svg.app-icon:last-child {
    left: 2.2rem;
}

.app-input-icon-left:has(.app-input-reveal-left) .app-input {
    padding-left: 3.8rem !important;
}

/* ---------- Product details page ---------- */
.app-pd-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.app-pd-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-pd-unpaid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-pd-status-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem;
}

.app-pd-status-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.app-pd-title-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.app-pd-title-row .app-icon { color: #60a5fa; }

.app-pd-title-row h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.app-pd-subtitle {
    font-size: 0.75rem;
    color: var(--app-text-muted);
}

.app-pd-status-right {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex-wrap: wrap;
}

.app-pd-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-start;
}

.app-pd-meta-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--app-text-muted);
}

.app-pd-module-panel { padding: 0; }

.app-pd-module-output {
    padding: 1.25rem;
    color: var(--app-text);
    font-size: 0.85rem;
}

/* Reskin whatever buttons/forms the provisioning module renders inside,
   so power/reboot/console buttons visually match our theme automatically */
.app-pd-module-output .btn,
.app-pd-module-output button,
.app-pd-module-native .btn,
.app-pd-module-native button {
    background-color: var(--app-panel-bg-alt) !important;
    border: 1px solid var(--app-border-lifted) !important;
    color: #e2e8f0 !important;
    border-radius: var(--app-radius-md) !important;
    padding: 0.5rem 0.9rem !important;
    font-size: 0.75rem !important;
    margin: 0.2rem !important;
}

.app-pd-module-output .btn:hover,
.app-pd-module-output button:hover,
.app-pd-module-native .btn:hover,
.app-pd-module-native button:hover {
    background-color: var(--app-border-lifted) !important;
    color: #fff !important;
}

.app-pd-module-output .btn-primary,
.app-pd-module-output .btn-success,
.app-pd-module-native .btn-primary,
.app-pd-module-native .btn-success {
    background-color: var(--app-accent) !important;
    border-color: var(--app-accent) !important;
    color: #fff !important;
}

.app-pd-module-output table,
.app-pd-module-native table {
    width: 100%;
    color: var(--app-text);
}

.app-pd-module-native {
    margin-top: 0.75rem;
}

.app-pd-suspend-reason {
    font-size: 0.7rem;
    color: #fb7185;
}

.app-pd-tabs {
    margin-bottom: -0.5rem;
}

.app-pd-ns-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-top: 1px solid var(--app-border-lifted);
    font-size: 0.8rem;
}

.app-pd-usage-stats {
    grid-template-columns: repeat(2, 1fr);
}

.app-pd-usage-sub {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.65rem;
    color: var(--app-text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.btn-app-danger.disabled {
    opacity: 0.5;
    pointer-events: none;
}
