/* ========================================
   SUBSCRIBERS HERO
   ======================================== */
.subs-hero {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding: 4rem 2rem 3rem;
}

.subs-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 20% 50%,
    rgba(255, 152, 0, 0.1) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.subs-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.subs-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.subs-hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.subs-cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.login-info {
  margin-top: 1rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ========================================
   SECTIONS
   ======================================== */
.subs-overview,
.subs-tools,
.subs-devices,
.subs-downloads,
.subs-faq {
  padding: 3rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* ========================================
   GRIDS
   ======================================== */
.grid3 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid3-bottom {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid2 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .grid3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .subs-hero h1 {
    font-size: 2rem;
  }

  .subs-overview,
  .subs-tools,
  .subs-devices,
  .subs-downloads,
  .subs-faq {
    padding: 2rem 1rem;
  }
}

@media (max-width: 700px) {
  .grid3,
  .grid2 {
    grid-template-columns: 1fr;
  }

  .subs-cta {
    flex-direction: column;
  }

  .subs-cta .btn {
    width: 100%;
  }
}








/* ========================================
   CARDS
   ======================================== */
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: #d1d5db;
}

.card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.card-h-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
 .card-h h3 {
  font-size: 1.125rem;
  font-weight: 800;
  margin: 0;
  color: #111827;
}

/* ========================================
   BADGES & TAGS
   ======================================== */
.badge {
  background: #d1fae5;
  color: #065f46;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.badge.inactive {
  background: #fee2e2;
  color: #991b1b;
}

.tag {
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.muted {
  color: white;
  font-size: 0.95rem;
}

/* ========================================
   LISTS & ROWS
   ======================================== */
.row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  display: grid;
  gap: 0.5rem;
}

.list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.list li:last-child {
  border-bottom: none;
}

.list li span {
  color: #6b7280;
  font-size: 0.95rem;
}

.list li strong {
  color: #111827;
  font-weight: 700;
}

/* ========================================
   SPEED TEST
   ======================================== */
.speed-wrap {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.speed-number {
  text-align: center;
}

.speed-number span {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary, #ff9800);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.speed-number small {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   FORMS
   ======================================== */
.form-grid {
  display: grid;
  gap: 0.75rem;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: var(--color-primary, #ff9800);
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

.form-grid input:disabled,
.form-grid select:disabled,
.form-grid textarea:disabled {
  background: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
}

.form-grid textarea {
  resize: vertical;
  min-height: 100px;
}

.status {
  min-height: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem;
  border-radius: 8px;
  text-align: center;
}

.status.ok {
  background: #d1fae5;
  color: #065f46;
}

.status.err {
  background: #fee2e2;
  color: #991b1b;
}

/* ========================================
   DEVICES
   ======================================== */
.devices-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

@media (max-width: 600px) {
  .devices-grid {
    grid-template-columns: 1fr;
  }
}

.device-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all 0.2s ease;
  background: #fff;
}

.device-card:hover {
  border-color: var(--color-primary, #ff9800);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.device-card .title {
  font-weight: 800;
  color: #111827;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.device-card .meta {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ========================================
   DOWNLOAD CARDS
   ======================================== */
.dl-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.dl-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: var(--color-primary, #ff9800);
}

.dl-ic {
  font-size: 2rem;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fef3c7;
  border-radius: 12px;
}

.dl-card h3 {
  font-size: 1.125rem;
  font-weight: 800;
  margin: 0 0 0.25rem 0;
  color: #111827;
}

.dl-card .muted {
  margin: 0;
  font-size: 0.875rem;
}

/* ========================================
   FAQ
   ======================================== */
.subs-faq {
  padding-bottom: 4rem;
}

.subs-faq h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: #111827;
}

.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq details {
  background: #fff;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.faq details:hover {
  border-color: #d1d5db;
}

.faq details[open] {
  border-color: var(--color-primary, #ff9800);
  box-shadow: 0 4px 8px rgba(255, 152, 0, 0.1);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 1.25rem;
  color: #111827;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--color-primary, #ff9800);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details > div {
  padding: 0 1.25rem 1.25rem 1.25rem;
  color: #4b5563;
  line-height: 1.6;
}

/* ========================================
   BUTTON IMPROVEMENTS
   ======================================== */
.btn {
  transition: all 0.2s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn.primary:disabled {
  background: #9ca3af;
}

.btn.ghost:disabled {
  border-color: #e5e7eb;
  color: #9ca3af;
}

/* ========================================
   LOADING STATE
   ======================================== */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip to main content link */
a.sr-only:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 1rem;
  background: var(--color-primary, #ff9800);
  color: white;
  font-weight: 700;
  border-radius: 8px;
  z-index: 9999;
  clip: auto;
  text-decoration: none;
}

/* ========================================
   BUTTONS (IMPROVED)
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn.primary {
  background: var(--color-primary, #ff9800);
  color: #000;
  border: 2px solid transparent;
}

.btn.primary:hover:not(:disabled) {
  background: #f57c00;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
  transform: translateY(-1px);
}

.btn.ghost {
  background: white;
  color: #374151;
  border: 2px solid #d1d5db;
}

.btn.ghost:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #9ca3af;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.btn.outline {
  background: transparent;
  color: #374151;
  border: 2px solid #d1d5db;
}

.btn.outline:hover:not(:disabled) {
  background: white;
  border-color: var(--color-primary, #ff9800);
  color: var(--color-primary, #ff9800);
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.15);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.btn.primary:disabled {
  background: #9ca3af;
}

.btn.ghost:disabled,
.btn.outline:disabled {
  border-color: #e5e7eb;
  color: #9ca3af;
  background: #f9fafb;
}

/* ========================================
   CHECKBOX LABEL STYLING
   ======================================== */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}

.checkbox-label span {
  font-size: 0.95rem;
  color: #374151;
}

/* ========================================
   FILE INPUT STYLING
   ======================================== */
.file-field {
  position: relative;
}

.file-label {
  display: block;
  padding: 1rem;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f9fafb;
}

.file-label:hover {
  border-color: var(--color-primary, #ff9800);
  background: #fff;
}

.file-label-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #374151;
}

.file-name {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.file-hint {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
}

input[type="file"] {
  display: none;
}

/* ========================================
   ADMIN PANEL STYLES
   ======================================== */
.admin-panel {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 2rem;
}

.admin-card {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.admin-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.admin-block {
  background: #f9fafb;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
}

.admin-block h3 {
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
  font-weight: 800;
  color: #111827;
}

.admin-block p {
  margin: 0.5rem 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.admin-block code {
  background: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #ef4444;
  border: 1px solid #fee2e2;
}

.admin-block input[type="file"] {
  display: block;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin: 1rem 0;
  font-size: 0.875rem;
}

/* ========================================
   BUTTON SIZES
   ======================================== */
.btn.sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn.danger {
  background: #ef4444;
  color: white;
}

.btn.danger:hover:not(:disabled) {
  background: #dc2626;
}

/* ========================================
   MODAL STYLES (if needed)
   ======================================== */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: min(500px, 90vw);
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  background: white;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  padding: 2rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
}

.modal-close {
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  color: #6b7280;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #e5e7eb;
  color: #111827;
}

/* Mobile responsiveness for toasts */
@media (max-width: 640px) {
  .toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 480px) {
  .card {
    padding: 1rem;
  }

  .speed-wrap {
    flex-direction: column;
    gap: 1rem;
  }

  .dl-card {
    padding: 1rem;
  }

  .dl-ic {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}


