/*
Theme Name: Niruneshat Badminton Academy
Theme URI: https://niruneshat.ir
Author: Niruneshat Academy
Description: قالب اختصاصی آکادمی بدمینتون نیرونشاط ساری
Version: 1.0
Text Domain: niruneshat
*/

/* ===== ROOT VARS & RESET ===== */
:root {
  --orange: #f5720a;
  --orange-dark: #c45a00;
  --orange-light: #ff9a45;
  --dark: #111111;
  --dark2: #1a1a1a;
  --dark3: #222222;
  --gray: #333333;
  --gray-light: #555555;
  --text: #e8e8e8;
  --text-muted: #aaaaaa;
  --white: #ffffff;
  --bg: #0e0e0e;
  --bg-card: #1c1c1c;
  --bg-card2: #242424;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 8px 32px rgba(0,0,0,0.5);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --font: 'Vazirmatn', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: var(--font); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark2); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: var(--transition); font-family: var(--font);
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,114,10,0.4); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.btn-sm { background: var(--dark3); color: var(--text); padding: 9px 20px; font-size: 13px; }
.btn-sm:hover { background: var(--gray); }
.btn-primary-sm { background: var(--orange); color: #fff; padding: 9px 20px; font-size: 13px; }
.btn-primary-sm:hover { background: var(--orange-dark); }
.w100 { width: 100%; justify-content: center; }

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-label {
  display: inline-block; background: rgba(245,114,10,0.15); color: var(--orange);
  padding: 5px 18px; border-radius: 20px; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(245,114,10,0.3); margin-bottom: 12px; letter-spacing: 1px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.3;
  background: linear-gradient(135deg, #fff 0%, #ccc 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-header p { color: var(--text-muted); margin-top: 10px; font-size: 15px; }
.text-right { text-align: right; }

/* ===== HEADER ===== */
.header-top { background: var(--dark2); border-bottom: 1px solid var(--border); padding: 8px 0; font-size: 13px; }
.header-top-inner { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.contact-info { display: flex; gap: 20px; color: var(--text-muted); }
.contact-info span { display: flex; align-items: center; gap: 6px; }
.contact-info i { color: var(--orange); }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--dark3); display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 13px; transition: var(--transition);
}
.social-links a:hover { background: var(--orange); color: #fff; }
.navbar {
  background: rgba(17,17,17,0.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); padding: 14px 0;
  position: sticky; top: 0; z-index: 500; transition: var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.5); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { font-size: 2rem; filter: drop-shadow(0 0 10px rgba(245,114,10,0.5)); }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 1.3rem; font-weight: 900; color: var(--orange); line-height: 1.1; }
.logo-sub { font-size: 11px; color: var(--text-muted); }
.nav-menu { display: flex; align-items: center; gap: 5px; }
.nav-link { padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text-muted); transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,0.06); }
.btn-login { background: var(--orange) !important; color: #fff !important; border-radius: 8px; font-weight: 600 !important; }
.btn-login:hover { background: var(--orange-dark) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1200; position: relative; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ===== HERO ===== */
.hero { position: relative; height: 100vh; min-height: 600px; overflow: hidden; }
.slides-wrapper { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; display: flex; align-items: center; opacity: 0; transition: opacity 0.8s ease; }
.slide.active { opacity: 1; }
.slide-content { max-width: 700px; padding: 0 40px; animation: slideIn 0.8s ease forwards; }
@keyframes slideIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.slide-tag { display: inline-block; background: var(--orange); color: #fff; padding: 5px 18px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.slide-content h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; line-height: 1.2; color: #fff; margin-bottom: 16px; }
.slide-content h1 span { color: var(--orange-light); }
.slide-content p { font-size: 1.1rem; color: rgba(255,255,255,0.8); margin-bottom: 28px; max-width: 500px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.slide-controls { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; z-index: 10; }
.slide-btn { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: var(--transition); backdrop-filter: blur(10px); }
.slide-btn:hover { background: var(--orange); border-color: var(--orange); }
.slide-dots { display: flex; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s; }
.dot.active { width: 28px; background: var(--orange); }
.hero-scroll-hint { position: absolute; bottom: 40px; right: 40px; z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 6px; color: rgba(255,255,255,0.5); font-size: 12px; animation: bounce 2s infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0)}50%{transform:translateY(8px)} }

/* ===== STATS ===== */
.stats-bar { background: var(--dark2); border-bottom: 1px solid var(--border); padding: 30px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
.stat-num { display: block; font-size: 2.5rem; font-weight: 900; color: var(--orange); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 6px; display: block; }

/* ===== ABOUT ===== */
.about { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-wrap img { border-radius: var(--radius-lg); width: 100%; }
.about-badge { position: absolute; bottom: -20px; right: -20px; background: var(--orange); color: #fff; padding: 16px 20px; border-radius: var(--radius); text-align: center; }
.badge-num { display: block; font-size: 2rem; font-weight: 900; line-height: 1; }
.badge-text { font-size: 12px; }
.about-desc { color: var(--text-muted); margin-bottom: 24px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 28px; }
.feat-item { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.feat-item i { color: var(--orange); }

/* ===== CLASSES ===== */
.classes { padding: 80px 0; background: var(--dark2); }
.classes-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.class-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 24px; position: relative; transition: var(--transition); text-align: center; }
.class-card:hover { transform: translateY(-6px); border-color: rgba(245,114,10,0.3); }
.class-card.featured { border-color: var(--orange); background: linear-gradient(135deg, rgba(245,114,10,0.08), var(--bg-card)); }
.class-icon { font-size: 2.5rem; margin-bottom: 16px; display: flex; justify-content: center; }
.class-icon { font-size: 2.5rem; margin-bottom: 16px; }
.hall-thumb-gallery { display:flex; gap:5px; justify-content:center; } .hall-thumb { width:88px; height:88px; object-fit:cover; border-radius:10px; border:2px solid rgba(245,114,10,0.25); display:block; } .hall-thumb-gallery .hall-thumb:not(.hall-thumb-main) { width:56px; height:56px; border-radius:8px; align-self:flex-end; opacity:0.85; }
.class-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.class-card p { color: var(--text-muted); font-size: 13px; margin-bottom: 16px; }
.class-meta { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.class-meta span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.class-meta i { color: var(--orange); width: 14px; }

/* ===== GALLERY ===== */
.gallery { padding: 80px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: 200px 200px; gap: 16px; }
.gal-item { border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gal-item:hover img { transform: scale(1.07); }
.gal-caption {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 55%, transparent 100%);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 16px;
  opacity: 0; transition: opacity 0.35s;
}
.gal-item:hover .gal-caption { opacity: 1; }
/* Touch devices: always visible but subtle */
@media (hover: none) {
  .gal-caption { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%); }
  .gal-caption-text { display: none; }
  .gal-item.touch-active .gal-caption { background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, transparent 100%); }
  .gal-item.touch-active .gal-caption-text { display: block; }
}
.gal-caption-title { color: #fff; font-size: 13px; font-weight: 700; line-height: 1.4; margin-bottom: 4px; }
.gal-caption-text { color: rgba(255,255,255,0.88); font-size: 12px; line-height: 1.6; margin: 0; font-weight: 400; }
.gal-big { grid-row: span 2; }

/* ===== BLOG ===== */
.blog-section { padding: 80px 0; background: var(--dark2); }
.blog-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; }
.blog-grid { display: flex; flex-direction: column; gap: 24px; }
.blog-card { display: flex; gap: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.blog-card:hover { border-color: rgba(245,114,10,0.3); }
.blog-img { width: 200px; min-width: 200px; height: 140px; position: relative; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-cat { position: absolute; top: 10px; right: 10px; background: var(--orange); color: #fff; padding: 3px 10px; border-radius: 20px; font-size: 11px; }
.blog-body { padding: 16px 16px 16px 0; flex: 1; }
.blog-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.blog-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; line-height: 1.5; }
.blog-body p { font-size: 13px; color: var(--text-muted); }
.read-more { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-size: 13px; margin-top: 10px; }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.widget-title { font-size: 14px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; color: var(--orange); }
.news-list { display: flex; flex-direction: column; gap: 10px; }
.news-list li { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.news-list li:last-child { border-bottom: none; padding-bottom: 0; }
.news-list a { display: flex; align-items: center; gap: 6px; color: var(--text-muted); }
.news-list a:hover { color: var(--orange); }
.news-list span { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.schedule-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.schedule-table th { text-align: right; padding: 6px 8px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.schedule-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); }
.schedule-table tr:last-child td { border-bottom: none; }
.sidebar-cta { text-align: center; background: linear-gradient(135deg, rgba(245,114,10,0.15), var(--bg-card)); }
.sidebar-cta i { font-size: 2rem; color: var(--orange); margin-bottom: 10px; display: block; }
.sidebar-cta h4 { margin-bottom: 8px; }
.sidebar-cta p { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.video-thumb { position: relative; border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.video-thumb img { width: 100%; height: 160px; object-fit: cover; }
.play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.4); color: #fff; font-size: 2rem; }
.video-title { font-size: 13px; color: var(--text-muted); }

/* ===== CONTACT ===== */
.contact { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; }
.c-info-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.c-info-item i { font-size: 1.2rem; color: var(--orange); margin-top: 3px; }
.c-info-item strong { display: block; margin-bottom: 2px; }
.c-info-item span { color: var(--text-muted); font-size: 14px; }
.map-placeholder { background: var(--dark3); border-radius: var(--radius); height: 120px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text-muted); margin-top: 20px; }
.contact-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; }
.contact-form h3 { margin-bottom: 20px; font-size: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea {
  background: var(--dark3); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 14px; color: var(--text); font-size: 14px; outline: none; transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--orange); }
.form-group select option { background: var(--dark2); }

/* ===== FOOTER ===== */
.footer { background: var(--dark2); border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin: 14px 0; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; background: var(--dark3); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: var(--transition); }
.footer-social a:hover { background: var(--orange); color: #fff; }
.footer-links h4, .footer-contact h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a { color: var(--text-muted); font-size: 14px; transition: var(--transition); }
.footer-links ul li a:hover { color: var(--orange); }
.footer-contact p { color: var(--text-muted); font-size: 13px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.footer-contact i { color: var(--orange); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; text-align: center; color: var(--text-muted); font-size: 13px; }

/* ===== MODALS ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 10000; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(8px); }
.modal-overlay.active { display: flex; }
.modal { background: var(--dark2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; width: 100%; max-width: 480px; position: relative; max-height: 90vh; overflow-y: auto; }
.player-modal { max-width: 600px; }
.modal-close { position: absolute; top: 16px; left: 16px; background: var(--dark3); border: none; color: var(--text-muted); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.modal-close:hover { background: #e74c3c; color: #fff; }
.modal-header { text-align: center; margin-bottom: 24px; }
.modal-logo { font-size: 3rem; margin-bottom: 8px; }
.modal h2 { font-size: 1.3rem; margin-bottom: 20px; }
.modal-header h2 { margin-bottom: 6px; }
.modal-header p { color: var(--text-muted); font-size: 14px; }

/* ===== ADMIN PANEL ===== */
.admin-panel { position: fixed; inset: 0; background: var(--bg); z-index: 2000; display: flex; flex-direction: row; }
.admin-sidebar { width: 220px; background: var(--dark2); border-left: 1px solid var(--border); display: flex; flex-direction: column; padding: 0; flex-shrink: 0; }
.admin-brand { padding: 20px; font-size: 1.1rem; font-weight: 800; color: var(--orange); display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
.admin-nav { display: flex; flex-direction: column; padding: 12px; flex: 1; gap: 4px; }
.admin-nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 8px; color: var(--text-muted); font-size: 14px; transition: var(--transition); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; }
.admin-nav-item:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.admin-nav-item.active { background: rgba(245,114,10,0.15); color: var(--orange); }
.admin-nav-item i { font-size: 15px; width: 20px; text-align: center; }
.logout-btn { margin-top: auto; color: #e74c3c !important; }
.logout-btn:hover { background: rgba(231,76,60,0.1) !important; }
.admin-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; -webkit-overflow-scrolling: touch; }
.admin-topbar { background: var(--dark2); border-bottom: 1px solid var(--border); padding: 14px 24px; display: flex; align-items: center; gap: 16px; }
.admin-page-title { font-size: 1.1rem; font-weight: 700; flex: 1; }
.admin-user { color: var(--text-muted); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.admin-user i { color: var(--orange); }
.sidebar-toggle {
  background: rgba(245,114,10,0.12);
  border: 1px solid rgba(245,114,10,0.25);
  border-radius: 8px;
  color: var(--orange);
  cursor: pointer;
  font-size: 18px;
  padding: 6px 10px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s;
  min-width: 44px;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.sidebar-toggle:hover { background: rgba(245,114,10,0.22); }
/* Hamburger lines */
.sidebar-toggle .hb-icon { display:flex; flex-direction:column; gap:4px; width:18px; flex-shrink:0; }
.sidebar-toggle .hb-icon span { display:block; height:2px; background:currentColor; border-radius:2px; transition:transform 0.3s, opacity 0.3s, width 0.3s; }
.sidebar-toggle .hb-icon span:nth-child(2) { width:70%; }
.sidebar-toggle.is-open .hb-icon span:nth-child(1) { transform:translateY(6px) rotate(45deg); }
.sidebar-toggle.is-open .hb-icon span:nth-child(2) { opacity:0; width:0; }
.sidebar-toggle.is-open .hb-icon span:nth-child(3) { transform:translateY(-6px) rotate(-45deg); }
/* Label hidden by default, shown on mobile */
.sidebar-toggle-label { display:none; font-size:12px; color:var(--orange); font-weight:600; }
.admin-tab { display: none; padding: 24px; overflow-y: auto; flex: 1; }
.admin-tab.active { display: block; }
.dash-cards { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; margin-bottom: 24px; }
.dash-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 16px; }
.dash-card i { font-size: 2rem; color: var(--orange); }
.dash-card.green i { color: #2ecc71; }
.dash-card.blue i { color: #3498db; }
.dash-card.orange i { color: var(--orange); }
.dash-card.red i { color: #e74c3c; }
.dash-num { display: block; font-size: 1.8rem; font-weight: 800; line-height: 1; }
.dash-card span:last-child { font-size: 12px; color: var(--text-muted); margin-top: 4px; display: block; }
.dash-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quick-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.quick-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: var(--orange); display: flex; align-items: center; gap: 8px; }
.tab-actions { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.player-sort-btns { display:flex; gap:4px; }
.sort-btn { background:var(--bg-card); border:1px solid var(--border); border-radius:8px; color:var(--text-muted); cursor:pointer; font-size:12px; padding:7px 12px; display:flex; align-items:center; gap:5px; transition:var(--transition); white-space:nowrap; -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
.sort-btn:hover { border-color:var(--orange); color:var(--orange); }
.sort-btn.active { background:rgba(245,114,10,0.15); border-color:var(--orange); color:var(--orange); font-weight:700; }
.search-input, .date-input, .select-input {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 14px; color: var(--text); font-family: var(--font); font-size: 14px;
  outline: none; transition: var(--transition);
}
.search-input { flex: 1; min-width: 180px; }
.search-input:focus, .date-input:focus, .select-input:focus { border-color: var(--orange); }
.select-input option { background: var(--dark2); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 600px; }
.data-table th { background: var(--dark3); color: var(--text-muted); font-weight: 600; padding: 12px 14px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--border); }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.empty-state { text-align: center; color: var(--text-muted); padding: 30px; font-size: 13px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.badge-active { background: rgba(46,204,113,0.15); color: #2ecc71; }
.badge-inactive { background: rgba(150,150,150,0.15); color: #aaa; }
.badge-debt { background: rgba(231,76,60,0.15); color: #e74c3c; }
.badge-credit { background: rgba(46,204,113,0.15); color: #2ecc71; }
.badge-fee { background: rgba(245,114,10,0.15); color: var(--orange); }
.icon-btn { width: 28px; height: 28px; border-radius: 6px; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; transition: var(--transition); margin: 0 2px; }
.icon-btn.edit { background: rgba(52,152,219,0.15); color: #3498db; }
.icon-btn.edit:hover { background: #3498db; color: #fff; }
.icon-btn.delete { background: rgba(231,76,60,0.15); color: #e74c3c; }
.icon-btn.delete:hover { background: #e74c3c; color: #fff; }
.icon-btn.history-btn { background: rgba(46,204,113,0.12); color: #2ecc71; }
.icon-btn.history-btn:hover { background: #2ecc71; color: #fff; }
.att-toggle { display: flex; gap: 4px; }
.att-btn { padding: 5px 14px; border-radius: 6px; border: 1px solid var(--border); cursor: pointer; font-size: 12px; font-family: var(--font); transition: var(--transition); background: transparent; color: var(--text-muted); }
.att-btn.present { background: rgba(46,204,113,0.2); color: #2ecc71; border-color: rgba(46,204,113,0.4); }
.att-btn.absent { background: rgba(231,76,60,0.2); color: #e74c3c; border-color: rgba(231,76,60,0.4); }
.att-btn.late { background: rgba(243,156,18,0.2); color: #f39c12; border-color: rgba(243,156,18,0.4); }
.finance-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 24px; }
.fin-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; text-align: center; }
.fin-card-num { font-size: 1.4rem; font-weight: 800; }
.fin-card-num.red { color: #e74c3c; }
.fin-card-num.green { color: #2ecc71; }
.fin-card-num.blue { color: #3498db; }
.fin-card-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.shop-items { display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; margin-bottom: 10px; }
.shop-item-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 10px; text-align: center; cursor: pointer; transition: var(--transition); }
.shop-item-card:hover { border-color: var(--orange); transform: translateY(-3px); }
.shop-item-icon { font-size: 1.8rem; margin-bottom: 6px; }
.shop-item-img { width: 100%; height: 80px; overflow: hidden; border-radius: 6px; margin-bottom: 6px; }
.shop-item-img img { width: 100%; height: 100%; object-fit: cover; }
.shop-item-name { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.shop-item-price { font-size: 11px; color: var(--orange); }
.recent-list { display: flex; flex-direction: column; gap: 10px; }
.recent-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 8px; background: var(--dark3); font-size: 13px; }
.recent-item .name { font-weight: 600; }
.recent-item .meta { color: var(--text-muted); font-size: 12px; }

/* Gender / Hall / Attendance extras */
.gender-tag { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 10px; font-weight: 700; margin-right: 6px; }
.gender-tag.boy { background: rgba(52,152,219,0.2); color: #3498db; }
.gender-tag.girl { background: rgba(231,84,128,0.2); color: #e75480; }
.hall-tag { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 10px; background: rgba(245,114,10,0.15); color: var(--orange); margin-right: 6px; }
.att-count-badge { display: inline-block; padding: 3px 10px; border-radius: 10px; font-size: 12px; font-weight: 700; background: rgba(52,152,219,0.15); color: #3498db; }
.debtor-item { align-items: flex-start !important; }
.debt-amount { color: #e74c3c; font-weight: 700; font-size: 13px; }
.debtors-card { max-height: 320px; overflow-y: auto; }
.att-summary-bar { background: rgba(245,114,10,0.1); border: 1px solid rgba(245,114,10,0.2); border-radius: 8px; padding: 8px 16px; margin-bottom: 16px; font-size: 14px; font-weight: 600; color: var(--orange); }
.guest-row { background: rgba(245,114,10,0.04); }
.history-modal { max-width: 800px; width: 95%; max-height: 85vh; overflow-y: auto; }
.history-stats { display: flex; gap: 16px; margin-bottom: 16px; }
.h-stat { flex: 1; background: var(--dark3); border-radius: 10px; padding: 14px; text-align: center; }
.h-stat span { display: block; font-size: 1.6rem; font-weight: 800; }
.h-stat small { font-size: 12px; color: var(--text-muted); }
.h-stat.green span { color: #2ecc71; }
.h-stat.red span { color: #e74c3c; }
.h-stat.blue span { color: #3498db; }
.sched-boy { display: inline-block; padding: 3px 10px; border-radius: 8px; font-size: 11px; font-weight: 700; background: rgba(52,152,219,0.2); color: #3498db; }
.sched-girl { display: inline-block; padding: 3px 10px; border-radius: 8px; font-size: 11px; font-weight: 700; background: rgba(231,84,128,0.2); color: #e75480; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .classes-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-items { grid-template-columns: repeat(3,1fr); }
  .dash-cards { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrap { max-width: 400px; }
  .blog-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gal-big { grid-row: span 1; }
  .admin-sidebar { width: 200px; }
  .dash-quick { grid-template-columns: 1fr 1fr; gap:12px; }
}
@media (max-width: 768px) {
	/*start humber*/
    .header-top {
  display: none;
}

.hamburger {
  display: flex;
}

/* ===== NAV MENU ===== */
.nav-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(75%, 300px);

  background: var(--dark2);
  border-left: 1px solid var(--border);

  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;

  padding: 70px 10px 20px;
  overflow-y: auto;

  /* بهتر از right animation */
  transform: translateX(100%);
  transition: transform 0.3s ease;

  z-index: 1100;
}

.nav-menu.open {
  transform: translateX(0);
}

/* ===== OVERLAY ===== */
.nav-menu-overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.35);

  opacity: 0;
  visibility: hidden;

  transition: opacity 0.25s ease, visibility 0.25s ease;

  z-index: 1050;
}

.nav-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ===== LINKS ===== */
.nav-link {
  padding: 12px 16px;
  border-radius: 8px;
  display: block;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1200;
}
	/*end humber*/
	.slide-content { padding: 0 24px; }
  .slide-content h1 { font-size: 2rem; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .about-features { grid-template-columns: 1fr; }
  .blog-card { flex-direction: column; }
  .blog-img { width: 100%; height: 160px; min-width: unset; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  /* Admin sidebar slide-in */
  .admin-sidebar {
    position: fixed; right: -280px; top: 0; bottom: 0; z-index: 2200;
    width: 260px; transition: right 0.28s ease;
  }
  .admin-sidebar.open { right: 0; }
  .sidebar-toggle { display: flex; }
  .sidebar-toggle-label { display:inline; }
  .admin-sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); /*z-index: 2100*/;
  }
  .admin-sidebar-overlay.open { display: block; }
  /* Admin topbar compact */
  .admin-topbar { padding: 10px 14px; gap: 10px; }
  .admin-user { display: none; }
  /* Cards */
  .dash-cards { grid-template-columns: 1fr 1fr; }
  .shop-items { grid-template-columns: repeat(2,1fr); }
  .finance-summary { grid-template-columns: 1fr; }
  .hero-scroll-hint { display: none; }
  .dash-quick { grid-template-columns: 1fr; }
  /* Tables: scroll horizontally */
  .admin-tab .table-wrap, .admin-tab { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 600px; }
  /* Attendance table narrower */
  .data-table th, .data-table td { padding: 8px 10px; font-size: 12px; }
  /* Player balance box wrap */
  #playerBalanceBox > div { flex-direction: column !important; gap: 8px !important; }
  /* Action rows in attendance */
  .att-toggle { flex-wrap: wrap; gap: 4px; }
  .att-btn { padding: 5px 8px; font-size: 11px; }
  /* Finance summary cards */
  .fin-card { padding: 14px; }
  .fin-card-num { font-size: 18px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .classes-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .dash-cards { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .hero-btns .btn { width: auto; justify-content: center; }
  .admin-tab { padding: 16px; }
  .history-stats { flex-direction: column; }
}

/* ===== CATEGORIES TAB ===== */
.cat-boundary-form { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); padding:20px; margin-bottom:24px; }
.cat-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:16px; }
.cat-card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); padding:16px; }
.cat-card-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.cat-card-header h3 { font-size:15px; font-weight:700; margin:0; }
.cat-player-list { display:flex; flex-direction:column; gap:6px; max-height:280px; overflow-y:auto; }
.cat-player-row { display:flex; align-items:center; gap:8px; padding:7px 10px; background:var(--dark3); border-radius:6px; font-size:13px; flex-wrap:wrap; }
.cat-player-row span:first-child { font-weight:600; flex:1; min-width:100px; }
.cat-gender-btn { padding:7px 18px; background:var(--dark3); color:var(--text-muted); border:1px solid var(--border); border-radius:20px; font-size:13px; cursor:pointer; transition:var(--transition); }
.cat-gender-btn.active { background:var(--orange); color:#fff; border-color:var(--orange); }
.cat-boundary-input { width:100%; margin-top:4px; }

/* ===== MOBILE ADMIN IMPROVEMENTS (بخش ۳) ===== */
@media (max-width: 600px) {
  .admin-topbar { padding:8px 10px; gap:6px; }
  .admin-topbar h2 { font-size:14px; }
  .tab-actions { gap:6px; padding:10px; }
  .tab-actions .btn { padding:8px 10px; font-size:12px; }
  .tab-actions select, .tab-actions input { font-size:12px; padding:7px 8px; }
  .admin-tab { padding:10px; }
  .dash-cards { grid-template-columns:1fr 1fr; gap:8px; }
  .dash-card { padding:12px; }
  .dash-card-num { font-size:20px; }
  .shop-items { grid-template-columns:repeat(3,1fr); gap:8px; }
  .shop-item-card { padding:10px 6px; }
  .shop-item-icon { font-size:1.4rem; }
  .shop-item-name { font-size:10px; }
  .shop-item-price { font-size:10px; }
  .data-table th, .data-table td { padding:6px 8px; font-size:11px; }
  .att-btn { padding:4px 6px; font-size:10px; }
  .cat-grid { grid-template-columns:1fr; }
  .fin-card { padding:10px; }
  .fin-card-num { font-size:16px; }
  .admin-sidebar { width:240px; }
  .admin-nav-item { padding:10px 12px; font-size:13px; }
  .modal { width:96vw; padding:16px; max-height:90vh; overflow-y:auto; }
  .form-row { grid-template-columns:1fr; }
  #playerBalanceBox > div { flex-direction:column !important; }
  .cat-player-row { font-size:12px; }
}

/* ===== ATTENDANCE DATE CONTROLS ===== */
.att-date-wrap { display:flex; align-items:center; gap:4px; }

/* ===== BLOG PAGE (archive.php) ===== */
.blog-page-hero { background: linear-gradient(135deg,var(--dark2) 0%,var(--dark3) 100%); padding: 60px 0 40px; border-bottom: 1px solid var(--border); }
.blog-page-hero-inner { text-align: center; }
.blog-page-title { font-size: 2.2rem; font-weight: 900; margin: 8px 0; }
.blog-page-sub { color: var(--text-muted); font-size: 15px; }
.blog-page-section { padding: 60px 0; }
.blog-page-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }

/* Category filter bar */
.blog-cats-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.blog-cat-link { display: inline-flex; align-items: center; gap: 5px; padding: 7px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; font-size: 13px; color: var(--text-muted); transition: var(--transition); }
.blog-cat-link:hover, .blog-cat-link.active { background: var(--orange); color: #fff; border-color: var(--orange); }
.blog-cat-count { background: rgba(255,255,255,0.2); border-radius: 10px; padding: 1px 6px; font-size: 11px; }
.blog-cat-link.active .blog-cat-count { background: rgba(255,255,255,0.25); }

/* Posts grid */
.blog-page-grid { display: flex; flex-direction: column; gap: 24px; }
.bp-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; transition: var(--transition); }
.bp-card:hover { border-color: rgba(245,114,10,0.35); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.18); }
.bp-card-featured { flex-direction: column; }
.bp-card-featured .bp-card-img { height: 300px; min-width: unset; width: 100%; }
.bp-card-img { width: 220px; min-width: 220px; height: 160px; position: relative; overflow: hidden; flex-shrink: 0; }
.bp-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.bp-card:hover .bp-thumb { transform: scale(1.05); }
.bp-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--dark3); color: var(--text-muted); font-size: 2rem; }
.bp-cat { position: absolute; top: 12px; right: 12px; background: var(--orange); color: #fff; padding: 3px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.bp-featured-badge { position: absolute; top: 12px; left: 12px; background: rgba(245,114,10,0.85); color: #fff; padding: 4px 10px; border-radius: 20px; font-size: 11px; display: flex; align-items: center; gap: 4px; }
.bp-card-body { padding: 20px 24px; flex: 1; display: flex; flex-direction: column; }
.bp-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--text-muted); margin-bottom: 10px; flex-wrap: wrap; }
.bp-meta i { color: var(--orange); margin-left: 3px; }
.bp-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; line-height: 1.5; }
.bp-title a { color: var(--text); transition: color 0.2s; }
.bp-title a:hover { color: var(--orange); }
.bp-card-featured .bp-title { font-size: 1.4rem; }
.bp-excerpt { color: var(--text-muted); font-size: 13px; line-height: 1.7; flex: 1; margin-bottom: 16px; }
.bp-footer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.bp-read-time { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

/* Pagination */
.blog-pagination { margin-top: 36px; }
.blog-pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.blog-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); font-size: 14px; transition: var(--transition); }
.blog-pagination .page-numbers.current { background: var(--orange); color: #fff; border-color: var(--orange); font-weight: 700; }
.blog-pagination .page-numbers:hover:not(.current) { border-color: var(--orange); color: var(--orange); }
.blog-pagination .prev, .blog-pagination .next { width: auto; padding: 0 14px; font-size: 13px; gap: 6px; }

/* Empty state */
.bp-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.bp-empty i { font-size: 3rem; margin-bottom: 16px; color: var(--border); display: block; }

/* Sidebar */
.blog-page-sidebar { display: flex; flex-direction: column; gap: 24px; }
.bps-widget { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.bps-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.bps-title i { color: var(--orange); }

/* Search */
.bps-search-wrap { display: flex; gap: 0; }
.bps-search-input { flex: 1; padding: 9px 14px; background: var(--dark3); border: 1px solid var(--border); border-radius: 8px 0 0 8px; color: var(--text); font-size: 13px; font-family: inherit; }
.bps-search-btn { background: var(--orange); color: #fff; border: none; padding: 9px 14px; border-radius: 0 8px 8px 0; cursor: pointer; }

/* Recent posts */
.bps-recent-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.bps-recent-item { display: flex; gap: 10px; align-items: flex-start; }
.bps-recent-thumb { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.bps-rthumb { width: 56px; height: 56px; object-fit: cover; display: block; }
.bps-rthumb-placeholder { width: 56px; height: 56px; background: var(--dark3); display: flex; align-items: center; justify-content: center; color: var(--text-muted); border-radius: 8px; }
.bps-recent-info { flex: 1; }
.bps-recent-title { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.5; display: block; margin-bottom: 4px; }
.bps-recent-title:hover { color: var(--orange); }
.bps-recent-date { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

/* Categories */
.bps-cats-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.bps-cat-link { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; font-size: 13px; color: var(--text-muted); transition: var(--transition); }
.bps-cat-link:hover, .bps-cat-link.active { background: rgba(245,114,10,0.1); color: var(--orange); }
.bps-cat-link i { font-size: 10px; }
.bps-cat-count { margin-right: auto; background: var(--dark3); border-radius: 10px; padding: 1px 8px; font-size: 11px; }
.bps-cat-link.active .bps-cat-count { background: rgba(245,114,10,0.2); color: var(--orange); }

/* Academy widget */
.bps-academy-widget { text-align: center; background: linear-gradient(135deg, rgba(245,114,10,0.08), var(--bg-card)); border-color: rgba(245,114,10,0.2); }
.bps-academy-logo { font-size: 2.5rem; margin-bottom: 8px; }
.bps-academy-widget h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.bps-academy-widget p { font-size: 12px; color: var(--text-muted); }

/* Responsive */
@media (max-width: 960px) {
  .blog-page-layout { grid-template-columns: 1fr; }
  .blog-page-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .blog-page-hero { padding: 40px 0 28px; }
  .blog-page-title { font-size: 1.6rem; }
  .bp-card { flex-direction: column; }
  .bp-card-img { width: 100%; min-width: unset; height: 200px; }
  .bp-card-featured .bp-card-img { height: 220px; }
  .bp-card-body { padding: 16px; }
  .blog-page-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .blog-cats-bar { gap: 6px; }
  .blog-cat-link { padding: 5px 12px; font-size: 12px; }
  .bp-title { font-size: 1rem; }
}

/* Touch support for gallery */
.gal-item { -webkit-tap-highlight-color: transparent; }

/* ===== INCOME TAB ===== */
.income-summary-cards { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:20px; }
.income-sum-card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:18px 16px; }
.income-sum-card .isc-label { font-size:12px; color:var(--text-muted); margin-bottom:6px; }
.income-sum-card .isc-val { font-size:1.5rem; font-weight:900; }
.income-sum-card .isc-sub { font-size:11px; color:var(--text-muted); margin-top:4px; }
.income-sum-card.green .isc-val { color:#2ecc71; }
.income-sum-card.red .isc-val { color:#e74c3c; }
.income-sum-card.blue .isc-val { color:#3498db; }
.income-sum-card.orange .isc-val { color:var(--orange); }

/* Bar chart */
.income-chart-wrap { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:20px; margin-bottom:4px; overflow-x:auto; }
.income-bar-chart { display:flex; align-items:flex-end; gap:8px; height:160px; min-width:480px; direction:ltr; }
.income-bar-col { display:flex; flex-direction:column; align-items:center; flex:1; gap:4px; }
.income-bar-col .bar-wrap { width:100%; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; flex:1; gap:2px; }
.income-bar-income { width:60%; background:var(--orange); border-radius:4px 4px 0 0; transition:height 0.4s; min-height:2px; cursor:pointer; position:relative; }
.income-bar-expense { width:60%; background:#e74c3c; border-radius:4px 4px 0 0; transition:height 0.4s; min-height:2px; cursor:pointer; opacity:0.7; }
.income-bar-income:hover, .income-bar-expense:hover { filter:brightness(1.2); }
.income-bar-label { font-size:10px; color:var(--text-muted); white-space:nowrap; }
.income-bar-val { font-size:9px; color:var(--orange); font-weight:700; }
.income-bar-current .income-bar-income { background:#2ecc71; }
.income-chart-legend { display:flex; gap:16px; justify-content:center; margin-top:10px; font-size:12px; color:var(--text-muted); }
.income-chart-legend span { display:flex; align-items:center; gap:5px; }
.income-chart-legend .dot { width:10px; height:10px; border-radius:2px; }

/* Insights */
.income-insights { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:16px; }
.insight-card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); padding:14px 16px; display:flex; gap:12px; align-items:center; }
.insight-icon { font-size:1.8rem; flex-shrink:0; }
.insight-text .it-title { font-size:12px; color:var(--text-muted); }
.insight-text .it-val { font-size:14px; font-weight:700; margin-top:2px; }

/* Finance table action btns */
.txn-edit-btn, .txn-del-btn { background:none; border:1px solid var(--border); border-radius:6px; cursor:pointer; padding:4px 8px; font-size:12px; transition:var(--transition); }
.txn-edit-btn { color:#3498db; }
.txn-edit-btn:hover { background:rgba(52,152,219,.12); border-color:#3498db; }
.txn-del-btn { color:#e74c3c; margin-right:4px; }
.txn-del-btn:hover { background:rgba(231,76,60,.12); border-color:#e74c3c; }

@media (max-width:768px) {
  .income-summary-cards { grid-template-columns:1fr 1fr; }
  .income-insights { grid-template-columns:1fr; }
}
@media (max-width:480px) {
  .income-summary-cards { grid-template-columns:1fr 1fr; gap:8px; }
  .income-sum-card .isc-val { font-size:1.1rem; }
}

/* ===== PLAYER HISTORY MODAL — نمودار ماهانه ===== */
.history-modal { max-width: 700px; max-height: 88vh; overflow-y: auto; }

.ph-summary { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:16px; }
.ph-stat { background:var(--dark3); border-radius:10px; padding:12px; text-align:center; border:1px solid var(--border); }
.ph-stat span { display:block; font-size:1.4rem; font-weight:900; }
.ph-stat small { font-size:11px; color:var(--text-muted); }
.ph-stat.green span { color:#2ecc71; }
.ph-stat.red   span { color:#e74c3c; }
.ph-stat.blue  span { color:#3498db; }
.ph-stat.orange span { color:var(--orange); }

/* نوار درصد */
.ph-att-bar-wrap { margin-bottom:16px; }
.ph-att-bar-label { display:flex; justify-content:space-between; font-size:12px; font-weight:700; margin-bottom:5px; }
.ph-att-bar { height:10px; border-radius:6px; background:var(--dark3); display:flex; overflow:hidden; }
.ph-att-fill { height:100%; transition:width 0.4s; }

/* انتخاب سال */
.ph-year-row { display:flex; align-items:center; gap:12px; margin-bottom:12px; }

/* چارت ماهانه */
.ph-chart-wrap { background:var(--dark3); border:1px solid var(--border); border-radius:10px; padding:16px 10px 10px; overflow-x:auto; }
.ph-bar-chart { display:flex; align-items:flex-end; gap:5px; height:120px; min-width:440px; direction:ltr; }
.ph-bar-col { display:flex; flex-direction:column; align-items:center; flex:1; gap:3px; }
.ph-bar-num { font-size:9px; color:var(--orange); font-weight:700; min-height:12px; }
.ph-bar-stack { width:70%; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; flex:1; gap:1px; border-radius:3px 3px 0 0; overflow:hidden; }
.ph-seg { width:100%; border-radius:2px; transition:height 0.35s; }
.ph-seg.present { background:#2ecc71; }
.ph-seg.absent  { background:#e74c3c; opacity:0.8; }
.ph-seg.late    { background:#f39c12; opacity:0.85; }
.ph-seg.empty   { background:var(--border); border-radius:2px; }
.ph-bar-month { font-size:9px; color:var(--text-muted); margin-top:3px; white-space:nowrap; }
.ph-bar-col.ph-cur .ph-bar-month { color:var(--orange); font-weight:700; }
.ph-bar-col.ph-cur .ph-seg.present { background:#f5720a; }
.ph-chart-legend { display:flex; gap:14px; justify-content:center; margin-top:10px; font-size:11px; color:var(--text-muted); }
.ph-dot { display:inline-block; width:9px; height:9px; border-radius:2px; margin-left:4px; }

/* برچسب ماه جاری در جدول بازیکنان */
.att-month-label { font-size:10px; color:var(--text-muted); font-weight:400; }

/* ===== AT-RISK CARD در داشبورد ===== */
.at-risk-card { border-color: rgba(231,76,60,0.25); }
.at-risk-item { flex-direction:row; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; }

/* grid داشبورد — ۴ quick-card */
.quick-cards { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:16px; }

@media (max-width:768px) {
  .ph-summary { grid-template-columns:1fr 1fr; }
  .quick-cards { grid-template-columns:1fr; }
}
@media (max-width:480px) {
  .ph-summary { grid-template-columns:1fr 1fr; gap:6px; }
  .ph-stat span { font-size:1.1rem; }
}

/* ===== SINGLE POST ===== */
.sp-hero { background: var(--dark3) center/cover no-repeat; min-height: 420px; display:flex; align-items:flex-end; position:relative; }
.sp-hero-overlay { position:absolute; inset:0; background:linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%); display:flex; align-items:flex-end; width:100%; }
.sp-hero-inner { padding: 40px 0 36px; }
.sp-cats { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px; }
.sp-title { font-size: 2rem; font-weight: 900; line-height: 1.4; margin-bottom: 16px; color:#fff; }
.sp-meta { display:flex; gap:16px; flex-wrap:wrap; font-size:13px; color:rgba(255,255,255,0.75); }
.sp-meta i { color:var(--orange); margin-left:4px; }
.sp-body-wrap { padding: 50px 0; }
.sp-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items:start; }
.sp-back-link { display:inline-flex; align-items:center; gap:6px; color:var(--text-muted); font-size:13px; margin-bottom:24px; transition:color 0.2s; }
.sp-back-link:hover { color:var(--orange); }
/* محتوای پست */
.sp-entry-content { font-size:15px; line-height:1.9; color:var(--text); }
.sp-entry-content h2,.sp-entry-content h3 { font-weight:700; margin:28px 0 12px; color:var(--text); }
.sp-entry-content p { margin-bottom:16px; }
.sp-entry-content img { max-width:100%; border-radius:var(--radius); margin:16px 0; }
.sp-entry-content blockquote { border-right:4px solid var(--orange); padding:12px 16px; background:rgba(245,114,10,0.06); border-radius:0 8px 8px 0; margin:20px 0; color:var(--text-muted); font-style:italic; }
.sp-entry-content a { color:var(--orange); }
.sp-entry-content ul, .sp-entry-content ol { padding-right:20px; margin-bottom:16px; }
.sp-entry-content li { margin-bottom:6px; }
/* تگ‌ها */
.sp-tags { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:28px; padding-top:20px; border-top:1px solid var(--border); }
.sp-tags-label { font-size:13px; color:var(--text-muted); }
.sp-tag { background:var(--bg-card); border:1px solid var(--border); border-radius:20px; padding:4px 12px; font-size:12px; color:var(--text-muted); transition:var(--transition); }
.sp-tag:hover { background:var(--orange); color:#fff; border-color:var(--orange); }
/* نویسنده */
.sp-author-box { display:flex; gap:16px; align-items:center; background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:20px; margin-top:28px; }
.sp-author-avatar img { width:64px; height:64px; border-radius:50%; object-fit:cover; }
.sp-author-name { font-weight:700; margin-bottom:4px; }
.sp-author-bio { font-size:13px; color:var(--text-muted); }
/* ناوبری */
.sp-post-nav { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:28px; }
.sp-nav-link { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); padding:14px 16px; display:flex; flex-direction:column; gap:4px; transition:var(--transition); }
.sp-nav-link:hover { border-color:var(--orange); background:rgba(245,114,10,0.06); }
.sp-nav-link.next { text-align:left; }
.sp-nav-dir { font-size:11px; color:var(--text-muted); display:flex; align-items:center; gap:4px; }
.sp-nav-link.next .sp-nav-dir { justify-content:flex-end; }
.sp-nav-title { font-size:13px; font-weight:600; color:var(--text); line-height:1.4; }
/* دیدگاه‌ها */
.sp-comments { margin-top:36px; }
.comment-list { list-style:none; }
.comment-body { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); padding:16px; margin-bottom:14px; }
.comment-author .fn { font-weight:700; }
.comment-metadata { font-size:12px; color:var(--text-muted); margin-bottom:8px; }
.comment-content p { font-size:14px; line-height:1.7; }
/* responsive */
@media (max-width:960px) { .sp-layout { grid-template-columns:1fr; } }
@media (max-width:768px) {
  .sp-hero { min-height:300px; }
  .sp-title { font-size:1.5rem; }
  .sp-post-nav { grid-template-columns:1fr; }
}

/* ===== SEARCHABLE SELECT (custom dropdown) ===== */
.ss-wrap { position:relative; display:inline-block; width:100%; }
.ss-trigger {
  display:flex; align-items:center; justify-content:space-between;
  background:var(--dark3); border:1px solid var(--border); border-radius:8px;
  padding:8px 12px; cursor:pointer; font-size:13px; color:var(--text-muted);
  min-height:38px; user-select:none; -webkit-user-select:none;
  -webkit-tap-highlight-color:transparent; touch-action:manipulation;
  transition:border-color 0.2s;
}
.ss-trigger:hover, .ss-trigger:focus { border-color:var(--orange); outline:none; }
.ss-label { flex:1; text-align:right; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ss-arrow { flex-shrink:0; margin-right:8px; color:var(--text-muted); font-size:11px; transition:transform 0.2s; }
.ss-dropdown {
  position:absolute; top:calc(100% + 4px); right:0; left:0; z-index:3000;
  background:var(--dark2); border:1px solid var(--orange); border-radius:10px;
  box-shadow:0 8px 32px rgba(0,0,0,0.4); overflow:hidden;
  min-width:100%;
}
.ss-search-wrap { padding:8px 10px; border-bottom:1px solid var(--border); }
.ss-search {
  width:100%; padding:7px 10px; background:var(--dark3); border:1px solid var(--border);
  border-radius:6px; color:var(--text); font-size:13px; font-family:inherit;
  direction:rtl; box-sizing:border-box;
}
.ss-search:focus { outline:none; border-color:var(--orange); }
.ss-list { list-style:none; max-height:220px; overflow-y:auto; padding:4px 0; }
.ss-option {
  padding:9px 14px; font-size:13px; cursor:pointer; color:var(--text-muted);
  transition:background 0.15s, color 0.15s; -webkit-tap-highlight-color:transparent;
}
.ss-option:hover, .ss-option:active { background:rgba(245,114,10,0.12); color:var(--text); }
.ss-option.selected { color:var(--orange); font-weight:700; }
/* اول آیتم (خالی) رنگ مات */
.ss-option[data-value=""] { color:var(--text-muted); font-style:italic; }
/* responsive — موبایل dropdown full-width */
@media (max-width:768px) {
  .ss-dropdown { position:fixed; right:10px; left:10px; width:auto; top:auto; bottom:10px; z-index:3500;
    border-radius:14px; }
  .ss-list { max-height:40vh; }
}

/* ===== RENT SECTION ===== */
.rent-section { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); padding:16px; margin:16px 0; }
.rent-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; font-weight:600; font-size:14px; }
.rent-hall-row { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--border); flex-wrap:wrap; }
.rent-hall-row:last-child { border-bottom:none; }
.rent-hall-name { width:160px; font-size:13px; font-weight:500; flex-shrink:0; }
.rent-hall-inputs { display:flex; align-items:flex-end; gap:10px; flex:1; flex-wrap:wrap; }
.rent-row-total { font-size:13px; min-width:100px; text-align:left; }
.rent-total-row { display:flex; align-items:center; justify-content:space-between; padding:12px 0 0; font-size:14px; font-weight:600; border-top:1px solid var(--border); margin-top:10px; }
.btn-sm { padding:5px 12px; font-size:12px; }

/* ===== FIN-CARD ORANGE ===== */
.fin-card-num.orange { color:#f59e0b; }

/* ===== INCOME SUMMARY 6-card ===== */
.income-summary-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:10px; margin-bottom:16px; }

@media (max-width:600px) {
  .rent-hall-row { flex-direction:column; align-items:flex-start; }
  .rent-hall-name { width:100%; }
  .income-summary-cards { grid-template-columns:1fr 1fr; }
}

/* ===== RENT GENDER TAGS ===== */
.rent-legend { display:flex; gap:16px; padding:8px 0 12px; font-size:12px; border-bottom:1px solid var(--border); margin-bottom:10px; }
.rent-legend-boy { color:#3b82f6; font-weight:600; }
.rent-legend-girl { color:#ec4899; font-weight:600; }
.rent-tag-boy { background:rgba(59,130,246,.15); color:#3b82f6; padding:1px 6px; border-radius:4px; font-size:10px; margin-right:4px; }
.rent-tag-girl { background:rgba(236,72,153,.15); color:#ec4899; padding:1px 6px; border-radius:4px; font-size:10px; margin-right:4px; }
.rent-row-meta { display:flex; flex-direction:column; gap:4px; align-items:center; min-width:120px; }
.rent-row-total { color:#e74c3c; font-weight:700; font-size:13px; }
.rent-row-sessions { color:var(--text-muted); font-size:11px; }

@media (max-width:600px) {
  .rent-hall-inputs { gap:6px; }
  .rent-row-meta { align-items:flex-start; }
}

/* ph-bar-stack با height در px */
.ph-bar-stack { width:70%; display:flex; flex-direction:column-reverse; justify-content:flex-start; align-items:stretch; gap:1px; min-height:4px; }
.ph-seg { width:100%; min-height:2px; border-radius:2px; }

/* Insights در modal تاریخچه */
.ph-insights { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:14px; }
.ph-ins-card { background:var(--dark3); border:1px solid var(--border); border-radius:8px; padding:10px 12px; display:flex; align-items:center; gap:10px; }
.ph-ins-icon { font-size:1.4rem; flex-shrink:0; }
.ph-ins-lbl { font-size:11px; color:var(--text-muted); }
.ph-ins-val { font-size:13px; font-weight:700; margin-top:2px; }
@media(max-width:480px){ .ph-insights { grid-template-columns:1fr; } }
