 /* MODERN CSS NESTING */
:root {
    --bg: #ffffff;
    --sidebar-bg: #f9f9fb;
    --text-main: #111111;
    --text-muted: #666666;
    --border: #eeeeee;
    --accent: #000000;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --sidebar-width: 246px; 
    --right-sidebar-width: 320px;
    --header-height: 64px;
    --surface: #ffffff;
    --shadow: 0 1px 3px rgba(0,0,0,0.02), 0 8px 24px rgba(149, 157, 165, 0.05);

    --page-max-width: 1800px;
    --page-padding-x: 28px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;

    
    padding-top: calc(var(--header-top-height) ) !important;
    

}

button { font-family: inherit; }

a {
    color: inherit;
    text-decoration: none;
}

header.site-menu {

    border-bottom: 1px solid var(--border);

    .top {


        .logo img {
            width: 98px;
        }

        .search-container {

            position: relative;

            form {
                width: 100%;
                max-width: 400px;
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                
                input {
                    width: 100% !important;
                    background: #f3f4f6e6 !important;
                    border: 1px solid transparent !important;
                    padding: 10px 36px !important;
                    border-radius: 11px !important;
                    font-size: 13.5px !important;
                    transition: all 0.2s !important;

                    &:focus { outline: none !important; background: #fff !important; border-color: #ddd !important; box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important; }
                }
            }

        }

        
    }
}

.categories-bar {

    

    display: none;

    
}

/* TOP NAVBAR */
.top-nav {
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    z-index: 100;

    & .nav-left {
        display: flex; align-items: center; gap: 32px;
        & .brand svg { display: block; }
        & .search-wrapper {
            position: relative;
            & input {
                width: 320px; background: #f3f4f6; border: 1px solid transparent;
                padding: 8px 12px 8px 36px; border-radius: var(--radius-md);
                font-size: 14px; transition: all 0.2s;
                &:focus { outline: none; background: #fff; border-color: #ddd; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
            }
            & svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-muted); }
        }
    }

    & .nav-right {
        display: flex; align-items: center; gap: 12px;
        & .icon-btn {
            padding: 8px; border: none; background: none; cursor: pointer; color: var(--text-main);
            border-radius: var(--radius-md); transition: 0.2s;
            & svg { width: 20px; height: 20px; stroke-width: 2; fill: none; stroke: currentColor; }
            &:hover { background: #f3f4f6; }
        }
        & .btn-login { font-size: 14px; font-weight: 600; padding: 8px 16px; border: none; background: none; cursor: pointer; }
        & .btn-add {
            background: var(--accent); color: #fff; padding: 8px 16px;
            border-radius: var(--radius-md); font-size: 13px; font-weight: 600;
            border: none; cursor: pointer; transition: 0.2s;
            &:hover { opacity: 0.85; }
        }
    }
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    flex-shrink: 0;

    & nav {
        flex: 1; display: flex; flex-direction: column; gap: 4px;
        & .nav-group-label {
            font-size: 11px; font-weight: 600; text-transform: uppercase;
            letter-spacing: 0.05em; color: #71717a; padding: 1.5rem 0.75rem 0.5rem; user-select: none;

            &:first-of-type {
                padding-top: 0;
            }
        }


        & .nav-item {
            display: flex; align-items: center; gap: 10px; padding: 10px 12px;
            border-radius: 8px; color: #71717a; text-decoration: none; font-size: 13.5px;
            font-weight: 500; transition: all 0.1s ease; cursor: pointer;
            position: relative;
            & svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
            &:hover { color: #1a1a1a; background: rgba(0,0,0,0.03); }
            &.active { background-color: white; color: #1a1a1a; box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.02); }

            .notifier {
                    background: #ff004a;
                    width: 16px;
                    aspect-ratio: 1;
                    display: flex;
                    border-radius: 33px;
                    position: absolute;
                    right: 9px;
                    top: 50%;
                    transform: translateY(-50%);
                    align-items: center;
                    justify-content: center;
                    color: white;
                    font-size: 9.5px;
                    font-weight: 600;
            }
        }
    }
    & .sidebar-footer {
        padding-top: 16px; border-top: 1px solid var(--border);
        padding-left: 5px;
        & .logout { 
            color: rgb(34 59 199);
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 14px;
            & svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; } 
            
        }
    }
}

/* MESSAGES SIDEBAR SPECIFIC */
#conversation-list-sidebar { display: none; }
.sidebar-header-alt {

    & button {             display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted); }
    h3 {         padding: 24px;
        font-weight: 700;
        font-size: 14px;
        border-bottom: 1px solid var(--border); }
}

.msg-list {
    display: flex; flex-direction: column;  overflow-y: auto;
}
.msg-item {

    --border-width: 6px; 
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: 0.2s;
    border-right: var(--border-width) solid transparent;
    &.selected {
        border-right: var(--border-width) solid #4e0cff;
        background: #2140b10f;
    }
    &:hover {background: #2140b10f; }
    &.active { background: #fff; border-color: #ddd; box-shadow: var(--shadow); }
    & img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
    & .msg-content-wrap { flex: 1; min-width: 0; }
    & .msg-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
    & .msg-user { font-size: 13px; font-weight: 600; color: #111; }
    & .msg-date { font-size: 11px; color: var(--text-muted); }
    & .msg-prod-title { 
        font-size: 12px;
        font-weight: 600;
        color: var(--text-muted);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 2px;
    }
    & .msg-preview { 
        
        font-size: 12px;
        color: #71717a;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        
    }

    .msg-content-wrap {
        position: relative;
    }

    .notifier {
        background: #ff004a;
        width: 16px;
        aspect-ratio: 1;
        display: flex;
        border-radius: 33px;
        position: absolute;
        right: 0;
        top: 20px;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 9.5px;
        font-weight: 600;
    }
}

/* RIGHT SIDEBAR (WIDE SCREENS) */
.right-sidebar {
    width: var(--right-sidebar-width);
    background: #fff;
    border-left: 1px solid var(--border);
    display: none; /* Shown via JS/Media Query */
    flex-direction: column;
    overflow-y: auto;
}

/* MAIN CONTENT AREA */
.app-layout { grid-row: 2; display: flex; height: 100%; overflow: hidden; }
.main { flex: 1; overflow-y: auto; 
    padding: 48px 79px;
    padding: 34px 57px;
    & header { margin-bottom: 40px; margin-bottom: 5px; display: flex; justify-content: space-between; flex-direction: column; gap: 20px;
            position: relative;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
        & h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.04em; margin-bottom: 21px; } }
}

/* CHAT VIEW STYLES */
.chat-container {
    display: flex; flex-direction: column; height: 100%; max-width: 900px; margin: 0 auto;
}
.chat-view-header {
    display: flex; align-items: center; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 24px;
    & .chat-prod-img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
    & h2 { font-size: 18px; font-weight: 700; }
    & p { font-size: 14px; color: var(--text-muted); }
}
.chat-messages-scroll { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; padding-right: 8px; }
.chat-bubble {
    max-width: 70%; padding: 12px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5;
    &.received { background: #f3f4f6; align-self: flex-start; border-bottom-left-radius: 4px; }
    &.sent { background: #000; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
}
.chat-input-area { 
    & .input-box {                 display: flex;
gap: 12px;
align-items: center;
/* background: #f3f4f6; */
padding: 8px 16px;
padding-right: 9px;
padding-left: 15px;
border-radius: 12px;
border: 1px solid #eeeeee;
        & textarea { 
            flex: 1; border: none; background: none; font-size: 13.5px; 
            resize: none;
            font-family: Inter; font-weight: inherit;
            &:focus { outline: none; } 
            
        }
        & .attach-btn { background: none; border: none; cursor: pointer; color: var(--text-muted); position: relative;
top: 1px; &:hover { color: #000;     display: flex;
align-items: center;
justify-content: center; } }
        & .send-btn { background: #000; color: #fff; border: none; padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
    }
}

/* OVERVIEW HUB */

.overview-profile-header {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;

    .btn 
        {
            border: 1px solid var(--border);
        color: var(--text-main);
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 19px;
        border-radius: 33px;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
        transition: 0.3s;

        &:hover {
            background: #00000017;
        }
        }

    .btn-black { background: #ff0c69 !important; color: #fff; border: none; }
    .btn-black:hover { opacity: 0.85; }

    .btn-group {
        display: flex;
    gap: 12px;
    }
}
.profile-left { display: flex; align-items: center; gap: 24px; }
.profile-img-main {     
        width: 80px;
    aspect-ratio: 1;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
     }
.profile-details h2 { 
    font-size: 24px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 4px; 
    a {
        
        &:hover {
            text-decoration: underline;
        }
    }
}
.profile-details p { color: var(--text-muted); font-size: 14px; letter-spacing: 0.2px; }
.pro-label { display: none; background: #000; color: #fff; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; margin-left: 8px; vertical-align: middle; }

.hub-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hub-card {
        background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;

    &:hover {
        
    }
}
.hub-icon-well {
        width: 44px;
    aspect-ratio: 1;
    border-radius: 33px;
    display: flex;
    align-items: center;
    justify-content: center;

    &.icon-purple {
        background: #faf5ff;

            & svg {
                stroke: #a855f7;
            }
    }

    &.icon-pink {
        background: #fdf2f8;
        & svg {
            stroke: #ec4899;
        }
    }



    svg {
        width: 21px;
        aspect-ratio: 1;
        stroke-width: 2;
        fill: none;
    }
}
.well-blue { background: #eff6ff; & svg { stroke: #3b82f6; } }
.well-green { background: #f0fdf4; & svg { stroke: #22c55e; } }
.well-amber { background: #fff7ed; & svg { stroke: #f97316; } }
.well-indigo { background: #eef2ff; & svg { stroke: #6366f1; } }
.well-rose { background: #fff1f2; & svg { stroke: #f43f5e; } }
.well-gray { background: #f4f4f5; & svg { stroke: #18181b; } }
.hub-text h3 { font-size: 16px;
    font-weight: 600;
    color: #111;
    margin-bottom: 6px; }
.hub-text p {     letter-spacing: 0.1px;    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5; }











/* PRODUCT GRID */




    


















.seller-card {
    text-align: center; padding: 32px 24px;
    & .seller-avatar { 
        width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 16px; background-size: cover;
    background-position: center;
    background-repeat: no-repeat; border: 1px solid #c5c5c5;
    }
    h4 { 
        font-size: 16px; font-weight: 700; margin-bottom: 4px; height: auto; display: block; 
        &::first-letter {text-transform: capitalize;}
        a {
            color:inherit; text-decoration: none;
            
        } 

        
    }

    
}



.sub-nav { display: flex; gap: 24px; border-bottom: 1px solid var(--border);     display: flex;
    gap: 41px;
    align-self: flex-end; & button { background: none; border: none; padding: 12px 0; color: #71717a; font-size: 12.5px; text-transform: uppercase; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; &.active { color: var(--text-main); border-bottom-color: var(--text-main); } } }
.fade { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }



/* SETTINGS POPUP  */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.45);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    
}
.modal-overlay.active { display: flex; }

/* MODAL CONTAINER */
.settings-modal {
    background: #fff;
    width: 100%;
    max-width: 620px;
    border-radius: 12px;
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    animation: modalEntrance 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #e5e7eb;
    
}

@keyframes modalEntrance {
    from { opacity: 0; transform: translateY(15px) scale(0.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* HEADER */
.modal-header {
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 0 !important;
    flex-direction: row !important;

    .title-group h2 { font-size: 18px; font-weight: 700; color: #111; letter-spacing: -0.01em; }
    .title-group p { font-size: 13px; color: #6b7280; margin-top: 2px; }

    .modal-close {
        background: transparent;
        border: 1px solid #e5e7eb;
        width: 32px; height: 32px;
        border-radius: 8px;
        color: #9ca3af;
        cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        transition: 0.2s;
        &:hover { background: #f9fafb; color: #111; border-color: #d1d5db; }
    }

    
}

/* SCROLLABLE CONTENT */
.modal-scrollable {
    padding: 0 32px;
    overflow-y: auto;
    background: #fff;
    &::-webkit-scrollbar { width: 4px; }
    &::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 10px; }
}

/* SECTIONS */
.settings-section {
    padding: 32px 0;
    border-bottom: 1px solid #f3f4f6;
    &.last { border-bottom: none; }
}

.section-header {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 20px;
}

/* IDENTITY CARD (Profile + Display Name) */
.identity-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #f9fafb;
    margin: 24px -32px 0;
    padding: 27px 32px;
    margin-top: 0;
    
}

.avatar-edit .image-wrapper {
position: relative;
width: 84px;
aspect-ratio: 1;

img { width: 100%; height: 100%; border-radius: 50px; object-fit: cover; }

.upload-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #6a2bff;
    width: 30px;
    height: 30px;
    border-radius: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1.5px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: 0.2s;

    &:hover { transform: scale(1.1); }
}
}

/* FORM GRID */
.input-stack { display: flex; flex-direction: column; gap: 20px; flex: 1; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-group { display: flex; flex-direction: column; gap: 6px; flex: 1; }

.input-label {
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
}

.studio-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #111;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    &::placeholder { color: #9ca3af; }
    &:focus {
        outline: none;
        border-color: #111;
        box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.05);
    }
}

/* FOOTER */
.modal-footer {
    padding: 20px 32px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: flex-end;
    gap: 20px;

    .btn-link {
        background: transparent;
        border: none;
        color: #6b7280;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        &:hover { color: #111; }
    }

    .btn-black {
        background: #111;
        color: #fff;
        border: none;
        padding: 10px 20px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: 0.2s;
        &:hover { background: #000; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
    }
}



/* RESPONSIVE */
@media (max-width: 600px) {
    .identity-card { flex-direction: column; text-align: center; margin: 0; border-radius: 12px; }
    .field-pair { grid-template-columns: 1fr; }
    .modal-scrollable { padding: 0 20px; }
}



/* Centered Notification Container */
#toast-container {
    position: fixed;
    top: 32px; /* Positioned at the top */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000; /* Higher than the modal */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none; /* Allows clicking through the container */
}

.toast {
    pointer-events: auto;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(8px);
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    
    /* Animation: Slide down from top */
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success { border: 1px solid rgba(16, 185, 129, 0.4); }
.toast.error { border: 1px solid rgba(239, 68, 68, 0.4); }

/* Loading State for Button */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: calc(50% - 8px);
    left: calc(50% - 8px);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}







/* WIDE SCREEN LOGIC */
@media (min-width: 1400px) {
    .app-layout.messages-active {
        & .right-sidebar { display: flex; }
        & #main-sidebar { display: flex !important; }
        & #conversation-list-sidebar { display: none !important; }
    }
}






/* offer cards */
  /* MODERN OFFER CARD */
.offer-card {
 

    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 16px;
    padding: 20px;
    margin: 12px 0;
    min-width: 257px;
    max-width: 320px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', sans-serif;
    border: 1px solid #f1f1f4;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

.offer-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 21px;
}

/* Badge variants */
.badge-pending { background: #eff6ff; color: #2563eb; }
.badge-nekad { background: #fef2fb; color: #b62626d9; }
.badge-accepterad { background: #f0fdf4; color: #1a7b3f; }
.badge-ersatt { background: #f4f4f5; color: #71717a; }

.offer-body {
    margin-bottom: 20px;
}

.offer-label {
    font-size: 12px;
    color: #71717a;
    display: block;
    margin-bottom: 8px;
}

.offer-price {
    font-size: 24px;
    font-weight: 800;
    color: #111111;
    letter-spacing: -0.02em;
}

.offer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f4f4f5;
}

.offer-time {
    font-size: 11px;
    color: #a1a1aa;
}

.offer-status-msg {
    font-size: 11.5px;
    font-weight: 500;
    color: #095c5d !important;
    letter-spacing: 0.2px;
}

/* ACTIONS */
.offer-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.btn-modern {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e4e4e7;
    background: #fff;
}

.btn-primary-black {
    background: #111;
    color: #fff;
    border: none;
}

.btn-primary-black:hover {
    background: #333;
}

.btn-secondary:hover {
    background: #f9f9fb;
    border-color: #d1d1d6;
}

/* Style for the "Ersatt" strike-through effect */
.offer-card.is-ersatt .offer-price {
    text-decoration: line-through;
    color: #a1a1aa;
}


/* Ensure the a-tag button looks like the others */
a.btn-modern {
    text-align: center;
    text-decoration: none;
    display: block;
    line-height: 1.2;
}

/* Style for the cancel/draw back text */
.btn-danger-text {
    color: #e11d48 !important;
    border-color: #fecdd3 !important;
}
.btn-danger-text:hover {
    background: #fff1f2 !important;
}




/* Professional Info Box for payment/deadlines */
.offer-info-alert {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 12px;
    line-height: 1.4;
}

.offer-info-alert svg {
    flex-shrink: 0;
    color: #94a3b8;
}

/* Success status text refinement */
.offer-status-msg.status-success {
    color: #166534 !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}





/* messages.js offer button and popup suggesion */
.chat-input-area {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-actions-bar {
    display: flex;
    gap: 8px;
}

.btn-offer {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-offer:hover {
    background: #e5e7eb;
}

/* Ensure textarea feels like a chat */
#chat-textarea {
    max-height: 150px;

}












/* STUNNING INVITE PAGE STYLES */
.invite-hero {
    margin-bottom: 48px;
    & h1 { font-size: 41px; line-height: 1.1; margin-bottom: 12px; }
    & p {         font-size: 15.5px;
        color: var(--text-muted);
        max-width: 497px;
        line-height: 1.5; }
}

.referral-box {
    display: flex; align-items: center; gap: 12px;
    background: #f4f4f5; padding: 8px; border-radius: 12px;
    border: 1px solid var(--border); margin: 32px 0 64px;
    max-width: 500px;
    & .link-text { flex: 1; padding: 0 12px; font-weight: 600; font-size: 14px; color: #111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    & .copy-btn { background: #000; color: #fff; border: none; padding: 10px 20px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: 0.2s; }
    & .copy-btn.copied { background: #10b981; }
}

.steps-section {
    & h2 { font-size: 24px; font-weight: 700; margin-bottom: 32px; letter-spacing: -0.02em; }
    & .steps-grid {
        display: grid; grid-template-columns: repeat(3, 1fr); gap: 43px;
        & .step-card {
            background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
            transition: 0.3s;
            &:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.05); }
            & .img-container { height: 180px; background: #eee; & img { width: 100%; height: 100%; object-fit: cover; } }
            & .text-content { padding: 24px; 
                & .num { width: 28px; height: 28px; background: #000; color: #fff; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 700; margin-bottom: 16px; }
                & h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
                & p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
            }
        }
    }
}











/* DESIGN 3: EDITORIAL MINIMALIST */
.empty-state-v3 {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 20px; /* More vertical breathing room */
    text-align: center;
    height: 100%;
    margin-top: -27px;
}

.empty-state-v3 .icon-wrap {
    margin-bottom: 24px;
    color: #d4d4d8; /* Very light gray */
}

.empty-state-v3 .icon-wrap svg {
    width: 32px;
    height: 32px;
    stroke-width: 1px; /* Ultra thin lines for a high-end feel */
}

.empty-state-v3 h3 {
    font-size: 22px;
    font-weight: 600;
    color: #111;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.empty-state-v3 p {
    font-size: 15px;
    color: #71717a;
    max-width: 400px;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* A refined, pill-shaped button that isn't "loud" */
.btn-minimal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #000;
    color: #fff;
    padding: 12px 28px;
    border-radius: 40px; /* Full pill */
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;

     /* 1. Tell the browser to prepare for a transform */
    will-change: transform;
    
    /* 2. Force 3D rendering (prevents the "snap" to blur) */
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    
    transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

.btn-minimal:hover {
    
    transform: scale(1.03) translateZ(0);
}

.btn-minimal svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}




