/* HitPro Recharge Page Styles */

.hp-recharge-section { padding: 40px 0; }

.hp-recharge-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; }

/* Form Card */
.hp-recharge-form-wrapper .hp-card { padding: 32px; }

/* Steps */
.hp-recharge-steps { display: flex; align-items: center; gap: 0; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--hp-gray-100); }

.hp-step { display: flex; align-items: center; gap: 8px; }
.hp-step-num { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; background: var(--hp-gray-100); color: var(--hp-gray-400); transition: all 0.3s; }
.hp-step-text { font-size: 0.85rem; font-weight: 500; color: var(--hp-gray-400); }
.hp-step.hp-step-active .hp-step-num { background: var(--hp-violet); color: #fff; }
.hp-step.hp-step-active .hp-step-text { color: var(--hp-primary); font-weight: 600; }
.hp-step.hp-step-complete .hp-step-num { background: var(--hp-emerald); color: #fff; }
.hp-step-line { flex: 1; height: 2px; background: var(--hp-gray-200); margin: 0 12px; }

/* Country select */
.hp-country-select-wrapper { position: relative; }
.hp-country-select-wrapper .hp-select { font-size: 1rem; padding: 12px 16px; }

/* Phone input */
.hp-phone-input-wrapper { display: flex; align-items: center; border: 1px solid var(--hp-gray-300); border-radius: var(--hp-radius-md); overflow: hidden; }
.hp-phone-prefix { padding: 12px 14px; background: var(--hp-gray-50); border-right: 1px solid var(--hp-gray-200); font-weight: 600; color: var(--hp-gray-600); white-space: nowrap; min-width: 60px; text-align: center; }
.hp-phone-input-wrapper .hp-input { border: none; border-radius: 0; font-size: 1.1rem; letter-spacing: 0.5px; }
.hp-phone-input-wrapper .hp-input:focus { box-shadow: none; }

/* Operators grid */
.hp-operators-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.hp-operator-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 12px; border: 2px solid var(--hp-gray-200); border-radius: var(--hp-radius-md); background: #fff; cursor: pointer; transition: all 0.2s; font-family: inherit; text-align: center; }
.hp-operator-btn:hover { border-color: var(--hp-violet); background: rgba(124,58,237,0.02); }
.hp-operator-btn.active { border-color: var(--hp-violet); background: rgba(124,58,237,0.05); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }
.hp-operator-btn img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; }
.hp-operator-btn i { font-size: 1.5rem; color: var(--hp-violet); }
.hp-operator-btn span { font-size: 0.8rem; font-weight: 600; color: var(--hp-gray-700); }

/* Amounts grid */
.hp-amounts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.hp-amount-btn { padding: 14px 10px; border: 2px solid var(--hp-gray-200); border-radius: var(--hp-radius-md); background: #fff; cursor: pointer; text-align: center; transition: all 0.2s; font-family: inherit; }
.hp-amount-btn:hover { border-color: var(--hp-violet); }
.hp-amount-btn.active { border-color: var(--hp-violet); background: var(--hp-violet); color: #fff; }
.hp-amount-value { font-weight: 700; font-size: 1rem; }

/* Custom amount */
.hp-amount-input-wrapper { display: flex; align-items: center; border: 1px solid var(--hp-gray-300); border-radius: var(--hp-radius-md); overflow: hidden; }
.hp-amount-currency { padding: 12px 14px; background: var(--hp-gray-50); border-right: 1px solid var(--hp-gray-200); font-weight: 600; }
.hp-amount-input-wrapper .hp-input { border: none; border-radius: 0; font-size: 1.1rem; }
.hp-amount-input-wrapper .hp-input:focus { box-shadow: none; }
.hp-amount-range { font-size: 0.8rem; color: var(--hp-gray-500); margin-top: 6px; }

/* Actions */
.hp-recharge-actions { display: flex; gap: 12px; justify-content: space-between; margin-top: 24px; }
.hp-btn-block { width: 100%; }

/* Confirmation */
.hp-confirmation-card { background: var(--hp-gray-50); border-radius: var(--hp-radius-lg); padding: 24px; margin-bottom: 24px; }
.hp-confirmation-card h3 { margin: 0 0 16px; font-weight: 700; }
.hp-conf-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 0.95rem; }
.hp-conf-row span:last-child { font-weight: 600; }
.hp-conf-divider { height: 1px; background: var(--hp-gray-200); margin: 8px 0; }
.hp-conf-total { font-size: 1.1rem; font-weight: 700; }
.hp-conf-total span:last-child { color: var(--hp-violet); font-size: 1.2rem; }

/* Loading */
.hp-recharge-loading { text-align: center; padding: 60px 0; }
.hp-spinner { width: 48px; height: 48px; border: 4px solid var(--hp-gray-200); border-top-color: var(--hp-violet); border-radius: 50%; animation: hp-spin 0.8s linear infinite; margin: 0 auto 16px; }
.hp-spinner-sm { width: 20px; height: 20px; border: 3px solid var(--hp-gray-200); border-top-color: var(--hp-violet); border-radius: 50%; animation: hp-spin 0.8s linear infinite; display: inline-block; }
@keyframes hp-spin { to { transform: rotate(360deg); } }

/* Success */
.hp-recharge-success { text-align: center; padding: 40px 0; }
.hp-success-icon { font-size: 4rem; color: var(--hp-emerald); margin-bottom: 16px; }
.hp-success-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }

/* Sidebar */
.hp-recharge-sidebar .hp-card { padding: 20px; margin-bottom: 16px; }
.hp-recharge-sidebar .hp-card h4 { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; margin: 0 0 8px; }
.hp-recharge-sidebar .hp-card h4 i { color: var(--hp-violet); }
.hp-recharge-sidebar .hp-card p { font-size: 0.85rem; color: var(--hp-gray-500); margin: 0; line-height: 1.5; }

/* Page Header */
.hp-page-header { padding: 48px 0 36px; text-align: center; }
.hp-page-header h1 { font-size: 2rem; font-weight: 800; margin: 8px 0; }
.hp-page-header p { font-size: 1rem; opacity: 0.8; margin: 0; }
.hp-page-header .hp-overline { display: inline-flex; margin: 0 auto 12px; }
.hp-page-header-violet { background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #4C1D95 100%); color: #fff; }
.hp-page-header-emerald { background: linear-gradient(135deg, #064E3B 0%, #065F46 50%, #047857 100%); color: #fff; }

/* Bundle cards */
.hp-bundle-card { padding: 16px 12px; border: 2px solid var(--hp-gray-200); border-radius: var(--hp-radius-md); background: #fff; cursor: pointer; transition: all 0.2s; text-align: center; }
.hp-bundle-card:hover { border-color: var(--hp-violet); background: rgba(124,58,237,0.02); }
.hp-bundle-card.active { border-color: var(--hp-violet); background: rgba(124,58,237,0.06); box-shadow: 0 0 0 3px rgba(124,58,237,0.12); }
.hp-bundle-price { font-weight: 700; font-size: 1.1rem; color: var(--hp-primary); margin-bottom: 4px; }
.hp-bundle-name { font-weight: 600; font-size: 0.82rem; color: var(--hp-violet); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.03em; }
.hp-bundle-desc { font-size: 0.78rem; color: var(--hp-gray-500); line-height: 1.3; }

/* Amount tabs */
.hp-amount-tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 2px solid var(--hp-gray-200); }
.hp-amount-tab { display: flex; align-items: center; gap: 6px; padding: 12px 24px; font-family: inherit; font-size: 0.9rem; font-weight: 600; color: var(--hp-gray-500); background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; transition: all 0.2s; }
.hp-amount-tab:hover { color: var(--hp-violet); }
.hp-amount-tab.active { color: var(--hp-violet); border-bottom-color: var(--hp-violet); }
.hp-amount-tab i { font-size: 0.85rem; }
.hp-tab-content { animation: hp-fadeIn 0.3s ease; }

/* Bundle items (list style for Bundles tab) */
.hp-bundles-list { display: flex; flex-direction: column; gap: 10px; }
.hp-bundle-item { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border: 2px solid var(--hp-gray-200); border-radius: var(--hp-radius-md); background: #fff; cursor: pointer; transition: all 0.2s; }
.hp-bundle-item:hover { border-color: var(--hp-violet); background: rgba(124,58,237,0.02); }
.hp-bundle-item.active { border-color: var(--hp-violet); background: rgba(124,58,237,0.06); box-shadow: 0 0 0 3px rgba(124,58,237,0.12); }
.hp-bundle-item-left { flex: 1; }
.hp-bundle-item-name { font-weight: 700; font-size: 0.95rem; color: var(--hp-primary); margin-bottom: 3px; }
.hp-bundle-item-desc { font-size: 0.82rem; color: var(--hp-gray-500); line-height: 1.3; }
.hp-bundle-item-price { font-weight: 700; font-size: 1.15rem; color: var(--hp-violet); white-space: nowrap; margin-left: 16px; }

/* Detected operator badge */
.hp-detected-badge { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: rgba(16,185,129,0.08); color: var(--hp-emerald-dark); border-radius: var(--hp-radius-full); font-size: 0.85rem; font-weight: 500; margin-top: 8px; animation: hp-fadeIn 0.3s ease; }
.hp-detected-badge i { color: var(--hp-emerald); }

/* Responsive */
@media (max-width: 768px) {
    .hp-recharge-layout { grid-template-columns: 1fr; }
    .hp-recharge-sidebar { display: none; }
    .hp-recharge-form-wrapper .hp-card { padding: 20px; }
    .hp-step-text { display: none; }
    .hp-operators-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-amounts-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-recharge-actions { flex-direction: column-reverse; }
    .hp-success-actions { flex-direction: column; }
    .hp-page-header { padding: 32px 0 24px; }
    .hp-page-header h1 { font-size: 1.5rem; }
}
