/* ==========================================================================
   JSFLIX — Membership Plans & Payment Stylesheet
   ========================================================================== */

.plans-body {
  background:
    radial-gradient(1000px 400px at 50% 0%, rgba(229, 9, 20, 0.07), transparent 60%),
    var(--ink);
  min-height: 100vh;
}

.plans-main {
  padding-top: calc(var(--header-height) + 24px);
  padding-bottom: 90px;
}

/* --- Membership Status Banner --- */
.status-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid var(--line);
  margin-bottom: 32px;
}

.status-banner.active {
  border-color: rgba(16, 185, 129, 0.3);
}

.status-banner.expired {
  border-color: rgba(239, 68, 68, 0.3);
}

.status-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.status-banner.active .status-icon-box {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.status-banner.expired .status-icon-box {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.status-meta {
  flex: 1;
  min-width: 200px;
}

.status-meta strong {
  font-size: 16px;
  display: block;
  margin-bottom: 3px;
}

.status-meta p {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
}

/* --- 2-Column Plans Layout --- */
.plans-grid-layout {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.plans-left-col,
.plans-right-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.plans-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid var(--line);
}

.plans-card-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Step 1: Plan Picker --- */
.plan-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.plan-select-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.plan-select-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.plan-select-btn.selected {
  border-color: var(--brand);
  background: rgba(229, 9, 20, 0.08);
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.25);
}

.plan-ribbon {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--brand);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}

.plan-select-label {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.plan-select-price {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 2px;
}

.plan-select-rate {
  font-size: 11px;
  color: var(--text-muted);
}

.plan-select-check {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 18px;
  color: var(--brand);
}

/* --- Step 2: PromptPay Box --- */
.promptpay-box {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.promptpay-qr-wrap {
  width: 160px;
  height: 160px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.promptpay-qr-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.promptpay-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
}

.promptpay-number {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
}

.promptpay-amount-highlight {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand);
}

.promptpay-hint {
  font-size: 12px;
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

/* --- Step 3: Slip Upload Zone --- */
.slip-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-dim);
}

.slip-dropzone:hover {
  border-color: var(--brand);
  color: #fff;
  background: rgba(229, 9, 20, 0.03);
}

.slip-dropzone i {
  font-size: 38px;
  color: var(--text-dim);
  transition: color 0.2s;
}

.slip-dropzone:hover i {
  color: var(--brand);
}

.slip-preview-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.slip-preview-img {
  width: 80px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.slip-preview-info {
  flex: 1;
  min-width: 0;
  font-size: 13px;
}

.slip-remove-btn {
  background: rgba(239, 68, 68, 0.2);
  border: none;
  color: #ef4444;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.slip-remove-btn:hover {
  background: #ef4444;
  color: #fff;
}

/* --- Orders History List --- */
.order-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.order-item-meta strong {
  font-size: 14px;
  display: block;
  margin-bottom: 2px;
}

.order-item-meta small {
  font-size: 12px;
  color: var(--text-dim);
}

/* --- Responsive Breakpoints --- */
@media (max-width: 960px) {
  .plans-grid-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .plan-options-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .promptpay-box {
    flex-direction: column;
    text-align: center;
    padding: 16px 12px;
  }
  .status-banner {
    padding: 14px 16px;
    gap: 12px;
  }
  .status-meta {
    min-width: 0;
  }
  .plans-card {
    padding: 18px 16px;
  }
  .card-header {
    margin-bottom: 16px;
  }
}

@media (max-width: 420px) {
  .status-banner strong {
    font-size: 14.5px;
  }
  .status-banner p {
    font-size: 12px;
  }
  .plans-card h2 {
    font-size: 16.5px;
  }
  .plan-option-card {
    padding: 12px 14px;
  }
}
