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

/* Fibonacci com os primeiros 20 números:
[ 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181 ]  
*/

/*
:root {
  --white: #FFFFFF;
  --green: #BFD730;
  --black: #0F1108;
  --purple: #9381FF;
  --orange: #FB8B24;
}
*/

h1 { font-size: 1.25rem; }
h2 { font-size: 1.125rem; }
h3 { font-size: 1rem; }
h4 { font-size: 0.9375rem; }
h5 { font-size: 0.875rem; }
h6 { font-size: 0.8125rem; }
p  { font-size: 0.875rem; }
small { font-size: 0.75rem; }


/* WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 6px; /* fininha */
}

::-webkit-scrollbar-track {
    background: #0a0a0a; /* fundo escuro */
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #49beff, #ff00ff); /* neon degradê */
    border-radius: 10px;
    box-shadow: 0 0 10px #00ffff, 0 0 20px #ff00ff;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #49beff, #00ffff); /* invertido no hover */
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #00ffff #0a0a0a;
}


:root {
    /* --black-color: #0c0f14; */

    --black-color: #191919;
    --white-color: #F8FFE5;
    --independence-color: #323232;
    --blue-color: #49beff;
    --orange-color: #FFB140;

    --space-1: 16px;
    --space-2: 24px;
    --space-3: 32px;
    --space-5: 48px;
    --space-8: 80px;
}

.active {
    background: var(--orange-color);
}




/* Links de abrir modal */
/*
a#openSignInModal, a#openSignUpModal {
    display: inline-block;
    margin: 20px;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
} */

/* Modal sign in and sign out  */
.modal {
    display: none; /* Escondido por padrão */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animação de desaparecer */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.modal-content {
    background-color: var(--black-color);
    margin: 10% auto;
    padding: 34px 21px;
    border-radius: 13px;
    width: 80%;
    max-width: 500px;
    position: relative;
    animation: slideUp 0.5s;
}

.modal-content p {
    margin-bottom: 34px;
}

.sign-up-form {
    display: flex;
    flex-direction: column;
    gap: 21px;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

/* Modal end */


/* ===== Filter search modal ===== */
.filter-modal {
    display: none; /* Escondido por padrão */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 265px;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
}

.filter-modal-content {
    background-color: var(--independence-color);
    height: 100%;
    position: relative;
    animation: slideDown 1s forwards;
    padding: 5% 5%;
}

.filter-modal-content h3 {
    margin-bottom: 21px;
}

.item-input {
    margin-bottom: 21px;
}

.item-select {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 13px;
    margin-bottom: 21px;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideUpSlow {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-100%);
    }
}

.close-filter-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    cursor: pointer;
}
/* ===== Filter seach modal end ===== */


input:focus {
    outline: none;
}

input::placeholder {
    color: var(--orange-color); 
}

select option {
    color: var(--orange-color);
}

ul,
li, 
a {
  text-decoration: none;
  list-style: none;
  color: var(--white-color)
}

html, 
body {
    height: 100%;
}

body {
    display: grid;
    grid-template-rows: 5rem 1fr; /* header | main  */
    height: 100dvh;
    position: relative;
    box-sizing: border-box;
    background: var(--black-color);
    color: var(--white-color);
    font-family: "Poppins", sans-serif;
    overflow: hidden;
}

main {
    padding: 8% 5%;
    overflow-Y: scroll;
    overflow-x: hidden;
    scroll-behavior: smooth;

}

/* ===== Header ===== */
header {
    position: relative;
    padding: 0 5%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
    gap: 8px;

}



.logo-mobile {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-width: 40px;
}

.logo-mobile h2 {
    font-size: 2rem;
}

.input-search {
    width: 100%;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #465670;
    border-radius: 16px;
    flex: 1;
}

.input-search form {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 8px;
    gap: 16px;
}

.input-search form input {
    border: none;
    width: 75%;
    height: 48px;
    background: transparent;
    color: var(--white-color);
    padding: 0 16px;
}

.input-search form button {
    width: 15%;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.input-search form button i {
    color: var(--white-color);
    font-size: 16px;
}

.menu {
    min-width: 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.menu a {
    background: var(--orange-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    padding: 8px;
}


.menu i {
    font-size: 16px;
    color: var(--independence-color);
}

.show-menu {
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    position: fixed;
    background: var(--white-color);
    right: -300px; /* Inicialmente escondido fora da tela */
    top: 0;
    height: 100vh;
    width: 88px; /* Largura do menu */
    transition: right 0.3s ease; /* Transição suave para a animação */
    box-shadow: -2px 0px 5px rgba(0,0,0,0.5); /* Sombra para destacar o menu */
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.show-menu.open {
    right: 0; 
}

.close {
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 8px;
    left: 8px; /* Colocado fora do menu */
    background: var(--black-color);
    border-radius: 100%;
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white-color);
}

.close:hover {
    background-color: red; 
}

.menu-item {
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 32px;
}

.menu-item a  {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
}

.menu-item a i {
    color: var(--independence-color);
    font-size: 24px;
    font-weight: 700;
}

.menu-item a small {
    font-weight: 500;
    color: var(--black-color);
}
/* ===== Header end ===== */

/* =================================== */
/* Index Page */
/* ===================================== */

.title-page h1 {
    color: transparent; /* Torna o texto invisível */
    text-shadow: 0 0 0 rgba(0, 0, 0, 0); /* Remove qualquer sombra que possa fazer o texto aparecer */
    background: transparent; /* Garante que o fundo também seja invisível */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.hero-slider {
    display: flex;
    justify-content: start;
    align-items: center;
    height: auto;
    overflow-x: scroll;
    overflow-y: hidden;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
    margin-right: -5%;
    scroll-behavior: smooth; /* animação suave */
    -ms-overflow-style: none;  /* IE e Edge */
    scrollbar-width: none;     /* Firefox */
}

.hero-slider ::-webkit-scrollbar {
    display: none; /* Safari e Chrome */
}

.hero-slider-img {
    position: relative;
    /* width: 264px;
    height: 128px; */
    aspect-ratio: 312 / 128; /* ou simplesmente 2.06 / 1 */
    flex: 0 0 312px;
    border-radius: 16px;
}

.hero-slider-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative; /* ou pode remover completamente o position */
    border-radius: 16px;
}


.categories {
    min-height: auto;
    display: flex;
    justify-content: start;
    align-items: center;
    overflow-x: scroll;
    margin-right: -5%;
    gap: var(--space-2);
    margin-bottom: 32px;

    scroll-behavior: smooth; /* animação suave */
    -ms-overflow-style: none;  /* IE e Edge */
    scrollbar-width: none;     /* Firefox */
}

.categories::-webkit-scrollbar {
    display: none; /* Safari e Chrome */
}

.categories-item  {
    position: relative;
    min-height: 32px;
    flex: 0 0 auto;
    background: var(--independence-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    padding: 8px 16px;
}

.categories-item:hover {
    background: var(--orange-color);
    color: var(--black-color);
}

.categories-item p {
    white-space: nowrap; /* impede quebra de linha */
    overflow: hidden;    /* opcional: corta o excesso, mas com scroll já funciona */
    text-overflow: ellipsis; /* opcional: adiciona "..." se quiser */
}


.text-description-one {
    margin-bottom: var(--space-2);
}

.text-description-one span{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
}

.text-description-one span i{
    color: var(--orange-color);
}

.text-description-one hr {
    margin-top: 8px;
}

.separator {
    margin-bottom: 32px;
}






.card {
    /*
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(calc(50% - 6.5px), 1fr)); /* Definindo duas colunas 
    gap: 13px;
    margin: 34px 0;
    */
    overflow-x: scroll;
    display: flex;
    gap: var(--space-1);
    scroll-behavior: smooth; /* animação suave */
    -ms-overflow-style: none;  /* IE e Edge */
    scrollbar-width: none;     /* Firefox */

    margin-right: -5%;
    margin-bottom: var(--space-5);
}

.card-item {
    position: relative;
    height: auto;
    border-radius: 8px;
    
    background: var(--independence-color);
    padding: 8px;
    display: flex;
    align-items: start;
    gap: 24px;
    width: 310px;
    flex: 0 0 310px;

}

.card-item-img {

    width: 120px;
    height: 120px;
}

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

.card-item-info {
    height: 100%;
    flex: 1;
    position: relative;
    word-wrap: break-word; /* Quebra palavras longas para caberem no contêiner */
    display: flex;
    flex-direction: column;
    justify-content: space-between;

}


.card-item-info a h4 {
    white-space: normal; /* Permite que o texto quebre automaticamente */
}

.location-icon {
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    color: var(--orange-color);
}

.card-item-open i {
 
    font-size: 24px;
    color: var(--orange-color);
    float: right;
    
}



.card-list {
    display: grid;
    grid-template-columns: 1fr; /* 1 card por linha */
    gap: var(--space-2); /* espaçamento entre cards */
}

.card-list-item {
    position: relative;
    background: var(--independence-color);
    /*aspect-ratio: 4 / 2;  proporção do card */
    width: 100%;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    gap: 16px; 
    min-height: 136px;
}

.card-list-item-img {
    position: relative;
    min-width: 126px;
    height: 100%;
}

.card-list-item-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.card-list-item-info {
    padding: 8px 8px 8px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.card-list-item-info-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.back-to-top {
    background: var(--orange-color);
    position: fixed;
    bottom: 16px;
    width: 32px;
    height: 32px;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 8px;
    border-radius: 100%;
    cursor: pointer;
}




.back-to-top i {
    color: var(--black-color);
    font-size: 24px;
    cursor: pointer;
}
.paginator {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    float: right;
    padding-bottom: 24px;
    width: 500px;
    margin: 24px 0px;
}

.page-item {
    width: 32px;
    height: 32px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-item.active a i{
    color: red;
}



/* ===== Slider item user ad ===== */

.user-ad-slider {
    display: flex;
    gap: 16px;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    padding: 16px;
    margin-bottom: var(--space-5);
    scrollbar-width: none;
}

.user-ad-slider.active {
    background-color: transparent !important;
}

.uas-item {
    scroll-snap-align: start;
    padding: 8px;
    position: relative;
    height: 144px;
    width: 300px;
    background: var(--white-color);
    display: flex;
    border-radius: 8px;
    gap: 8px;
    flex-shrink: 0;
    color: var(--black-color);
}

.uas-i-img {
    position: relative;
    width: 112px;
}

.uas-i-img img {
    object-fit: cover;
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.uas-i-description {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.uas-i-description h5 {
    margin-bottom: var(--space-1);
}


.user-ad-slider::-webkit-scrollbar {
    display: none; /* Oculta a barra de rolagem */
}

.user-ad-slider:after {
    content: '';
    flex: 0 0 32px; /* Espaço para mostrar parte do próximo bloco */
}




/* ========================================
Pricing page 
======================================== */

#pricing-page {
    
}

#pricing-page h1 {
    margin-bottom: 16px;
}

#pricing-page p {
    margin-bottom: 48px;
}

#pricing-page form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#pricing-page form label {
    border: 1px solid white;
    min-height: 200px;
    padding: 16px;
    border-radius: 16px;
    position: relative;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

#pricing-page form label:hover {
   background: var(--independence-color);
   transition: 0.5s;
}

#pricing-page form input[type="radio"] {
    display: none;
}

/* Quando o radio é selecionado, muda a borda do label */
#pricing-page form input[type="radio"]:checked + label {
    border-color: var(--orange-color); /* Bordas vermelhas quando o radio é selecionado */
    border-width: 2px;
}

#pricing-page form label h3 {
    margin-bottom: 16px;
    color: var(--orange-color);
}

.item-price {
    display: flex;
    position: relative;
    margin: 32px 0;
}

.item-price span {
    color: var(--orange-color);
    position: absolute;
    top: 0px;
}

.item-price h2 {
    position: absolute;
    font-size: 48px;
    left: 16px;
}

#pricing-page form label button {
    background: var(--white-color);
    text-align: center;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 32px;
    margin-top: 48px;
    cursor: pointer;
    font-weight: 900;
}

#pricing-page form label button a {
    color: var(--black-color);
    font-weight: 900;
}





/* ====================
Detail page 
==================== */
.ad-detail-slider {
    height: 400px;
    display: flex;
    justify-content: flex-start; /* começa SEMPRE no primeiro card */
    align-items: center;
    gap: 16px;
    overflow-x: auto; /* continua rolando */
    scroll-behavior: smooth; /* scroll suave */
    padding: 8px;
    -ms-overflow-style: none;  /* IE e Edge */
    scrollbar-width: none;     /* Firefox */
    margin-bottom: var(--space-3);
}

.ad-detail-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.ad-detail-slider-item {
    background: var(--independence-color);
    height: 352px;
    width: 304px;
    max-width: 350px;
    position: relative;
    border-radius: 16px;
    flex: 0 0 auto; /* evita esticar quando tem scroll */
}

.ad-detail-slider-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
}





.detail-img {
    margin-top: 34px;
    margin-bottom: 144px;
    position: relative;
    width: 100%;
    height: 233px;
}

#back-icon-mobile {
    display: block;
}

#back-icon-web {
    display: none;
}

.detail-img img {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom-left-radius: 24px;
    border-top-right-radius: 24px;
}

.ad-detail-title {
    display: flex;
    justify-content: space-between;
    align-items: start;
    
}

.ad-title {
    position: relative;
    word-wrap: break-word;
}

.ad-title h3 {
    white-space: normal;
}

.ad-title span {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 13px;
    margin-top: 21px;
}

.ad-title span a {
    background: var(--orange-color);
    width: 34px;
    height: 34px;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-title span i {
    font-size: 21px;
    color: var(--black-color);
}

.ad-detail-content {
    margin: 34px 0;
    word-wrap: break-word;
}

.ad-detail-content p {
    display: inline;
}

.hidden-text {
    display: none;
}

.read-more, .read-less{
    color: var(--orange-color);
    cursor: pointer;
}



.detail-info-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-info-item li {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 16px;
}

.detail-info-item li i {
    font-size: 24px;
    color: var(--orange-color);
}


/* ======================================== */
/* Profile page */
/* ======================================== */

.profle-detail {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 160px;
    margin-bottom: 64px;
}

.profile-img {
    position: relative;
    width: 80px;
    height: 80px;
}

.profile-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 100%;
    object-fit: cover;
}



.profile-info-icon {
    position: absolute;
    display: flex;
    gap: var(--space-1);
    bottom: 0;
    left: 96px;
}

.pii-1 {
    display: flex;
    
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pii-2{
    position: relative;
    display: flex;
    
    justify-content: center;
    align-items: center;
    gap: 8px;


}

.pii-2 span {
    position: absolute;
    background: red;
    top: 0;
    right: 15px;
    border-radius: 100%;
    width: 8px;
    height: 8px;
    color: transparent;
}


.pii-1 i,
.pii-2 i,
.pii-3 i {
    font-size: 24px;
    cursor: pointer;
}

.pii-1 i:hover,
.pii-2 i:hover,
.pii-3 i:hover {
    color: var(--orange-color);
}

.profile-cards {
    display: flex;
    flex-direction: column-reverse;
    gap: 16px;


}

.card-1 {
    cursor: pointer;
    background: var(--independence-color);
    min-height: 88px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
    flex: 1;
}

.card-1:hover{
    transition: 0.3s;
    border: 1px solid var(--white-color);
}

.card-2 {
    cursor: pointer;
    background: var(--orange-color);
    min-height: 88px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
    color: var(--black-color);
    flex: 1;
}



.card-2:hover{
    transition: 0.3s;
    background: transparent;
    border: 1px solid var(--orange-color);
    color: var(--white-color);
}

.card-3 {
    cursor: pointer;
    border: 1px solid #FFD700;
    background: transparent;
    color: var(--independence-color);
    min-height: 88px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 8px;
    padding: 0 24px;
    flex: 1;
}

.card-3 i {
    font-size: 40px;
    color: #FFD700;
}

.card-3 h4 {
    font-size: 32px;
    color: #FFD700;
}

/* ========== */
/* Profile page end */
/* ========== */





/* ======================================== */
/* Message page */
/* ======================================== */

#message-page {
    display: flex;
    flex-direction: column;
}

#message-page h3 {
    margin-bottom: var(--space-5);
}

.people-message {
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: var(--space-1);
    overflow-y: scroll;
    flex: 1;
    scrollbar-width: none;
    border-radius: 16px;
    
}

.pm-item {
    cursor: pointer;
    position: relative;
    min-height: 88px;
    display: flex;
    gap: 8px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding: 8px;

}

.pm-item-active {
    background: green;
}


.pmi-img {
    width: 56px !important;
    height: 56px !important;
    flex-shrink: 0; /* não deixa o container encolher */
}

.pmi-img img {
    width: 56px !important;
    height: 56px !important;
    object-fit: cover;
    border-radius: 100%;
    display: block;
    border: 2px solid var(--white-color);
}

.pmi-info {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 16px;
}

.pmi-info p {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 8px
}






/* ======================================== */
/* Message detail */
/* ======================================== */

#message-detail {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin-bottom: var(--space-1);
    align-self: flex-start;
    width: 100%;
    height: 80px;
}

.cui-img {
    position: relative;
    width: 56px;
    height: 56px;
}

.cui-img img {
    position: absolute;
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 100%;
    border: 2px solid var(--white-color);
}

.message-detail {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-1);
    scrollbar-width: none;
    flex: 1;
}

.left {
    text-align: left;
    background: var(--orange-color);
    padding: 16px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    min-width: 20%;
    max-width: 70%;
    color: var(--black-color);
    align-self: flex-start; /* Alinha à esquerda */
    font-weight: 500;
}

.right {
    text-align: left;
    background: var(--orange-color);
    padding: 16px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-bottom-left-radius: 16px;
    min-width: 20%;
    max-width: 70%;
    color: var(--black-color);
    align-self: flex-end; /* Alinha à direita */
    font-weight: 500;
}

.left p ,
.right p {
    margin-bottom: var(--space-1);
}

.left span ,
.right span {
    font-size: 12px;
    font-weight: 600;
}

#message-detail form {
    background: var(--white-color);
    min-height: 80px;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

#message-detail form textarea {
    width: 100%;
    border: none;
    outline: none;
    flex: 1;
}

#message-detail form button {
    background: var(--orange-color);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    color: var(--black-color);
    font-size: 16px;
    cursor: pointer;
    border-radius: 100%;
    float: right;
}





/* ======================================== */
/* Add new add page */
/* ======================================== */

.back-icon {
    margin-bottom: var(--space-8);
}

.back-icon a i {
    font-size: 32px;
}

.ad-title {
    margin-bottom: 48px;

}

.form-ad form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.ad-form-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.afi-img {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}



.afi-img label {
    position: relative;
    width: 33%;
    height: 104px;
    border: 1px solid var(--independence-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}



.afi-img label i {
    font-size: 24px;
}

.afi-img label:hover {
    transition: 0.3s;
    border: 1px solid var(--orange-color);
}

.afi-img input {
    display: none;
}

.img-preview {
    position: absolute; /* Mantenha como absolute */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Para ajustar a imagem ao tamanho do container */
    display: none; /* Inicialmente, escondido */
}

/* Exibe a imagem quando houver uma prévia */
label img.img-preview {
    display: block; /* Mostra a imagem quando carregada */
}

.remove-preview {
    width: 24px;
    height: 24px;
    position: absolute;
    top: 5px; /* Ajuste conforme necessário */
    right: 5px; /* Ajuste conforme necessário */
    background: transparent;
    border: none;
    color: red; /* Cor do "X" */
    font-size: 18px;
    cursor: pointer;
    display: none; /* Inicialmente escondido */
    background: var(--white-color);
    border-radius: 100%;
}

.afi-img label:hover .remove-preview {
    display: block; /* Mostra o botão "X" ao passar o mouse */
}

.zipcode {
    display: flex;
    flex-direction: row;
}

.zipcode input {
    flex: 1;
    

}

.zipcode button {
    border: none;
    width: 48px;
    background: var(--orange-color);
    border-radius: 8px;
    color: var(--independence-color);
    cursor: pointer;
}

.zipcode button:hover {
    background: var(--independence-color);
    border: none;
    color: var(--white-color);
    cursor: pointer;
}

.send-btn {
    margin-bottom: 48px;
    float: right;
    align-self: flex-end;
}

.send-btn button {
    height: 32px;
    float: left;
    color: var(--black-color);
    border: none;
    cursor: pointer;
    font-weight: 700;
}

/* ==================== */
/* New ad page and  */
/* ==================== */


/* ======================================== */
/* Ad created page */
/* ======================================== */

#ad-created-page {
    
}

#ad-created-page h2 {
    margin-bottom: 128px;
}

.created-ad-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.ad-item {
    border: 1px solid var(--orange-color);
    border-radius: 16px;
    min-height: 88px;
    max-height: 88px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
}

.free {
    border: 1px solid var(--orange-color) !important;
}

.ai-ad-title {
    flex: 1;

    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-ad-title span {
    display: flex;
    gap: 8px;
    justify-content: start;
    align-items: center;
    font-size: 13px;
}

.ai-ad-title span b {
    color: var(--orange-color);
}



.ad-edit {
    width: 56px;
    display: flex;
    align-items: center;
    justify-content: end;
}

.ad-edit i {
    font-size: 32px;
    cursor: pointer;
}

.ad-edit i:hover {
    font-size: 32px;
    cursor: pointer;
    color: var(--orange-color);
    transition: 0.5s;
}

/* ======================================== */
/* Support page */
/* ======================================== */

#support-page {
}

#support-page h1 {
    margin-bottom: 16px;
}

#support-page p {
    margin-bottom: 48px;
}

.support-contact {
    background: var(--independence-color);
    padding: 16px;
    margin-bottom: 48px;
}

.support-contact h3 {
    margin-bottom: 32px;
}

.support-email {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 16px;
}

.spt-icon {
    background: var(--orange-color);
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    color: var(--black-color);
}

.support-error {
    background: var(--independence-color);
    padding: 16px;
}

.support-error form {
    position: relative;
}

.support-error h3 {
    margin-bottom: 32px;
}

.spt-error-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 32px;
}

.spt-error-item label {
    margin-bottom: 8px;
}

.spt-error-item textarea {
    background: var(--black-color);
}

.spt-error-item textarea::placeholder {
    color: var(--orange-color);
    opacity: 1;
    font-family: "Poppins", sans-serif;
}

.upload-box {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.progress-container {
    width: 100%;
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    margin-top: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: #4caf50; /* Verde, mas você pode mudar */
    transition: width 0.1s ease-in-out; /* Animação suave */
}

#error-message {
    font-size: 12px;
    margin-top: 5px;
}

.spt-error-btn {
    display: flex;
    justify-content: end;
}


/* ======================================== */
/* Settings page */
/* ======================================== */

#settings-page h3 {
    margin-bottom: var(--space-5);
}

.edit-profile-form {
    height: 144px;
    margin-bottom: var(--space-8);
}

.edit-profile-detail {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    margin-bottom: var(--space-5);
}

.edit-profile-detail-img {
    position: relative;
    width: 104px;
    height: 104px;
}

.edit-profile-detail-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 100%;
}

.edit-profile-form form { 
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.edit-profile-form-form-img {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: start;
    gap: var(--space-1);
    border: 1px dashed var(--orange-color);
    padding: 16px;
    border-radius: 16px;
}

.edit-profile-form-form-img span {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}



















/* ======================================== */
/* Sign in */
/* ======================================== */

#sign-in {
    display: flex;
    justify-content: center;
    align-items: center;
}


.sign-in-block {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.sign-in-block-title{
    text-align: center;
    margin-bottom: var(--space-3);
}

.sign-in-block-btns {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sign-in-block-btns button {
    background: var(--independence-color);
    color: var(--white-color);
    width: 250px;
    height: 48px;
    border: none;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    cursor: pointer;

}

.sign-in-block-btns button:hover {
    transition: 0.3s;
    border: 1px solid var(--orange-color);
}

.sign-in-block-btns button i {
    font-size: 16px;
}