/* =========================================
   HOUSE TO HOME - USER DASHBOARD
   CUSTOM STYLES
========================================= */


/* =========================================
   GOOGLE FONT
========================================= */

body {
    font-family: 'Inter', sans-serif;
    background-color: #050505;
    color: #ffffff;
}


/* Headings */

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
}


/* =========================================
   LUXURY FONT
========================================= */

.luxury-font {
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}


/* =========================================
   LUXURY CARD
========================================= */

.luxury-card {
    background: linear-gradient(
        145deg,
        #0a0a0a,
        #000000
    );

    border: 1px solid #2d2616;
}


/* =========================================
   GOLD COLOR
========================================= */

.gold-accent {
    color: #b59b54;
}


/* =========================================
   CHAT SCROLLBAR
========================================= */

#chat-history::-webkit-scrollbar {
    width: 6px;
}


#chat-history::-webkit-scrollbar-track {
    background: #0a0a0a;
}


#chat-history::-webkit-scrollbar-thumb {
    background: #2d2616;
    border-radius: 10px;
}


#chat-history::-webkit-scrollbar-thumb:hover {
    background: #b59b54;
}


/* =========================================
   INPUT FOCUS
========================================= */

input:focus,
select:focus {
    outline: none;
}


/* =========================================
   MODAL
========================================= */

.hidden {
    display: none;
}

body.profile-panel-open {
    overflow: hidden;
}

#profile-sidebar {
    background: #141414;
    box-shadow: 12px 0 32px rgba(0, 0, 0, .58), 1px 0 0 rgba(215, 185, 83, .28);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#profile-sidebar::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

#profile-sidebar.profile-sidebar-closed {
    transform: translateX(-100%);
}

.profile-preset-icon {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 35% 25%, #302819, #0b0b0b 72%);
}

.profile-preset-icon svg {
    width: 72%;
    height: 72%;
    fill: #171717;
    stroke: #d7b953;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.profile-preset-icon[data-preset="female"] .avatar-hair {
    d: path("M18 31C14 18 20 5 32 5s18 13 14 26c-3-8-8-13-14-13S21 23 18 31Z");
}

.profile-photo-action {
    color: #d7b953;
    background: transparent;
    border: 0;
    padding: 2px 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
    text-decoration: underline;
}

.profile-preset-picker {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.profile-preset-picker button {
    min-width: 0;
    width: 44px;
    height: 44px;
    padding: 5px;
    border: 1px solid #5e4c20;
    border-radius: 50%;
    color: #c7c7c7;
    background: #111;
    font-size: 10px;
    cursor: pointer;
}

.profile-preset-picker svg {
    display: block;
    width: 100%;
    height: 100%;
}

.profile-preset-picker .avatar-detail { fill: #d7b953; }
.profile-preset-picker .avatar-line { fill: none; stroke: #f4e1a0; stroke-width: 2; }
.profile-preset-icon[data-preset="orbit"] { color: #4677d5; }
.profile-preset-icon[data-preset="nova"] { color: #7553a6; }
.profile-preset-icon[data-preset="prism"] { color: #258f8a; }
.profile-preset-icon[data-preset="vault"] { color: #657386; }
.profile-preset-icon[data-preset="crown"] { color: #b78b2e; }
.profile-preset-icon .avatar-base { fill: currentColor; }

.profile-preset-picker button.active {
    border-color: #d7b953;
    color: #0a0a0a;
    background: #d7b953;
}


/* =========================================
   RESPONSIVE PROFILE SIDEBAR
========================================= */

@media (max-width: 640px) {

    #profile-sidebar {
        width: 100%;
        max-width: 320px;
    }

}


/* =========================================
   MOBILE HEADER
========================================= */

@media (max-width: 500px) {

    header h1 {
        font-size: 1.25rem;
    }

}


/* =========================================
   TABLE
========================================= */

table {
    border-collapse: collapse;
}


/* =========================================
   BUTTON CURSOR
========================================= */

button {
    cursor: pointer;
}


/* =========================================
   IMAGE
========================================= */

img {
    max-width: 100%;
}


/* =========================================
   CHAT IMAGE
========================================= */

#chat-history img {
    max-width: 100%;
    height: auto;
}


/* =========================================
   SMOOTH TRANSITION
========================================= */

button,
input,
select {
    transition: all 0.2s ease;
}

/* =========================================
   SIGN UP PAGE
========================================= */

.gold-border {
    border: 1px solid #b59b54;
}


.gold-text {
    color: #b59b54;
}


.input-field {
    width: 100%;

    background-color: #111;

    border: 1px solid #333;

    color: white;

    padding: 0.75rem 2.5rem 0.75rem 0.75rem;

    border-radius: 0.25rem;

    font-size: 0.875rem;

    outline: none;

    transition:
        border-color 0.3s,
        box-shadow 0.3s;
}


.input-field:focus {

    border-color: #b59b54;

    box-shadow:
        0 0 0 1px #b59b54;

}


.input-field::placeholder {

    color: #666;

}

.investment-progress {
    display: block;
    width: 100%;
    height: 0.625rem;
    overflow: hidden;
    border: 0;
    border-radius: 9999px;
    background: #374151;
    appearance: none;
}

.investment-progress::-webkit-progress-bar {
    border-radius: 9999px;
    background: #374151;
}

.investment-progress::-webkit-progress-value {
    border-radius: 9999px;
    background: linear-gradient(90deg, #16a34a, #4ade80);
    transition: width 0.5s ease;
}

.investment-progress::-moz-progress-bar {
    border-radius: 9999px;
    background: linear-gradient(90deg, #16a34a, #4ade80);
}

.language-switcher {
    position: fixed;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.55rem;
    border: 1px solid #574b2d;
    border-radius: 0.35rem;
    background: rgba(8, 8, 8, 0.94);
    color: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.language-switcher select {
    border: 0;
    outline: 0;
    background: #080808;
    color: #fff;
    font: inherit;
    font-size: 0.78rem;
}

html[dir="rtl"] .language-switcher {
    right: auto;
    left: 0.75rem;
}
