/* Loncin Account Pages — Premium layout, brand colors */

.account_dashboard {
    padding: 28px 0 36px;
    background: #f4f6f8;
}

/* ── Sidebar ── */
.dashboard_tab_button {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.dashboard-sidebar-profile {
    padding: 28px 20px 22px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.dashboard-sidebar-avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ea1c26;
    color: #ea1c26;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(234, 28, 38, 0.15);
}

.dashboard-sidebar-profile strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-sidebar-profile span {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard_tab_button .dashboard-list {
    padding: 10px 0;
}

.dashboard_tab_button ul li {
    margin-bottom: 0;
}

.dashboard_tab_button ul li a,
.dashboard_tab_button .dashboard-list li a.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    font-size: 13.5px;
    font-weight: 500;
    color: #475569;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    border-radius: 0;
    text-transform: capitalize;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.dashboard_tab_button ul li a i {
    width: 18px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    flex-shrink: 0;
    transition: color 0.18s;
}

.dashboard_tab_button ul li a:hover {
    background: #f8fafc;
    color: #111;
}

.dashboard_tab_button ul li a:hover i {
    color: #ea1c26;
}

.dashboard_tab_button ul li a.active {
    background: rgba(234, 28, 38, 0.05);
    color: #ea1c26;
    border-left-color: #ea1c26;
    font-weight: 700;
}

.dashboard_tab_button ul li a.active i {
    color: #ea1c26;
}

.dashboard-sidebar-logout {
    padding: 14px 20px;
    border-top: 1px solid #f1f5f9;
}

.dashboard-sidebar-logout a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.dashboard-sidebar-logout a:hover {
    background: #ea1c26;
    border-color: #ea1c26;
    color: #fff;
}

/* ── Content panel ── */
.dashboard_content {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.dashboard_content h4 {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.02em;
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eeeeee;
    position: relative;
}

.dashboard_content h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 44px;
    height: 2px;
    background: #ea1c26;
}

/* ── Stat / profile cards ── */
.account-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.account-card {
    background: linear-gradient(145deg, #fafbfc, #f4f6f8);
    border: 1px solid #eeeeee;
    border-radius: 14px;
    padding: 26px 22px;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
}

.account-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.account-card-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 14px;
    background: rgba(234, 28, 38, 0.08);
    border: 1px solid rgba(234, 28, 38, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ea1c26;
    font-size: 20px;
}

.account-card h5 {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase !important;
    color: #64748b;
    margin: 0 0 6px !important;
}

.account-card .account-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 12px;
}

.account-card a.account-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ea1c26;
    text-decoration: none;
}

.account-card a.account-card-link:hover {
    color: #c91820;
}

.account-profile-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    display: block;
    border: 3px solid #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.account-profile-avatar-placeholder {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: rgba(234, 28, 38, 0.08);
    border: 1px solid rgba(234, 28, 38, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ea1c26;
    font-size: 26px;
}

.account-profile-name {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px;
}

.account-profile-meta {
    font-size: 13px !important;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
    word-break: break-word;
}

/* ── Quick links ── */
.account-quick-links {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.account-quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.account-quick-link i {
    color: #ea1c26;
    font-size: 15px;
    width: 18px;
    text-align: center;
}

.account-quick-link:hover {
    border-color: rgba(234, 28, 38, 0.35);
    color: #ea1c26;
    transform: translateY(-2px);
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .dashboard-sidebar-profile strong,
    .dashboard-sidebar-profile span {
        white-space: normal;
        word-break: break-word;
    }

    .account-cards {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    }

    .account-quick-links {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    }
}

@media (max-width: 767px) {
    .account_dashboard {
        padding-top: 24px;
    }

    .dashboard_tab_button {
        margin-bottom: 20px;
    }

    .dashboard_content {
        padding: 20px 16px;
    }

    .account-cards {
        grid-template-columns: 1fr;
    }
}

.user-order-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.user-order-status.status-new { background: #fff7ed; color: #c2410c; }
.user-order-status.status-accepted { background: #eff6ff; color: #1d4ed8; }
.user-order-status.status-completed { background: #ecfdf5; color: #047857; }
.user-order-status.status-canceled { background: #fef2f2; color: #b91c1c; }

.user-warranty-claim-btn,
.user-warranty-claimed-btn {
    margin-left: 10px;
    color: #047857;
}

.user-warranty-claimed-btn {
    color: #6b7280;
}

.customer-warranty-intro {
    color: #64748b;
    margin-bottom: 16px;
}

.customer-warranty-order-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 24px;
}

.customer-warranty-order-box h5 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #0f172a;
}

.customer-warranty-order-box ul {
    margin: 0;
    padding-left: 18px;
    color: #475569;
    font-size: 14px;
}

.customer-warranty-form textarea,
.customer-warranty-form input[type="text"],
.customer-warranty-form input[type="date"],
.customer-warranty-form input[type="number"],
.customer-warranty-form input[type="file"] {
    width: 100%;
}

.customer-warranty-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.customer-warranty-cancel {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
}

.customer-warranty-submit {
    background: #047857;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 22px;
    font-weight: 700;
    cursor: pointer;
}

.customer-warranty-submit:hover {
    background: #065f46;
}

.customer-warranty-errors,
.field-error {
    color: #b91c1c;
    font-size: 13px;
}
