/* ============================================================
   ARIO — 18 ACCOUNT
   My Info page · Notifications page
   ============================================================ */

/* ---------- Page-wide white bg ---------- */
body:has(.my-info-page),
body:has(.notif-page) {
  background: #ffffff !important;
  background-image: none !important;
  background-attachment: initial !important;
}
body:has(.my-info-page)::before,
body:has(.my-info-page)::after,
body:has(.notif-page)::before,
body:has(.notif-page)::after {
  display: none !important;
  content: none !important;
}

/* ============================================================
   MY INFO PAGE
   ============================================================ */
.my-info-page {
  padding: 3rem 1.5rem 5rem;
  max-width: 760px;
  margin-inline: auto;
  min-height: calc(100vh - 96px);
}

.my-info-card-wrap {
  background: #ffffff;
  border: 1.5px solid rgba(59, 130, 246, .14);
  border-radius: 28px;
  padding: 2.5rem 2rem 2.2rem;
  box-shadow:
    0 20px 55px rgba(59, 130, 246, .08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  position: relative;
  overflow: hidden;
}
.my-info-card-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    #3b82f6, #7c3aed, #ec4899, #f59e0b, #3b82f6);
  background-size: 300% 100%;
  animation: borderShine 6s linear infinite;
}
@keyframes borderShine {
  0%   { background-position:   0% 50%; }
  100% { background-position: 300% 50%; }
}

/* ── Head ── */
.my-info-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding-bottom: 1.8rem;
  margin-bottom: 1.8rem;
  border-bottom: 1.5px dashed rgba(59, 130, 246, .18);
  text-align: center;
}

.my-info-avatar {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: .6rem;
  background: linear-gradient(135deg, #3b82f6, #7c3aed 50%, #ec4899);
  color: #fff;
  font-family: var(--font-fa);
  font-size: 2.5rem;
  font-weight: 900;
  box-shadow:
    0 14px 34px rgba(59, 130, 246, .4),
    inset 0 2px 6px rgba(255, 255, 255, .4),
    inset 0 -3px 8px rgba(0, 0, 0, .18);
  z-index: 1;
}
.my-info-avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(59, 130, 246, .45);
  animation: myInfoRingSpin 20s linear infinite;
  pointer-events: none;
}
@keyframes myInfoRingSpin { to { transform: rotate(360deg); } }

.my-info-name {
  font-family: var(--font-fa);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--ink-900);
  margin: 0;
  line-height: 1.4;
}
.my-info-username {
  font-family: var(--font-en);
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-soft);
  margin: 0;
  direction: ltr;
}
.my-info-role {
  display: inline-block;
  margin-top: .4rem;
  padding: .3rem .9rem;
  border-radius: 100px;
  font-family: var(--font-fa);
  font-size: .72rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(59, 130, 246, .12), rgba(124, 58, 237, .08));
  border: 1px solid rgba(59, 130, 246, .3);
  color: var(--blue-700);
}

/* ── Info grid ── */
.my-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
  margin-bottom: 2rem;
}
.my-info-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
  border: 1.5px solid rgba(59, 130, 246, .14);
  border-radius: 16px;
  transition: transform .28s, border-color .28s, box-shadow .28s;
}
.my-info-item:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, .4);
  box-shadow: 0 12px 28px rgba(59, 130, 246, .15);
}
.my-info-item-wide {
  grid-column: 1 / -1;
}
.my-info-item-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1.5px solid rgba(59, 130, 246, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1);
}
.my-info-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.my-info-item-lbl {
  font-family: var(--font-fa);
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-soft);
  line-height: 1.3;
}
.my-info-item-val {
  font-family: var(--font-fa);
  font-size: .94rem;
  font-weight: 900;
  color: var(--ink-900);
  letter-spacing: -.01em;
  line-height: 1.4;
  word-break: break-all;
}

/* ── Stats ── */
.my-info-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .65rem;
  padding: 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, .05), rgba(124, 58, 237, .04));
  border: 1.5px solid rgba(59, 130, 246, .16);
  margin-bottom: 2rem;
}
.my-info-stat {
  text-align: center;
  padding: .55rem .25rem;
}
.my-info-stat-num {
  font-family: var(--font-fa);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: .2rem;
  background: linear-gradient(135deg, #1d4ed8, #7c3aed 50%, #ec4899);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.my-info-stat-lbl {
  font-family: var(--font-fa);
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-soft);
}

/* ── Actions ── */
.my-info-actions {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  justify-content: center;
}
.my-info-btn {
  flex: 1;
  min-width: 200px;
  gap: .55rem !important;
}

@media (max-width: 640px) {
  .my-info-page { padding: 2rem 1rem 3rem; }
  .my-info-card-wrap { padding: 1.8rem 1.3rem 1.6rem; border-radius: 22px; }
  .my-info-avatar { width: 78px; height: 78px; font-size: 2rem; }
  .my-info-name { font-size: 1.2rem; }
  .my-info-avatar-ring { inset: -6px; }
  .my-info-grid { grid-template-columns: 1fr; gap: .65rem; }
  .my-info-stats { grid-template-columns: repeat(2, 1fr); gap: .5rem; padding: .8rem; }
  .my-info-stat-num { font-size: 1.15rem; }
  .my-info-stat-lbl { font-size: .68rem; }
  .my-info-item { padding: .85rem .95rem; gap: .65rem; }
  .my-info-item-icon { width: 36px; height: 36px; font-size: 1.15rem; }
  .my-info-item-val { font-size: .84rem; }
  .my-info-btn { min-width: 0; }
}

/* ============================================================
   NOTIFICATIONS PAGE
   ============================================================ */
.notif-page {
  padding: 3rem 1.5rem 5rem;
  max-width: 820px;
  margin-inline: auto;
  min-height: calc(100vh - 96px);
}

/* ── Head ── */
.notif-head {
  text-align: center;
  margin-bottom: 1.6rem;
}
.notif-title {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-fa);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -.02em;
  margin: 0 0 .5rem;
  line-height: 1.4;

  background: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 50%, #ec4899 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.notif-title-icon {
  font-size: 1em;
  background: none;
  -webkit-text-fill-color: initial;
  color: initial;
  filter: drop-shadow(0 4px 12px rgba(59, 130, 246, .35));
}
.notif-unread-badge {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 10px;
  border-radius: 100px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-family: var(--font-fa);
  font-size: .78rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(239, 68, 68, .45);
  -webkit-text-fill-color: #fff;
}
.notif-sub {
  font-family: var(--font-fa);
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-soft);
  margin: 0;
}

/* ── Toolbar ── */
.notif-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  flex-wrap: wrap;
  padding-bottom: 1.2rem;
  margin-bottom: 1.4rem;
  border-bottom: 1.5px dashed rgba(59, 130, 246, .18);
}

.notif-tabs {
  display: inline-flex;
  gap: .35rem;
  padding: .28rem;
  border-radius: 100px;
  background: rgba(59, 130, 246, .06);
  border: 1.5px solid rgba(59, 130, 246, .14);
}
.notif-tab {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  border-radius: 100px;
  font-family: var(--font-fa);
  font-size: .82rem;
  font-weight: 800;
  color: var(--text-soft);
  text-decoration: none;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
}
.notif-tab:hover { color: var(--blue-700); }
.notif-tab.active {
  background: #ffffff;
  color: var(--blue-700);
  box-shadow: 0 4px 12px rgba(59, 130, 246, .14);
}
.notif-tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 100px;
  background: rgba(239, 68, 68, .12);
  color: #b91c1c;
  font-family: var(--font-fa);
  font-size: .68rem;
  font-weight: 900;
}
.notif-tab.active .notif-tab-count {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.notif-mark-all-form { margin: 0; }
.notif-mark-all-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border-radius: 100px;
  border: 1.5px solid rgba(16, 185, 129, .35);
  background: rgba(16, 185, 129, .06);
  color: #047857;
  font-family: var(--font-fa);
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all .25s;
}
.notif-mark-all-btn:hover {
  background: rgba(16, 185, 129, .12);
  border-color: rgba(16, 185, 129, .7);
  transform: translateY(-1px);
}

/* ── List ── */
.notif-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.notif-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1.05rem 1.1rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1.5px solid rgba(59, 130, 246, .12);
  box-shadow: 0 4px 14px rgba(59, 130, 246, .05);
  text-decoration: none;
  color: inherit;
  transition:
    transform .28s cubic-bezier(.4, 0, .2, 1),
    border-color .28s,
    box-shadow .28s,
    background .28s;
  isolation: isolate;
}

.notif-item.is-unread {
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
  border-color: rgba(59, 130, 246, .32);
  box-shadow:
    0 6px 18px rgba(59, 130, 246, .1),
    inset 3px 0 0 0 #3b82f6;
}

.notif-item:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, .4);
  box-shadow: 0 12px 30px rgba(59, 130, 246, .15);
}

.notif-item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: linear-gradient(135deg, #ffffff, #f1f5f9);
  border: 1.5px solid rgba(59, 130, 246, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1);
  line-height: 1;
}

.notif-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .28rem;
}
.notif-item-title {
  font-family: var(--font-fa);
  font-size: .94rem;
  font-weight: 900;
  color: var(--ink-900);
  letter-spacing: -.01em;
  line-height: 1.5;
}
.notif-item-message {
  font-family: var(--font-fa);
  font-size: .82rem;
  font-weight: 500;
  color: #475569;
  line-height: 1.85;
  word-break: break-word;
}
.notif-item-time {
  display: inline-block;
  margin-top: .2rem;
  font-family: var(--font-fa);
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: .01em;
}

.notif-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: .5rem;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, .8);
}

/* Per-type accents */
.notif-type-payment_approved .notif-item-icon { border-color: rgba(16, 185, 129, .35); background: linear-gradient(135deg, #ecfdf5, #d1fae5); }
.notif-type-payment_rejected .notif-item-icon { border-color: rgba(239, 68, 68, .3);   background: linear-gradient(135deg, #fef2f2, #fee2e2); }
.notif-type-payment_pending  .notif-item-icon { border-color: rgba(245, 158, 11, .35); background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.notif-type-contest_approved .notif-item-icon { border-color: rgba(139, 92, 246, .35); background: linear-gradient(135deg, #f5f3ff, #ede9fe); }
.notif-type-bonus_claimed    .notif-item-icon { border-color: rgba(236, 72, 153, .35); background: linear-gradient(135deg, #fdf2f8, #fce7f3); }
.notif-type-admin_reply      .notif-item-icon { border-color: rgba(6, 182, 212, .35);  background: linear-gradient(135deg, #ecfeff, #cffafe); }

/* ── Empty state ── */
.notif-empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, .05), transparent 60%),
    linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
  border: 1.5px dashed rgba(59, 130, 246, .3);
  box-shadow: 0 8px 24px rgba(59, 130, 246, .05);
}
.notif-empty-icon {
  font-size: 3rem;
  margin-bottom: .8rem;
  display: inline-block;
  filter: drop-shadow(0 8px 20px rgba(59, 130, 246, .3));
}
.notif-empty-title {
  font-family: var(--font-fa);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--ink-900);
  margin: 0 0 .5rem;
  letter-spacing: -.01em;
}
.notif-empty-text {
  font-family: var(--font-fa);
  font-size: .88rem;
  line-height: 1.95;
  color: var(--text-soft);
  font-weight: 500;
  margin: 0 auto;
  max-width: 440px;
}

.notif-back {
  text-align: center;
  margin-top: 2.4rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .notif-page { padding: 2rem 1rem 3rem; }
  .notif-title { font-size: 1.35rem; gap: .5rem; }
  .notif-unread-badge { min-width: 24px; height: 24px; font-size: .68rem; }
  .notif-toolbar { flex-direction: column; align-items: stretch; gap: .6rem; }
  .notif-tabs { justify-content: center; }
  .notif-mark-all-btn { justify-content: center; width: 100%; }
  .notif-item { padding: .9rem .85rem; gap: .65rem; border-radius: 14px; }
  .notif-item-icon { width: 38px; height: 38px; font-size: 1.1rem; border-radius: 10px; }
  .notif-item-title { font-size: .86rem; }
  .notif-item-message { font-size: .76rem; line-height: 1.8; }
  .notif-item-time { font-size: .65rem; }
  .notif-dot { width: 8px; height: 8px; }
  .notif-empty { padding: 2.6rem 1.2rem; }
  .notif-empty-icon { font-size: 2.4rem; }
}