/*
 * GFunnel — the MRR directory (/mrr). Over gf_home.css (.gfh tokens,
 * .gfh-container, .gfh-btn). Every class inc/gf_mrr_blocks.inc.php emits has a
 * rule here (tests/gf_mrr.php).
 */

.gfmrr-hero { background: radial-gradient(1000px 500px at 70% 0%, #312E81 0%, #1E1B4B 40%, #0A0A1E 80%); color: #fff; padding: 64px 0 56px; }
.gfmrr-hero .gfh-eyebrow { color: #FDBA74; }
.gfmrr-h1 { font-family: var(--gfh-font-head); font-size: clamp(32px, 5vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; margin: 12px 0 0; color: #fff; }
.gfmrr-cta { margin: 24px 0 0; }
.gfmrr-lede { font-size: 18px; line-height: 1.6; color: #CBD5E1; max-width: 640px; margin: 16px 0 0; }

.gfmrr-sec { padding: 48px 0 80px; background: var(--gfh-bg); }

.gfmrr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.gfmrr-card { background: var(--gfh-card); border: 1px solid var(--gfh-line); border-radius: var(--gfh-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--gfh-shadow); }
.gfmrr-media { display: block; aspect-ratio: 16 / 9; background: #0F172A; }
.gfmrr-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.gfmrr-thumb-ph { display: flex; align-items: center; justify-content: center; font-family: var(--gfh-font-head); font-weight: 800; font-size: 56px; color: #FDBA74; background: linear-gradient(135deg, #1E1B4B, #0A0A1E); }
.gfmrr-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gfmrr-title { font-family: var(--gfh-font-head); font-size: 19px; line-height: 1.25; margin: 0; }
.gfmrr-title a { color: var(--gfh-ink); text-decoration: none; }
.gfmrr-title a:hover { color: var(--gfh-orange-600); }
.gfmrr-summary { margin: 0; font-size: 15px; line-height: 1.55; color: var(--gfh-slate); }
.gfmrr-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.gfmrr-price { font-weight: 700; color: var(--gfh-ink); }

.gfmrr-empty { background: var(--gfh-card); border: 1px dashed var(--gfh-line-2); border-radius: var(--gfh-radius); padding: 40px 24px; text-align: center; }
.gfmrr-empty h3 { font-family: var(--gfh-font-head); margin: 0 0 8px; }
.gfmrr-empty p { margin: 0; color: var(--gfh-slate); }

@media (max-width: 560px) {
    .gfmrr-foot { flex-direction: column; align-items: flex-start; }
}

.gfmrr-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.gfmrr-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.gfmrr-btn-ghost:hover { border-color: #fff; color: #fff; }

/*
 * MRR licences (inc/gf_mrr_licence_blocks.inc.php): the offer's "Resell
 * rights" block, Your licences, the licence check and the editor's page.
 * The block renders on the offer profile, which does not load gf_home.css,
 * so every value here carries its own fallback.
 */
.gfml { display: flex; flex-direction: column; gap: 16px; font-size: 15px; line-height: 1.55; color: var(--gfh-ink, #0F172A); }
.gfml-card { background: var(--gfh-card, #fff); border: 1px solid var(--gfh-line, #E2E8F0); border-radius: var(--gfh-radius, 14px); padding: 20px 22px; }
.gfml-h { font-family: var(--gfh-font-head, inherit); font-size: 18px; line-height: 1.3; margin: 0 0 8px; }
.gfml-h a { color: inherit; text-decoration: none; }
.gfml-h a:hover { color: var(--gfh-orange-600, #EA580C); }
.gfml-muted { color: var(--gfh-slate, #475569); font-size: 14px; margin: 8px 0 0; }
.gfml-facts { margin: 8px 0 0; padding-left: 20px; }
.gfml-facts li { margin: 2px 0; }
.gfml-terms { margin: 12px 0 0; }
.gfml-terms summary { cursor: pointer; font-weight: 600; color: var(--gfh-orange-600, #EA580C); }
.gfml-terms-body { margin: 10px 0 0; padding: 14px 16px; background: var(--gfh-bg, #F8FAFC); border-radius: 10px; white-space: normal; overflow-wrap: anywhere; }
.gfml-mine { margin: 12px 0 0; font-weight: 600; }
.gfml-mine a, .gfml-code { font-family: var(--gfh-font-mono, ui-monospace, monospace); }
.gfml-code { font-size: 16px; letter-spacing: .04em; margin: 4px 0 0; }
.gfml-actions { margin: 12px 0 0; }
.gfml-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 10px; border: 0; background: #F97316; color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; font: inherit; font-weight: 700; }
.gfml-btn:hover { background: #EA580C; color: #fff; }
.gfml-btn[disabled] { opacity: .5; cursor: not-allowed; }
.gfml-btn-sm { padding: 6px 10px; font-size: 13px; }
.gfml-btn-ghost { background: transparent; color: var(--gfh-ink, #0F172A); border: 1px solid var(--gfh-line-2, #CBD5E1); }
.gfml-btn-ghost:hover { background: var(--gfh-bg, #F8FAFC); color: var(--gfh-ink, #0F172A); }
.gfml-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.gfml-badge-active { background: #DCFCE7; color: #166534; }
.gfml-badge-refunded { background: #FEF3C7; color: #92400E; }
.gfml-badge-revoked { background: #FEE2E2; color: #991B1B; }
.gfml-lic-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gfml-form { display: flex; flex-direction: column; gap: 10px; }
.gfml-label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.gfml-label input, .gfml-label textarea, .gfml-label select, .gfml-inline input { font: inherit; font-weight: 400; padding: 9px 12px; border: 1px solid var(--gfh-line-2, #CBD5E1); border-radius: 10px; background: #fff; color: #0F172A; max-width: 100%; box-sizing: border-box; }
.gfml-check { display: flex; align-items: center; gap: 8px; }
.gfml-inline { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0; }
.gfml-inline input { padding: 6px 10px; min-width: 120px; }
.gfml-table-wrap { overflow-x: auto; }
.gfml-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.gfml-table th, .gfml-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--gfh-line, #E2E8F0); vertical-align: middle; }
.gfml-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--gfh-slate, #475569); }
.gfml-flash { padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.gfml-flash-ok { background: #DCFCE7; color: #166534; }
.gfml-flash-err { background: #FEE2E2; color: #991B1B; }
.gfml-back { color: inherit; text-decoration: none; }
.gfml-back:hover { text-decoration: underline; }
