/* ========================================
   LUCENT LABS ADMIN
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 70% 10%,
            rgba(80, 80, 95, 0.1),
            transparent 35%
        ),
        #050506;

    color: #f4f4f5;

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;
}


/* ========================================
   ADMIN LAYOUT
======================================== */

.admin-layout {
    display: grid;

    grid-template-columns:
        260px 1fr;

    min-height: 100vh;
}


/* ========================================
   SIDEBAR
======================================== */

.admin-sidebar {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    width: 260px;

    display: flex;
    flex-direction: column;

    padding: 34px 24px;

    background:
        rgba(8, 8, 10, 0.92);

    border-right:
        1px solid rgba(255, 255, 255, 0.07);

    backdrop-filter:
        blur(20px);

    z-index: 100;
}


/* ========================================
   BRAND
======================================== */

.admin-brand {
    display: flex;
    flex-direction: column;

    gap: 6px;

    margin-bottom: 55px;
}

.admin-brand a {
    color: #ffffff;

    font-size: 16px;
    font-weight: 700;

    letter-spacing: 0.16em;

    text-decoration: none;
}

.admin-brand span {
    color:
        rgba(255, 255, 255, 0.35);

    font-size: 10px;

    letter-spacing: 0.35em;
}


/* ========================================
   NAVIGATION
======================================== */

.admin-nav {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.admin-nav-link {
    position: relative;

    display: flex;
    align-items: center;

    gap: 15px;

    padding:
        14px 15px;

    border:
        1px solid transparent;

    border-radius:
        8px;

    color:
        rgba(255, 255, 255, 0.45);

    font-size: 13px;

    text-decoration: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.admin-nav-link span {
    color:
        rgba(255, 255, 255, 0.22);

    font-size: 9px;

    letter-spacing: 0.15em;
}

.admin-nav-link:hover {
    color:
        rgba(255, 255, 255, 0.9);

    background:
        rgba(255, 255, 255, 0.03);
}

.admin-nav-link.active {
    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.05);

    border-color:
        rgba(255, 255, 255, 0.08);
}

.admin-nav-link.active::before {
    content: "";

    position: absolute;

    left: -25px;

    width: 2px;
    height: 20px;

    background: #ffffff;
}


/* ========================================
   SIDEBAR FOOTER
======================================== */

.admin-sidebar-footer {
    margin-top: auto;

    padding-top: 25px;

    border-top:
        1px solid rgba(255, 255, 255, 0.06);
}

.admin-sidebar-footer a {
    color:
        rgba(255, 255, 255, 0.35);

    font-size: 11px;

    text-decoration: none;

    transition:
        color 0.2s ease;
}

.admin-sidebar-footer a:hover {
    color: #ffffff;
}


/* ========================================
   MAIN
======================================== */

.admin-main {
    grid-column: 2;

    width: 100%;

    padding:
        48px clamp(35px, 5vw, 80px)
        100px;
}


/* ========================================
   HEADER
======================================== */

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 30px;

    margin-bottom: 80px;
}

.admin-eyebrow {
    margin-bottom: 12px;

    color:
        rgba(255, 255, 255, 0.32);

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 0.28em;
}

.admin-header h1 {
    font-size:
        clamp(38px, 5vw, 64px);

    font-weight: 500;

    letter-spacing: -0.04em;
}


/* ========================================
   SYSTEM STATUS
======================================== */

.admin-status {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-top: 12px;

    color:
        rgba(255, 255, 255, 0.45);

    font-size: 11px;
}

.status-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #8ee6a0;

    box-shadow:
        0 0 10px rgba(142, 230, 160, 0.5);
}


/* ========================================
   SECTIONS
======================================== */

.admin-section {
    margin-bottom: 75px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    margin-bottom: 25px;
}

.section-number {
    margin-bottom: 9px;

    color:
        rgba(255, 255, 255, 0.25);

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 0.2em;
}

.section-heading h2 {
    font-size:
        clamp(21px, 3vw, 28px);

    font-weight: 500;

    letter-spacing: -0.02em;
}


/* ========================================
   STAT CARDS
======================================== */

.stat-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 14px;
}

.stat-card {
    min-height: 170px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 24px;

    background:
        rgba(255, 255, 255, 0.025);

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius: 12px;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.stat-card:hover {
    transform:
        translateY(-2px);

    background:
        rgba(255, 255, 255, 0.04);

    border-color:
        rgba(255, 255, 255, 0.12);
}

.stat-label {
    color:
        rgba(255, 255, 255, 0.4);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.12em;
}

.stat-value {
    font-size: 46px;

    font-weight: 400;

    letter-spacing: -0.04em;
}


/* ========================================
   ENQUIRY LIST
======================================== */

.enquiry-list {
    overflow: hidden;

    background:
        rgba(255, 255, 255, 0.018);

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius: 12px;
}


/* ========================================
   ENQUIRY ITEM
======================================== */

.enquiry-item {
    display: grid;

    grid-template-columns:
        150px 1fr 140px 120px;

    align-items: center;

    gap: 20px;

    min-height: 90px;

    padding:
        20px 24px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.06);

    transition:
        background 0.2s ease;
}

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

.enquiry-item:hover {
    background:
        rgba(255, 255, 255, 0.025);
}


/* ========================================
   ENQUIRY DETAILS
======================================== */

.enquiry-reference {
    color:
        rgba(255, 255, 255, 0.45);

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 0.08em;
}

.enquiry-project h3 {
    margin-bottom: 6px;

    font-size: 14px;

    font-weight: 500;
}

.enquiry-project p {
    color:
        rgba(255, 255, 255, 0.35);

    font-size: 11px;
}


/* ========================================
   STATUS BADGES
======================================== */

.enquiry-status {
    width: fit-content;

    padding:
        6px 9px;

    border:
        1px solid rgba(255, 255, 255, 0.09);

    border-radius: 999px;

    color:
        rgba(255, 255, 255, 0.55);

    background:
        rgba(255, 255, 255, 0.035);

    font-size: 9px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.12em;
}


/* ========================================
   VIEW BUTTON
======================================== */

.enquiry-view {
    justify-self: end;

    color:
        rgba(255, 255, 255, 0.55);

    font-size: 11px;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.enquiry-view:hover {
    color: #ffffff;

    transform:
        translateX(3px);
}


/* ========================================
   LOADING
======================================== */

.admin-loading {
    min-height: 130px;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 10px;

    color:
        rgba(255, 255, 255, 0.35);

    font-size: 11px;
}

.loading-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.5);

    animation:
        loadingPulse 1.2s
        infinite ease-in-out;
}

@keyframes loadingPulse {

    0%,
    100% {
        opacity: 0.25;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

}


/* ========================================
   EMPTY STATE
======================================== */

.admin-empty {
    min-height: 150px;

    display: flex;
    align-items: center;
    justify-content: center;

    color:
        rgba(255, 255, 255, 0.3);

    font-size: 12px;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 950px) {

    .admin-layout {
        display: block;
    }

    .admin-sidebar {
        position: relative;

        width: 100%;
        height: auto;

        padding:
            24px 25px;

        border-right: none;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.07);
    }

    .admin-brand {
        margin-bottom: 25px;
    }

    .admin-nav {
        flex-direction: row;

        overflow-x: auto;

        padding-bottom: 4px;
    }

    .admin-nav-link {
        flex-shrink: 0;
    }

    .admin-nav-link.active::before {
        display: none;
    }

    .admin-sidebar-footer {
        display: none;
    }

    .admin-main {
        width: 100%;

        padding:
            40px 25px 80px;
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 650px) {

    .admin-header {
        margin-bottom: 55px;

        flex-direction: column;
    }

    .admin-status {
        margin-top: 0;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        min-height: 130px;
    }

    .enquiry-item {
        grid-template-columns:
            1fr auto;

        gap: 12px;

        padding:
            20px;
    }

    .enquiry-reference {
        grid-column: 1 / -1;
    }

    .enquiry-project {
        grid-column: 1;
    }

    .enquiry-status {
        grid-column: 2;
        grid-row: 2;
    }

    .enquiry-view {
        grid-column: 1 / -1;

        justify-self: start;

        margin-top: 8px;
    }

}

/* ========================================
   ENQUIRY VIEW
======================================== */

.admin-back {
    display: inline-block;

    margin-bottom: 50px;

    color: rgba(255, 255, 255, 0.4);

    font-size: 11px;
    text-decoration: none;

    transition: color 0.2s ease;
}

.admin-back:hover {
    color: #ffffff;
}


.enquiry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 30px;

    margin-bottom: 75px;
}

.enquiry-page-reference {
    margin-bottom: 12px;

    color: rgba(255, 255, 255, 0.3);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.16em;
}

.enquiry-header h1 {
    margin-bottom: 10px;

    font-size: clamp(38px, 5vw, 62px);

    font-weight: 500;

    letter-spacing: -0.04em;
}

.enquiry-page-type {
    color: rgba(255, 255, 255, 0.4);

    font-size: 12px;
}


.detail-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 14px;

    margin-bottom: 14px;
}

.detail-grid.two-column {
    grid-template-columns:
        repeat(2, 1fr);
}

.detail-card,
.content-card {
    padding: 23px;

    background:
        rgba(255, 255, 255, 0.025);

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius: 12px;
}

.detail-card {
    min-height: 115px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.detail-label {
    color:
        rgba(255, 255, 255, 0.32);

    font-size: 9px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.14em;
}

.detail-card strong {
    margin-top: 20px;

    font-size: 13px;

    font-weight: 500;

    overflow-wrap: anywhere;
}


.content-card {
    margin-top: 14px;
}

.content-card p {
    margin-top: 18px;

    color:
        rgba(255, 255, 255, 0.72);

    font-size: 13px;

    line-height: 1.7;

    white-space: pre-wrap;

    overflow-wrap: anywhere;
}


/* ========================================
   QUOTE PLACEHOLDER
======================================== */

.quote-placeholder {
    padding: 30px;

    background:
        rgba(255, 255, 255, 0.025);

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius: 12px;
}

.quote-placeholder p {
    margin-bottom: 8px;

    font-size: 15px;
}

.quote-placeholder span {
    display: block;

    margin-bottom: 25px;

    color:
        rgba(255, 255, 255, 0.35);

    font-size: 11px;
}

.quote-placeholder button {
    padding: 12px 18px;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 7px;

    background:
        rgba(255, 255, 255, 0.05);

    color:
        rgba(255, 255, 255, 0.25);

    cursor: not-allowed;
}


/* ========================================
   ENQUIRY LOADING / ERROR
======================================== */

.enquiry-page-loading {
    min-height: 350px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    color:
        rgba(255, 255, 255, 0.35);

    font-size: 11px;
}

.enquiry-page-error {
    padding: 35px;

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.025);
}

.enquiry-page-error p {
    margin-bottom: 15px;
}

.enquiry-page-error a {
    color:
        rgba(255, 255, 255, 0.55);

    font-size: 11px;
}


/* ========================================
   ENQUIRY MOBILE
======================================== */

@media (max-width: 700px) {

    .enquiry-header {
        flex-direction: column;

        margin-bottom: 55px;
    }

    .detail-grid,
    .detail-grid.two-column {
        grid-template-columns: 1fr;
    }

}

/* ========================================
   QUOTE FORM
======================================== */

.quote-form {
    padding: 28px;

    background:
        rgba(255, 255, 255, 0.025);

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius: 12px;
}

.quote-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 14px;
}

.quote-field {
    margin-bottom: 20px;
}

.quote-field label {
    display: block;

    margin-bottom: 10px;

    color:
        rgba(255, 255, 255, 0.4);

    font-size: 10px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.12em;
}

.quote-field input,
.quote-field textarea {
    width: 100%;

    padding: 14px;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 8px;

    outline: none;

    background:
        rgba(255, 255, 255, 0.035);

    color: #ffffff;

    font: inherit;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.quote-field textarea {
    resize: vertical;

    min-height: 160px;

    line-height: 1.6;
}

.quote-field input:focus,
.quote-field textarea:focus {
    border-color:
        rgba(255, 255, 255, 0.22);

    background:
        rgba(255, 255, 255, 0.05);
}

.money-input {
    position: relative;
}

.money-input span {
    position: absolute;

    top: 50%;
    left: 14px;

    transform:
        translateY(-50%);

    color:
        rgba(255, 255, 255, 0.4);
}

.money-input input {
    padding-left: 32px;
}

.quote-actions {
    display: flex;

    gap: 10px;

    margin-top: 10px;
}

.quote-actions button {
    padding:
        13px 20px;

    border-radius: 8px;

    font-size: 11px;

    cursor: pointer;
}

.quote-save-button {
    border:
        1px solid #ffffff;

    background: #ffffff;

    color: #080808;
}

.quote-send-button {
    border:
        1px solid rgba(255, 255, 255, 0.08);

    background:
        rgba(255, 255, 255, 0.04);

    color:
        rgba(255, 255, 255, 0.25);

    cursor: not-allowed !important;
}

.quote-save-button:disabled {
    opacity: 0.5;

    cursor: wait;
}

.quote-form-message {
    min-height: 20px;

    margin-bottom: 12px;

    color:
        rgba(255, 255, 255, 0.6);

    font-size: 11px;
}


@media (max-width: 700px) {

    .quote-form-grid {
        grid-template-columns: 1fr;
    }

    .quote-actions {
        flex-direction: column;
    }

    .quote-actions button {
        width: 100%;
    }

}

/* ========================================
   QUOTES PAGE
======================================== */

.quotes-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 30px;

    margin-bottom: 80px;
}

.quotes-header h1 {
    margin-top: 8px;

    font-size:
        clamp(48px, 7vw, 78px);

    font-weight: 500;

    letter-spacing: -0.05em;
}

.quotes-subtitle {
    margin-top: 12px;

    color:
        rgba(255, 255, 255, 0.4);

    font-size: 12px;
}

.quote-stats {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;
}

.quote-stat-card {
    min-height: 145px;

    padding: 22px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.025);
}

.quote-stat-card span {
    color:
        rgba(255, 255, 255, 0.35);

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 0.12em;
}

.quote-stat-card strong {
    font-size: 34px;

    font-weight: 400;
}


/* ========================================
   QUOTE SEARCH
======================================== */

.quotes-list-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 25px;
}

.quote-search {
    width: min(280px, 100%);
}

.quote-search input {
    width: 100%;

    padding: 12px 14px;

    outline: none;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 8px;

    background:
        rgba(255, 255, 255, 0.025);

    color: #ffffff;

    font: inherit;

    font-size: 11px;
}

.quote-search input:focus {
    border-color:
        rgba(255, 255, 255, 0.2);
}


/* ========================================
   QUOTE CARDS
======================================== */

.quotes-list {
    display: grid;

    gap: 14px;
}

.admin-quote-card {
    padding: 25px;

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.025);
}

.admin-quote-top {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 25px;

    padding-bottom: 22px;
}

.admin-quote-reference {
    margin-bottom: 8px;

    color:
        rgba(255, 255, 255, 0.32);

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 0.12em;
}

.admin-quote-top h3 {
    margin-bottom: 7px;

    font-size: 18px;

    font-weight: 500;
}

.admin-quote-client {
    color:
        rgba(255, 255, 255, 0.4);

    font-size: 11px;
}


/* ========================================
   QUOTE STATUS
======================================== */

.admin-quote-status {
    padding: 7px 10px;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 100px;

    color:
        rgba(255, 255, 255, 0.55);

    background:
        rgba(255, 255, 255, 0.035);

    font-size: 8px;

    font-weight: 600;

    letter-spacing: 0.12em;
}

.status-accepted {
    border-color:
        rgba(110, 255, 160, 0.2);

    color:
        rgba(150, 255, 185, 0.85);

    background:
        rgba(70, 220, 120, 0.06);
}

.status-declined {
    border-color:
        rgba(255, 110, 110, 0.2);

    color:
        rgba(255, 150, 150, 0.85);

    background:
        rgba(220, 70, 70, 0.06);
}


/* ========================================
   QUOTE DETAILS
======================================== */

.admin-quote-details {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 12px;

    padding:
        22px 0;

    border-top:
        1px solid rgba(255, 255, 255, 0.05);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.05);
}

.admin-quote-details div {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.admin-quote-details span {
    color:
        rgba(255, 255, 255, 0.28);

    font-size: 8px;

    font-weight: 600;

    letter-spacing: 0.1em;
}

.admin-quote-details strong {
    font-size: 12px;

    font-weight: 500;
}


/* ========================================
   QUOTE FOOTER
======================================== */

.admin-quote-footer {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    padding-top: 20px;
}

.admin-quote-footer span {
    color:
        rgba(255, 255, 255, 0.28);

    font-size: 9px;
}

.admin-quote-footer a {
    color: #ffffff;

    font-size: 10px;

    text-decoration: none;
}


/* ========================================
   QUOTES STATES
======================================== */

.quotes-loading,
.quotes-error,
.quotes-empty {
    padding: 50px 25px;

    text-align: center;

    border:
        1px solid rgba(255, 255, 255, 0.06);

    border-radius: 12px;

    color:
        rgba(255, 255, 255, 0.35);

    font-size: 11px;
}

.quotes-empty p {
    margin-bottom: 7px;

    color:
        rgba(255, 255, 255, 0.65);

    font-size: 14px;
}

.quotes-empty span {
    color:
        rgba(255, 255, 255, 0.3);

    font-size: 10px;
}


/* ========================================
   QUOTES MOBILE
======================================== */

@media (max-width: 900px) {

    .quote-stats {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .admin-quote-details {
        grid-template-columns:
            repeat(2, 1fr);
    }

}

@media (max-width: 700px) {

    .quotes-header {
        flex-direction: column;

        margin-bottom: 55px;
    }

    .quotes-list-heading {
        align-items: stretch;

        flex-direction: column;
    }

    .quote-search {
        width: 100%;
    }

}

@media (max-width: 500px) {

    .quote-stats {
        grid-template-columns: 1fr;
    }

    .admin-quote-details {
        grid-template-columns: 1fr;

        gap: 20px;
    }

}

/* ========================================
   INDIVIDUAL QUOTE
======================================== */

.quote-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 30px;

    margin-bottom: 75px;
}

.quote-page-header h1 {
    margin-bottom: 10px;

    font-size:
        clamp(38px, 5vw, 62px);

    font-weight: 500;

    letter-spacing: -0.04em;
}

.quote-page-client {
    color:
        rgba(255, 255, 255, 0.4);

    font-size: 12px;
}


@media (max-width: 700px) {

    .quote-page-header {
        flex-direction: column;

        margin-bottom: 55px;
    }

}

/* ========================================
   CLIENT QUOTE LINK
======================================== */

.quote-send-button.active {
    border:
        1px solid rgba(255, 255, 255, 0.16);

    background:
        rgba(255, 255, 255, 0.07);

    color: #ffffff;

    cursor: pointer !important;
}

.quote-send-button.active:hover {
    background:
        rgba(255, 255, 255, 0.11);
}

.client-link-box {
    margin-top: 25px;

    padding: 20px;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.025);
}

.client-link-box > span {
    display: block;

    margin-bottom: 12px;

    color:
        rgba(255, 255, 255, 0.35);

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 0.12em;
}

.client-link-row {
    display: flex;

    gap: 8px;
}

.client-link-row input {
    flex: 1;

    min-width: 0;

    padding: 12px;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 7px;

    outline: none;

    background:
        rgba(255, 255, 255, 0.035);

    color: #ffffff;

    font-size: 10px;
}

.client-link-row button {
    padding:
        0 15px;

    border:
        1px solid rgba(255, 255, 255, 0.1);

    border-radius: 7px;

    background: #ffffff;

    color: #090909;

    cursor: pointer;
}

.client-link-box p {
    margin-top: 12px;

    color:
        rgba(255, 255, 255, 0.28);

    font-size: 9px;
}

@media (max-width: 600px) {

    .client-link-row {
        flex-direction: column;
    }

    .client-link-row button {
        min-height: 42px;
    }

}

/* ========================================
   CREATE PROJECT
======================================== */

.project-create-button {
    margin-top: 14px;

    padding: 13px 20px;

    border:
        1px solid rgba(255, 255, 255, 0.18);

    border-radius: 8px;

    background:
        rgba(255, 255, 255, 0.07);

    color: #ffffff;

    font: inherit;
    font-size: 11px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.project-create-button:hover {
    background:
        rgba(255, 255, 255, 0.12);

    transform:
        translateY(-1px);
}

.project-create-button:disabled {
    opacity: 0.5;

    cursor: wait;

    transform: none;
}

/* ========================================
   PROJECTS PAGE
======================================== */

.projects-header {
    margin-bottom: 36px;
}

.admin-eyebrow {
    display: block;

    margin-bottom: 12px;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.2em;

    color:
        rgba(255, 255, 255, 0.4);
}

.projects-header h1 {
    margin: 0 0 10px;

    font-size:
        clamp(36px, 5vw, 58px);

    font-weight: 500;

    letter-spacing: -0.04em;
}

.projects-header p {
    max-width: 580px;

    margin: 0;

    line-height: 1.7;

    color:
        rgba(255, 255, 255, 0.5);
}


/* OVERVIEW */

.projects-overview {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;

    margin-bottom: 24px;
}

.project-stat-card {
    min-height: 140px;

    padding: 24px;

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.025);

    display: flex;

    flex-direction: column;

    justify-content:
        space-between;
}

.project-stat-card span {
    font-size: 9px;

    font-weight: 600;

    letter-spacing: 0.18em;

    color:
        rgba(255, 255, 255, 0.4);
}

.project-stat-card strong {
    font-size: 36px;

    font-weight: 500;
}


/* PANEL */

.projects-panel {
    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.02);
}

.projects-panel-heading {
    padding: 24px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.08);
}

.projects-panel-heading span {
    display: block;

    margin-bottom: 8px;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 0.18em;

    color:
        rgba(255, 255, 255, 0.4);
}

.projects-panel-heading h2 {
    margin: 0;

    font-size: 22px;

    font-weight: 500;
}


/* TABLE */

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

.projects-table {
    width: 100%;

    border-collapse: collapse;
}

.projects-table th,
.projects-table td {
    padding: 20px 24px;

    text-align: left;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.06);
}

.projects-table th {
    font-size: 9px;

    font-weight: 600;

    letter-spacing: 0.15em;

    color:
        rgba(255, 255, 255, 0.35);
}

.projects-table td {
    font-size: 13px;

    color:
        rgba(255, 255, 255, 0.72);
}

.projects-table tbody tr {
    transition:
        background 0.2s ease;
}

.projects-table tbody tr:hover {
    background:
        rgba(255, 255, 255, 0.025);
}

.projects-table tbody tr:last-child td {
    border-bottom: 0;
}


/* PROJECT DETAILS */

.project-primary,
.project-client {
    display: flex;

    flex-direction: column;

    gap: 5px;
}

.project-primary strong,
.project-client strong {
    color: #ffffff;

    font-weight: 500;
}

.project-primary span,
.project-client span {
    font-size: 11px;

    color:
        rgba(255, 255, 255, 0.38);
}


/* STATUS */

.project-status {
    display: inline-flex;

    padding: 7px 10px;

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    border-radius: 999px;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    background:
        rgba(255, 255, 255, 0.04);
}

.status-awaiting-deposit {
    color: #e6c87a;
}

.status-ready {
    color: #c7d5ff;
}

.status-in-progress {
    color: #a9c5ff;
}

.status-review {
    color: #d7b6ff;
}

.status-completed {
    color: #9fe0b0;
}


/* VIEW */

.project-view-link {
    display: inline-flex;

    padding: 9px 14px;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 7px;

    color: #ffffff;

    font-size: 11px;

    text-decoration: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.project-view-link:hover {
    background:
        rgba(255, 255, 255, 0.06);

    transform:
        translateY(-1px);
}


/* STATES */

.projects-loading,
.projects-error,
.projects-empty {
    padding: 42px 24px;

    text-align: center;

    color:
        rgba(255, 255, 255, 0.45);
}

.projects-error {
    color: #e5a6a6;
}

.projects-empty h3 {
    margin: 0 0 8px;

    color: #ffffff;

    font-weight: 500;
}

.projects-empty p {
    margin: 0;

    font-size: 13px;
}


/* MOBILE */

@media (max-width: 800px) {

    .projects-overview {
        grid-template-columns: 1fr;
    }

    .projects-table {
        min-width: 760px;
    }

}


/* ALWAYS RESPECT HIDDEN */

[hidden] {
    display: none !important;
}

/* ========================================
   PROJECT DETAIL
======================================== */

.project-back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 12px;
}

.project-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 32px;
}

.project-detail-header h1 {
    margin: 0 0 8px;
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 500;
    letter-spacing: -0.04em;
}

.project-detail-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.4);
}

.project-detail-grid {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.project-detail-card,
.project-scope-card,
.project-controls {
    padding: 24px;
    border:
        1px solid
        rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background:
        rgba(255, 255, 255, 0.025);
}

.project-detail-card span,
.project-scope-card span,
.project-controls > span {
    display: block;
    margin-bottom: 12px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.17em;
    color:
        rgba(255, 255, 255, 0.4);
}

.project-detail-card strong {
    display: block;
    font-size: 18px;
    font-weight: 500;
}

.project-detail-card p {
    margin: 7px 0 0;
    font-size: 12px;
    color:
        rgba(255, 255, 255, 0.45);
}

.project-scope-card {
    margin-bottom: 20px;
}

.project-scope-card p {
    margin: 0;
    line-height: 1.8;
    color:
        rgba(255, 255, 255, 0.7);
}

.project-controls h2 {
    margin: 0 0 22px;
    font-size: 24px;
    font-weight: 500;
}

.project-control-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-control-buttons button {
    padding: 12px 18px;
    border:
        1px solid
        rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background:
        rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}

.project-control-buttons button:hover {
    background:
        rgba(255, 255, 255, 0.1);
}

.project-message {
    margin: 18px 0 0;
    color:
        rgba(255, 255, 255, 0.65);
}

.project-loading,
.project-error {
    padding: 40px 0;
    color:
        rgba(255, 255, 255, 0.5);
}

@media (max-width: 900px) {

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

}

@media (max-width: 600px) {

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

    .project-detail-header {
        flex-direction: column;
    }

    .project-control-buttons {
        flex-direction: column;
    }

    .project-control-buttons button {
        width: 100%;
    }

}

[hidden] {
    display: none !important;
}

/* ========================================
   PROJECT PAYMENT
======================================== */

.project-payment-card {
    margin-bottom: 20px;

    padding: 24px;

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.025);
}


.project-payment-heading {
    display: flex;

    justify-content:
        space-between;

    align-items:
        flex-start;

    gap: 20px;

    margin-bottom: 26px;
}


.project-payment-heading > div > span {
    display: block;

    margin-bottom: 8px;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 0.17em;

    color:
        rgba(255, 255, 255, 0.4);
}


.project-payment-heading h2 {
    margin: 0;

    font-size: 24px;

    font-weight: 500;
}


.payment-status {
    display: inline-flex;

    padding: 7px 11px;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 999px;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 0.1em;

    color:
        rgba(255, 255, 255, 0.7);
}


.project-payment-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 12px;
}


.project-payment-item {
    padding: 18px;

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.02);
}


.project-payment-item span,
.project-payment-method span {
    display: block;

    margin-bottom: 8px;

    font-size: 8px;

    font-weight: 600;

    letter-spacing: 0.15em;

    color:
        rgba(255, 255, 255, 0.35);
}


.project-payment-item strong {
    font-size: 18px;

    font-weight: 500;
}


.project-payment-method {
    margin-top: 18px;

    padding-top: 18px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.07);
}


.project-payment-method strong {
    font-size: 13px;

    font-weight: 500;

    color:
        rgba(255, 255, 255, 0.75);
}


.project-payment-actions {
    margin-top: 22px;
}


.project-payment-actions button {
    padding: 13px 20px;

    border:
        1px solid
        rgba(255, 255, 255, 0.15);

    border-radius: 8px;

    background:
        #ffffff;

    color: #080808;

    font: inherit;

    font-size: 11px;

    font-weight: 600;
}


.project-payment-actions button:disabled {
    opacity: 0.35;

    cursor: not-allowed;
}


.project-payment-note {
    margin: 12px 0 0;

    font-size: 11px;

    color:
        rgba(255, 255, 255, 0.35);
}


@media (max-width: 900px) {

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

}


@media (max-width: 600px) {

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


    .project-payment-heading {
        flex-direction: column;
    }

}