/* ─── PikoTrack Peak Flowmetry Styles ──────────────────────────── */

/* Reset inherited cruft from style.css */
.pf-header,
.pf-main,
.pf-footer,
.pf-dashboard {
  all: initial;
}

.pf-header,
.pf-main,
.pf-footer,
.pf-dashboard {
  font-family: var(--pf-font);
}

.pf-header *,
.pf-main *,
.pf-footer *,
.pf-dashboard * {
  box-sizing: border-box;
}

/* Zone Colors */
:root {
  --pf-green: #22c55e;
  --pf-green-bg: #dcfce7;
  --pf-yellow: #eab308;
  --pf-yellow-bg: #fef9c3;
  --pf-red: #ef4444;
  --pf-red-bg: #fee2e2;
  --pf-primary: #02c0e7;
  --pf-primary-hover: #139CBC;
  --pf-primary-light: rgba(90, 103, 223, 0.08);
  --pf-primary-lighter: rgba(90, 103, 223, 0.04);
  --pf-text: #2d3748;
  --pf-text-secondary: #718096;
  --pf-bg: #f2f3f8;
  --pf-card-bg: #ffffff;
  --pf-border: #e2e8f0;
  --pf-header-bg: #ffffff;
  --pf-shadow: 0 1px 4px rgba(0,0,0,0.06);
  --pf-shadow-lg: 0 2px 12px rgba(0,0,0,0.06);
  --pf-radius: 4px;
  --pf-radius-lg: 8px;
  --pf-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ─── Typography reset for PF pages ─────────────────────────────── */
body {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

body:has(.pf-header) {
  background: var(--pf-bg) !important;
  display: block !important;
  line-height: 1.6 !important;
  min-height: 100vh !important;
}

/* ─── Layout ──────────────────────────────────────────────────── */
body header.pf-header { position: sticky !important; z-index: 1000 !important; }

/* Override global tag styles from style.css */
body main.pf-main { flex: none; padding: 32px 0; }
body footer.pf-footer {
  background: none;
  border-top: 1px solid var(--pf-border);
  padding: 24px 0;
  text-align: center;
  position: static;
}

.pf-container {
  max-width: 1100px;
  width: 100%;
  margin: 20px auto;
  padding: 0 24px;
}

.pf-header {
  background: var(--pf-header-bg);
  border-bottom: 1px solid var(--pf-border);
  height: 64px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--pf-shadow);
}

.pf-header .pf-container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  padding-bottom: 0;
}

.pf-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.pf-logo-img {
  width: 36px;
  height: 36px;
  display: block;
}

.pf-logo-text {
  /*display: flex;*/
  /*flex-direction: column;*/
  line-height: 1.2;
  width: 160px;
}

.pf-logo-piko {
  font-size: 22px;
  font-weight: 600;
  color: #00c0e8;
  letter-spacing: -0.01em;
}

.pf-logo-track {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

.pf-logo-sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--pf-text-secondary);
  letter-spacing: 0.02em;
  margin-top: -1px;
  width: 100%;
  float: left;
}

.pf-nav {
  display: flex;
  gap: 2px;
  flex: 1;
  align-items: center;
  height: 100%;
}

.pf-nav a {
  color: var(--pf-text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--pf-radius);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pf-nav a:hover {
  background: var(--pf-primary-light);
  color: var(--pf-primary);
}

.pf-nav a.pf-nav-active {
  background: var(--pf-primary-light);
  color: var(--pf-primary);
  font-weight: 600;
}

.pf-nav a.pf-nav-logout {
  color: var(--pf-text-secondary);
}

.pf-nav a.pf-nav-logout:hover {
  background: var(--pf-red-bg);
  color: var(--pf-red);
}

.pf-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* ─── Hamburger ─────────────────────────────────────────────────── */
.pf-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--pf-text-secondary);
  padding: 4px 8px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  line-height: 1;
  position: relative;
  z-index: 1002;
  transition: transform 0.2s ease;
}

/* ─── Side drawer overlay ───────────────────────────────────────── */
.pf-drawer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35);
  z-index: 1001;
}

.pf-drawer-overlay.open {
  display: block;
}

/* ─── Mobile Nav — side drawer ──────────────────────────────────── */
.pf-mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 75vw;
  max-width: 320px;
  height: 100vh;
  height: 100dvh;
  background: #fff;
  box-shadow: 4px 0 20px rgba(0,0,0,0.12);
  z-index: 1002;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.pf-mobile-nav.open {
  transform: translateX(0);
}

.pf-drawer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--pf-border);
  flex-shrink: 0;
  text-decoration: none;
}

.pf-drawer-logo .pf-logo-text {
  width: auto;
}

.pf-drawer-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 0;
}

.pf-drawer-menu a {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  color: var(--pf-text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.1s;
}

.pf-drawer-menu a:hover,
.pf-drawer-menu a:active {
  background: var(--pf-primary-light);
}

.pf-drawer-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  margin: 16px 16px 24px;
  color: #fff !important;
  background: var(--pf-red);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--pf-radius);
  transition: background 0.1s;
  flex-shrink: 0;
}

.pf-drawer-logout:hover {
  background: #dc2626 !important;
}

.pf-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pf-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.pf-user-name {
  font-size: 14px;
  color: var(--pf-text);
  white-space: nowrap;
  font-weight: 500;
}

.pf-main {
  padding: 32px 0;
  min-height: calc(100vh - 64px);
}

.pf-footer {
  text-align: center;
  padding: 20px 0;
  color: var(--pf-text-secondary);
  font-size: 13px;
  border-top: 1px solid var(--pf-border);
}

.pf-footer p {
  margin: 0;
}

/* ─── Cards ─────────────────────────────────────────────────────── */
.pf-card {
  background: var(--pf-card-bg);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius-lg);
  padding: 24px;
  margin: 20px 0;
  box-shadow: var(--pf-shadow);
}

.pf-card h2 {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--pf-text);
  line-height: 1.4;
}

.pf-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.pf-card-header h2 {
  margin: 0;
}

/* ─── Stats Grid ──────────────────────────────────────────────── */
.pf-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pf-stat-card {
  background: var(--pf-card-bg);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius-lg);
  padding: 10px 20px 10px;
  text-align: left;
  box-shadow: var(--pf-shadow);
  position: relative;
  overflow: hidden;
}

.pf-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pf-primary);
}

.pf-stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--pf-text);
  line-height: 1.1;
  padding: 4px 0;
}

.pf-stat-value.zone-green { color: var(--pf-green); }
.pf-stat-value.zone-yellow { color: var(--pf-yellow); }
.pf-stat-value.zone-red { color: var(--pf-red); }

.pf-stat-value.no_bg_zone-green { color: var(--pf-green); }
.pf-stat-value.no_bg_zone-yellow { color: var(--pf-yellow); }
.pf-stat-value.no_bg_zone-red { color: var(--pf-red); }

.pf-stat-label {
  font-size: 13px;
  color: var(--pf-text-secondary);
  margin-top: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pf-stat-zone {
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  padding: 3px 12px;
  border-radius: 12px;
  display: inline-block;
}

.pf-stat-zone.zone-green { background: var(--pf-green-bg); color: #166534; }
.pf-stat-zone.zone-yellow { background: var(--pf-yellow-bg); color: #854d0e; }
.pf-stat-zone.zone-red { background: var(--pf-red-bg); color: #991b1b; }

/* ─── Two Columns ──────────────────────────────────────────────── */
.pf-two-columns {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 24px;
  margin-bottom: 0;
  min-width: 0;
}

.pf-two-columns > * {
  min-width: 0;
}

/* ─── Forms ─────────────────────────────────────────────────────── */
.pf-form-card {
  max-width: 440px;
  margin: 48px auto;
}

.pf-form-card h2 {
  text-align: center;
}

.pf-form-card p {
  font-size: 14px;
  color: var(--pf-text-secondary);
  line-height: 1.6;
  margin: 0 0 20px;
}

.pf-form-group {
  margin-bottom: 18px;
}

.pf-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--pf-text);
  margin-bottom: 6px;
}

.pf-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  font-size: 14px;
  background: #f7fafc;
  color: var(--pf-text);
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.pf-input:focus {
  outline: none;
  border-color: var(--pf-primary);
  box-shadow: 0 0 0 3px rgba(90, 103, 223, 0.1);
  background: #fff;
}

select.pf-input {
  appearance: auto;
}

textarea.pf-input {
  resize: vertical;
  min-height: 60px;
}

/* Number input — fix dark spinner background */
input[type="number"].pf-input {
  background: #f7fafc;
}

.pf-hint {
  display: block;
  font-size: 12px;
  color: var(--pf-text-secondary);
  margin-top: 6px;
  line-height: 1.4;
}

.pf-form-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  font-size: 14px;
}

.pf-form-links a {
  color: var(--pf-primary);
  text-decoration: none;
  font-weight: 500;
}

.pf-form-links a:hover {
  text-decoration: underline;
}

.pf-form-inline {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.pf-form-inline .pf-form-group {
  margin-bottom: 0;
}

/* ─── Buttons ──────────────────────────────────────────────────── */
.pf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--pf-radius);
  border: 1px solid var(--pf-border);
  background: var(--pf-card-bg);
  color: var(--pf-text);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  line-height: 1.4;
  font-family: inherit;
  white-space: nowrap;
  gap: 6px;
}

.pf-btn:hover {
  background: var(--pf-bg);
  border-color: #cbd5e0;
}

.pf-btn-primary {
  background: var(--pf-primary) !important;
  color: #fff !important;
  border-color: var(--pf-primary) !important;
}

.pf-btn-primary:hover {
  background: var(--pf-primary-hover) !important;
  border-color: var(--pf-primary-hover) !important;
}

.pf-btn-outline {
  background: transparent !important;
  border-color: var(--pf-border) !important;
  color: var(--pf-text-secondary) !important;
}

.pf-btn-outline:hover {
  border-color: var(--pf-primary) !important;
  color: var(--pf-primary) !important;
  background: var(--pf-primary-light) !important;
}

.pf-btn-danger {
  color: var(--pf-red) !important;
  border-color: transparent !important;
  background: transparent !important;
}

.pf-btn-danger:hover {
  background: var(--pf-red-bg) !important;
  border-color: var(--pf-red) !important;
}

.pf-btn-small {
  padding: 6px 14px;
  font-size: 13px;
}

.pf-btn-header-logout {
  color: var(--pf-text-secondary) !important;
  border-color: transparent !important;
  background: transparent !important;
  font-weight: 500 !important;
}

.pf-btn-header-logout:hover {
  color: var(--pf-red) !important;
  background: var(--pf-red-bg) !important;
  border-color: transparent !important;
}

.pf-btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.pf-btn-block {
  display: flex;
  width: 100%;
}

/* ─── Tables ──────────────────────────────────────────────────── */
.pf-table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
}

.pf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.pf-table th {
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  color: var(--pf-text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--pf-border);
  white-space: nowrap;
  background: var(--pf-primary-lighter);
}

.pf-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--pf-border);
  color: var(--pf-text);
  vertical-align: middle;
  background: none;
}

.pf-table tbody tr {
  transition: background 0.1s ease;
}

.pf-table tbody tr:hover {
  background: var(--pf-primary-lighter);
}

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

.pf-empty {
  text-align: center;
  color: var(--pf-text-secondary);
  padding: 32px 16px;
  font-style: italic;
}

.pf-actions {
  white-space: nowrap;
}

.pf-actions .pf-btn {
  margin-right: 6px;
}

/* ─── Zone Badges ─────────────────────────────────────────────── */
.pf-zone-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.zone-green { background: var(--pf-green-bg); color: #166534; }
.zone-yellow { background: var(--pf-yellow-bg); color: #854d0e; }
.zone-red { background: var(--pf-red-bg); color: #991b1b; }
.zone-unknown { background: var(--pf-bg); color: var(--pf-text-secondary); }

/* ─── Alerts ───────────────────────────────────────────────────── */
.pf-alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.pf-alert a {
  color: inherit;
  text-decoration: underline;
}

.pf-alert-success {
  background: var(--pf-green-bg);
  color: #166534;
  border: 1px solid var(--pf-green);
}

.pf-alert-error {
  background: var(--pf-red-bg);
  color: #991b1b;
  border: 1px solid var(--pf-red);
}

.pf-error {
  color: var(--pf-red);
  font-size: 14px;
  margin: 0 0 16px;
}

.pf-success {
  color: var(--pf-green);
  font-size: 14px;
  margin: 0 0 16px;
}

/* ─── Chart ─────────────────────────────────────────────────────── */
.pf-chart-controls {
  margin-bottom: 20px;
}

.pf-chart-wrap {
  position: relative;
  height: 360px;
}

.pf-chart-wrap canvas {
  touch-action: none;
  display: block;
  width: 100% !important;
  max-width: 100%;
}

/* ─── Date picker: desktop uses native, mobile uses custom selects ─── */

/* Desktop: show native input, hide custom selects */
.pf-date-native { display: inline-block; }
.pf-date-picker { display: none; }

/* Mobile: hide native, show custom selects styled as one field */
@media (max-width: 768px) {
  .pf-date-native { display: none; }
  .pf-date-picker {
    display: inline-flex;
    gap: 0;
    align-items: center;
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius);
    background: #f7fafc;
    overflow: hidden;
    width: 100%;
  }
  .pf-date-picker select.pf-input {
    border: none;
    border-radius: 0;
    padding: 10px 2px;
    text-align: center;
    background: transparent;
    appearance: auto;
    -webkit-appearance: auto;
    min-height: 44px;
    outline: none;
    box-shadow: none;
    font-size: 13px;
  }
  .pf-date-picker select.pf-input:focus {
    box-shadow: none;
  }
  .pf-date-picker select + select {
    border-left: 1px solid var(--pf-border);
  }
  .pf-date-day { flex: 1; }
  .pf-date-month { flex: 1.2; }
  .pf-date-year { flex: 1.2; }

  /* Filter row: inline on mobile too */
  .pf-form-inline {
    flex-direction: row;
    align-items: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .pf-form-inline .pf-form-group {
    flex: 1;
    min-width: 0;
  }
  .pf-form-inline .pf-form-group label {
    font-size: 12px;
    margin-bottom: 4px;
  }
  .pf-form-inline .pf-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 12px 4px
  }
}

/* ─── Pagination ──────────────────────────────────────────────── */
.pf-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}

.pf-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  text-decoration: none;
  color: var(--pf-text);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.pf-page-link:hover {
  border-color: var(--pf-primary);
  color: var(--pf-primary);
  background: var(--pf-primary-light);
}

.pf-page-link.active {
  background: var(--pf-primary);
  color: #fff;
  border-color: var(--pf-primary);
}

/* ─── Share Page ──────────────────────────────────────────────── */
.pf-share-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px;
}

.pf-share-title {
  text-align: center;
  margin-bottom: 32px;
  font-size: 28px;
  font-weight: 700;
  color: var(--pf-text);
}

.pf-share-link {
  font-size: 13px;
  word-break: break-all;
  color: var(--pf-primary);
}

/* ─── 404 ──────────────────────────────────────────────────────── */
.pf-error-page {
  text-align: center;
  padding: 80px 20px;
}

.pf-error-page h1 {
  font-size: 80px;
  margin: 0 0 16px;
  color: var(--pf-primary);
  font-weight: 800;
}

.pf-error-page p {
  font-size: 18px;
  color: var(--pf-text-secondary);
  margin: 0 0 24px;
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pf-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pf-two-columns {
    grid-template-columns: 1fr;
    overflow: hidden;
  }
  .pf-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pf-nav {
    display: none;
  }
  .pf-user-info {
    display: none;
  }
  .pf-hamburger {
    display: flex;
  }
  .pf-header .pf-container {
    gap: 12px;
  }
  .pf-chart-wrap {
    height: 280px;
  }
  .pf-main {
    padding: 20px 0;
  }
  .pf-container {
    padding: 0 8px;
  }
}

@media (max-width: 480px) {
  .pf-stats-grid {
    grid-template-columns: 1fr;
  }
  .pf-form-card {
    margin: 20px 0;
  }
  .pf-card {
    padding: 16px;
  }
  .pf-stat-card {
    padding: 16px;
  }
}

@media (max-width: 500px) {
  .pf-dashboard .pf-table th:nth-child(4),
  .pf-dashboard .pf-table td:nth-child(4) {
    display: none;
  }
}

@media (max-width: 460px) {
  .pf-form-inline {
    flex-wrap: wrap;
    gap: 8px;
  }
  .pf-form-inline .pf-form-group {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }
  .pf-form-inline .pf-btn {
    flex: 0 0 100%;
    padding: 10px 4px;
  }
}

/* ─── Pricing Cards (shared with subscription page) ──────────── */
.pf-pricing-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 40px 28px;
  text-align: center;
  position: relative;
}

.pf-pricing-card-featured {
  border-color: #2563eb;
  box-shadow: 0 8px 32px rgba(37,99,235,0.15);
}

.pf-pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: #fff;
  padding: 5px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pf-pricing-features {
  margin: 0 0 28px;
  text-align: left;
  font-size: 14px;
  color: var(--pf-text-secondary);
  line-height: 1.6;
}
.pf-pricing-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pf-pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--pf-border);
}
.pf-pricing-features li:last-child { border-bottom: none; }
.pf-pricing-features ul li::before {
  content: "✓";
  display: inline-block;
  color: var(--pf-green);
  font-weight: 700;
  font-size: 13px;
  margin-right: 10px;
}

/* ─── Page Title ──────────────────────────────────────────────── */
.pf-page-title {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}
.pf-page-subtitle {
  font-size: 16px;
  color: #64748b;
  margin: 0 0 40px;
}

/* ─── FAQ / Help ──────────────────────────────────────────────── */
.pf-faq {
  background: #fff;
  border-radius: 14px;
  padding: 4px 0;
}
.pf-faq-item {
  border-bottom: 1px solid #f1f5f9;
  overflow: hidden;
}
.pf-faq-item:last-child {
  border-bottom: none;
}
.pf-faq-question {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 550;
  color: #02c0e7;
  text-align: left;
  line-height: 1.5;
  gap: 12px;
  text-decoration: none;
}
.pf-faq-question span:last-child {
  border-bottom: 1px dashed #02c0e7;
}
.pf-faq-arrow {
  flex-shrink: 0;
  font-size: 14px;
  color: #02c0e7;
  transition: transform 0.25s ease;
}
.pf-faq-open .pf-faq-arrow {
  transform: rotate(90deg);
}
.pf-faq-open .pf-faq-question span:last-child {
  border-bottom-color: transparent;
}
.pf-faq-answer {
  display: none;
  padding: 0 24px 24px;
  font-size: 15px;
  line-height: 1.75;
  color: #475569;
}
.pf-faq-open .pf-faq-answer {
  display: block;
}
.pf-faq-answer p {
  margin: 0 0 12px;
}
.pf-faq-answer p:last-child {
  margin-bottom: 0;
}
.pf-faq-answer ul,
.pf-faq-answer ol {
  margin: 0 0 12px;
  padding-left: 22px;
}
.pf-faq-answer ul:last-child,
.pf-faq-answer ol:last-child {
  margin-bottom: 0;
}
.pf-faq-answer li {
  margin-bottom: 6px;
}
.pf-faq-answer strong {
  color: #0f172a;
}
.pf-faq-answer code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: #334155;
}

@media (max-width: 768px) {
  .pf-page-title {
    font-size: 24px;
  }
  .pf-faq-question {
    padding: 18px 20px;
    font-size: 15px;
  }
  .pf-faq-answer {
    padding: 0 20px 20px;
  }
}

/* ─── Subscription Cancel Modal ────────────────────────────────── */
.pf-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.pf-modal-overlay.open {
  display: flex;
}

.pf-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 460px;
  width: 100%;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.pf-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--pf-red-bg);
  color: var(--pf-red);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pf-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--pf-text);
  margin: 0 0 16px;
}

.pf-modal-pm {
  font-size: 15px;
  color: var(--pf-text);
  margin-bottom: 16px;
}

.pf-modal-pm-label {
  color: var(--pf-text-secondary);
}

.pf-modal-notice {
  background: var(--pf-red-bg);
  color: #991b1b;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.pf-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.pf-btn-danger-soft {
  background: var(--pf-red-bg) !important;
  color: #991b1b !important;
  border-color: #fca5a5 !important;
}

.pf-btn-danger-soft:hover {
  background: #fecaca !important;
  border-color: var(--pf-red) !important;
}

.pf-btn-danger-outline {
  background: transparent !important;
  color: var(--pf-red) !important;
  border-color: #fca5a5 !important;
}

.pf-btn-danger-outline:hover {
  background: var(--pf-red-bg) !important;
  border-color: var(--pf-red) !important;
  color: var(--pf-red) !important;
}
