/* ========================================================
   ========== ۱. متغیرهای سراسری CSS (CSS Variables) ==========
   ======================================================== */
:root {
  --font-base: 'Segoe UI', sans-serif;
  --bg-form: #0a0a0a;
  --bg-dashboard: #121212;
  --color-gold: #FFD700;
  --color-accent: #ff4500;
  --color-accent-light: #ff7330;
  --text-light: #fff;
  --text-muted: #ccc;
  --shadow: rgba(0,0,0,0.7);
}

/* ========================================================
   ========== ۲. فرم‌های ثبت‌نام و ورود (Front-end) ==========
   ======================================================== */
.custom-registration-form,
.custom-login-form {
  max-width: 600px;
  margin: 40px auto;
  background: var(--bg-form);
  padding: 30px;
  border-radius: 12px;
  color: var(--text-light);
  font-family: var(--font-base);
  box-shadow: 0 0 20px rgba(255,215,0,0.2);
}

.custom-registration-form h2,
.custom-login-form h2 {
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.custom-registration-form label,
.custom-login-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--color-gold);
  font-weight: 600;
}

.custom-registration-form input,
.custom-registration-form select,
.custom-login-form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  background: #111;
  border: 1px solid var(--color-gold);
  border-radius: 6px;
  color: var(--text-light);
  font-size: 15px;
  transition: border 0.3s;
}

.custom-registration-form input:focus,
.custom-registration-form select:focus,
.custom-login-form input:focus {
  border-color: var(--color-accent);
  outline: none;
}

.btn-register,
.custom-login-form button {
  width: 100%;
  padding: 12px;
  background: var(--color-accent);
  color: var(--color-gold);
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.btn-register:hover,
.custom-login-form button:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
}

/* آپلود فایل */
.custom-upload {
  margin-bottom: 20px;
  background: #111;
  border: 1px dashed var(--color-gold);
  padding: 15px;
  border-radius: 8px;
}

.custom-upload input[type="file"] {
  width: 100%;
  padding: 10px;
  background: #000;
  color: var(--text-light);
  border: none;
  cursor: pointer;
}

/* ========================================================
   ========== ۳. داشبورد کاربری (Front-end) ==========
   ======================================================== */
.user-dashboard {
  max-width: 980px;
  margin: 50px auto;
  background: var(--bg-dashboard);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow);
  font-family: var(--font-base);
}

/* ۳-۱. منوی بالای تب‌ها */
.account-nav {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #1e1e1e;
}
.account-nav li {
  flex: 1;
  text-align: center;
  padding: 16px 0;
  color: #aaa;
  cursor: pointer;
  position: relative;
  transition: color .3s, background .3s;
}
.account-nav li.active,
.account-nav li:hover {
  color: #fff;
  background: #333;
}
.account-nav li.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20%;
  width: 60%; height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* ۳-۲. محتوای هر تب */
.tab-content {
  padding: 30px;
}
.tab-content > div {
  display: none;
}
.tab-content > div.active {
  display: block;
}

/* ۳-۳. بلوک اطلاعات کاربر (ستون چپ) */
.user-left {
  text-align: center;
  margin-bottom: 40px;
}
.user-left img {
  width: 180px; height: 180px;
  border-radius: 100%;
  border: 6px solid var(--color-accent);
  object-fit: cover;
}
.user-left h2 {
  margin: 20px 0 10px;
  font-size: 30px;
  background: linear-gradient(45deg, var(--color-accent-light), var(--color-accent));
  -webkit-background-clip: text;
  color: transparent;
  animation: shimmer 2.5s infinite alternate;
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.user-left p {
  color: var(--text-muted);
  margin: 0;
}

/* ۳-۴. کارت‌های اطلاعات (ستون راست) */
.user-right {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 20px;
}
.info-card {
  background: #292929;
  border-radius: 10px;
  padding: 25px 20px;
  text-align: center;
  transition: transform .3s, background .3s;
}
.info-card:hover {
  transform: translateY(-8px);
  background: #3a3a3a;
}
.info-card .icon {
  font-size: 36px;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.info-card h3 {
  font-size: 26px;
  color: var(--text-light);
  margin: 6px 0;
}
.info-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ۳-۵. بخش رسید پرداخت */
.receipt-section {
  margin-top: 30px;
  text-align: center;
}
.receipt-section h3 {
  color: var(--color-accent);
  font-size: 22px;
  margin-bottom: 15px;
}
.receipt-section img.receipt-image {
  max-width: 100%;
  border: 4px solid var(--color-accent-light);
  border-radius: 8px;
  margin-bottom: 10px;
}
.receipt-date {
  display: inline-block;
  background: #222;
  color: var(--text-light);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
}

/* ۳-۶. دکمه خروج */
.logout-btn {
  text-align: center;
  margin-top: 40px;
}
.logout-btn a {
  display: inline-block;
  padding: 14px 36px;
  background: var(--color-accent);
  color: var(--text-light);
  border-radius: 50px;
  font-weight: bold;
  transition: background .3s, transform .3s;
  text-decoration: none;
}
.logout-btn a:hover {
  background: var(--color-accent-light);
  transform: scale(1.05);
}

/* ۳-۷. بخش Coming Soon */
.coming-soon {
  text-align: center;
  color: #777;
  font-size: 18px;
  padding: 40px 0;
}

/* ========================================================
   ========== ۴. استایل بک‌‌اند (Admin – User Archive) ==========
   ======================================================== */
.wrap.user-archive h1 {
  margin-bottom: 20px;
  color: #333;
}
.wrap.user-archive table.widefat {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border: none;
}
.wrap.user-archive table.widefat th {
  background: #f5f5f5;
  color: #333;
  text-transform: uppercase;
  padding: 12px;
  border-bottom: 1px solid #ddd;
}
.wrap.user-archive table.widefat td {
  padding: 12px;
  border-bottom: 1px solid #eee;
}
.wrap.user-archive table.widefat tr:hover td {
  background: #fafafa;
}
.wrap.user-archive table.widefat img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
