/* =========================
   ACCOUNT PAGE 
   ========================= */



/* links */
a { color: inherit; }

/* ================= PAGE LAYOUT ================= */

/* ====== PAGE LAYOUT (fix width like screenshot) ====== */
.page{
  max-width: 78rem;                 /* було 92rem — звужуємо всю сторінку */
  margin: 0 auto;
  padding: 1.75rem;

  display: grid;
  grid-template-columns: 17rem minmax(0, 58rem); /* сайдбар той самий, права колонка фіксована */
  gap: 1.5rem;
  align-items: start;
}

/* щоб правий контент не розтягувався навіть якщо щось впливає */
.content{
  width: 100%;
  max-width: 58rem;
  justify-self: start;
}


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

.sidebar{
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 0.875rem 2.25rem rgba(2,6,23,0.08);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-self: start;
  position: sticky;
  top: 1.5rem;
}

.profile{
  text-align: center;
  padding-bottom: 1.5rem;
  position: relative;
}

.profile::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(2,6,23,0.18),
    rgba(2,6,23,0.28),
    rgba(2,6,23,0.18),
    transparent
  );
}



.avatar{
  width: 5.25rem;
  height: 5.25rem;
  margin: 0 auto 0.75rem;
  border-radius: 1.25rem;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.profile h3{
  margin: 0.5rem 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.profile p{
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

.badge{
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg,#6d5dfc,#9b5cff);
  box-shadow: 0 0.75rem 1.5rem rgba(109,93,252,0.18);
}

/* menu */
.menu{
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.menu-item{
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  text-align: left;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: #334155;

  display: flex;
  align-items: center;
  gap: 0.75rem;

  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.menu-item:hover{
  background: rgba(99,102,241,0.10);
}

.menu-item.active{
  background: linear-gradient(90deg,#6d5dfc,#9b5cff);
  color: #fff;
  box-shadow: 0 1rem 2rem rgba(109,93,252,0.22);
  font-weight: 600;
}

.logout{
  margin-top: auto;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ef4444;

  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* робимо logout таким же як menu-item */
.logout-item{
  width: 100%;
  justify-content: flex-start;
  color: #ef4444;
}

/* легкий червоний hover */
.logout-item:hover{
  background: rgba(239,68,68,0.10);
}

/* щоб іконка теж була червона */
.logout-item svg{
  color: currentColor;
}

.menu-item svg,
.logout svg{
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
  flex-shrink: 0;
}


/* ================= CONTENT ================= */

.content{
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* tabs */
.tab-section{ display: none; }
.tab-section.is-active{ 
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* було відчуття злипання */
 }

/* ================= STATS ================= */

.stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.stat-card{
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 0.875rem 2.25rem rgba(2,6,23,0.08);

  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon{
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.stat-icon{
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: #f1f5f9;

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

  flex-shrink: 0;
}

.stat-icon svg{
  width: 1.35rem;
  height: 1.35rem;
  stroke: #334155;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.stat-meta strong{
  display: block;
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.stat-meta span{
  display: block;
  margin-top: 0.95rem;
  color: #64748b;
  font-weight: 650;
  font-weight: 500;
}

/* ================= BONUS ================= */

.bonus{
  border-radius: 1.25rem;
  padding: 1.75rem;
  color: #fff;
  background: linear-gradient(135deg,#6d5dfc,#ec4899);
  box-shadow: 0 1.25rem 3rem rgba(2,6,23,0.14);
  position: relative;
  overflow: hidden;
}

/* іконка біля заголовка */
.bonus-title-icon{
  width: 1.9rem;
  height: 1.9rem;
  margin-right: 0.6rem;
  vertical-align: -0.35rem;

  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* badge icon */
.bonus-badge svg{
  width: 1.4rem;
  height: 1.4rem;

  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.bonus::after{
  content:"";
  position:absolute;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  right: -6rem;
  top: -6rem;
  background: rgba(255,255,255,0.12);
  filter: blur(2px);
}

.bonus-top{
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.bonus h2{
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bonus p{
  margin: 0;
  opacity: 0.92;
  font-weight: 400;
}

.bonus-badge{
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1.2rem;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  position: relative;
  flex-shrink: 0;
}

.points{
  position: relative;
  margin-top: 1.5rem;
}

.points strong{
  display: block;
  font-size: 3.1rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.points span{
  display: block;
  margin-top: 0.65rem;
  font-weight: 500; 
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0.95;
}

/* progress block like screenshot */
.bonus-progress-wrap{
  position: relative;
  margin-top: 1.25rem;
  background: rgba(255,255,255,0.18);
  border-radius: 1.1rem;
  padding: 1.05rem 1.05rem 0.9rem;
}

.bonus-progress-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.bonus-progress-head span{
  font-weight: 500;
  opacity: 0.95;
}

.bonus-progress-head strong{
  font-weight: 600;
}

.progress{
  height: 0.6rem;
  background: rgba(255,255,255,0.30);
  border-radius: 999rem;
  overflow: hidden;
}

.progress-bar{
  height: 100%;
  background: rgba(255,255,255,0.95);
  border-radius: 999rem;
}

.bonus-btn{
  position: relative;
  margin-top: 1.25rem;
  width: 100%;
  border: none;
  border-radius: 0.95rem;
  padding: 0.95rem 1rem;
  background: #fff;
  color: #6d5dfc;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;

  box-shadow: 0 1rem 2rem rgba(2,6,23,0.16);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.bonus-btn:hover{
  transform: translateY(-0.15rem);
  box-shadow: 0 1.5rem 3rem rgba(2,6,23,0.18);
}

.bonus-btn:active{
  transform: translateY(-0.05rem);
  box-shadow: 0 0.9rem 1.8rem rgba(2,6,23,0.14);
}

/* ================= ORDERS ================= */

.orders{
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: 0 0.875rem 2.25rem rgba(2,6,23,0.08);
}

.orders-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.orders-header h2{
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.orders-header a{
  text-decoration: none;
  color: #6d5dfc;
  font-weight: 800;
}

.order{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;

  padding: 1.05rem;
  background: #f8fafc;
  border-radius: 1rem;
  border: 0.0625rem solid rgba(2,6,23,0.04);
  cursor: pointer;
  transition: all 0.2s ease;
}

.order:hover{
  background: #f1f5f9; /* трохи сіріший */
  border-color: rgba(2,6,23,0.08);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(2,6,23,0.06);
}

.order + .order{
  margin-top: 0.85rem;
}

.order strong{
  font-weight: 600;
}

.order p{
  margin: 0.5rem 0 0;
  color: #64748b;
  font-weight: 400;
}

.status{
  display: inline-block;
  margin-left: 0.75rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999rem;
  font-size: 0.75rem;
  font-weight: 900;
  vertical-align: middle;
}

.success{
  background: #dcfce7;
  color: #166534;
}

.pending{
  background: #fef3c7;
  color: #92400e;
}

.price{
  text-align: right;
  min-width: 9rem;
}

.price strong{
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
}

.price span{
  display: block;
  margin-top: 0.35rem;
  color: #64748b;
  font-weight: 400;
}

/* ================= QUICK ================= */

.quick{
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: 0 0.875rem 2.25rem rgba(2,6,23,0.08);
}

.quick-item{
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.quick-item svg{
  width: 1.15rem;
  height: 1.15rem;

  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;

  flex-shrink: 0;
}


.quick h2{
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.quick-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.quick-item{
  padding: 1.1rem 1.1rem;
  background: #f8fafc;
  border-radius: 1rem;
  border: 0.0625rem solid rgba(2,6,23,0.04);
  font-weight: 500;
  color: #0f172a;
cursor: pointer;
  transition: all 0.2s ease;
}

.quick-item:hover{
  background: #f1f5f9;
  border-color: rgba(2,6,23,0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2,6,23,0.06);
}


/* ================= EMPTY (other tabs) ================= */

.empty{
  background: #f8fafc;
  border: 0.0625rem solid rgba(2,6,23,0.04);
  border-radius: 1.1rem;
  padding: 1.25rem;
  color: #64748b;
  font-weight: 400;
}

.empty strong{
  display: block;
  color: #0f172a;
  margin-bottom: 0.35rem;
  font-weight: 600;
}



/* ================= SETTINGS (tab) ================= */

.settings-card{
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: 0 0.875rem 2.25rem rgba(2,6,23,0.08);
}

.settings-title{
  margin: 0 0 1.25rem;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.settings-block{
  padding: 0.25rem 0 0;
}

.settings-subtitle{
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.settings-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.settings-stack{
  display: grid;
  gap: 1.25rem;
}

.settings-divider{
  height: 0.0625rem;
  background: rgba(2,6,23,0.08);
  margin: 1.25rem 0;
}

/* fields */
.field{
  display: block;
}

.field-label{
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

.field-input{
  width: 100%;
  height: 3.1rem;
  padding: 0 1rem;
  border-radius: 0.9rem;
  border: 0.0625rem solid rgba(2,6,23,0.16);
  background: #fff;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field-input:focus{
  border-color: rgba(109,93,252,0.55);
  box-shadow: 0 0 0 0.25rem rgba(109,93,252,0.14);
}

/* actions */
.settings-actions{
  display: flex;
  justify-content: flex-end;
  padding-top: 0.25rem;
}

.settings-save{
  border: none;
  border-radius: 0.95rem;
  padding: 0.95rem 1.4rem;
  background: linear-gradient(90deg,#6d5dfc,#9b5cff);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1rem 2rem rgba(109,93,252,0.22);
  transition: transform .2s ease, box-shadow .25s ease, filter .2s ease;
}

.settings-save:hover{
  transform: translateY(-2px);
  box-shadow: 0 1.25rem 2.5rem rgba(109,93,252,0.25);
  filter: brightness(1.02);
}

.settings-save:active{
  transform: translateY(-1px);
  box-shadow: 0 0.9rem 1.8rem rgba(109,93,252,0.18);
}

/* responsive */
@media (max-width: 860px){
  .settings-grid{
    grid-template-columns: 1fr;
  }
}


/* ================= MODAL ================= */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal.is-open{ display: block; }

.modal-overlay{
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,0.55);
  backdrop-filter: blur(2px);
}

.modal-dialog{
  position: relative;
  width: min(68rem, calc(100% - 3rem));
  margin: 2.5rem auto;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 2rem 5rem rgba(2,6,23,0.25);
  padding: 1.75rem;
  max-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
}

.modal-title{
  margin: 0 0 1.25rem;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.modal-close{
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  width: 2.6rem;
  height: 2.6rem;
  border: none;
  border-radius: 999rem;
  background: #f1f5f9;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: #0f172a;
  transition: background .2s ease, transform .2s ease;
}
.modal-close:hover{ background:#e2e8f0; transform: translateY(-1px); }

.modal-body{
  overflow: auto;
  padding-right: .25rem; /* щоб скрол не з’їдав контент */
}

.orders-list{
  display: grid;
  gap: 1.25rem;
}

/* ================= ORDER ROW (modal) ================= */
.order-row{
  border: 0.0625rem solid rgba(2,6,23,0.10);
  border-radius: 1.25rem;
  padding: 1.25rem;
  background: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  transition: background .2s ease, box-shadow .25s ease, transform .2s ease, border-color .2s ease;
}

.order-row:hover{
  background: #fbfdff;
  border-color: rgba(2,6,23,0.14);
  transform: translateY(-2px);
  box-shadow: 0 1rem 2.5rem rgba(2,6,23,0.10);
}

.order-left{
  display: flex;
  gap: 1rem;
  min-width: 0;
}

.order-ico{
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.order-ico svg{
  width: 1.35rem;
  height: 1.35rem;
  stroke: #4f46e5;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.order-main{ min-width: 0; }

.order-topline{
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.order-id{
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
}

.order-date{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #475569;
  font-weight: 500;
  font-size: 0.95rem;
}

.order-date svg,
.meta-item svg{
  width: 1.05rem;
  height: 1.05rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.order-meta{
  margin-top: .9rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem 1.25rem;
  color: #334155;
  font-weight: 500;
}

.meta-item{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-right{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  flex-shrink: 0;
  min-width: 11rem;
}

.pill{
  display: inline-flex;
  align-items: center;
  padding: .38rem .8rem;
  border-radius: 999rem;
  font-weight: 650;
  font-size: .85rem;
}
.pill-success{ background:#dcfce7; color:#166534; }
.pill-warn{ background:#fef3c7; color:#92400e; }

.order-summary{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .9rem;
  border-top: 0.0625rem solid rgba(2,6,23,0.08);
}

.order-count{
  color: #475569;
  font-weight: 600;
}

.order-total{
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

/* responsive */
@media (max-width: 860px){
  .modal-title{ font-size: 1.75rem; }
  .order-row{ flex-direction: column; align-items: stretch; }
  .order-right{ align-items: flex-start; min-width: 0; }
  .order-meta{ grid-template-columns: 1fr; }
}


