.client-portal {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 1rem 0;
}

.client-hero-box {
  background: radial-gradient(ellipse at 85% 25%, rgba(0, 229, 255, 0.12) 0%, transparent 60%),
              linear-gradient(135deg, rgba(16, 25, 45, 0.8) 0%, rgba(9, 14, 25, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 26px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
}

.client-detected-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.detected-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 580px;
}

.detected-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  width: fit-content;
}

.detected-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.15;
}

.detected-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.detected-action-area {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-start;
}

.btn-download-primary {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, var(--primary-cyan) 0%, #2563eb 100%);
  color: #fff;
  padding: 1.1rem 2.2rem;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.35);
  transition: all var(--transition-fast);
}

.btn-download-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 229, 255, 0.5);
  filter: brightness(1.08);
}

.btn-download-primary svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.download-file-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.client-platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.platform-card {
  background: rgba(16, 24, 40, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.platform-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 16px 35px -5px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 229, 255, 0.15);
}

.platform-card.is-detected {
  border-color: rgba(0, 229, 255, 0.4);
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.07) 0%, rgba(16, 24, 40, 0.75) 100%);
}

.platform-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.platform-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.platform-icon-wrap svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.platform-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(0, 229, 255, 0.15);
  color: var(--primary-cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.platform-info-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.platform-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.platform-specs-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.platform-download-btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.platform-download-btn:hover {
  background: var(--primary-cyan);
  color: #06090f;
  font-weight: 700;
}

.comparison-table-wrap {
  background: rgba(16, 24, 40, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2.4rem;
  overflow-x: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th {
  padding: 1.2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  border-bottom: 2px solid var(--border-subtle);
}

.comparison-table th.col-highlight {
  color: var(--primary-cyan);
  background: rgba(0, 229, 255, 0.06);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.comparison-table td {
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.comparison-table td.col-highlight {
  background: rgba(0, 229, 255, 0.03);
  font-weight: 600;
  color: #fff;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.feature-check {
  color: var(--accent-emerald);
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.feature-cross {
  color: var(--text-muted);
}

.download-manager-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dl-manager-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.dl-manager-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dl-stats-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.dl-stat-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
}

.dl-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dl-item-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  transition: border-color var(--transition-fast);
}

.dl-item-row:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.dl-item-thumb {
  width: 50px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #0f1523;
  flex-shrink: 0;
}

.dl-item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dl-item-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.dl-item-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.dl-item-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-cyan), var(--accent-emerald));
  border-radius: 3px;
  transition: width 0.3s ease;
}

.dl-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

.btn-dl-ctrl {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all var(--transition-fast);
}

.btn-dl-ctrl:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--primary-cyan);
}
