/* ============================================================
   DASHBOARD STYLES — Details Decor Luxury Dashboard
   ============================================================ */

/* ============================================================
   1. DASHBOARD LAYOUT
   ============================================================ */
.user-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-beige);
}

.user-layout {
    flex: 1;
    padding: 24px 0 40px;
}

.user-main {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 36px;
    width: 100%;
}

@media (max-width: 768px) {
    .user-main {
        padding: 0 16px;
    }
    .user-layout {
        padding: 16px 0 100px;
    }
}

/* ============================================================
   2. TOPBAR
   ============================================================ */
.portal-topbar {
    background: var(--black);
    padding: 6px 36px;
    border-bottom: 1px solid rgba(197, 169, 104, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.portal-topbar > div {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.portal-topbar span {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.68rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.portal-topbar span i {
    color: var(--gold);
    font-size: 0.6rem;
}

.portal-topbar a {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.68rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 4px;
}

.portal-topbar a:hover {
    color: var(--gold-light);
}

@media (max-width: 768px) {
    .portal-topbar {
        padding: 6px 16px;
        justify-content: center;
    }
    .portal-topbar span {
        font-size: 0.6rem;
    }
}

/* ============================================================
   3. HEADER / USER HEADER
   ============================================================ */
.user-header {
    background: rgba(8, 9, 10, 0.97);
    padding: 10px 36px;
    border-bottom: 1px solid rgba(197, 169, 104, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
}

.user-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-inverse);
}

.user-brand-logo {
    height: 120px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(197, 169, 104, 0.22));
}

.user-brand i {
    color: var(--gold);
    font-size: 1rem;
}

.user-brand span {
    color: var(--gold);
}

.user-brand-fallback {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dashboard-topicbar {
    background: #161616;
    border-bottom: 1px solid rgba(197, 169, 104, 0.2);
    padding: 12px 36px;
}

.dashboard-topicbar-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.dashboard-topic-label {
    color: var(--gold-light);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dashboard-topic-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-topic-links a {
    color: var(--text-inverse);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    position: relative;
    transition: var(--transition-smooth);
    border: 1px solid rgba(197, 169, 104, 0.6);
    background: transparent;
    padding: 10px 16px;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: none;
}

.dashboard-topic-links a:hover {
    color: var(--black);
    background: var(--gold-light);
    border-color: var(--gold-light);
}

.dashboard-topic-links a.active {
    color: var(--black);
    background: var(--gold);
    border-color: var(--gold);
}

.dashboard-topic-links a::after {
    display: none;
}

@media (max-width: 768px) {
    .dashboard-topicbar {
        display: none;
    }
}

.user-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-header-actions > a {
    color: rgba(255, 255, 255, 0.3);
    transition: var(--transition-smooth);
    padding: 6px 8px;
}

.user-header-actions > a:hover {
    color: var(--gold-light);
}

@media (max-width: 768px) {
    .user-header {
        padding: 8px 16px;
    }
    .user-brand {
        font-size: 1rem;
    }
}

/* ============================================================
   4. NOTIFICATION DROPDOWN
   ============================================================ */
.user-notification-wrap {
    position: relative;
}

.user-notification-trigger {
    position: relative;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    padding: 6px 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: var(--radius-xs);
}

.user-notification-trigger:hover {
    color: var(--gold-light);
    background: rgba(255, 255, 255, 0.04);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--gold);
    color: var(--black);
    font-size: 0.6rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    max-height: 400px;
    overflow-y: auto;
    background: rgba(8, 9, 10, 0.98);
    border: 1px solid rgba(197, 169, 104, 0.3);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: var(--transition-smooth);
    z-index: 200;
}

.user-notification-wrap.is-open .user-notification-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.notification-top span {
    color: var(--text-inverse);
    font-weight: 600;
    font-size: 0.82rem;
}

.notification-top a {
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 600;
}

.notification-dropdown-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
}

.notification-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notification-dropdown-item.unread {
    border-left: 2px solid var(--gold);
}

.notification-dropdown-item .notification-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(197, 169, 104, 0.1);
    border-radius: 50%;
    color: var(--gold);
}

.notification-dropdown-item .notification-copy {
    flex: 1;
    min-width: 0;
}

.notification-dropdown-item .notification-copy strong {
    display: block;
    color: var(--text-inverse);
    font-size: 0.78rem;
    font-weight: 600;
}

.notification-dropdown-item .notification-copy small {
    display: block;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.68rem;
    line-height: 1.4;
}

.notification-dropdown-item.empty {
    justify-content: center;
    padding: 24px 16px;
    color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 480px) {
    .user-notification-dropdown {
        width: 290px;
        right: -40px;
    }
}

/* ============================================================
   5. USER MENU
   ============================================================ */
.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    background: transparent;
    border: 1px solid rgba(197, 169, 104, 0.2);
    border-radius: var(--radius-xs);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-secondary);
    font-size: 0.78rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.user-menu-trigger:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: var(--black);
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.user-avatar-image {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(197, 169, 104, 0.8);
    background: #111;
    padding: 2px;
    display: block;
}

.user-menu-trigger i {
    font-size: 0.6rem;
    transition: var(--transition-smooth);
}

.user-menu.is-open .user-menu-trigger i {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: rgba(8, 9, 10, 0.98);
    border: 1px solid rgba(197, 169, 104, 0.3);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: var(--transition-smooth);
    z-index: 200;
    padding: 6px 0;
}

.user-menu.is-open .user-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.user-menu-dropdown a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--gold-light);
}

.user-menu-dropdown a i {
    width: 18px;
    color: var(--gold);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .user-menu-name {
        display: none;
    }
    .user-menu-dropdown {
        right: -20px;
        min-width: 200px;
    }
}

/* ============================================================
   6. BOTTOM NAV (Mobile)
   ============================================================ */
.dashboard-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(8, 9, 10, 0.98);
    border-top: 1px solid rgba(197, 169, 104, 0.2);
    padding: 8px 6px max(8px, env(safe-area-inset-bottom));
    justify-content: space-around;
    backdrop-filter: blur(16px);
}

.dashboard-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.55rem;
    text-decoration: none;
    padding: 4px 8px;
    transition: var(--transition-smooth);
    min-width: 44px;
}

.dashboard-bottom-nav a i {
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.dashboard-bottom-nav a.active,
.dashboard-bottom-nav a:hover {
    color: var(--gold-light);
}

.dashboard-bottom-nav a.active i,
.dashboard-bottom-nav a:hover i {
    color: var(--gold);
}

@media (max-width: 768px) {
    .dashboard-bottom-nav {
        display: flex;
    }
}

/* ============================================================
   7. PAGE HEAD
   ============================================================ */
.portal-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.portal-page-head > div {
    flex: 1;
    min-width: 200px;
}

.portal-page-head .user-kicker {
    color: var(--gold);
    font-family: var(--font-secondary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.portal-page-head h1 {
    margin: 4px 0 8px;
    color: var(--text-primary);
    font-family: var(--font-secondary);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
}

.portal-page-head .user-muted {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.portal-page-head .btn {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .portal-page-head {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .portal-page-head .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   8. USER PANEL / CARDS
   ============================================================ */
.user-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.user-panel .panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.user-panel .panel-title .panel-eyebrow {
    display: block;
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.user-panel .panel-title h2 {
    margin: 4px 0 0;
    color: var(--text-primary);
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 800;
}

.panel-title-icon {
    color: var(--gold);
    font-size: 1.2rem;
}

/* ============================================================
   9. STATUS PILL
   ============================================================ */
.status-pill {
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    background: var(--gold-soft);
    color: var(--gold-dark);
    white-space: nowrap;
    line-height: 1.4;
}

.status-pill.status-requested {
    background: #fff3cd;
    color: #856404;
}
.status-pill.status-pending {
    background: #fff3cd;
    color: #856404;
}
.status-pill.status-confirmed {
    background: #cce5ff;
    color: #004085;
}
.status-pill.status-in_progress {
    background: #d4edda;
    color: #155724;
}
.status-pill.status-completed {
    background: var(--gold);
    color: var(--black);
}
.status-pill.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}
.status-pill.status-planned {
    background: var(--beige-dark);
    color: var(--text-secondary);
}
.status-pill.status-active {
    background: #d4edda;
    color: #155724;
}
.status-pill.status-draft {
    background: var(--beige-dark);
    color: var(--text-secondary);
}
.status-pill.status-archived {
    background: #e9ecef;
    color: #6c757d;
}

/* ============================================================
   10. APPOINTMENT TABLE
   ============================================================ */
.appointment-table {
    padding: 8px 0;
}

.appointment-full-row {
    display: grid;
    grid-template-columns: 70px 1fr auto auto auto;
    gap: 16px;
    align-items: center;
    padding: 14px 22px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.appointment-full-row:last-child {
    border-bottom: none;
}

.appointment-full-row:hover {
    background: var(--gold-soft);
}

.appointment-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    padding: 8px 0;
    background: var(--beige-dark);
    border-radius: var(--radius-sm);
    text-align: center;
}

.appointment-date strong {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

.appointment-date small {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.appointment-full-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.appointment-full-info strong {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.appointment-full-info span {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.appointment-full-info small {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.appointment-full-row .text-link {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.appointment-full-row .text-link:hover {
    color: var(--black);
}

.appointment-full-row form {
    display: inline;
}

.appointment-full-row form .text-link {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    color: #8a2424;
    padding: 0;
}

.appointment-full-row form .text-link:hover {
    color: #b93a34;
}

@media (max-width: 768px) {
    .appointment-full-row {
        grid-template-columns: 60px 1fr;
        gap: 10px;
        padding: 12px 16px;
    }
    .appointment-full-row .status-pill {
        grid-column: 2;
        justify-self: start;
    }
    .appointment-full-row .text-link {
        grid-column: 2;
    }
    .appointment-full-row form {
        grid-column: 2;
    }
}

/* ============================================================
   11. BOOKING TABLE
   ============================================================ */
.booking-table {
    padding: 0;
}

.booking-table-head {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr 1fr;
    gap: 16px;
    padding: 12px 22px;
    background: var(--beige-dark);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-light);
    letter-spacing: 0.05em;
}

.booking-table-row {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px 22px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-smooth);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.booking-table-row:hover {
    background: var(--gold-soft);
}

.booking-table-row:last-child {
    border-bottom: none;
}

.booking-table-row div:first-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.booking-table-row div:first-child strong {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 700;
}

.booking-table-row div:first-child small {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.service-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.service-stack span {
    font-size: 0.78rem;
    color: var(--text-secondary);
    padding: 2px 8px;
    background: var(--beige-light);
    border-radius: var(--radius-xs);
    border: 1px solid var(--border-light);
}

.booking-total {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.booking-total small {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .booking-table-head {
        display: none;
    }
    .booking-table-row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 14px 16px;
    }
    .booking-table-row div:first-child {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .booking-table-row .status-pill {
        justify-self: start;
    }
}

/* ============================================================
   12. PROJECT GRID
   ============================================================ */
.portal-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 4px;
}

.project-portal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-xs);
}

.project-portal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-gold);
}

.project-portal-image {
    position: relative;
    height: 200px;
    background: var(--beige-dark);
    overflow: hidden;
}

.project-portal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-portal-image i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.3;
}

.project-portal-image .status-pill {
    position: absolute;
    top: 12px;
    right: 12px;
}

.project-portal-body {
    padding: 18px 20px 20px;
}

.project-portal-body .panel-eyebrow {
    display: block;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-portal-body h2 {
    margin: 6px 0 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.project-portal-body .progress-track {
    height: 6px;
    background: var(--beige-dark);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.project-portal-body .progress-track i {
    display: block;
    height: 100%;
    background: var(--gold);
    border-radius: 3px;
}

.project-portal-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.project-portal-meta strong {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.project-portal-meta span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.project-portal-meta a {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-portal-meta a:hover {
    color: var(--black);
}

@media (max-width: 480px) {
    .portal-project-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   13. NOTIFICATIONS LIST
   ============================================================ */
.notification-list {
    padding: 4px 22px;
}

.notification-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.notification-row:last-child {
    border-bottom: none;
}

.notification-row > i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    background: var(--gold-soft);
    border-radius: 50%;
    color: var(--gold);
    font-size: 0.85rem;
}

.notification-row div {
    flex: 1;
    min-width: 0;
}

.notification-row strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.notification-row small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.5;
}

.notification-row time {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.65rem;
}

.notification-row.is-unread {
    border-left: 2px solid var(--gold);
    padding-left: 12px;
}

.notification-row form {
    flex-shrink: 0;
    margin-top: 2px;
}

.notification-read {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    font-size: 0.65rem;
    font-weight: 600;
    background: transparent;
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-xs);
    color: var(--gold-dark);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: inherit;
}

.notification-read:hover {
    background: var(--gold-soft);
    border-color: var(--gold);
}

@media (max-width: 768px) {
    .notification-list {
        padding: 4px 16px;
    }
    .notification-row {
        flex-wrap: wrap;
    }
    .notification-row form {
        width: 100%;
        margin-left: 48px;
    }
}

/* ============================================================
   14. DASHBOARD PAGINATION
   ============================================================ */
.dashboard-pagination {
    padding: 16px 22px;
    border-top: 1px solid var(--border-light);
}

.dashboard-pagination nav {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.dashboard-pagination .pagination {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.dashboard-pagination .page-item {
    list-style: none;
}

.dashboard-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-size: 0.78rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.dashboard-pagination .page-link:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

.dashboard-pagination .page-item.active .page-link {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
    font-weight: 700;
}

.dashboard-pagination .page-item.disabled .page-link {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ============================================================
   15. EMPTY STATES
   ============================================================ */
.user-empty {
    padding: 48px 20px;
    text-align: center;
    color: var(--text-muted);
}

.user-empty i {
    font-size: 2.4rem;
    color: var(--gold);
    opacity: 0.3;
    margin-bottom: 16px;
    display: block;
}

.user-empty p {
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.user-empty .btn {
    margin-top: 4px;
}

.mini-empty {
    padding: 24px 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ============================================================
   16. TEXT LINKS & ACTIONS
   ============================================================ */
.text-link {
    color: var(--gold-dark);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.text-link:hover {
    color: var(--black);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xs);
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
    background: var(--gold-soft);
}

/* ============================================================
   17. DASHBOARD METRICS GRID
   ============================================================ */
.user-grid.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 20px 0 24px;
}

.user-stat {
    padding: 20px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    transition: var(--transition-smooth);
}

.user-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.user-stat small {
    display: block;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.user-stat strong {
    display: block;
    margin-top: 8px;
    color: var(--text-primary);
    font-family: var(--font-secondary);
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    font-weight: 800;
}

.user-stat strong small {
    display: inline-block;
    margin-inline-start: 2px;
    font-size: 0.7rem;
    letter-spacing: 0;
}

.user-stat .metric-note {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 0.7rem;
}

@media (max-width: 768px) {
    .user-grid.dashboard-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .user-grid.dashboard-metrics {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   18. DASHBOARD LAYOUT GRIDS
   ============================================================ */
.dashboard-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.dashboard-lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
    gap: 22px;
    margin-top: 22px;
}

@media (max-width: 1024px) {
    .dashboard-columns,
    .dashboard-lower-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-columns aside {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
}

/* ============================================================
   19. PROJECT PROGRESS ROW
   ============================================================ */
.project-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.project-progress-row:last-child {
    border-bottom: none;
}

.project-progress-info {
    flex: 1;
    min-width: 0;
}

.project-progress-info strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 600;
}

.project-progress-info span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.72rem;
}

.project-progress-info .progress-track {
    height: 5px;
    background: var(--beige-dark);
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0 4px;
}

.project-progress-info .progress-track i {
    display: block;
    height: 100%;
    background: var(--gold);
    border-radius: 3px;
}

.project-progress-info small {
    color: var(--text-muted);
    font-size: 0.65rem;
}

/* ============================================================
   20. PROFILE RING
   ============================================================ */
.profile-ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 130px;
    margin: 16px auto;
    border-radius: 50%;
    background: conic-gradient(var(--gold) var(--profile-completion, 0%), var(--beige-dark) var(--profile-completion, 0%));
    border: 6px solid var(--bg-card);
    box-shadow: var(--shadow-gold);
}

.profile-ring strong {
    color: var(--black);
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 800;
}

.profile-ring span {
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
}

/* ============================================================
   21. OUTLINE ACTION
   ============================================================ */
.outline-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    color: var(--gold-dark);
    background: transparent;
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.outline-action:hover {
    background: var(--gold-soft);
    border-color: var(--gold);
}

/* ============================================================
   22. USER ALERT
   ============================================================ */
.user-alert {
    margin-bottom: 16px;
    padding: 12px 16px;
    color: var(--black);
    background: var(--gold-soft);
    border-inline-start: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.user-alert i {
    color: var(--gold);
    font-size: 1rem;
}

/* ============================================================
   23. PROFILE PAGE STYLES
   ============================================================ */
.profile-page {
    max-width: 1080px;
    margin: 0 auto;
}

.profile-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.profile-head .profile-kicker {
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-head h1 {
    margin: 8px 0 7px;
    color: var(--text-primary);
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

.profile-head p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: var(--gold);
    background: var(--gold-soft);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.5fr);
    gap: 22px;
}

.profile-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    border-top: 2px solid var(--gold);
    box-shadow: var(--shadow-sm);
}

.profile-summary {
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 12px;
    text-align: center;
}

.profile-avatar {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    overflow: hidden;
    color: var(--black);
    background: var(--gold);
    border-radius: 50%;
    font-family: var(--font-secondary);
    font-size: 2.1rem;
    font-weight: 800;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-summary h2 {
    margin: 5px 0 0;
    color: var(--text-primary);
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    font-weight: 700;
}

.profile-summary p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    word-break: break-word;
}

.profile-role {
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.profile-divider {
    width: 100%;
    height: 1px;
    margin: 8px 0;
    background: var(--border-light);
}

.profile-form-card h2 {
    margin: 0 0 5px;
    color: var(--text-primary);
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    font-weight: 700;
}

.profile-form-card > p {
    margin: 0 0 20px;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.profile-field {
    display: grid;
    gap: 6px;
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 700;
}

.profile-field input {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    color: var(--text-primary);
    background: var(--beige-light);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xs);
    font: inherit;
    font-weight: 400;
    transition: var(--transition-smooth);
}

.profile-field input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
    outline: none;
}

.profile-field input[type="file"] {
    padding: 10px;
}

.profile-hint {
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 400;
}

.profile-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.profile-actions .btn {
    min-height: 46px;
}

.profile-alert {
    margin-bottom: 18px;
    padding: 12px 16px;
    color: #356842;
    background: #edf8ef;
    border-radius: var(--radius-sm);
    border-inline-start: 3px solid #4c9b5b;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-error {
    margin-bottom: 18px;
    padding: 12px 16px;
    color: #8a2424;
    background: #fff0ee;
    border-radius: var(--radius-sm);
    border-inline-start: 3px solid #b93a34;
    font-size: 0.8rem;
}

.profile-error span {
    display: block;
    margin: 3px 0;
}

@media (max-width: 768px) {
    .profile-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .profile-form-grid {
        grid-template-columns: 1fr;
    }
    .profile-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .profile-card {
        padding: 22px 18px;
    }
}

/* ============================================================
   24. APPOINTMENTS PAGE SPECIFIC
   ============================================================ */
.user-panel .appointment-table {
    padding: 4px 0;
}

/* ============================================================
   25. BOOKING DETAIL PAGE
   ============================================================ */
.portal-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 22px;
}

.detail-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.detail-stat-grid div {
    padding: 6px 0;
}

.detail-stat-grid small {
    display: block;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.detail-stat-grid strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.portal-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.portal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.portal-item:last-child {
    border-bottom: none;
}

.portal-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.portal-item strong {
    font-size: 0.88rem;
    color: var(--text-primary);
}

.portal-item small {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.portal-list-row {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.portal-list-row:last-child {
    border-bottom: none;
}

.portal-list-row .list-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--gold-soft);
    border-radius: 50%;
    color: var(--gold);
    flex-shrink: 0;
}

.portal-list-row div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.portal-list-row strong {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.portal-list-row small {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.portal-project-mini {
    padding: 4px 0;
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.project-header strong {
    font-size: 0.88rem;
    color: var(--text-primary);
}

.project-header span {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.milestone-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.milestone-line i {
    width: 16px;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.milestone-line i.fa-check {
    color: var(--gold);
}
.milestone-line i.fa-circle {
    color: var(--gold);
}

.milestone-status {
    margin-left: auto;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
}

.milestone-status.status-completed {
    color: var(--gold);
}
.milestone-status.status-active {
    color: var(--gold-dark);
}

@media (max-width: 768px) {
    .portal-detail-grid {
        grid-template-columns: 1fr;
    }
    .detail-stat-grid {
        grid-template-columns: 1fr 1fr;
    }
    .portal-list-row {
        grid-template-columns: 32px 1fr;
    }
    .portal-list-row .status-pill {
        grid-column: 2;
    }
    .portal-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .detail-stat-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   26. DASHBOARD HEADING
   ============================================================ */
.dashboard-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
    padding: clamp(24px, 4vw, 40px) clamp(16px, 2vw, 24px);
    background: linear-gradient(135deg, var(--black) 0%, var(--black-soft) 100%);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.dashboard-heading > div:first-child {
    max-width: 620px;
}

.dashboard-heading .user-kicker {
    color: var(--gold-light);
}

.dashboard-heading h1 {
    margin: 8px 0 12px;
    color: var(--text-inverse);
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.25;
}

.dashboard-heading .user-muted {
    color: var(--text-inverse-muted);
}

.dashboard-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: var(--gold-light);
    background: rgba(184, 149, 106, 0.08);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    font-family: var(--font-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .dashboard-heading {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .dashboard-date {
        align-self: flex-start;
    }
}

/* ============================================================
   27. SERVICE STACK IN BOOKING LIST
   ============================================================ */
.service-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.service-stack span {
    font-size: 0.72rem;
    color: var(--text-secondary);
    padding: 2px 8px;
    background: var(--beige-light);
    border-radius: var(--radius-xs);
    border: 1px solid var(--border-light);
}

/* ============================================================
   28. NOTIFICATION COUNT BADGE
   ============================================================ */
.notification-count {
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    height: 30px;
    padding: 0 10px;
    color: var(--black);
    background: var(--gold);
    border-radius: 50px;
    font-family: var(--font-secondary);
    font-size: 0.72rem;
    font-weight: 800;
}

/* ============================================================
   29. BOOKING CODE
   ============================================================ */
.booking-code {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--gold-dark);
    letter-spacing: 0.05em;
}

/* ============================================================
   30. RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 1024px) {
    .portal-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .user-panel .panel-title {
        padding: 14px 16px;
    }
    .user-panel .appointment-table {
        padding: 0;
    }
    .appointment-full-row {
        padding: 12px 16px;
    }
    .booking-table-head {
        padding: 10px 16px;
    }
    .booking-table-row {
        padding: 12px 16px;
    }
    .dashboard-pagination {
        padding: 12px 16px;
    }
    .notification-list {
        padding: 4px 16px;
    }
}

@media (max-width: 480px) {
    .appointment-full-row {
        grid-template-columns: 50px 1fr;
    }
    .appointment-date {
        width: 50px;
        padding: 4px 0;
    }
    .appointment-date strong {
        font-size: 1rem;
    }
    .appointment-date small {
        font-size: 0.5rem;
    }
}