/*
Theme Name: RebatePort
Theme URI: https://rebateport.com
Author: Cuong Cao
Description: Dark, mint-accent theme for a Forex & Crypto trading-rebate (cashback) site. Designed to work with the Rebate Brokers plugin ([rh_brokers], [rh_stats], [rh_account]).
Version: 1.1.2
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: rebateport
*/

:root{--bg:#0B0F17;--bg2:#121826;--bg3:#1B2335;--line:#1F2838;--line2:#2B3648;--text:#E8ECF2;--sub:#B6C0D0;--muted:#9AA6B8;--accent:#3DF2A3;--accent-dark:#163A2B;--warn:#F2C94C;--font:Inter,system-ui,sans-serif;--display:Sora,Inter,sans-serif;--max:1280px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font:16px/1.6 var(--font);-webkit-font-smoothing:antialiased}
a{color:var(--accent)}a:hover{color:#8FFBCF}
img{max-width:100%;height:auto}
h1,h2,h3,h4{font-family:var(--display);color:#fff;letter-spacing:-.5px;line-height:1.1;margin:0}
.wrap{max-width:var(--max);margin:0 auto;padding:0 24px}
.section{padding:80px 0}
.section-alt{background:var(--bg2);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.kicker{display:block;color:var(--accent);font-size:13px;font-weight:600;letter-spacing:1.2px;text-transform:uppercase;margin-bottom:12px}
.h2{font-size:40px;font-weight:700;letter-spacing:-1px}
.lead{color:var(--sub);font-size:16px;margin:12px 0 0;max-width:620px}
.btn{display:inline-block;text-decoration:none;font-weight:600;font-size:16px;padding:16px 26px;border-radius:12px;border:1px solid transparent;cursor:pointer;font-family:var(--font);line-height:1}
.btn-primary{background:var(--accent);color:var(--bg)!important}
.btn-ghost{background:var(--bg2);border-color:var(--line2);color:var(--text)!important}
.btn-dark{background:var(--bg);color:#fff!important}
.btn-outline-dark{border-color:var(--bg);color:var(--bg)!important}
.btn-sm{font-size:14px;padding:10px 16px;border-radius:10px}
.card{background:var(--bg2);border:1px solid var(--line);border-radius:18px;padding:28px}
.muted{color:var(--muted)}.small{font-size:13px}

/* top bar + header */
.topbar{background:var(--bg2);border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}
.topbar .wrap{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;align-items:center;padding-top:8px;padding-bottom:8px}
.dot{width:8px;height:8px;border-radius:999px;background:var(--accent);display:inline-block;margin-right:8px}
.topbar a{color:var(--muted);text-decoration:none;margin-left:20px}
.site-header .wrap{display:flex;flex-wrap:wrap;gap:24px;justify-content:space-between;align-items:center;padding-top:18px;padding-bottom:18px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text)!important;font-family:var(--display);font-weight:700;font-size:20px}
.brand-mark{width:36px;height:36px;border-radius:10px;background:var(--accent);color:var(--bg);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:18px}
.brand img{height:36px;width:auto}
.nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:28px;font-size:15px;font-weight:500}
.nav a{color:var(--text);text-decoration:none}.nav a:hover{color:var(--accent)}
.header-cta{display:flex;gap:12px;align-items:center}
.header-cta .btn{font-size:15px;padding:12px 20px;border-radius:10px}
.menu-toggle{display:none;background:none;border:1px solid var(--line2);color:var(--text);border-radius:10px;padding:8px 12px;cursor:pointer}

/* hero */
.hero{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.hero .wrap{display:flex;flex-wrap:wrap;gap:48px;align-items:center;padding-top:72px;padding-bottom:56px}
.hero-copy{flex:1 1 520px;min-width:0;display:flex;flex-direction:column;gap:24px}
.badge{display:inline-flex;align-self:flex-start;align-items:center;gap:8px;padding:6px 12px;border:1px solid #2A6B52;border-radius:999px;color:var(--accent);font-size:13px;font-weight:500}
.hero h1{font-size:60px;font-weight:800;letter-spacing:-1.5px;line-height:1.05}
.hero p{font-size:18px;color:var(--sub);margin:0;max-width:560px}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px}
.checks{display:flex;flex-wrap:wrap;gap:28px;color:var(--muted);font-size:14px;padding-top:8px}
.checks span::before{content:"✓";color:var(--accent);font-weight:700;margin-right:8px}
.hero-panel{flex:0 1 440px;min-width:0;background:var(--bg2);border:1px solid var(--line);border-radius:20px;padding:28px;display:flex;flex-direction:column;gap:20px}
.panel-head{display:flex;justify-content:space-between;align-items:center;font-family:var(--display);font-weight:600;font-size:15px}
.panel-head em{font-style:normal;font-family:var(--font);font-size:12px;color:var(--accent)}
.stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.stat{background:var(--bg);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:6px}
.stat span{font-size:12px;color:var(--muted)}
.stat strong{font-family:var(--display);font-size:26px;font-weight:700;color:#fff}
.stat strong.accent{color:var(--accent)}

/* partner strip */
.partners{background:var(--bg2);border-bottom:1px solid var(--line)}
.partners .wrap{display:flex;flex-wrap:wrap;gap:16px 40px;justify-content:center;align-items:center;padding-top:20px;padding-bottom:20px;color:var(--muted);font-family:var(--display);font-weight:600;font-size:15px;letter-spacing:.5px}

/* steps + calculator */
.two-col{display:flex;flex-wrap:wrap;gap:48px;align-items:stretch}
.two-col>*{flex:1 1 440px;min-width:0}
.steps{display:flex;flex-direction:column}
.step{display:flex;gap:20px;padding:20px 0;border-bottom:1px solid var(--line)}
.step:last-child{border-bottom:0}
.step-no{flex:none;width:40px;height:40px;border-radius:999px;border:1px solid var(--accent);color:var(--accent);display:flex;align-items:center;justify-content:center;font-family:var(--display);font-weight:700}
.step h3{font-size:18px;font-family:var(--font);margin-bottom:6px}
.step p{margin:0;color:var(--sub);font-size:15px}
.calc{background:var(--bg);border:1px solid var(--line);border-radius:20px;padding:32px;display:flex;flex-direction:column;gap:18px}
.calc h3{font-size:22px}
.calc label{font-size:13px;font-weight:500;color:var(--sub);display:block;margin-bottom:6px}
.calc input,.calc select{width:100%;background:var(--bg2);border:1px solid var(--line2);color:var(--text);border-radius:10px;padding:12px 14px;font:15px var(--font)}
.calc-result{background:var(--bg2);border-radius:14px;padding:20px}
.calc-result span{font-size:13px;color:var(--muted);display:block}
.calc-result strong{font-family:var(--display);font-size:36px;font-weight:800;color:var(--accent);letter-spacing:-1px;display:block}

/* why */
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.feature h3{font-size:18px;font-family:var(--font);margin:14px 0 10px}
.feature p{margin:0;color:var(--sub);font-size:15px}
.feature svg{width:28px;height:28px;stroke:var(--accent);fill:none;stroke-width:1.8}

/* faq */
.faq{display:flex;flex-wrap:wrap;gap:48px}
.faq-intro{flex:0 1 380px}.faq-list{flex:1 1 560px;min-width:0}
.faq details{border-bottom:1px solid var(--line);padding:18px 0}
.faq summary{cursor:pointer;font-weight:600;font-size:17px;color:#fff;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq p{margin:12px 0 0;color:var(--sub);font-size:15px}

/* posts */
.posts-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:32px}
.post-card{background:var(--bg);border:1px solid var(--line);border-radius:18px;overflow:hidden;text-decoration:none;color:var(--text)!important;display:flex;flex-direction:column}
.post-card .thumb{height:160px;background:var(--bg3);display:flex;align-items:center;justify-content:center;overflow:hidden}
.post-card .thumb img{width:100%;height:100%;object-fit:cover}
.post-card .body{padding:20px;display:flex;flex-direction:column;gap:10px}
.post-card .cat{font-size:12px;color:var(--accent);font-weight:600}
.post-card h3{font-size:17px;font-family:var(--font);line-height:1.4}

/* cta band */
.cta-band{background:var(--accent);color:var(--bg)}
.cta-band .wrap{display:flex;flex-wrap:wrap;gap:24px;justify-content:space-between;align-items:center;padding-top:56px;padding-bottom:56px}
.cta-band h2{color:var(--bg);font-size:34px;font-weight:800;letter-spacing:-1px}
.cta-band p{margin:8px 0 0;color:var(--accent-dark)}

/* footer */
.site-footer{border-top:1px solid var(--line);padding:56px 0 32px}
.footer-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px}
.site-footer h4{font-size:16px;font-family:var(--font);margin-bottom:10px}
.site-footer ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;font-size:14px}
.site-footer li a{color:var(--muted);text-decoration:none}
.site-footer .about{font-size:14px;color:var(--muted)}
.footer-bottom{border-top:1px solid var(--line);margin-top:40px;padding-top:20px;font-size:12px;color:#8491A5;display:flex;flex-direction:column;gap:12px}
.footer-bottom .row{display:flex;flex-wrap:wrap;gap:16px 24px;justify-content:space-between}
.footer-bottom a{color:#8491A5;text-decoration:none;margin-left:20px}

/* inner pages */
.page-hero{padding:56px 0 32px;border-bottom:1px solid var(--line)}
.page-hero h1{font-size:44px;font-weight:800;letter-spacing:-1px}
.content{padding:48px 0;max-width:820px}
.content.wide{max-width:var(--max)}
.entry{color:var(--sub);font-size:17px}
.entry h2,.entry h3{color:#fff;margin:32px 0 12px}
.entry img{border-radius:14px}
.entry blockquote{border-left:3px solid var(--accent);margin:0;padding:4px 20px;color:var(--text)}
.entry pre,.entry code{background:var(--bg2);border:1px solid var(--line2);border-radius:8px}
.entry pre{padding:16px;overflow:auto}
.entry table{width:100%;border-collapse:collapse}.entry td,.entry th{border:1px solid var(--line);padding:10px}
.posts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.pagination{display:flex;gap:8px;justify-content:center;margin-top:40px}
.pagination a,.pagination span{padding:10px 14px;border:1px solid var(--line2);border-radius:10px;text-decoration:none;color:var(--text)}
.pagination .current{background:var(--accent);color:var(--bg);border-color:var(--accent)}
.broker-hero{display:flex;flex-wrap:wrap;gap:24px;align-items:center}
.broker-hero .rh-logo{width:72px;height:72px;border-radius:18px;font-size:24px}
.broker-facts{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.fact{background:var(--bg2);border:1px solid var(--line);border-radius:14px;padding:12px 16px}
.fact span{display:block;font-size:12px;color:var(--muted)}
.fact strong{font-family:var(--display);font-size:20px;color:var(--accent)}

@media (max-width:1024px){.grid3,.posts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero h1{font-size:48px}}
@media (max-width:760px){.section{padding:56px 0}.hero h1{font-size:38px}.h2{font-size:30px}.grid3,.posts-grid,.footer-grid{grid-template-columns:1fr}.nav{display:none;width:100%}.nav.is-open{display:block}.nav ul{flex-direction:column;gap:14px}.menu-toggle{display:inline-block}.header-cta .btn-text{display:none}}

.lang-switch{margin-left:20px}
.lang-switch select{background:var(--bg);color:var(--text);border:1px solid var(--line2);border-radius:999px;padding:4px 10px;font:500 12px var(--font);cursor:pointer}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.howto{margin-top:8px}
.howto ol{margin:12px 0 0;padding-left:20px;color:var(--sub)}
.howto li{margin-bottom:8px}
.crumbs{font-size:13px;color:var(--muted);margin-bottom:16px}
.crumbs a{color:var(--muted);text-decoration:none}
