/* ========== Auth Pages ========== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}

.auth-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.auth-card-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-card-header img {
    height: 28px;
    margin: 0 auto 24px;
}

.auth-card-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-card-header p {
    font-size: 14px;
    color: var(--color-text-muted);
}

.auth-form {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 16px;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.form-group input::placeholder {
    color: var(--color-text-subtle);
}

.form-error {
    font-size: 12px;
    color: var(--color-danger);
    margin-top: 4px;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.form-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-muted);
    cursor: pointer;
}

.form-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
}

.form-row a {
    font-size: 13px;
    color: var(--color-primary-light);
    transition: var(--transition);
}

.form-row a:hover {
    color: var(--color-primary);
}

.auth-form .btn {
    width: 100%;
    margin-top: 8px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--color-text-subtle);
}

.auth-footer a {
    color: var(--color-primary-light);
    font-weight: 500;
}

@media (max-width: 480px) {
    .auth-wrapper { padding: 16px; }
    .auth-card { max-width: 100%; }
    .auth-form { padding: 24px 20px; }
    .auth-card-header h1 { font-size: 20px; }
    .form-group input,
    .form-group select { font-size: 16px; padding: 12px 14px; }
}

/* ========== Dashboard ========== */
.dash-layout {
    display: flex;
    min-height: 100vh;
}

.dash-sidebar {
    width: 260px;
    background: var(--color-bg-subtle);
    border-right: 1px solid var(--color-border);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}

.dash-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px 24px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 24px;
}

.dash-sidebar-logo img {
    height: 24px;
}

.dash-lang-switch {
    margin-left: auto;
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
    padding: 2px;
}
.dash-lang-switch a {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--color-text-subtle);
    text-decoration: none;
    transition: var(--transition);
}
.dash-lang-switch a.active {
    background: rgba(255,255,255,0.1);
    color: var(--color-text);
}
.dash-lang-switch a:hover:not(.active) {
    color: var(--color-text-muted);
}

.dash-sidebar-close {
    all: unset;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--color-text-muted);
    border-radius: 8px;
    transition: var(--transition);
    margin-right: auto;
}

.dash-sidebar-close:hover {
    background: var(--color-bg-card);
    color: var(--color-text);
}

.dash-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.dash-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.dash-nav a:hover {
    background: var(--color-bg-card);
    color: var(--color-text);
}

.dash-nav a.active {
    background: var(--color-primary-glow);
    color: var(--color-primary-light);
}

.dash-nav a i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* ── Agent Section in Sidebar ── */
.dash-agents-section {
    margin: 4px 10px 4px;
    padding: 10px 8px 6px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow-y: auto;
    max-height: 40vh;
    min-height: 0;
    flex-shrink: 0;
}

.dash-agents-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #64748b;
    padding: 0 8px 8px;
}

.dash-agents-list {
    padding: 0 !important;
    margin: 0 !important;
}

.dash-agents-list li {
    margin-bottom: 1px;
}

.dash-agent-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    transition: all 0.15s ease !important;
    border-left: 2px solid transparent;
}

.dash-agent-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}

.dash-agent-item.active {
    background: rgba(139, 92, 246, 0.15) !important;
    border-left: 2px solid var(--color-accent);
}

/* agent icon is inline now, no box needed */

.dash-agent-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dash-agent-name {
    font-size: 13px;
    font-weight: 500;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-agent-item.active .dash-agent-name {
    color: #fff;
}

.dash-agent-status {
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dash-agent-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.dash-agent-dot.online {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.dash-agent-dot.setup {
    background: #f59e0b;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.dash-agent-dot.sleeping {
    background: #a78bfa;
    box-shadow: 0 0 6px rgba(167, 139, 250, 0.4);
    animation: sleeping-pulse 2s ease-in-out infinite;
}

.dash-agent-dot.offline {
    background: #64748b;
}

.dash-nav-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
    margin-top: auto;
    flex-shrink: 0;
}

.dash-main {
    flex: 1;
    margin-left: 260px;
    padding: 32px 40px;
}

.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.dash-header h1 {
    font-size: 24px;
    font-weight: 700;
}

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

.dash-stat-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
}

.dash-stat-card .label {
    font-size: 13px;
    color: var(--color-text-subtle);
    margin-bottom: 8px;
}

.dash-stat-card .value {
    font-size: 28px;
    font-weight: 700;
}

/* Agent Card in Dashboard */
.dash-agent-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.dash-agent-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: var(--color-bg-card-hover);
}

.dash-agent-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.dash-agent-info {
    flex: 1;
    min-width: 0;
}

.dash-agent-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.dash-agent-info p {
    font-size: 13px;
    color: var(--color-text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.status-dot.online { background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, 0.5); }
.status-dot.offline { background: var(--color-text-subtle); }
.status-dot.setup { background: #fbbf24; box-shadow: 0 0 8px rgba(251, 191, 36, 0.5); }
.status-dot.error { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }
.status-dot.sleeping { background: #a78bfa; box-shadow: 0 0 8px rgba(167, 139, 250, 0.4); animation: sleeping-pulse 2s ease-in-out infinite; }
@keyframes sleeping-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.status-pill.sleeping { color: #a78bfa; border-color: rgba(167, 139, 250, 0.3); }

/* ========== Alert ========== */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.alert-success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    color: #86efac;
}

/* ========== Detail Section ========== */
.detail-section {
    margin-bottom: 28px;
}

.detail-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section-title i {
    font-size: 18px;
    color: var(--color-primary-light);
}

.detail-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border-subtle, rgba(255,255,255,0.04));
}

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

.detail-label {
    font-size: 13px;
    color: var(--color-text-subtle);
}

.detail-value {
    font-size: 14px;
    font-weight: 500;
}

/* ========== Setup Wizard ========== */
.setup-wizard {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setup-step {
    background: #1a1a1f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.setup-step:last-child {
    margin-bottom: 0;
}

.setup-step.active {
    border-color: rgba(139, 92, 246, 0.3);
}

.setup-step.completed {
    border-color: rgba(74, 222, 128, 0.2);
}

.setup-step.locked {
    opacity: 0.5;
    pointer-events: none;
}

.setup-step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
}

.setup-step-number {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.setup-step.active .setup-step-number {
    background: var(--color-primary-glow);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--color-primary-light);
}

.setup-step.completed .setup-step-number {
    background: rgba(74, 222, 128, 0.15);
    border-color: rgba(74, 222, 128, 0.3);
    color: #4ade80;
}

.setup-step-header h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.setup-step-header p {
    font-size: 13px;
    color: var(--color-text-muted);
}

.setup-step-body {
    padding: 0 24px 24px;
    padding-left: 76px;
}

.setup-instructions {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.setup-instructions h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.setup-instructions ol,
.setup-instructions ul {
    padding-left: 20px;
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.setup-instructions code {
    background: rgba(139, 92, 246, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--color-primary-light);
}

.setup-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.15);
    border-radius: 10px;
    font-size: 14px;
    color: #86efac;
}

.setup-success { position: relative; }
.setup-edit-link {
    margin-left: auto;
    font-size: 13px;
    color: var(--color-primary-light);
    text-decoration: none;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.setup-edit-link:hover { opacity: 1; text-decoration: underline; }
.setup-success i {
    font-size: 18px;
    color: #4ade80;
}

.dns-record-box {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin: 12px 0;
    overflow: hidden;
}

.dns-row {
    display: flex;
    padding: 8px 14px;
    border-bottom: 1px solid var(--color-border-subtle, rgba(255,255,255,0.04));
    font-size: 13px;
}

.dns-row:last-child { border-bottom: none; }
.dns-label { width: 60px; color: var(--color-text-subtle); flex-shrink: 0; }
.dns-value { color: var(--color-text); font-weight: 500; }

/* ========== Admin Tables ========== */
.admin-table-wrap {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table thead tr {
    border-bottom: 1px solid var(--color-border);
}

.admin-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border-subtle, rgba(255,255,255,0.04));
}

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

.admin-table tbody tr:hover {
    background: var(--color-bg-card-hover, rgba(255,255,255,0.02));
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-muted);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--color-primary-hover, #c44a14);
    transform: translateY(-1px);
}

.btn-ghost {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.btn-ghost:hover {
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--color-text);
}

/* ========== Order Page ========== */
.order-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card-row {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 24px;
    position: relative;
}
.order-card-row.coming-soon { opacity: 0.6; }

.order-row-top {
    display: flex;
    gap: 32px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.order-row-info {
    display: flex;
    gap: 16px;
    flex: 1 1 280px;
    min-width: 280px;
}
.order-row-info h3 { font-size: 22px; }
.order-card-row .price { font-size: 22px; font-weight: 800; }
.order-row-info .description { font-size: 15px; color: var(--color-text-muted); line-height: 1.5; }

.order-row-features {
    flex-shrink: 0;
    columns: 2;
    column-gap: 24px;
    font-size: 13px;
    min-width: 300px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.order-row-features li {
    break-inside: avoid;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    color: var(--color-text-muted);
}
.order-row-features li i { color: #4ade80; font-size: 14px; }

.order-row-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
}

@media (max-width: 768px) {
    .order-row-top { flex-direction: column; gap: 16px; }
    .order-row-features { min-width: 0; columns: 1; }
    .order-row-info { flex-direction: column; }
}

.order-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.order-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

.order-card.coming-soon {
    opacity: 0.6;
    pointer-events: none;
}

.order-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.order-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.order-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.order-card .price {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
}

.order-card .price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-subtle);
}

.order-card .description {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.order-card .features {
    list-style: none;
    margin-bottom: 24px;
    flex: 1;
}

.order-card .features li {
    font-size: 13px;
    color: var(--color-text-muted);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-card .features li i {
    color: #4ade80;
    font-size: 14px;
}

/* ========== Simple Steps ========== */
.simple-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.simple-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.simple-step-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--color-primary-glow);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--color-primary-light);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.simple-step strong {
    font-size: 14px;
    display: block;
    margin-bottom: 2px;
}

.simple-step p {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.simple-step code {
    background: rgba(139, 92, 246, 0.1);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--color-primary-light);
}

/* ========== Domain Status ========== */
.domain-status-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
}

.domain-status-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    margin-bottom: 16px;
    color: var(--color-text);
}

.domain-status-header i {
    font-size: 18px;
    color: var(--color-primary-light);
}

.domain-status-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.domain-check-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.domain-check-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.domain-check-icon.pending {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
}

.domain-check-icon.waiting {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.domain-check-icon.done {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.domain-check-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 1px;
}

.domain-check-detail {
    font-size: 13px;
    color: var(--color-text-muted);
}

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

.spin {
    animation: spin 1.5s linear infinite;
    display: inline-block;
}

/* ========== Admin Action Buttons ========== */
.admin-action-btn {
    all: unset;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--color-text-muted);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.admin-action-btn:hover {
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--color-primary-light);
}

.admin-action-btn.success:hover {
    border-color: rgba(74, 222, 128, 0.3);
    color: #4ade80;
}

.admin-action-btn.danger:hover {
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ========== Responsive Helpers ========== */
.show-mobile { display: none !important; }

@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
    .show-mobile { display: inline-flex !important; }
}

/* ========== Mobile Header ========== */
.dash-mobile-header {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--color-bg-subtle);
    border-bottom: 1px solid var(--color-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
}

.dash-menu-toggle {
    all: unset;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--color-text-muted);
    border-radius: 10px;
    transition: var(--transition);
}

.dash-menu-toggle:hover {
    background: var(--color-bg-card);
    color: var(--color-text);
}

.dash-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 98;
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* ========== Responsive Dashboard ========== */
@media (max-width: 768px) {
    .dash-mobile-header {
        display: flex;
    }

    .dash-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 99;
        display: flex;
    }

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

    .dash-sidebar.open ~ .dash-overlay {
        display: block;
        opacity: 1;
    }

    .dash-main {
        margin-left: 0;
        padding: 20px 16px;
        padding-top: 80px;
    }

    .dash-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .dash-cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .dash-stat-card {
        padding: 16px;
    }

    .dash-stat-card .value {
        font-size: 22px;
    }

    .dash-agent-card {
        padding: 16px;
        gap: 14px;
    }

    /* Order Grid */
    .order-grid {
        grid-template-columns: 1fr;
    }

    /* Admin Tables */
    .admin-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table {
        min-width: 600px;
    }

    /* Setup Wizard */
    .setup-step-body {
        padding-left: 24px;
    }

    .setup-instructions {
        padding: 16px;
    }

    /* Chat */
    .chat-container {
        height: calc(100vh - 140px);
    }

    .chat-msg {
        max-width: 88%;
    }

    /* Detail Cards */
    .detail-card {
        padding: 16px;
    }

    /* Buttons */
    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }

    /* DNS Record Box */
    .dns-record-box {
        font-size: 12px;
    }

    /* File Manager */
    .admin-table th:nth-child(3),
    .admin-table td:nth-child(3),
    .admin-table th:nth-child(4),
    .admin-table td:nth-child(4) {
        display: none;
    }
}

@media (max-width: 480px) {
    .dash-cards {
        grid-template-columns: 1fr;
    }

    .dash-header h1 {
        font-size: 20px;
    }

    .email-body {
        padding: 24px 16px;
    }

    /* Setup QR + Steps stacked */
    .setup-instructions div[style*="display:flex"][style*="gap:24px"] {
        flex-direction: column !important;
        align-items: center !important;
    }
}

/* ═══════════════════════════════════════ */
/* Legal Pages                             */
/* ═══════════════════════════════════════ */
.legal-page {
    min-height: 100vh;
    background: var(--color-bg, #09090b);
    padding: 60px 20px 80px;
}
.legal-container {
    max-width: 720px;
    margin: 0 auto;
}
.legal-page h1 {
    font-size: 32px;
    font-weight: 800;
    color: #fafafa;
    margin-bottom: 4px;
}
.legal-updated {
    font-size: 13px;
    color: #71717a;
    margin-bottom: 40px;
}
.legal-toc {
    background: #18181b;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 40px;
}
.legal-toc h3 {
    font-size: 15px;
    font-weight: 600;
    color: #e4e4e7;
    margin-bottom: 12px;
}
.legal-toc ol {
    padding-left: 20px;
    margin: 0;
}
.legal-toc li {
    margin-bottom: 6px;
    font-size: 14px;
}
.legal-toc a {
    color: #a78bfa;
    text-decoration: none;
    transition: color 0.2s;
}
.legal-toc a:hover {
    color: #c4b5fd;
    text-decoration: underline;
}
.legal-page section {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.legal-page section:last-of-type {
    border-bottom: none;
}
.legal-page h2 {
    font-size: 20px;
    font-weight: 700;
    color: #fafafa;
    margin-bottom: 16px;
}
.legal-page h3 {
    font-size: 16px;
    font-weight: 600;
    color: #e4e4e7;
    margin: 20px 0 10px;
}
.legal-page p {
    font-size: 15px;
    line-height: 1.8;
    color: #a1a1aa;
    margin-bottom: 12px;
}
.legal-page ul, .legal-page ol {
    padding-left: 24px;
    margin-bottom: 16px;
}
.legal-page li {
    font-size: 15px;
    line-height: 1.8;
    color: #a1a1aa;
    margin-bottom: 6px;
}
.legal-page a {
    color: #a78bfa;
    text-decoration: none;
}
.legal-page a:hover {
    text-decoration: underline;
}
.legal-page strong {
    color: #e4e4e7;
}
.legal-info-box {
    background: #18181b;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 16px 20px;
    margin: 12px 0 16px;
}
.legal-info-box p {
    margin: 0 0 4px;
    font-size: 14px;
    color: #d4d4d8;
}
.legal-info-box p:last-child {
    margin-bottom: 0;
}
.legal-footer-note {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 40px;
}
.legal-footer-note p {
    font-size: 13px;
    color: #52525b;
}
@media (max-width: 600px) {
    .legal-page { padding: 40px 16px 60px; }
    .legal-page h1 { font-size: 24px; }
    .legal-page h2 { font-size: 18px; }
    .legal-toc { padding: 16px 20px; }
}

/* ========== Profile / Form Inputs ========== */
.setup-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.setup-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text);
    font-size: 15px;
    transition: var(--transition);
    outline: none;
    box-sizing: border-box;
}

.setup-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.setup-error {
    display: block;
    color: #ef4444;
    font-size: 13px;
    margin-top: 4px;
}

.setup-hint {
    display: block;
    color: var(--color-text-muted);
    font-size: 12px;
    margin-top: 4px;
}

/* Custom Mailchimp icon (not in Remix Icons) — use logo PNG */
.ri-mailchimp-line {
    background: url('/assets/img/logos/mailchimp.png') center/contain no-repeat !important;
    font-size: 0 !important;
    display: inline-block !important;
    width: 24px !important;
    height: 24px !important;
    vertical-align: middle;
}
.ri-mailchimp-line::before {
    content: '' !important;
    display: none !important;
}
.fx-card-icon .ri-mailchimp-line,
.agent-card-icon .ri-mailchimp-line {
    width: 28px !important;
    height: 28px !important;
}
.fx-hero-badge .ri-mailchimp-line {
    width: 18px !important;
    height: 18px !important;
}
