:root {
    --bg: #0d0b0b;
    /* quase preto */
    --gold: #b8842a;
    /* dourado principal (ajuste se quiser) */
    --white: #ffffff;
    --muted: rgba(255, 255, 255, 0.08);
    --card: rgba(255, 255, 255, 0.03);
    --glass: rgba(255, 255, 255, 0.04);
    --radius: 12px;
    --max-width: 920px;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Reset simples */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html,
body {
    height: 100%
}

body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: linear-gradient(180deg, var(--bg), #070607 80%);
    color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* HEADER */
.app-header {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px
}

.logo-img {
    height: 64px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

/* top action icons */
.top-actions {
    display: flex;
    gap: 8px
}

.btn-icon {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px;
    border-radius: 10px;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-icon svg {
    color: var(--white);
    opacity: 0.9
}

/* MAIN */
.container {
    max-width: var(--max-width);
    margin: 12px auto;
    padding: 18px;
    width: 100%;
    flex: 1 0 auto;
}

.page-title {
    text-align: center;
    color: var(--gold);
    font-family: "Oswald", sans-serif;
    letter-spacing: 2px;
    font-size: 34px;
    margin: 10px 0 18px;
}

/* MENU */
.main-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    padding: 0 6px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    border-radius: 14px;
    padding: 14px 16px;
    background: var(--card);
    color: var(--white);
    transition: transform .12s ease, box-shadow .12s ease, background .12s;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4) inset;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.menu-item:active,
.menu-item:focus,
.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

.mi-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    color: var(--white)
}

.mi-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
    opacity: 0.95
}

.mi-text {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.mi-arrow {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.55)
}

/* Promo */
.promo {
    margin-top: 16px;
    background: linear-gradient(180deg, rgba(184, 132, 42, 0.06), rgba(0, 0, 0, 0.02));
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(184, 132, 42, 0.08);
}

.promo-title {
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 18px
}

.promo-text {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px
}

.btn-primary {
    display: inline-block;
    padding: 10px 14px;
    background: var(--gold);
    color: var(--bg);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(184, 132, 42, 0.14);
}

/* FOOTER */
.app-footer {
    padding: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

/* RESPONSIVO */
@media (min-width:700px) {
    .container {
        padding: 28px
    }

    .menu-item {
        padding: 18px 20px
    }

    .mi-text {
        font-size: 20px
    }

    .page-title {
        font-size: 40px
    }
}

@media (min-width:1000px) {
    body {
        background: linear-gradient(180deg, #080707, #050505)
    }

    .container {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 28px;
        align-items: start;
    }

    .main-menu {
        grid-column: 1
    }

    .promo {
        grid-column: 2;
        position: sticky;
        top: 24px
    }
}

/* -------------------------------------
   PÁGINA AGENDAR CORTE
--------------------------------------*/

.card-agendar {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    margin-top: 10px;
}

.form-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 16px;
    text-align: center;
}

.form-agendar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
}

.form-group {
    position: relative;
}

.form-group select.form-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23d4a646' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5H3z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.form-input {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--white) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    position: relative;
    width: 100%;
}

.form-input option {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    padding: 10px;
}

.form-input:focus {
    border-color: var(--gold);
}

.btn-full {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 18px;
    margin-top: 10px;
}

/* -------------------------------------
   PÁGINA SERVIÇOS
--------------------------------------*/

.services-list{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-card{
  background: var(--card);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.service-info{
  max-width: 60%;
}

.service-name{
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.service-desc{
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

.service-meta{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.service-time{
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.service-price{
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}

.btn-small{
  padding: 8px 12px;
  font-size: 14px;
}

@media (max-width: 520px){
  .service-info{max-width:70%}
  .service-meta{align-items:flex-start}
}

/* -------------------------------------
   PÁGINA CATÁLOGO
--------------------------------------*/

.catalog-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.catalog-item{
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.catalog-item:hover{
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.6);
}

.catalog-img{
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.catalog-info{
  padding: 12px;
}

.catalog-title{
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.catalog-desc{
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

/* -------------------------------------
   PÁGINA BARBEIROS
--------------------------------------*/

.barbers-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.barber-card{
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.barber-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.6);
}

.barber-img{
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.barber-info{
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.barber-name{
  font-size: 18px;
  font-weight: 700;
}

.barber-role{
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

.barber-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 8px;
}

.barber-tags span{
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
}

/* -------------------------------------
   CONFIRMAÇÃO DE AGENDAMENTO
--------------------------------------*/

.confirm-container{
  display: flex;
  justify-content: center;
  align-items: center;
}

.confirm-card{
  background: var(--card);
  border-radius: 16px;
  padding: 28px 22px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 10px 26px rgba(0,0,0,0.5);
}

.confirm-icon{
  color: var(--gold);
  margin-bottom: 12px;
}

.confirm-title{
  font-size: 26px;
  font-family: "Oswald", sans-serif;
  color: var(--gold);
  margin-bottom: 10px;
}

.confirm-text{
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 18px;
}

.confirm-details{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.detail-item{
  background: rgba(255,255,255,0.06);
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
}

.detail-item span{
  display: block;
  color: rgba(255,255,255,0.7);
}

.detail-item strong{
  display: block;
  font-size: 15px;
  margin-top: 2px;
}

.confirm-actions{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Botão secundário */
.btn-outline{
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 10px;
  padding: 14px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

/* -------------------------------------
   HISTÓRICO DE AGENDAMENTOS
--------------------------------------*/

.section-title{
  font-size: 18px;
  margin: 14px 0 10px;
  color: var(--gold);
  font-weight: 700;
}

.appointment-card{
  background: var(--card);
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 12px;
  display: flex;
  /* flex-direction: column; */
  gap: 8px;
}

.appointment-card.highlight{
  border: 1px solid rgba(184,132,42,0.4);
  background: linear-gradient(
    180deg,
    rgba(184,132,42,0.12),
    rgba(255,255,255,0.02)
  );
}

.appointment-card>div:nth-child(1){
  width: 70%;
}

.appointment-main strong{
  font-size: 16px;
}

.appointment-main span{
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

.appointment-meta{
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}

.appointment-actions{
  margin-top: 6px;
  width: 30%;
}

@media (min-width: 700px){
  .appointment-card{
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .appointment-actions{
    margin-top: 0;
  }
}

/* -------------------------------------
   PERFIL DO CLIENTE
--------------------------------------*/

.profile-card{
  background: var(--card);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.profile-avatar{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--gold),
    #f1c76d
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: #000;
}

.profile-info strong{
  font-size: 18px;
}

.profile-info span{
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

.form-card{
  background: var(--card);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-actions{
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-danger{
  border: 1px solid rgba(255,0,0,0.4);
  color: #ff5c5c;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
}

.btn-danger:hover{
  background: rgba(255,0,0,0.08);
}

/* -------------------------------------
   LOGIN / AUTENTICAÇÃO
--------------------------------------*/

.auth-body{
  min-height: 100vh;
  background: linear-gradient(
    180deg,
    #000000,
    #111111
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-container{
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.auth-logo{
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.auth-logo img{
  width: 140px;
}

.auth-card{
  background: var(--card);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.auth-card h1{
  font-size: 26px;
  margin-bottom: 6px;
  text-align: center;
}

.auth-card p{
  font-size: 14px;
  text-align: center;
  color: rgba(255,255,255,0.75);
  margin-bottom: 18px;
}

.auth-card form{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-links{
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
}

.auth-links a{
  font-size: 14px;
  color: var(--gold);
  text-decoration: none;
}

.auth-links a:hover{
  text-decoration: underline;
}

.auth-footer{
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}
