/* ── Video Generator Pro – Frontend CSS ─────────────────────────────────── */

/* ── Pricing Page ──────────────────────────────────────────────────────── */
.vg-pricing-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 20px; text-align: center; }
.vg-pricing-title    { font-size: 36px; font-weight: 800; margin-bottom: 8px; }
.vg-pricing-subtitle { color: #6b7280; font-size: 18px; margin-bottom: 32px; }

.vg-billing-toggle { display: inline-flex; background: #f3f4f6; border-radius: 50px; padding: 4px; margin-bottom: 40px; gap: 4px; }
.vg-toggle-btn { background: none; border: none; padding: 10px 24px; border-radius: 50px; cursor: pointer; font-size: 15px; font-weight: 500; color: #6b7280; transition: all .2s; }
.vg-toggle-btn.active { background: #fff; color: #1f2937; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.vg-badge { background: #10b981; color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 20px; margin-right: 4px; vertical-align: middle; }

.vg-plans-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-bottom: 32px; }
@media(max-width:768px) { .vg-plans-grid { grid-template-columns: 1fr; } }

.vg-plan-card { background: #fff; border: 2px solid #e5e7eb; border-radius: 16px; padding: 32px 28px; position: relative; transition: box-shadow .2s; }
.vg-plan-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.1); }
.vg-plan-popular { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,.15); }
.vg-popular-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: #8b5cf6; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 16px; border-radius: 20px; white-space: nowrap; }

.vg-plan-header h3 { font-size: 22px; font-weight: 700; margin: 0 0 12px; }
.vg-plan-price { margin-bottom: 24px; }
.vg-amount { font-size: 48px; font-weight: 800; color: #1f2937; }
.vg-period { font-size: 16px; color: #9ca3af; }

.vg-plan-features { list-style: none; padding: 0; margin: 0 0 28px; text-align: left; }
.vg-plan-features li { padding: 8px 0; font-size: 15px; color: #374151; border-bottom: 1px solid #f3f4f6; }
.vg-plan-features li:last-child { border-bottom: none; }

.vg-buy-btn, .vg-cta-btn {
    display: block; width: 100%; padding: 14px; border-radius: 10px; font-size: 16px; font-weight: 700;
    cursor: pointer; border: none; text-decoration: none; text-align: center;
    background: linear-gradient(135deg, #667eea, #764ba2); color: #fff !important;
    transition: opacity .2s;
}
.vg-buy-btn:hover, .vg-cta-btn:hover { opacity: .9; }
.vg-buy-btn:disabled { opacity: .5; cursor: not-allowed; }
.vg-plan-popular .vg-buy-btn { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

.vg-pricing-note { color: #9ca3af; font-size: 14px; }

/* ── Result Pages ──────────────────────────────────────────────────────── */
.vg-result-page { text-align: center; padding: 80px 20px; }
.vg-result-icon { font-size: 80px; margin-bottom: 20px; }
.vg-result-page h2 { font-size: 32px; margin-bottom: 12px; }
.vg-result-page p { color: #6b7280; font-size: 18px; margin-bottom: 32px; }
.vg-result-page .vg-cta-btn { display: inline-block; width: auto; padding: 14px 36px; }

/* ── Dashboard ─────────────────────────────────────────────────────────── */
.vg-panel { max-width: 960px; margin: 0 auto; font-family: inherit; }

.vg-no-plan { text-align: center; padding: 80px 20px; }
.vg-no-plan-content h2 { font-size: 28px; margin: 16px 0 8px; }
.vg-no-plan-content p  { color: #6b7280; margin-bottom: 24px; }
.vg-no-plan .vg-cta-btn { display: inline-block; width: auto; padding: 14px 36px; }

/* Status Bar */
.vg-status-bar { display: flex; align-items: center; gap: 20px; background: linear-gradient(135deg,#667eea,#764ba2); color: #fff; padding: 20px 24px; border-radius: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.vg-status-left  { display: flex; flex-direction: column; gap: 6px; }
.vg-status-center { flex: 1; }
.vg-status-right { display: flex; flex-direction: column; gap: 8px; }
.vg-plan-badge   { background: rgba(255,255,255,.25); padding: 4px 14px; border-radius: 20px; font-size: 14px; font-weight: 700; display: inline-block; }
.vg-billing-type { font-size: 13px; opacity: .85; }
.vg-quota-numbers { font-size: 15px; margin-bottom: 6px; }
.vg-quota-numbers strong { font-size: 24px; }
.vg-quota-bar  { background: rgba(255,255,255,.25); border-radius: 10px; height: 8px; overflow: hidden; }
.vg-quota-fill { background: #fff; height: 100%; border-radius: 10px; transition: width .4s; }
.vg-reset-note { font-size: 12px; opacity: .75; margin-top: 4px; }
.vg-upgrade-btn { background: rgba(255,255,255,.9); color: #764ba2 !important; padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 700; text-decoration: none; text-align: center; }
.vg-cancel-btn  { background: rgba(239,68,68,.2); color: #fff; border: 1px solid rgba(255,255,255,.3); padding: 7px 14px; border-radius: 8px; font-size: 12px; cursor: pointer; }

/* Create Box */
.vg-create-box { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 28px; margin-bottom: 28px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.vg-create-box h3 { margin: 0 0 20px; font-size: 20px; }
.vg-form-group { margin-bottom: 16px; }
.vg-form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; color: #374151; }
.vg-hint { font-weight: 400; color: #9ca3af; font-size: 12px; margin-left: 8px; }
.vg-form-group textarea, .vg-form-group select {
    width: 100%; padding: 11px 14px; border: 1.5px solid #d1d5db; border-radius: 9px;
    font-size: 14px; box-sizing: border-box; transition: border-color .2s; resize: vertical;
}
.vg-form-group textarea:focus, .vg-form-group select:focus { outline: none; border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,.12); }
.vg-char-count { text-align: right; font-size: 12px; color: #9ca3af; margin-top: 4px; }
.vg-form-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media(max-width:600px) { .vg-form-row { grid-template-columns: 1fr; } }
.vg-generate-btn { width: 100%; padding: 14px; background: linear-gradient(135deg,#667eea,#764ba2); color: #fff; border: none; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; transition: opacity .2s; margin-top: 8px; }
.vg-generate-btn:hover { opacity: .9; }
.vg-generate-btn:disabled { opacity: .55; cursor: not-allowed; }
.vg-credits { background: rgba(255,255,255,.25); padding: 3px 10px; border-radius: 20px; font-size: 13px; }

/* Messages */
.vg-message { margin-top: 12px; padding: 12px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.vg-msg-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.vg-msg-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.vg-out-of-credits { text-align: center; padding: 32px; background: #fef3c7; border-radius: 12px; margin-bottom: 28px; }
.vg-out-of-credits p { margin: 0 0 16px; font-weight: 600; color: #92400e; }
.vg-out-of-credits .vg-cta-btn { display: inline-block; width: auto; padding: 12px 28px; }

/* Video History */
.vg-history h3  { font-size: 18px; margin-bottom: 16px; }
.vg-count       { background: #e5e7eb; padding: 2px 10px; border-radius: 20px; font-size: 13px; font-weight: normal; }
.vg-empty-state { text-align: center; padding: 48px; background: #f9fafb; border-radius: 12px; color: #9ca3af; }
.vg-jobs-grid   { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 16px; }

.vg-job-card { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 12px; padding: 16px; transition: box-shadow .2s; }
.vg-job-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.vg-job-processing { border-right: 4px solid #3b82f6; }
.vg-job-completed  { border-right: 4px solid #10b981; }
.vg-job-failed     { border-right: 4px solid #ef4444; }
.vg-job-pending    { border-right: 4px solid #f59e0b; }

.vg-job-top    { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.vg-job-dur    { background: #f3f4f6; padding: 2px 8px; border-radius: 20px; font-size: 12px; font-weight: 400; }
.vg-job-num    { margin-left: auto; color: #9ca3af; font-size: 12px; font-weight: 400; }
.vg-job-prompt { color: #4b5563; font-size: 13px; line-height: 1.5; min-height: 38px; margin-bottom: 12px; }
.vg-job-bottom { display: flex; align-items: center; gap: 8px; border-top: 1px solid #f3f4f6; padding-top: 10px; flex-wrap: wrap; }
.vg-job-status { font-size: 13px; font-weight: 600; }
.vg-view-post  { margin-left: auto; background: #8b5cf6; color: #fff !important; padding: 4px 12px; border-radius: 6px; font-size: 12px; text-decoration: none; }
.vg-view-post:hover { background: #7c3aed; }
.vg-job-date   { color: #9ca3af; font-size: 12px; }

/* Login notice */
.vg-login-notice { background: #eff6ff; border: 1px solid #bfdbfe; padding: 16px 20px; border-radius: 10px; font-size: 15px; }
