/* ══════════════════════════════════════════
   tenders.css — Tenders (Monaqeseh) Page
   ══════════════════════════════════════════ */

[hidden] { display: none !important; }

/* ══ BREADCRUMB ══ */
.tn-breadcrumb {
  padding: 20px 0 0;
}
.tn-breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.78rem;
  color: rgba(157, 176, 199, 0.45);
}
.tn-breadcrumb-list a {
  color: rgba(157, 176, 199, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.tn-breadcrumb-list a:hover {
  color: var(--gold);
}
.tn-breadcrumb-list i {
  font-size: 0.55rem;
}
.tn-breadcrumb-list li[aria-current="page"] {
  color: rgba(226, 232, 240, 0.75);
}

/* ══ HERO ══ */
.tn-hero {
  position: relative;
  padding: 48px 0 40px;
  overflow: hidden;
}
.tn-hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(201, 162, 39, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 20% 70%, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
  pointer-events: none;
}
.tn-hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}
.tn-hero-content {
  flex: 1;
}
.tn-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #081223;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.tn-hero-badge i {
  font-size: 0.7rem;
}
.tn-hero-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 14px;
  line-height: 1.4;
}
.tn-hero-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin: 0;
  max-width: 560px;
}
.tn-supplier-only {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 18px;
  max-width: 560px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(var(--ak-accent-rgb), 0.28);
  background: rgba(var(--ak-accent-rgb), 0.08);
}
.tn-supplier-only > i {
  color: var(--ak-accent);
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.tn-supplier-only strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 4px;
}
.tn-supplier-only p {
  margin: 0 0 10px;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.tn-supplier-only__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ak-accent);
  text-decoration: none;
}
.tn-supplier-only__cta:hover {
  text-decoration: underline;
}
html[data-theme="light"] .tn-supplier-only {
  background: rgba(var(--ak-accent-rgb), 0.06);
  border-color: rgba(var(--ak-accent-rgb), 0.18);
}
html[data-theme="light"] .tn-supplier-only > i,
html[data-theme="light"] .tn-supplier-only__cta {
  color: var(--ak-accent);
}
.tn-hero-stats {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}
.tn-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 22px;
  border-radius: 16px;
  min-width: 110px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.018) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s, border-color 0.25s;
}
.tn-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 162, 39, 0.2);
}
.tn-stat-icon {
  font-size: 1.2rem;
  color: var(--gold);
}
.tn-stat-val {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--accent-shine, #F0C040));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tn-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ══ FILTER BAR ══ */
.tn-filters {
  padding: 0 0 32px;
}
.tn-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.018) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 32px rgba(0, 0, 0, 0.3);
}
.tn-filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  padding: 0 12px 0 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.tn-filter-search > i {
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.tn-filter-input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
  padding: 6px 0;
}
.tn-filter-input::placeholder {
  color: rgba(157, 176, 199, 0.35);
}
.tn-filter-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.tn-filter-select-wrap > i:first-child {
  font-size: 0.8rem;
  color: var(--text-muted);
  pointer-events: none;
}
.tn-filter-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  background: transparent;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.82rem;
  color: var(--text);
  padding: 6px 4px 6px 22px;
  cursor: pointer;
  outline: none;
}
.tn-filter-select option {
  background: #0a1827;
  color: #EAF0F8;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-family: 'Vazirmatn', sans-serif;
}
.tn-filter-select option:checked {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.3), rgba(201, 162, 39, 0.15));
}
.tn-select-arrow {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  color: var(--text-muted);
  pointer-events: none;
}

/* ══ TENDER CARDS GRID ══ */
.tn-listing {
  padding-bottom: 60px;
}
.tn-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ══ TENDER CARD ══ */
.tn-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.018) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 32px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s, box-shadow 0.3s;
  outline: none;
}
.tn-card:hover,
.tn-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(201, 162, 39, 0.1);
}
.tn-card--urgent {
  border-color: rgba(239, 68, 68, 0.2);
}
.tn-card--urgent:hover,
.tn-card--urgent:focus-visible {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(239, 68, 68, 0.15);
}
.tn-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.tn-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
}
.tn-status--active {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.tn-status--active i {
  font-size: 0.45rem;
}
.tn-status--upcoming {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}
.tn-status--ended {
  background: rgba(157, 176, 199, 0.08);
  color: rgba(157, 176, 199, 0.5);
  border: 1px solid rgba(157, 176, 199, 0.12);
}
.tn-status--urgent {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.tn-status--urgent i {
  font-size: 0.7rem;
}
.tn-card-code {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'Vazirmatn', monospace;
  letter-spacing: 0.5px;
  opacity: 0.7;
}
.tn-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.5;
}
.tn-card-cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 12px;
}
.tn-card-cat i {
  font-size: 0.75rem;
}
.tn-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tn-card-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.tn-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.tn-info-item > i {
  font-size: 0.8rem;
  color: var(--gold);
  flex-shrink: 0;
  opacity: 0.7;
}
.tn-info-label {
  display: none;
}
.tn-info-val {
  font-weight: 600;
  color: var(--text);
  font-size: 0.75rem;
}
.tn-card-organizer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tn-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.tn-countdown-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.tn-countdown-inline i {
  font-size: 0.8rem;
}
.tn-countdown--urgent {
  color: #ef4444;
  font-weight: 600;
}
.tn-countdown--upcoming {
  color: #3b82f6;
}
.tn-countdown--ended {
  color: rgba(157, 176, 199, 0.5);
}
.tn-card-action {
  flex-shrink: 0;
}

/* ══ BUTTONS — GOLD 3D ══ */
.tn-btn-gold-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 12px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #F6D578 0%, #F0C040 30%, #D4AF37 62%, #B8870C 100%);
  color: #2a1d05;
  letter-spacing: 0.3px;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 222, 0.75),
    inset 0 -2px 5px rgba(140, 96, 20, 0.35),
    0 4px 0 #97701d,
    0 8px 20px rgba(166, 124, 46, 0.4);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.2s ease, filter 0.2s ease;
}
.tn-btn-gold-3d::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.65) 48%, transparent 60%);
  transform: translateX(-130%) skewX(-18deg);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.tn-btn-gold-3d:hover {
  transform: translateY(-2px);
  filter: brightness(1.05) saturate(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 222, 0.85),
    inset 0 -3px 6px rgba(140, 96, 20, 0.4),
    0 6px 0 #97701d,
    0 14px 32px rgba(166, 124, 46, 0.5);
}
.tn-btn-gold-3d:hover::before {
  transform: translateX(130%) skewX(-18deg);
}
.tn-btn-gold-3d:active {
  transform: translateY(3px);
  filter: brightness(0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 222, 0.6),
    inset 0 -1px 3px rgba(140, 96, 20, 0.35),
    0 1px 0 #97701d,
    0 3px 8px rgba(166, 124, 46, 0.35);
}

/* ══ BUTTONS — GLASS ══ */
.tn-btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 12px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--text);
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 0 rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.2s ease, border-color 0.2s;
}
.tn-btn-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 0%, rgba(201, 162, 39, 0.2) 48%, transparent 60%);
  transform: translateX(-130%) skewX(-18deg);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.tn-btn-glass:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 162, 39, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 0 rgba(0, 0, 0, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.2);
}
.tn-btn-glass:hover::before {
  transform: translateX(130%) skewX(-18deg);
}
.tn-btn-glass:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1px 0 rgba(0, 0, 0, 0.15);
}

/* ══ EMPTY STATE ══ */
.tn-empty {
  text-align: center;
  padding: 60px 20px;
}
.tn-empty[hidden] {
  display: none;
}
.tn-empty i {
  font-size: 3rem;
  color: var(--text-muted);
  opacity: 0.3;
  margin-bottom: 16px;
  display: block;
}
.tn-empty h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}
.tn-empty p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ══ DETAIL SECTION ══ */
.tn-detail-section {
  padding: 28px 0 80px;
}
.tn-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}
.tn-detail-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.tn-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 130px;
}

/* ══ DETAIL HEADER CARD ══ */
.tn-detail-header-card {
  padding: 28px 28px 24px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.018) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 32px rgba(0, 0, 0, 0.3);
}
.tn-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.tn-detail-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 14px;
  line-height: 1.5;
}
.tn-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.tn-detail-organizer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.tn-detail-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.tn-detail-date i {
  font-size: 0.75rem;
}

/* ══ DETAIL BLOCKS ══ */
.tn-detail-block {
  padding: 24px 28px 28px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.018) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 32px rgba(0, 0, 0, 0.3);
}
.tn-detail-block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tn-detail-block-title i {
  font-size: 1rem;
  color: var(--gold);
}
.tn-detail-block-body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.9;
}
.tn-detail-block-body p {
  margin: 0 0 14px;
}
.tn-detail-block-body p:last-child {
  margin-bottom: 0;
}

/* ══ REQUIREMENTS LIST ══ */
.tn-requirements {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tn-requirements li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s, border-color 0.2s;
}
.tn-requirements li:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
.tn-requirements li i {
  color: #22c55e;
  font-size: 0.85rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ══ TIMELINE STEPPER ══ */
.tn-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-right: 18px;
}
.tn-timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  padding-bottom: 28px;
}
.tn-timeline-step:last-child {
  padding-bottom: 0;
}
.tn-timeline-step::before {
  content: '';
  position: absolute;
  right: -18px;
  top: 28px;
  width: 2px;
  bottom: 0;
  background: rgba(255, 255, 255, 0.08);
}
.tn-timeline-step:last-child::before {
  display: none;
}
.tn-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  margin-right: -18px;
}
.tn-step--done .tn-step-dot {
  background: #22c55e;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}
.tn-step--done::before {
  background: #22c55e;
}
.tn-step--active .tn-step-dot {
  background: linear-gradient(135deg, #C9A227, #F2D05C);
  color: #0d1b2a;
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.18);
}
.tn-step--active::before {
  background: rgba(201, 162, 39, 0.3);
}
.tn-step--future .tn-step-dot {
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}
.tn-step-content {
  padding-top: 4px;
}
.tn-step-content strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.tn-step-content span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ══ PARTICIPATION FORM ══ */
.tn-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tn-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}
.tn-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.tn-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  width: 100%;
}
.tn-form-row .tn-form-group {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}
.tn-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.tn-req {
  color: #ef4444;
  margin-right: 2px;
}
.tn-input,
.tn-textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.85rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.tn-input::placeholder,
.tn-textarea::placeholder {
  color: rgba(157, 176, 199, 0.35);
}
.tn-input:focus,
.tn-textarea:focus {
  border-color: rgba(201, 162, 39, 0.45);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}
.tn-textarea {
  resize: vertical;
  min-height: 80px;
}
.tn-error {
  font-size: 0.7rem;
  color: #ef4444;
  min-height: 0;
}
.tn-input--error {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.tn-input-suffix-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.tn-input-suffix-wrap .tn-input {
  padding-left: 60px;
}
.tn-input-suffix {
  position: absolute;
  left: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
}
.tn-form-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.12);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.tn-form-note i {
  color: #22c55e;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.tn-form-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.tn-btn-submit {
  padding: 14px 32px;
  font-size: 0.9rem;
}
.tn-btn-back {
  padding: 14px 28px;
  font-size: 0.88rem;
}

/* ══ FILE UPLOAD ══ */
.tn-upload-area {
  position: relative;
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.tn-upload-area:hover,
.tn-upload-area:focus-visible {
  border-color: rgba(201, 162, 39, 0.35);
  background: rgba(201, 162, 39, 0.03);
  outline: none;
}
.tn-upload-area > i {
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.7;
}
.tn-upload-area > strong {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.tn-upload-area > span {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.tn-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.tn-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}
.tn-file-chip__remove {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  font-size: 0.6rem;
  cursor: pointer;
  transition: background 0.2s;
}
.tn-file-chip__remove:hover {
  background: rgba(239, 68, 68, 0.3);
}

/* ══ SIDEBAR CARDS ══ */
.tn-sidebar-card {
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.018) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 32px rgba(0, 0, 0, 0.3);
}
.tn-sidebar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
}
.tn-sidebar-title i {
  color: var(--gold);
  font-size: 0.9rem;
}
.tn-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tn-sidebar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.tn-sidebar-row:last-child {
  border-bottom: none;
}
.tn-sidebar-row span {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.tn-sidebar-row strong {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

/* ══ COUNTDOWN BIG ══ */
.tn-countdown-card {
  text-align: center;
}
.tn-countdown-big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  direction: ltr;
}
.tn-cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.tn-cd-num {
  font-size: 1.6rem;
  font-weight: 800;
  min-width: 48px;
  padding: 8px 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background-image: linear-gradient(135deg, var(--gold), var(--accent-shine, #F0C040));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.tn-cd-num--sec {
  color: var(--text-muted);
  background-image: none;
  -webkit-text-fill-color: var(--text-muted);
  opacity: 0.7;
}
.tn-cd-label {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.tn-cd-sep {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.4;
  margin-bottom: 16px;
}

/* ══ PRIVACY CARD ══ */
.tn-privacy-card {
  text-align: center;
  background: linear-gradient(160deg, rgba(34, 197, 94, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(34, 197, 94, 0.12);
}
.tn-privacy-icon {
  font-size: 2rem;
  color: #22c55e;
  margin-bottom: 10px;
}
.tn-privacy-card .tn-sidebar-title {
  justify-content: center;
  margin-bottom: 10px;
}
.tn-privacy-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

/* ══ HELP CARD ══ */
.tn-help-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 14px;
}
.tn-help-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tn-help-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(201, 162, 39, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.12);
  transition: background 0.2s, transform 0.2s;
}
.tn-help-links a:hover {
  background: rgba(201, 162, 39, 0.12);
  transform: translateX(4px);
}
.tn-help-links a i {
  font-size: 0.85rem;
}

/* ══ TOAST ══ */
.tn-toast-container {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.tn-toast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: auto;
}
.tn-toast--show {
  opacity: 1;
  transform: translateY(0);
}
.tn-toast--success {
  background: rgba(13, 27, 42, 0.95);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.tn-toast--warn {
  background: rgba(13, 27, 42, 0.95);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
}
.tn-toast--info {
  background: rgba(13, 27, 42, 0.95);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

/* ══ SPINNER ══ */
.tn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(13, 27, 42, 0.2);
  border-top-color: #0d1b2a;
  border-radius: 50%;
  animation: tnSpin 0.6s linear infinite;
}
@keyframes tnSpin {
  to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════
   LIGHT THEME
   ══════════════════════════════════════════ */

[data-theme="light"] .tn-breadcrumb-list {
  color: rgba(100, 116, 139, 0.6);
}
[data-theme="light"] .tn-breadcrumb-list a {
  color: rgba(100, 116, 139, 0.6);
}
[data-theme="light"] .tn-breadcrumb-list li[aria-current="page"] {
  color: var(--text);
}

[data-theme="light"] .tn-hero-mesh {
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(201, 162, 39, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 20% 70%, rgba(59, 130, 246, 0.03) 0%, transparent 60%);
}

[data-theme="light"] .tn-stat-card,
[data-theme="light"] .tn-filter-bar,
[data-theme="light"] .tn-card,
[data-theme="light"] .tn-detail-header-card,
[data-theme="light"] .tn-detail-block,
[data-theme="light"] .tn-sidebar-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.06);
  backdrop-filter: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .tn-card:hover,
[data-theme="light"] .tn-card:focus-visible {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(201, 162, 39, 0.12);
}

[data-theme="light"] .tn-card--urgent {
  border-color: rgba(239, 68, 68, 0.15);
}
[data-theme="light"] .tn-card--urgent:hover,
[data-theme="light"] .tn-card--urgent:focus-visible {
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(239, 68, 68, 0.1);
}

[data-theme="light"] .tn-filter-search {
  border-left-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .tn-filter-input::placeholder {
  color: rgba(100, 116, 139, 0.5);
}

[data-theme="light"] .tn-filter-select option {
  background: #fff;
  color: var(--text);
}
[data-theme="light"] .tn-filter-select option:checked {
  background: rgba(201, 162, 39, 0.1);
}

[data-theme="light"] .tn-info-item {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .tn-card-organizer {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .tn-detail-block-title {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .tn-requirements li {
  background: rgba(0, 0, 0, 0.015);
  border-color: rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .tn-requirements li:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .tn-timeline-step::before {
  background: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .tn-step--future .tn-step-dot {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .tn-input,
[data-theme="light"] .tn-textarea {
  background: #f4f5f7;
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text);
}
[data-theme="light"] .tn-input::placeholder,
[data-theme="light"] .tn-textarea::placeholder {
  color: rgba(100, 116, 139, 0.5);
}
[data-theme="light"] .tn-input:focus,
[data-theme="light"] .tn-textarea:focus {
  border-color: rgba(201, 162, 39, 0.45);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.08);
}
[data-theme="light"] .tn-input--error {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

[data-theme="light"] .tn-upload-area {
  border-color: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .tn-upload-area:hover,
[data-theme="light"] .tn-upload-area:focus-visible {
  border-color: rgba(201, 162, 39, 0.35);
  background: rgba(201, 162, 39, 0.03);
}

[data-theme="light"] .tn-file-chip {
  background: #f4f5f7;
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .tn-form-note {
  background: rgba(34, 197, 94, 0.04);
  border-color: rgba(34, 197, 94, 0.1);
}

[data-theme="light"] .tn-sidebar-row {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .tn-cd-num {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .tn-privacy-card {
  background: linear-gradient(160deg, rgba(34, 197, 94, 0.04) 0%, #fff 100%);
  border-color: rgba(34, 197, 94, 0.1);
  backdrop-filter: none;
}

[data-theme="light"] .tn-help-links a {
  background: rgba(201, 162, 39, 0.05);
  border-color: rgba(201, 162, 39, 0.1);
}
[data-theme="light"] .tn-help-links a:hover {
  background: rgba(201, 162, 39, 0.1);
}

[data-theme="light"] .tn-toast--success {
  background: #fff;
  color: #16a34a;
  border-color: rgba(34, 197, 94, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .tn-toast--warn {
  background: #fff;
  color: #92400e;
  border-color: rgba(251, 191, 36, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .tn-toast--info {
  background: #fff;
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .tn-btn-gold-3d {
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 222, 0.8),
    inset 0 -2px 4px rgba(140, 96, 20, 0.22),
    0 3px 0 #b8960c,
    0 5px 14px rgba(166, 124, 46, 0.22);
}
[data-theme="light"] .tn-btn-gold-3d:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 222, 0.85),
    inset 0 -2px 4px rgba(140, 96, 20, 0.25),
    0 5px 0 #b8960c,
    0 10px 24px rgba(166, 124, 46, 0.28);
}
[data-theme="light"] .tn-btn-gold-3d:active {
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 222, 0.6),
    0 1px 0 #b8960c;
}

[data-theme="light"] .tn-btn-glass {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: none;
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 0 rgba(0, 0, 0, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .tn-btn-glass:hover {
  border-color: rgba(201, 162, 39, 0.35);
  background: #fefcf5;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 0 rgba(0, 0, 0, 0.06),
    0 8px 20px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .tn-btn-glass:active {
  background: #f9f5ea;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 0 rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .tn-status--active {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.15);
}
[data-theme="light"] .tn-status--upcoming {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.15);
}
[data-theme="light"] .tn-status--ended {
  background: rgba(100, 116, 139, 0.06);
  border-color: rgba(100, 116, 139, 0.1);
  color: rgba(100, 116, 139, 0.6);
}
[data-theme="light"] .tn-status--urgent {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.18);
}

[data-theme="light"] .tn-countdown--ended {
  color: rgba(100, 116, 139, 0.6);
}

[data-theme="light"] .tn-spinner {
  border-color: rgba(0, 0, 0, 0.1);
  border-top-color: var(--text);
}

/* ══════════════════════════════════════════
   RESPONSIVE — 1024px
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .tn-detail-layout {
    grid-template-columns: 1fr;
  }
  .tn-detail-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .tn-sidebar-card:first-child {
    grid-column: 1 / -1;
  }
  .tn-countdown-card {
    grid-column: 1 / -1;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE — 768px
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .tn-hero-inner {
    flex-direction: column;
    gap: 24px;
  }
  .tn-hero-stats {
    width: 100%;
    justify-content: center;
  }
  .tn-hero-title {
    font-size: 1.35rem;
  }
  .tn-hero-desc {
    font-size: 0.82rem;
  }

  .tn-filter-bar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .tn-filter-search {
    flex: 1 1 100%;
    border-left: none;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 10px;
  }
  [data-theme="light"] .tn-filter-search {
    border-bottom-color: rgba(0, 0, 0, 0.06);
  }

  .tn-cards-grid {
    grid-template-columns: 1fr;
  }

  .tn-form-row {
    flex-direction: column;
    gap: 0;
  }
  .tn-form-row .tn-form-group {
    margin-bottom: 16px;
  }

  .tn-form-actions {
    flex-direction: column-reverse;
  }
  .tn-btn-submit,
  .tn-btn-back {
    justify-content: center;
    width: 100%;
  }

  .tn-detail-sidebar {
    grid-template-columns: 1fr;
  }

  .tn-detail-header-card {
    padding: 22px 20px 20px;
  }
  .tn-detail-block {
    padding: 20px 20px 24px;
  }
  .tn-detail-title {
    font-size: 1.2rem;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE — 480px
   ══════════════════════════════════════════ */
@media (max-width: 480px) {
  .tn-hero {
    padding: 28px 0 24px;
  }
  .tn-hero-stats {
    flex-direction: column;
    align-items: stretch;
  }
  .tn-stat-card {
    flex-direction: row;
    justify-content: center;
    min-width: 0;
    padding: 14px 18px;
  }

  .tn-filter-bar {
    padding: 12px 14px;
  }

  .tn-card {
    padding: 18px 16px;
  }
  .tn-card-info {
    grid-template-columns: 1fr;
  }

  .tn-detail-section {
    padding: 16px 0 60px;
  }
  .tn-detail-header-card {
    padding: 18px 16px 16px;
    border-radius: 12px;
  }
  .tn-detail-block {
    padding: 16px 14px 20px;
    border-radius: 12px;
  }
  .tn-sidebar-card {
    border-radius: 12px;
  }

  .tn-countdown-big {
    gap: 4px;
  }
  .tn-cd-num {
    font-size: 1.3rem;
    min-width: 40px;
    padding: 6px 2px;
  }
  .tn-cd-sep {
    font-size: 1rem;
  }

  .tn-breadcrumb {
    padding: 14px 0 0;
  }

  .tn-listing {
    padding-bottom: 40px;
  }
}

/* ══════════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .tn-btn-gold-3d::before,
  .tn-btn-glass::before {
    display: none;
  }
  .tn-btn-gold-3d,
  .tn-btn-glass {
    transition: filter 0.2s ease, box-shadow 0.2s ease;
  }
  .tn-card {
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  .tn-stat-card {
    transition: border-color 0.2s;
  }
  .tn-spinner {
    animation: none;
  }
  .tn-toast {
    transition: opacity 0.15s;
  }
}
