/* Dashboard: Client Area, Success Page, Tabs - Do not edit directly */


/* ==============================================================
   CLIENT AREA DASHBOARD
   ============================================================== */
.dashboard-page {
    min-height: 100vh;
    padding: 8rem 5% 5rem;
    max-width: 1300px;
    margin: 0 auto;
}

.dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-welcome h1 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard-welcome p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.dashboard-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-logout {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: var(--danger);
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: var(--danger);
    color: white;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.btn-new-order {
    padding: 0.6rem 1.5rem;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-pill);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-new-order:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.summary-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.summary-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.summary-stat-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.summary-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-stat-value {
    font-size: 2rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
}

.dashboard-card.full-width {
    grid-column: 1 / -1;
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.service-item,
.domain-item,
.order-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-item:last-child,
.domain-item:last-child,
.order-item:last-child {
    border-bottom: none;
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.item-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.item-meta {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.item-date {
    font-size: 0.8rem;
}
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-active {
    background: rgba(22, 163, 74, 0.15);
    color: var(--success);
    border: 1px solid rgba(22, 163, 74, 0.25);
}

.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-expired {
    background: rgba(220, 38, 38, 0.15);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.25);
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    display: block;
    opacity: 0.4;
}

.expiry-warning {
    color: var(--warning);
    font-weight: 600;
}

.expiry-soon {
    color: var(--danger);
    font-weight: 700;
}

/* ==============================================================
   SUCCESS PAGE
   ============================================================== */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(22, 163, 74, 0.05) 0%, var(--bg-primary) 100%);
}

.success-box {
    max-width: 550px;
    background: var(--bg-card);
    border: 1px solid rgba(22, 163, 74, 0.25);
    border-radius: var(--radius-xl);
    padding: 3.5rem 2.5rem;
    box-shadow: 0 20px 60px rgba(22, 163, 74, 0.08);
}

.success-check {
    width: 80px;
    height: 80px;
    background: rgba(22, 163, 74, 0.1);
    border: 2px solid var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    animation: pulse 2s ease-in-out infinite;
    color: var(--success);
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.3);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(22, 163, 74, 0);
    }
}

.success-box h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--success);
}

.success-box p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.btn-home {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: var(--accent-gradient);
    border-radius: var(--radius-pill);
    color: white;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(90, 79, 243, 0.4);
}
/* ==============================================================
   CLIENT AREA â€" TABS & TICKET FORM
   ============================================================== */
.tab-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0;
}

.tab-btn {
    padding: 0.7rem 1.4rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    border-bottom: 2px solid transparent;
    font-family: 'Inter', sans-serif;
    margin-bottom: -1px;
}

.tab-btn:hover {
    color: var(--accent-primary);
}

.tab-btn.active {
    color: var(--accent-secondary);
    border-bottom-color: var(--accent-secondary);
}
.tab-btn:focus-visible, .btn-svc-toggle:focus-visible { outline:3px solid var(--accent-primary); outline-offset:2px; }
.tab-nav { overflow-x:auto; flex-wrap:nowrap; }
.tab-btn { white-space:nowrap; min-height:44px; }
.order-progress { display:grid; justify-items:end; gap:.45rem; max-width:260px; text-align:right; }
.order-progress small { color:var(--text-secondary); line-height:1.4; }
.ticket-thread { border-bottom:1px solid var(--border-color); padding-bottom:.8rem; }
.ticket-thread .order-item { border:0; }
.ticket-thread summary { cursor:pointer; color:var(--accent-primary); font-weight:600; }
.ticket-message { margin:.8rem 0; padding:.9rem 1rem; background:var(--bg-secondary, #f7f7fb); border-left:3px solid var(--accent-primary); border-radius:8px; }
.ticket-message p { white-space:pre-wrap; margin:.4rem 0 0; }
.ticket-reply-form { display:grid; gap:.6rem; margin-top:1rem; max-width:680px; }
.ticket-reply-form textarea { min-height:90px; padding:.7rem; border:1px solid var(--border-color); border-radius:8px; font:inherit; }
.ticket-reply-form input { min-height:42px; padding:.65rem .75rem; border:1px solid var(--border-color); border-radius:8px; font:inherit; }
.ticket-reply-form button { justify-self:start; }
@media (max-width:600px) { .order-item { align-items:flex-start; flex-direction:column; gap:.8rem; } .order-progress { justify-items:start; text-align:left; max-width:none; } }

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ==============================================================
   CLIENT AREA — SERVICE DETAILS, cPanel CREDS, NAMESERVERS
   ============================================================== */
.service-row {
    border-bottom: 1px solid var(--border-color);
}

.service-row:last-child {
    border-bottom: none;
}

.service-row .service-item {
    border-bottom: none;
}

.btn-svc-toggle {
    padding: 0.35rem 1rem;
    background: transparent;
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-pill);
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: 'Inter', sans-serif;
}

.btn-svc-toggle:hover {
    background: rgba(90, 79, 243, 0.08);
}

.svc-details {
    background: rgba(90, 79, 243, 0.04);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-secondary);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    margin: 0 0 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.svc-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.6rem 1.5rem;
}

.cred-row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.85rem;
}

.cred-label {
    color: var(--text-secondary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.cred-value {
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.pw-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.7rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.pw-toggle:hover {
    border-color: var(--border-accent);
    color: var(--accent-primary);
}

.ns-form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px dashed var(--border-color);
}

.ns-form input {
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-width: 200px;
}

.ns-form input:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 3px rgba(90, 79, 243, 0.12);
}

.btn-save-ns {
    padding: 0.5rem 1.2rem;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-pill);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: 'Inter', sans-serif;
}

.btn-save-ns:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-save-ns:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ns-msg {
    font-size: 0.8rem;
    font-weight: 600;
}
