/*
Theme Name: OFA Safi Premium
Theme URI: https://ofasafi.com/
Author: OFA Safi Custom Build
Description: Premium social-commerce visual theme for OFA Safi Community Core. Members-only experience when paired with the companion plugin.
Version: 8.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ofa-premium
License: GPL-2.0-or-later
*/
:root{--red:#d71920;--ink:#151b27;--muted:#6d7380;--bg:#f5f6f8;--line:#eceef1}*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);line-height:1.5}a{color:var(--red)}.site-head{position:sticky;top:0;z-index:100;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 3px 15px #00000007}.head-inner{height:70px;max-width:1320px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:0 24px;gap:25px}.ofa-logo{text-decoration:none;color:var(--red);font-weight:950;font-size:27px;letter-spacing:-1.5px}.ofa-logo span{color:#1d2532}.head-links{display:flex;align-items:center;gap:20px}.head-links a{text-decoration:none;font-size:14px;font-weight:700;color:#3f4754}.head-links a:hover{color:var(--red)}.button-red{background:var(--red);color:white!important;border-radius:11px;padding:10px 17px;display:inline-block;text-decoration:none;font-weight:800}.site-main{min-height:75vh}.site-footer{border-top:1px solid #eee;background:#fff;padding:30px 20px;text-align:center;font-size:13px;color:var(--muted)}.site-footer strong{color:var(--red)}.home-wrap{max-width:1200px;margin:0 auto;padding:58px 24px}.hero{background:radial-gradient(circle at 88% 25%,#fa5f64 0%,#db1e2a 27%,#ad1423 70%);border-radius:30px;color:#fff;padding:62px 6%;display:grid;grid-template-columns:1.3fr .8fr;gap:36px;align-items:center;box-shadow:0 22px 55px #95191e20}.hero h1{font-size:clamp(35px,4vw,64px);letter-spacing:-.05em;line-height:1.08;margin:0 0 18px}.hero p{font-size:17px;max-width:550px;opacity:.93}.hero .button-red{background:white;color:#c61c29!important;margin-top:12px}.hero-art{background:#fff2;border:1px solid #fff5;min-height:260px;border-radius:27px;display:flex;align-items:center;justify-content:center;font-size:85px}.pills{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px}.pill{border:1px solid #fff9;background:#ffffff16;border-radius:100px;padding:7px 12px;font-size:12px;font-weight:700}.premium-heading{font-size:29px;letter-spacing:-.025em;margin:40px 0 15px}.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.feature-tile{background:#fff;padding:24px;border-radius:18px;border:1px solid #eee}.feature-tile b{display:block;font-size:17px;margin:8px 0}.feature-tile p{color:#6f7783;font-size:14px;margin:0}.feature-icon{font-size:30px}.content-shell{max-width:1050px;margin:30px auto;background:#fff;padding:28px;border-radius:20px}.content-shell h1{margin-top:0}.site-footer a{color:inherit}.wp-block-image img{max-width:100%}@media(max-width:850px){.hero{grid-template-columns:1fr}.hero-art{min-height:125px;font-size:56px}.feature-grid{grid-template-columns:repeat(2,1fr)}.head-links{gap:9px}.head-links a{font-size:12px}}@media(max-width:530px){.head-inner{padding:0 12px}.ofa-logo{font-size:22px}.head-links a:nth-child(2){display:none}.hero{padding:32px 23px}.home-wrap{padding:22px 12px}.feature-grid{grid-template-columns:1fr 1fr;gap:8px}.feature-tile{padding:14px}.feature-tile b{font-size:14px}.feature-tile p{font-size:12px}.content-shell{margin:12px;padding:17px}}

/* Premium 2.0 overrides */
:root{--red:#ed0000;--darkred:#b40b1e;--ink:#161820;--muted:#707783;--bg:#f7f8fb}body{background:#f7f8fb}.site-head{box-shadow:0 10px 32px #191a2910}.head-inner{height:85px}.ofa-logo img{width:167px;height:62px;object-fit:contain}.head-links a.button-red{background:linear-gradient(135deg,#f21925,#b60011);color:#fff}.hero{background:linear-gradient(128deg,#9f101c 0%,#df0822 52%,#ff4952 100%);box-shadow:0 30px 80px #c010282a;padding:68px 7%;grid-template-columns:1.1fr .9fr;min-height:470px;overflow:hidden}.hero h1{font-weight:900;letter-spacing:-.045em}.hero h1 em{font-style:normal;color:#ffe6c6}.hero-eyebrow{font-size:12px;letter-spacing:.13em;font-weight:850}.hero-graphic{height:325px;position:relative;display:flex;align-items:center;justify-content:center}.mini-profile{background:#fff;color:#20202a;box-shadow:0 20px 50px #72000c45;border-radius:24px;width:270px;min-height:225px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;transform:rotate(5deg)}.mini-avatar{width:90px;height:90px;border-radius:50%;background:#fce5e7;color:#df102b;font-size:68px;font-weight:900;text-align:center;line-height:87px}.mini-profile span{font-size:12px;color:#17845f;font-weight:800}.floating-offer{position:absolute;left:0;bottom:0;background:#fff;color:#2b2e39;border-radius:17px;padding:18px;box-shadow:0 15px 35px #61000b33;max-width:220px;transform:rotate(-5deg)}.floating-offer span{display:block;font-size:10px;color:#db1229;font-weight:900}.floating-offer b,.floating-offer small{display:block}.floating-offer small{font-size:10px;color:#6e7780}.floating-stories{position:absolute;top:13px;right:0;background:#ffffff30;border:1px solid #ffffff8c;border-radius:25px;padding:9px 18px;font-size:20px}.floating-stories span{font-size:10px}.hero-buttons{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.button-white{display:inline-block;padding:11px 22px;border-radius:10px;border:1px solid #ffffffa3;text-decoration:none;color:#fff;font-weight:800}.quick-proof{display:grid;grid-template-columns:repeat(4,1fr);background:white;border:1px solid #eef0f4;border-radius:16px;box-shadow:0 15px 30px #00000005;margin-top:22px}.quick-proof span{padding:20px;text-align:center;font-weight:800;font-size:13px}.quick-proof span+span{border-left:1px solid #eee}.section-intro{text-align:center;padding:65px 10% 20px}.section-intro h2{font-size:clamp(28px,3vw,45px);letter-spacing:-.045em;margin:10px 0}.section-intro p{max-width:700px;margin:auto;color:#777}.red-overline{font-size:12px;letter-spacing:.16em;color:#df0b1a;font-weight:900}.premium-features{grid-template-columns:repeat(3,1fr)}.premium-features .feature-tile{padding:27px;box-shadow:0 8px 28px #00000005}.closing-cta{display:flex;align-items:center;justify-content:space-between;gap:25px;background:#fff;padding:40px;margin:55px 0;border:1px solid #eee;border-radius:22px}.closing-cta h2{font-size:30px;max-width:600px;margin:6px 0}.closing-cta p{max-width:630px;color:#6a717c}.closing-cta .button-red{white-space:nowrap}@media(max-width:900px){.premium-features{grid-template-columns:repeat(2,1fr)}.hero{grid-template-columns:1fr}.hero-graphic{height:180px}.mini-profile{min-height:145px;width:200px}.mini-avatar{width:60px;height:60px;font-size:43px;line-height:60px}}@media(max-width:560px){.head-inner{height:72px}.ofa-logo img{width:124px;height:49px}.hero{padding:36px 23px;min-height:unset}.hero-graphic{display:none}.quick-proof{grid-template-columns:repeat(2,1fr)}.quick-proof span{padding:13px;font-size:12px}.quick-proof span+span{border:0}.premium-features{grid-template-columns:1fr}.section-intro{padding:45px 10px 18px}.closing-cta{display:block;padding:25px}.closing-cta h2{font-size:23px}}

/* OFA Safi Premium 3.0 — social commerce refinements */
:root{--ofa-red:#df0816;--ofa-dark:#211c21;--ofa-light:#fff;--ofa-soft:#fff3f5;--ofa-border:#ece7e9;--ofa-shadow:0 18px 48px rgba(34,19,28,.09)}
body.ofa-premium{background:#f6f6f8;color:var(--ofa-dark);font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif}
.site-head{background:#fff!important;border-bottom:1px solid #eee;position:sticky;top:0;z-index:200;box-shadow:0 4px 15px rgba(24,12,20,.03)}
.site-head .head-inner{max-width:1460px;margin:auto;min-height:82px;gap:26px}.head-links{gap:20px;align-items:center}.head-links>a:not(.button-red){color:#38303a;font-weight:700;font-size:14px}.head-links>a:hover{color:var(--ofa-red)}
.ofa-head-tip{padding:11px 16px;background:#fff1f2;border:1px solid #ffc7cd;border-radius:12px;color:#bd0915!important;white-space:nowrap}
.ofa-dashboard{max-width:1470px;margin:24px auto 60px!important;gap:24px!important;align-items:start}
.ofa-sidebar{position:sticky;top:106px;max-height:calc(100vh - 122px);overflow-y:auto;border:1px solid var(--ofa-border);background:#fff!important;border-radius:22px!important;box-shadow:var(--ofa-shadow)!important;padding:24px 14px!important}
.ofa-sidebar-title{font-size:18px!important;letter-spacing:-.5px;font-weight:900;color:#30212b}.ofa-side-caption{font-size:12px;color:#8f8790;margin:0 14px 18px}
.ofa-sidebar a{display:block!important;margin:5px 0!important;padding:12px 16px!important;border-radius:12px!important;font-weight:650!important;transition:.2s;background:transparent}
.ofa-sidebar a.active,.ofa-sidebar a:hover{background:#e20c1a!important;color:#fff!important;box-shadow:0 8px 18px rgba(226,12,26,.17)}
.ofa-panel{min-width:0;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.ofa-panel-head{background:linear-gradient(105deg,#fff,#fff8f8);padding:26px 30px!important;border:1px solid #f1e2e5;border-radius:22px;box-shadow:0 8px 28px rgba(30,20,28,.04);margin-bottom:22px!important}
.ofa-panel-head h1{letter-spacing:-1px!important;font-size:clamp(27px,3vw,38px)!important;margin:8px 0!important}.ofa-panel-head p{color:#726c74!important;margin:0}
.ofa-panel h2{margin:28px 0 14px!important;font-size:24px!important;letter-spacing:-.55px}
.ofa-stories-rail{display:flex;overflow-x:auto;gap:14px;padding:20px;background:#fff;border:1px solid var(--ofa-border);box-shadow:0 8px 25px rgba(25,15,20,.04);border-radius:18px;margin-bottom:18px}
.ofa-stories-rail a{min-width:80px;max-width:90px;text-align:center;text-decoration:none;color:#342b30;font-size:12px;font-weight:700}
.ofa-stories-rail a span{display:grid;place-items:center;width:62px;height:62px;margin:0 auto 8px;border-radius:50%;background:#f9e0e3;border:3px solid #e31524;outline:3px solid #fff;color:#d80d21;font-size:28px;font-weight:800}
.ofa-stories-rail a small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ofa-quick-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px}
.ofa-quick-links a{background:#fff;border:1px solid #efe5e7;border-radius:14px;padding:15px;text-align:center;color:#bd0915;font-weight:800;text-decoration:none;box-shadow:0 6px 20px rgba(34,10,20,.035)}
.ofa-welcome-stats{margin-bottom:21px!important}.ofa-welcome-stats>div{border-radius:16px!important;border:1px solid #f0e6e8!important;box-shadow:0 8px 20px rgba(20,10,15,.035)!important}
.ofa-publish,.ofa-feature,.ofa-card,.ofa-authbox,.ofa-chat-layout{background:#fff!important;border:1px solid #eee5e8!important;box-shadow:0 8px 32px rgba(33,16,27,.055)!important;border-radius:20px!important}
.ofa-composer{padding:24px!important}.ofa-composer input:not([type=radio]):not([type=file]):not([type=checkbox]),.ofa-composer textarea,.ofa-searchbar input,.ofa-comment-form input{border-radius:13px!important;border:1px solid #e8e3e7!important;background:#faf9fb!important;padding:13px 15px!important;box-shadow:none!important}
.ofa-composer-modes{margin:16px 0!important;display:flex;gap:10px;flex-wrap:wrap}
.ofa-composer-modes label{border-radius:22px;background:#fff4f4;padding:10px 14px;color:#9f0c19;cursor:pointer}
.ofa-count{display:block;text-align:right;color:#888;margin:5px}
.ofa-upload-preview{border:1px dashed #e7aeb5;padding:12px;border-radius:12px;margin-top:9px}.ofa-upload-preview img{display:block;max-height:160px;border-radius:10px;margin:9px 0}
.ofa-social-feed{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;max-width:790px}
.ofa-social-post{background:#fff;border-radius:20px;border:1px solid #efe9ec;box-shadow:0 12px 30px rgba(29,18,23,.055);padding:24px;overflow:hidden}
.ofa-social-post h3{font-size:19px;line-height:1.4;margin:12px 0 8px;letter-spacing:-.3px}
.ofa-social-head{display:flex;gap:12px;align-items:center}.ofa-social-head strong{display:block;font-size:15px}.ofa-social-head small{display:block;font-size:12px;color:#8e8790}
.ofa-user-avatar{display:inline-grid;place-items:center;background:linear-gradient(135deg,#f10b1e,#9b0813);color:#fff;border-radius:50%;width:44px;height:44px;flex-shrink:0;font-size:19px;font-weight:800}
.ofa-social-text{line-height:1.75;color:#504a52}.ofa-social-photo{width:100%;max-height:440px;object-fit:cover;border-radius:15px;margin:12px 0 6px}
.ofa-social-actions{display:flex;align-items:center;gap:22px;border-top:1px solid #f0edef;border-bottom:1px solid #f0edef;padding:11px 0;margin:16px 0 12px;color:#6c626d;font-size:13px;flex-wrap:wrap}
.ofa-social-actions form{margin:0}.ofa-social-actions button,.ofa-comment-form button{border:0;background:transparent;font-weight:750;color:#ad0c1c;cursor:pointer;padding:4px 0}
.ofa-comment{padding:10px 14px;border-radius:13px;background:#f6f5f7;margin:9px 0;font-size:14px;line-height:1.5}.ofa-comment b{color:#b80b1a}
.ofa-comment-form{display:flex;gap:10px;margin:12px 0 0}.ofa-comment-form input{flex:1;min-width:100px}.ofa-comment-form button{background:#e00819;color:#fff;padding:8px 16px;border-radius:11px}
.ofa-searchbar{display:flex;gap:12px;background:#fff;padding:16px;border-radius:18px;margin-bottom:18px;border:1px solid #eee}.ofa-searchbar input{flex:1;min-width:0}.ofa-searchbar button{white-space:nowrap}
.ofa-member{text-align:center}.ofa-member .ofa-user-avatar{margin:0 auto}.ofa-member h3{margin:10px 0}.ofa-member .ofa-button{width:100%}
.ofa-card{overflow:hidden!important;transition:transform .2s,box-shadow .2s}.ofa-card:hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(38,10,23,.12)!important}
.ofa-vendor-actions{display:flex;gap:7px;flex-wrap:wrap}.ofa-whatsapp{background:#e8f9ee!important;color:#136c37!important;border-radius:9px!important;padding:9px 12px!important}
.ofa-notice.good{background:#e7f8ea;border:1px solid #bde4c2}.ofa-notice{border-radius:12px;padding:12px 16px}
.ofa-authbox{max-width:510px;margin:50px auto!important;padding:38px!important}.ofa-authbox h1{font-size:32px;letter-spacing:-1px}
@media(max-width:1050px){.ofa-dashboard{gap:15px!important}.ofa-sidebar{width:220px!important;flex-basis:220px!important}.ofa-quick-links{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.site-head .head-inner{padding:8px 14px;min-height:62px}.ofa-logo img{max-width:112px;height:auto}.head-links{gap:8px}.head-links a{font-size:12px!important}.ofa-head-tip{display:none!important}.ofa-dashboard{display:block!important;padding:8px 12px!important;margin:8px auto!important}.ofa-sidebar{position:relative;top:0;width:100%!important;max-height:none!important;display:flex;overflow-x:auto;gap:6px;border-radius:14px!important;margin-bottom:14px;padding:8px!important}.ofa-sidebar-title,.ofa-side-caption{display:none}.ofa-sidebar a{flex:0 0 auto;padding:9px 12px!important;font-size:12px!important;white-space:nowrap}.ofa-panel-head{padding:18px!important}.ofa-panel-head h1{font-size:25px!important}.ofa-quick-links{grid-template-columns:1fr 1fr}.ofa-quick-links a{font-size:12px;padding:11px}.ofa-social-post{padding:16px}.ofa-social-actions{gap:11px}.ofa-comment-form{gap:6px}.ofa-comment-form button{padding:5px 8px}.ofa-authbox{margin:15px!important;padding:24px!important}.ofa-stories-rail{padding:12px}.ofa-searchbar{padding:10px}.ofa-searchbar button{padding:9px}}

/* Premium V4 surface refresh */
.site-head{backdrop-filter:blur(16px);border-bottom:1px solid #f1e8e8}.hero{border-radius:28px!important;box-shadow:0 24px 80px #8c102113!important}.feature-tile{transition:transform .2s,box-shadow .2s}.feature-tile:hover{transform:translateY(-4px);box-shadow:0 17px 30px #200d1310}.head-links a:focus-visible,.ofa-button:focus-visible,.button-red:focus-visible{outline:3px solid #f86674;outline-offset:3px}.site-main{min-height:calc(100vh - 180px)}

/* V7 feature tiles */
.premium-features .feature-tile a{display:inline-flex;margin-top:10px;font-weight:800;color:#d71920;text-decoration:none}.premium-features .feature-tile a:hover{text-decoration:underline}
