/* ============================================================
   MIKA Academy - Subscription System Styles
   ============================================================ */

/* ---- Header Badge ---- */
.sub-header-wrapper { align-items: center; }
.sub-header-btn {
  background: linear-gradient(135deg, #FF8C42, #FF6B00);
  color: white; border: none; border-radius: 20px;
  padding: 6px 14px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: 'Cairo', sans-serif;
  box-shadow: 0 2px 8px rgba(255,140,66,0.4);
  transition: all 0.3s; white-space: nowrap;
}
.sub-header-btn:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(255,140,66,0.5); }
.sub-header-active {
  display: flex; flex-direction: column; align-items: center;
  border: 2px solid #FF8C42; border-radius: 12px;
  padding: 4px 10px; font-size: 11px; font-weight: 700;
  color: #FF8C42; background: rgba(255,140,66,0.08);
}
.sub-days-left { font-size: 10px; color: #666; }

/* ---- Plans Page ---- */
.sub-page {
  padding: 16px; max-width: 900px; margin: 0 auto;
  font-family: 'Cairo', sans-serif;
}
.sub-header {
  text-align: center; margin-bottom: 24px;
}
.sub-header h2 {
  font-size: 24px; font-weight: 900; color: #1a1a2e; margin: 8px 0 4px;
}
.sub-header p { color: #666; font-size: 14px; }

.sub-current-badge {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border: 2px solid #4CAF50; border-radius: 12px;
  padding: 10px 16px; margin-bottom: 16px;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; color: #2E7D32; font-size: 14px;
}

.sub-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-bottom: 24px;
}

.sub-plan-card {
  background: white; border: 2px solid #ddd; border-radius: 16px;
  padding: 20px 16px; position: relative; cursor: pointer;
  transition: all 0.3s; text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.sub-plan-card:hover {
  transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.sub-plan-current {
  box-shadow: 0 4px 16px rgba(76,175,80,0.3);
}
.sub-plan-badge {
  position: absolute; top: -10px; right: 16px;
  color: white; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 10px;
}
.sub-plan-icon { font-size: 36px; margin-bottom: 8px; }
.sub-plan-name { font-size: 20px; font-weight: 900; margin-bottom: 4px; }
.sub-plan-price { font-size: 16px; font-weight: 700; color: #333; margin-bottom: 16px; }
.sub-plan-features {
  list-style: none; padding: 0; margin: 0 0 16px;
  text-align: right; font-size: 13px; color: #555;
}
.sub-plan-features li { padding: 4px 0; border-bottom: 1px solid #f0f0f0; }
.sub-plan-features li:last-child { border-bottom: none; }

.sub-btn {
  width: 100%; padding: 10px; border: none; border-radius: 10px;
  color: white; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: 'Cairo', sans-serif;
  transition: all 0.3s;
}
.sub-btn:hover { opacity: 0.9; transform: scale(1.02); }
.sub-btn-free {
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
}

.sub-guarantee {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  font-size: 13px; color: #666; padding: 16px;
  background: #f8f9fa; border-radius: 12px;
}

/* ---- Modal ---- */
.sub-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 10000; display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.sub-modal {
  background: white; border-radius: 20px; max-width: 480px; width: 100%;
  max-height: 90vh; overflow-y: auto; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  font-family: 'Cairo', sans-serif;
}
.sub-modal-close {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,0.1); border: none; border-radius: 50%;
  width: 32px; height: 32px; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.sub-modal-header {
  padding: 24px 20px 20px; text-align: center; color: white;
  border-radius: 20px 20px 0 0;
}
.sub-modal-icon { font-size: 40px; display: block; margin-bottom: 8px; }
.sub-modal-header h3 { margin: 0 0 4px; font-size: 20px; font-weight: 900; }
.sub-modal-header p { margin: 0; opacity: 0.9; font-size: 14px; }
.sub-modal-body { padding: 20px; }
.sub-modal-body h4 { margin: 0 0 12px; font-size: 16px; color: #333; }

/* Payment Methods */
.sub-payment-methods { display: flex; flex-direction: column; gap: 10px; }
.sub-payment-method {
  display: flex; align-items: center; gap: 12px;
  border: 2px solid #ddd; border-radius: 12px; padding: 12px 16px;
  cursor: pointer; transition: all 0.2s;
}
.sub-payment-method:hover { background: #f8f9fa; transform: translateX(-4px); }
.sub-pm-icon { font-size: 28px; }
.sub-pm-name { font-size: 16px; font-weight: 700; }
.sub-pm-desc { font-size: 12px; color: #666; }
.sub-pm-arrow { margin-right: auto; font-size: 18px; color: #999; }

/* Steps */
.sub-steps { margin-bottom: 16px; }
.sub-step {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px;
}
.sub-step-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: #1a3a5c; color: white; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Pay Code */
.sub-pay-code {
  background: linear-gradient(135deg, #1a3a5c, #2d6a9f);
  color: white; border-radius: 12px; padding: 16px; text-align: center;
  margin-bottom: 12px;
}
.sub-pay-code-label { font-size: 12px; opacity: 0.8; margin-bottom: 4px; }
.sub-pay-code-value {
  font-size: 22px; font-weight: 900; letter-spacing: 2px;
  font-family: monospace; margin-bottom: 4px;
}
.sub-pay-code-amount { font-size: 14px; opacity: 0.9; margin-bottom: 10px; }
.sub-copy-btn {
  background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4);
  color: white; border-radius: 8px; padding: 6px 14px;
  font-size: 13px; cursor: pointer; font-family: 'Cairo', sans-serif;
}
.sub-pay-note { font-size: 12px; color: #e53935; text-align: center; margin-bottom: 12px; }

/* Confirm Section */
.sub-confirm-section { margin-top: 16px; }
.sub-confirm-section p { font-size: 14px; color: #333; margin-bottom: 8px; }
.sub-phone-input {
  width: 100%; padding: 10px 14px; border: 2px solid #ddd; border-radius: 10px;
  font-size: 16px; font-family: 'Cairo', sans-serif; text-align: center;
  margin-bottom: 10px; box-sizing: border-box; direction: ltr;
}
.sub-phone-input:focus { border-color: #2196F3; outline: none; }
.sub-confirm-btn {
  width: 100%; padding: 12px; border: none; border-radius: 10px;
  color: white; font-size: 16px; font-weight: 700;
  cursor: pointer; font-family: 'Cairo', sans-serif;
}
.sub-support-note {
  text-align: center; font-size: 13px; color: #666; margin-top: 12px;
}
.sub-support-note a { color: #25D366; font-weight: 700; }

/* Success Modal */
.sub-modal-success { text-align: center; padding: 32px 24px; }
.sub-success-animation { font-size: 64px; animation: bounceIn 0.6s; margin-bottom: 12px; }
.sub-modal-success h2 { font-size: 24px; font-weight: 900; color: #1a1a2e; margin-bottom: 8px; }
.sub-modal-success p { color: #555; font-size: 15px; margin-bottom: 4px; }
.sub-success-features { margin: 16px 0; text-align: right; }
.sub-success-features div { padding: 6px 0; font-size: 14px; color: #333; border-bottom: 1px solid #f0f0f0; }

/* Upgrade Prompt */
.sub-modal-upgrade { text-align: center; padding: 32px 24px; }
.sub-modal-upgrade h3 { font-size: 18px; font-weight: 900; color: #1a1a2e; margin-bottom: 8px; }
.sub-modal-upgrade p { color: #555; font-size: 14px; margin-bottom: 16px; }
.sub-upgrade-plans { display: flex; flex-direction: column; gap: 10px; }
.sub-btn-outline {
  width: 100%; padding: 10px; border: 2px solid #ddd; border-radius: 10px;
  background: transparent; color: #666; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: 'Cairo', sans-serif;
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 600px) {
  .sub-plans-grid { grid-template-columns: 1fr 1fr; }
  .sub-guarantee { gap: 12px; font-size: 12px; }
}
@media (max-width: 400px) {
  .sub-plans-grid { grid-template-columns: 1fr; }
}
