/**
 * Trove Architect Portal Styles
 * Replaces base account.css + architect.css with Trove theme colors
 *
 * Color Palette:
 * Navy:       #000000 (primary)
 * Navy Dark:  #000000
 * Gold:       #F4AF2D (accent)
 * Gold Light: #FFF8E7
 * Mid Gray:   #545454
 * Off White:  #f7f7f9
 */

/* ========================================
   Layout
   ======================================== */

.account-section {
    padding: 3rem 0 5rem;
    background: #f7f7f9;
    min-height: calc(100vh - 200px);
}

.account-layout {
    display: grid;
    grid-template-columns: 24rem 1fr;
    gap: 2.5rem;
}

@media (max-width: 991px) {
    .account-section {
        padding: 2rem 0 6rem;
    }
    .account-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.account-main {
    min-width: 0;
}

/* ========================================
   Page Headers
   ======================================== */

.account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.account-header .btn {
    font-size: 1.3125rem;
}

.account-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: #000000;
    font-family: 'Inter', sans-serif;
}

.account-subtitle {
    font-size: 0.9rem;
    color: #545454;
    background: #f7f7f9;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.account-header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.account-header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Back Links */
.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(25, 27, 76, 0.06);
    color: #000000;
    transition: all 0.15s;
    text-decoration: none;
}

.back-link svg {
    width: 22px;
    height: 22px;
}

.back-link:hover {
    background: #000000;
    color: #fff;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #545454;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.btn-back:hover {
    color: #000000;
}

/* ========================================
   Alerts
   ======================================== */

.alert {
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.08);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

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

.alert-info {
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ========================================
   Buttons
   ======================================== */

.account-section .btn,
.account-section button[type="submit"] {
    font-family: 'Inter', sans-serif;
}

.account-section .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 1.2rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    line-height: 1.4;
}

.account-section .btn-primary,
.btn-primary {
    background: #000000;
    border-color: #000000;
    color: #fff;
}

.account-section .btn-primary:hover,
.btn-primary:hover {
    background: #000000;
    border-color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 27, 76, 0.25);
}

.account-section .btn-outline {
    background: transparent;
    border: 1px solid rgba(25, 27, 76, 0.25);
    color: #000000;
}

.account-section .btn-outline:hover {
    background: rgba(25, 27, 76, 0.06);
    border-color: #000000;
}

.account-section .btn-sm {
    padding: 0.4rem 0.875rem;
    font-size: 1.05rem;
    border-radius: 6px;
}

.account-section .btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.account-section .btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}

.account-section .btn-link {
    color: #F4AF2D;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

.account-section .btn-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ========================================
   Status Badges
   ======================================== */

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-active, .status-in-progress {
    background: #dcfce7;
    color: #166534;
}

.status-completed, .status-delivered {
    background: #dbeafe;
    color: #1e40af;
}

.status-on-hold, .status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.status-processing, .status-confirmed {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.status-shipped {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
}

.status-lg {
    font-size: 0.75rem;
    padding: 0.5rem 1.25rem;
}

/* ========================================
   Welcome Banner
   ======================================== */

.account-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    color: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.account-welcome::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(226, 158, 37, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.account-welcome-text {
    position: relative;
    z-index: 1;
}

.account-welcome h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #fff;
}

.account-welcome p {
    margin: 0;
    opacity: 0.85;
    max-width: 500px;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #fff;
}

.account-welcome-icon {
    position: relative;
    z-index: 1;
    opacity: 0.3;
    color: #F4AF2D;
}

@media (max-width: 767px) {
    .account-welcome {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }
    .account-welcome h2 { font-size: 1.5rem; }
    .account-welcome-icon { display: none; }
}

/* ========================================
   Stats Grid
   ======================================== */

.architect-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.architect-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: box-shadow 0.2s;
}

.architect-stat-card:hover {
    box-shadow: 0 4px 12px rgba(25, 27, 76, 0.08);
}

.architect-stat-card .stat-icon {
    width: 52px;
    height: 52px;
    background: rgba(25, 27, 76, 0.06);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    flex-shrink: 0;
}

.architect-stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000000;
    line-height: 1;
}

.architect-stat-card .stat-label {
    font-size: 0.8125rem;
    color: #545454;
    margin-top: 0.125rem;
}

@media (max-width: 768px) {
    .architect-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   Quick Links
   ======================================== */

.account-quicklinks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.account-quicklink-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: #000000;
    transition: all 0.2s;
}

.account-quicklink-card:hover {
    border-color: #000000;
    box-shadow: 0 4px 16px rgba(25, 27, 76, 0.1);
    transform: translateY(-2px);
}

.quicklink-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(25, 27, 76, 0.06);
    border-radius: 10px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.quicklink-icon-primary {
    background: rgba(25, 27, 76, 0.06) !important;
    color: #000000 !important;
}

.quicklink-icon svg {
    color: #000000;
    width: 24px;
    height: 24px;
    transition: color 0.2s;
}

.account-quicklink-card:hover .quicklink-icon {
    background: #000000;
}

.account-quicklink-card:hover .quicklink-icon svg,
.account-quicklink-card:hover .quicklink-icon-primary svg {
    color: #fff !important;
}

.account-quicklink-card:hover .quicklink-icon-primary {
    background: #000000 !important;
}

.quicklink-content {
    flex: 1;
    min-width: 0;
}

.quicklink-content h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.quicklink-content p {
    font-size: 0.8125rem;
    color: #545454;
    margin: 0;
}

.quicklink-arrow {
    color: #545454;
    flex-shrink: 0;
    transition: all 0.2s;
}

.account-quicklink-card:hover .quicklink-arrow {
    color: #F4AF2D;
    transform: translateX(3px);
}

/* ========================================
   Cards
   ======================================== */

.account-card,
.account-section-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.account-card-header,
.account-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f7f7f9;
}

.account-card-header h3,
.account-section-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #000000;
}

/* ========================================
   Empty States
   ======================================== */

.account-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.account-empty-icon {
    color: rgba(25, 27, 76, 0.2);
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: center;
}

.account-empty h3 {
    font-size: 1.875rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: #000000;
}

.account-empty .empty-icon {
    display: flex;
    justify-content: center;
    color: rgba(25, 27, 76, 0.2);
    margin-bottom: 1.25rem;
}

.account-empty p {
    color: #545454;
    margin: 0 0 1.5rem;
    font-size: 1.35rem;
}

.account-empty .btn {
    font-size: 1.3125rem;
}

.account-empty-inline {
    padding: 3rem 2rem;
    text-align: center;
}

.account-empty-inline .empty-icon {
    display: flex;
    justify-content: center;
    color: rgba(25, 27, 76, 0.2);
    margin-bottom: 1.25rem;
}

.account-empty-inline h3 {
    font-size: 1.875rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: #000000;
}

.account-empty-inline p {
    margin: 0 0 1.5rem;
    font-size: 1.35rem;
    color: #545454;
}

.account-empty-inline .btn {
    font-size: 1.3125rem;
}

/* ========================================
   Orders
   ======================================== */

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.2s;
}

.order-card:hover {
    box-shadow: 0 4px 12px rgba(25, 27, 76, 0.08);
}

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: #f7f7f9;
    border-bottom: 1px solid #e5e7eb;
}

.order-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.order-number {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #000000;
}

.order-date {
    font-size: 0.8125rem;
    color: #545454;
}

.order-card-body {
    padding: 1rem 1.25rem;
}

.order-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-items {
    color: #545454;
    font-size: 0.875rem;
}

.order-total {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #000000;
}

.order-card-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
}

/* Order Detail */
.order-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.order-detail-info { flex: 1; }

.order-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: #000000;
}

.order-detail-date {
    font-size: 0.875rem;
    color: #545454;
    margin: 0;
}

.order-detail-project {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #F4AF2D;
    font-weight: 500;
}

.order-detail-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 991px) {
    .order-detail-grid { grid-template-columns: 1fr; }
}

.item-count {
    font-size: 0.8125rem;
    color: #545454;
    font-weight: 400;
}

.order-items-list {
    padding: 0 1.5rem;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-item:last-child { border-bottom: none; }

.order-item-image {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.order-item-details { flex: 1; min-width: 0; }

.order-item-name {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 0.25rem;
}

.order-item-name a {
    color: #000000;
    text-decoration: none;
}

.order-item-name a:hover { color: #F4AF2D; }

.order-item-price {
    font-size: 0.8125rem;
    color: #545454;
    margin: 0;
}

.order-item-total {
    font-weight: 600;
    white-space: nowrap;
    color: #000000;
}

.order-summary-body,
.order-info-body {
    padding: 1rem 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.summary-total {
    border-top: 1px solid #e5e7eb;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
}

.summary-total span:last-child { color: #000000; }

.info-name {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: #000000;
}

.info-text {
    font-size: 0.875rem;
    color: #333;
    margin: 0 0 0.25rem;
    line-height: 1.6;
}

.info-small {
    font-size: 0.8125rem;
    color: #545454;
    margin: 0.5rem 0 0;
}

.info-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #545454;
    margin: 0.5rem 0 0;
}

/* ========================================
   Pagination
   ======================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    color: #000000;
    text-decoration: none;
    border: 1px solid rgba(25, 27, 76, 0.25);
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.pagination-link:hover {
    background: #000000;
    color: #fff;
    border-color: #000000;
}

.pagination-info {
    font-size: 0.875rem;
    color: #545454;
}

/* ========================================
   Projects Grid & Cards
   ======================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.project-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.project-card:hover {
    box-shadow: 0 4px 16px rgba(25, 27, 76, 0.1);
}

.project-card-active {
    border-color: #F4AF2D;
    box-shadow: 0 0 0 2px rgba(226, 158, 37, 0.2);
}

.project-card-header {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #e5e7eb;
}

.project-card-title h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: #000000;
}

.project-code {
    font-size: 1.125rem;
    color: #545454;
    font-family: ui-monospace, monospace;
    background: #f7f7f9;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
}

.project-card-body { padding: 1rem 1.25rem; }

.project-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-card .project-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.22rem;
    color: #545454;
}

.project-card .project-info-item svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.project-card-footer {
    padding: 0.875rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7f7f9;
    border-top: 1px solid #e5e7eb;
}

.project-card-actions {
    display: flex;
    gap: 0.5rem;
}

.project-active-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    color: #F4AF2D;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.project-active-badge,
.project-active-badge-header {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #000000;
    color: #F4AF2D;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Projects List (Dashboard) */
.projects-list {
    display: flex;
    flex-direction: column;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.project-item:hover { background: #f7f7f9; }
.project-item:last-child { border-bottom: none; }

.project-item-main { flex: 1; min-width: 0; }

.project-item-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.125rem;
}

.project-item-name a {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #000000;
    text-decoration: none;
}

.project-item-name a:hover { color: #F4AF2D; }

.project-item-code {
    font-size: 0.6875rem;
    color: #545454;
    font-family: ui-monospace, monospace;
    background: #f3f4f6;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
}

.project-item-client {
    font-size: 0.8125rem;
    color: #545454;
}

.project-item-status { flex-shrink: 0; }
.project-item-actions { flex-shrink: 0; }

.account-section-card .projects-list {
    padding: 0.5rem 0.75rem;
}

.account-section-card .project-item {
    padding: 0.75rem;
}

/* ========================================
   Clients Grid & Cards
   ======================================== */

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.client-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.client-card:hover {
    box-shadow: 0 4px 12px rgba(25, 27, 76, 0.08);
}

.client-card-header {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.client-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #000000, #000000);
    color: #F4AF2D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.46rem;
    flex-shrink: 0;
}

.client-card-title h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.125rem;
    color: #000000;
}

.client-mobile {
    font-size: 1.05rem;
    color: #545454;
}

.client-card-body { padding: 0.875rem 1.25rem; }

.client-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    color: #545454;
    margin-bottom: 0.375rem;
}

.client-info-item:last-child { margin-bottom: 0; }

.client-info-item svg {
    flex-shrink: 0;
    color: #545454;
    width: 18px;
    height: 18px;
}

.client-card-footer {
    padding: 0.875rem 1.25rem;
    display: flex;
    gap: 0.5rem;
    background: #f7f7f9;
    border-top: 1px solid #e5e7eb;
}

/* ========================================
   Form System (project-form, client-form, profile, etc.)
   ======================================== */

.project-form-container {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.project-form-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    color: #fff;
}

.project-form-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(226, 158, 37, 0.2);
    border-radius: 10px;
    flex-shrink: 0;
}

.project-form-header-icon svg {
    width: 26px;
    height: 26px;
    stroke: #F4AF2D;
}

.project-form-header-text h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
}

.project-form-header-text p {
    margin: 0.125rem 0 0;
    font-size: 0.8125rem;
    opacity: 0.75;
    color: #fff;
}

.project-form-body {
    padding: 1.5rem;
}

.project-form-body .form-section {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.project-form-body .form-section:last-of-type {
    margin-bottom: 0;
}

.project-form-body .form-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: #f7f7f9;
    border-bottom: 1px solid #e5e7eb;
}

.project-form-body .form-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #000000;
    color: #fff;
    border-radius: 6px;
    flex-shrink: 0;
}

.project-form-body .form-section-icon svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
}

.project-form-body .form-section-icon-info {
    background: #000000;
}

.project-form-body .form-section-icon-team {
    background: #000000;
}

.project-form-body .form-section-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
    padding: 0;
    border: none;
}

.project-form-body .form-section-content {
    padding: 1.25rem;
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row:last-child { margin-bottom: 0; }

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-form-body .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-form-body .form-row:last-child { margin-bottom: 0; }

.project-form-body .form-col { flex: 1; min-width: 0; }
.project-form-body .form-col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.project-form-body .form-col-8 { flex: 0 0 66.666%; max-width: 66.666%; }

/* Form Controls (scoped to account section) */
.account-section .form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: #000000;
}

.account-section .form-label .required { color: #dc2626; }

.account-section .form-control,
.account-section .form-input {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #1f2937;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: 'Inter', sans-serif;
}

.account-section .form-control:focus,
.account-section .form-input:focus {
    border-color: #000000;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(25, 27, 76, 0.08);
}

.account-section .form-control::placeholder,
.account-section .form-input::placeholder {
    color: #9ca3af;
}

.account-section .form-control:disabled,
.account-section .form-input:disabled {
    background: #f7f7f9;
    color: #545454;
    cursor: not-allowed;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control,
.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23191b4c' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-right: 2.5rem;
}

/* Input Groups */
.input-group {
    display: flex;
    gap: 0.75rem;
}

.input-group .form-control { flex: 1; }

.input-group-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(25, 27, 76, 0.06);
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #000000;
    transition: all 0.15s;
    flex-shrink: 0;
}

.input-group-btn:hover {
    background: #000000;
    border-color: #000000;
    color: #fff;
}

.input-prefix-group { display: flex; }

.input-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    background: #f7f7f9;
    border: 1px solid #d1d5db;
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #000000;
    font-size: 0.875rem;
    font-weight: 600;
}

.input-prefix-group .form-control {
    border-radius: 0 8px 8px 0;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1.25rem;
    margin-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.btn-cancel {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #000000;
    background: #fff;
    border: 1px solid rgba(25, 27, 76, 0.25);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.btn-cancel:hover {
    background: rgba(25, 27, 76, 0.04);
    border-color: #000000;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    background: #000000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-submit svg { width: 18px; height: 18px; }

.btn-submit:hover {
    background: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 27, 76, 0.25);
}

/* Form Group */
.form-group {
    margin-bottom: 1rem;
}

.form-hint {
    display: block;
    font-size: 0.8125rem;
    color: #545454;
    margin-top: 0.375rem;
}

/* ========================================
   Project Detail
   ======================================== */

.project-detail-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    max-width: 900px;
}

.project-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    color: #fff;
}

.project-detail-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(226, 158, 37, 0.2);
    border-radius: 10px;
    flex-shrink: 0;
}

.project-detail-header-icon svg { stroke: #F4AF2D; }

.project-detail-header-text { flex: 1; }

.project-detail-header-text h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
}

.project-detail-header-text p {
    margin: 0.125rem 0 0;
    font-size: 0.8125rem;
    opacity: 0.75;
    color: #fff;
}

.project-detail-status {
    padding: 0.375rem 1rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.project-detail-body { padding: 1.5rem; }

.project-info-section {
    background: #f7f7f9;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.project-info-section:last-child { margin-bottom: 0; }

.project-info-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(25, 27, 76, 0.04);
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.75rem;
    font-weight: 600;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.project-info-section-title svg {
    color: #000000;
    flex-shrink: 0;
}

.project-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.25rem;
}

.project-detail-body .project-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.project-info-item-full { grid-column: span 2; }

.info-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #545454;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.info-value {
    font-size: 0.9375rem;
    color: #1f2937;
    font-weight: 500;
}

.info-value-highlight {
    color: #F4AF2D;
    font-weight: 600;
}

.info-empty {
    color: #9ca3af;
    font-style: italic;
}

.project-detail-footer {
    margin-top: 1.5rem;
}

/* Project Action Items (client detail) */
.project-actions-list { padding: 0.5rem; }

.project-action-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    color: #000000;
    text-decoration: none;
    transition: background 0.15s;
}

.project-action-item:hover { background: #f7f7f9; }
.project-action-item svg { color: #F4AF2D; }

/* ========================================
   Tables
   ======================================== */

.orders-table-wrapper { overflow-x: auto; }

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 0.875rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.orders-table th {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #545454;
    background: #f7f7f9;
}

.orders-table td { font-size: 0.875rem; }

.orders-table tbody tr:hover { background: rgba(25, 27, 76, 0.02); }

.orders-table td:last-child,
.orders-table th:last-child { text-align: right; }

/* Auth Pages - styles are in app.css */

/* ========================================
   Architect Badge
   ======================================== */

.architect-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #F4AF2D;
    background: #000000;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-left: auto;
}

/* ========================================
   Modal
   ======================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.modal-lg { max-width: 640px; }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: #000000;
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: #f7f7f9;
    font-size: 1.25rem;
    color: #545454;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.15s;
}

.modal-close:hover { background: #000000; color: #fff; }

.modal-body { padding: 1.25rem 1.5rem; }

.modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f7f7f9;
    border-radius: 0 0 16px 16px;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .projects-grid,
    .clients-grid {
        grid-template-columns: 1fr;
    }

    .project-item {
        flex-wrap: wrap;
    }

    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .project-form-body .form-row,
    .project-form-body .form-row-3 {
        flex-direction: column;
    }

    .project-form-body .form-col-4,
    .project-form-body .form-col-8 {
        flex: 1;
        max-width: 100%;
    }

    .project-form-body .form-actions {
        flex-direction: column-reverse;
    }

    .project-form-body .btn-cancel,
    .project-form-body .btn-submit {
        width: 100%;
        justify-content: center;
    }

    .project-info-grid {
        grid-template-columns: 1fr;
    }

    .project-info-item-full { grid-column: span 1; }

    .account-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 991px) {
    .account-section {
        padding-bottom: calc(72px + 2rem);
    }
}

/* ========================================
   Team Members (Contacts)
   ======================================== */

.team-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    background: #000000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}

.team-add-btn:hover {
    background: #000000;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 27, 76, 0.25);
}

.team-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.team-member-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(25, 27, 76, 0.04);
    transition: box-shadow 0.2s, transform 0.2s;
}

.team-member-card:hover {
    box-shadow: 0 6px 20px rgba(25, 27, 76, 0.1);
    transform: translateY(-2px);
}

.team-member-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(25, 27, 76, 0.03) 0%, rgba(25, 27, 76, 0.06) 100%);
    border-bottom: 1px solid #e5e7eb;
}

.team-member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    color: #F4AF2D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.69rem;
    flex-shrink: 0;
}

.team-member-info {
    flex: 1;
    min-width: 0;
}

.team-member-name {
    margin: 0;
    font-size: 1.41rem;
    font-weight: 600;
    color: #000000;
    line-height: 1.3;
}

.team-member-role {
    display: block;
    font-size: 1.22rem;
    color: #545454;
    margin-top: 0.125rem;
}

.team-member-badges {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-shrink: 0;
}

.badge-login,
.badge-admin {
    font-size: 0.94rem;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: center;
}

.badge-login {
    background: rgba(25, 27, 76, 0.08);
    color: #000000;
}

.badge-admin {
    background: #000000;
    color: #F4AF2D;
}

.team-member-details {
    padding: 1rem 1.25rem;
}

.team-detail-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.22rem;
    color: #4b5563;
    padding: 0.375rem 0;
}

.team-detail-row svg {
    color: #545454;
    flex-shrink: 0;
    opacity: 0.6;
    width: 20px;
    height: 20px;
}

.team-detail-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-member-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 1.22rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    border: 1px solid;
    line-height: 1.4;
    font-family: inherit;
}

.action-edit {
    color: #000000;
    border-color: rgba(25, 27, 76, 0.2);
    background: #fff;
}

.action-edit:hover {
    background: #000000;
    border-color: #000000;
    color: #fff;
}

.action-remove {
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.2);
    background: #fff;
}

.action-remove:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.team-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.team-empty-state .empty-icon {
    margin-bottom: 1.25rem;
    color: rgba(25, 27, 76, 0.2);
}

.team-empty-state h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000;
}

.team-empty-state p {
    margin: 0 0 1.5rem;
    font-size: 0.9rem;
    color: #545454;
}

@media (max-width: 768px) {
    .team-cards-grid {
        grid-template-columns: 1fr;
    }
    .team-member-actions {
        flex-direction: column;
    }
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   Wishlist
   ======================================== */

.architect-wishlist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.wishlist-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.wishlist-card:hover {
    box-shadow: 0 4px 16px rgba(25, 27, 76, 0.1);
    transform: translateY(-2px);
}

.wishlist-card-image {
    position: relative;
    aspect-ratio: 1;
    background: #f7f7f9;
}

.wishlist-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.wishlist-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    color: #545454;
    cursor: pointer;
    transition: all 0.2s;
}

.wishlist-remove:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.wishlist-card-body {
    padding: 1rem;
}

.wishlist-card-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.wishlist-card-title a {
    color: #000000;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wishlist-card-title a:hover {
    color: #F4AF2D;
}

.wishlist-card-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.wishlist-card-price .price-current {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
}

.wishlist-card-price .price-original {
    font-size: 0.85rem;
    color: #545454;
    text-decoration: line-through;
}

.wishlist-card-actions .btn {
    width: 100%;
    justify-content: center;
}

.wishlist-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.wishlist-footer .btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #545454;
    font-size: 0.9rem;
    text-decoration: none;
}

.wishlist-footer .btn-link:hover {
    color: #F4AF2D;
}

@media (max-width: 576px) {
    .architect-wishlist {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .wishlist-card-body {
        padding: 0.75rem;
    }
    .wishlist-card-title {
        font-size: 0.85rem;
    }
}

/* ========================================
   Order Project Reference
   ======================================== */

.order-project {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #F4AF2D;
    font-weight: 500;
}

/* ========================================
   Form Helpers
   ======================================== */

.form-hint {
    display: block;
    font-size: 0.8125rem;
    color: #545454;
    margin-top: 0.25rem;
}

.form-control[readonly] {
    background: #f7f7f9;
    cursor: not-allowed;
}

/* ========================================
   Login Status Box
   ======================================== */

.login-status-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid;
}

.login-enabled-box {
    background: rgba(34, 197, 94, 0.06);
    border-color: rgba(34, 197, 94, 0.2);
}

.login-disabled-box {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.2);
}

.login-status-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.login-status-icon-wrap.success {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.login-status-icon-wrap.danger {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.login-status-info {
    flex: 1;
}

.login-status-info strong {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.25rem;
}

.login-status-info p {
    font-size: 1rem;
    color: #545454;
    margin: 0;
}

.admin-tag {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: #000000;
    color: #fff;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.login-actions {
    margin-top: 1rem;
    padding-top: 1rem;
}

.btn-disable-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    color: #fff;
    background: #dc2626;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-disable-login:hover {
    background: #b91c1c;
}

/* ========================================
   Checkbox & Login Fields
   ======================================== */

.enable-login-toggle {
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    background: rgba(25, 27, 76, 0.04);
    border: 1px solid rgba(25, 27, 76, 0.1);
    border-radius: 6px;
    transition: all 0.15s;
}

.checkbox-label:hover {
    background: rgba(25, 27, 76, 0.08);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #000000;
    cursor: pointer;
}

.checkbox-text {
    font-size: 1rem;
    font-weight: 500;
    color: #000000;
}

.login-fields {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(25, 27, 76, 0.1);
}

/* ========================================
   Client Detail
   ======================================== */

.project-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.project-detail-content {
    padding: 1rem;
}

.detail-row {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.detail-label {
    width: 100px;
    flex-shrink: 0;
    font-weight: 500;
    color: #545454;
}

.detail-value {
    flex: 1;
}

.project-actions-list {
    padding: 0.5rem;
}

.project-action-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 6px;
    color: #000000;
    transition: background 0.2s;
    text-decoration: none;
}

.project-action-item:hover {
    background: #f7f7f9;
}

.project-action-item svg {
    color: #F4AF2D;
}

.project-detail-footer {
    margin-top: 1.5rem;
}

.client-detail > .account-section-card {
    margin-top: 1.5rem;
}

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

/* ========================================
   Contributors
   ======================================== */

.form-section-icon-team {
    background: rgba(25, 27, 76, 0.08);
    color: #000000;
}

.contributor-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: #e5e7eb;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 14px;
}

.contributor-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    background: #000000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.contributor-add-btn:hover {
    background: #000000;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(25, 27, 76, 0.3);
}

.contributors-list {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contributor-card {
    display: block;
    width: 100%;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.2s ease;
}

.contributor-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contributor-card-main {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    flex-wrap: nowrap;
}

.contributor-avatar {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: linear-gradient(135deg, #000000 0%, #2d2f6b 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    flex-shrink: 0;
}

.contributor-info {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
}

.contributor-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1f2937;
    margin-bottom: 0.25rem;
    display: block;
}

.contributor-email {
    font-size: 0.95rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.contributor-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-left: auto;
}

.contributor-role {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    background: #f3f4f6;
    color: #4b5563;
}

.contributor-role.role-manager {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.contributor-role.role-contributor {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.contributor-role.role-viewer {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #4b5563;
}

.contributor-role.role-admin {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.contributor-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.contributor-action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.contributor-action-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
}

.contributor-action-btn.edit-btn:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #2563eb;
}

.contributor-action-btn.remove-btn:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
}

.contributor-loading {
    padding: 2rem;
    text-align: center;
    color: #6b7280;
    font-size: 1rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px dashed #e5e7eb;
}

.contributor-empty {
    padding: 2.5rem 2rem;
    text-align: center;
    color: #6b7280;
    font-size: 1rem;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 12px;
    border: 1px dashed #d1d5db;
}

/* ========================================
   Contributor Modal
   ======================================== */

.contributor-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.contributor-modal.active {
    display: flex;
}

.contributor-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.contributor-modal-content {
    position: relative;
    z-index: 2;
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.2s ease-out;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.contributor-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.contributor-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.contributor-modal-close {
    padding: 4px;
    background: none;
    border: none;
    color: #545454;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.contributor-modal-close:hover {
    background: #f7f7f9;
    color: #000000;
}

.contributor-modal-body {
    padding: 1.25rem;
}

.contributor-modal-body .form-group {
    margin-bottom: 1rem;
}

.contributor-modal-body .form-group:last-child {
    margin-bottom: 0;
}

.contributor-modal-body .form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contributor-modal-body .form-hint {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.contributor-modal-body .form-control {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #1f2937;
}

.contributor-modal-body .form-control:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 2px rgba(25, 27, 76, 0.1);
}

.contributor-modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1rem 1.25rem;
    border-top: 1px solid #e5e7eb;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.contributor-modal-footer .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.contributor-modal-footer .btn-outline {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
}

.contributor-modal-footer .btn-outline:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.contributor-modal-footer .btn-primary {
    background: #000000;
    border: 1px solid #000000;
    color: white;
}

.contributor-modal-footer .btn-primary:hover {
    background: #000000;
}

.contributor-modal-footer .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Role Options */
.role-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.role-option {
    display: block;
    cursor: pointer;
    margin: 0;
}

.role-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.role-option-content {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s;
    background: white;
}

.role-option input[type="radio"]:checked + .role-option-content {
    border-color: #000000;
    background: #FFF8E7;
}

.role-option:hover .role-option-content {
    border-color: #545454;
}

.role-option-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1f2937;
    display: block;
}

.role-option-desc {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 2px;
    display: block;
}

/* Spacing for stacked form containers */
.project-form-container + .project-form-container {
    margin-top: 1.5rem;
}

/* ========================================
   Scrollbar
   ======================================== */

.account-section ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.account-section ::-webkit-scrollbar-track {
    background: rgba(25, 27, 76, 0.04);
    border-radius: 3px;
}

.account-section ::-webkit-scrollbar-thumb {
    background: rgba(25, 27, 76, 0.15);
    border-radius: 3px;
}

.account-section ::-webkit-scrollbar-thumb:hover {
    background: rgba(25, 27, 76, 0.25);
}
