.swar-wrap{max-width:1180px;margin:22px auto;padding:0 16px 92px;font-family:system-ui,-apple-system,Segoe UI,sans-serif}.swar-hero{border-radius:26px;background:linear-gradient(135deg,#111827,#0f766e);color:#fff;padding:28px;display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:0 18px 38px rgba(15,23,42,.18)}.swar-hero span{letter-spacing:.12em;color:#a7f3d0;font-weight:900;font-size:12px}.swar-hero h1{margin:5px 0;font-size:38px}.swar-hero p{margin:0;color:#d1fae5;max-width:720px}.swar-primary{background:#14b8a6;color:#fff!important;text-decoration:none!important;border:0;border-radius:16px;padding:13px 18px;font-weight:900;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.swar-tabs{display:flex;gap:8px;overflow:auto;margin:18px 0;padding-bottom:5px}.swar-tabs a{white-space:nowrap;background:#f1f5f9;color:#334155;text-decoration:none;border:1px solid #e2e8f0;border-radius:999px;padding:10px 14px;font-weight:800}.swar-tabs a.is-active{background:#0f766e;color:#fff;border-color:#0f766e}.swar-feed{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:18px}.swar-card{background:#fff;border:1px solid #e2e8f0;border-radius:24px;overflow:hidden;box-shadow:0 10px 30px rgba(15,23,42,.05)}.swar-media{height:420px;background:#0f172a;position:relative}.swar-media img,.swar-media video{width:100%;height:100%;object-fit:cover;display:block}.swar-placeholder{height:100%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:40px;font-weight:900}.swar-side-actions{position:absolute;right:12px;bottom:14px;display:flex;flex-direction:column;gap:9px}.swar-side-actions button,.swar-side-actions a{width:48px;height:48px;border:0;border-radius:999px;background:rgba(15,23,42,.72);color:#fff;text-decoration:none;display:flex;align-items:center;justify-content:center;flex-direction:column;font-weight:900;cursor:pointer}.swar-side-actions span{font-size:10px}.swar-card-body{padding:16px}.swar-row{display:flex;justify-content:space-between;gap:12px;align-items:center}.swar-badge{background:#ccfbf1;color:#0f766e;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900}.swar-card h2{font-size:21px;line-height:1.2;margin:12px 0 8px;color:#0f172a}.swar-card p{color:#475569}.swar-card-actions{display:flex;gap:8px;flex-wrap:wrap}.swar-card-actions a{background:#0f766e;color:#fff!important;text-decoration:none;border-radius:12px;padding:10px 12px;font-weight:900}.swar-card-actions a.wa{background:#22c55e}.swar-empty,.swar-form-card{background:#fff;border:1px solid #e2e8f0;border-radius:24px;padding:24px;box-shadow:0 10px 30px rgba(15,23,42,.05)}.swar-form-card{max-width:760px;margin:0 auto}.swar-form-card h1,.swar-form-card h2{margin-top:0}.swar-form-card label{display:block;font-weight:900;margin:14px 0 6px;color:#0f172a}.swar-form-card input,.swar-form-card select,.swar-form-card textarea{width:100%;border:1px solid #d1d5db;border-radius:14px;padding:12px;background:#fff}.swar-form-card small{display:block;color:#64748b;margin:8px 0 16px}.swar-result{margin-top:14px;border-radius:14px;padding:12px;font-weight:900}.swar-result.ok{background:#dcfce7;color:#166534}.swar-result.err{background:#fee2e2;color:#991b1b}.swar-bottom-menu{position:fixed;left:50%;bottom:12px;transform:translateX(-50%);width:min(980px,96vw);height:68px;background:rgba(15,23,42,.94);border:1px solid rgba(255,255,255,.1);border-radius:28px;display:flex;align-items:center;justify-content:space-around;gap:4px;padding:8px;z-index:99990;backdrop-filter:blur(12px);box-shadow:0 18px 40px rgba(15,23,42,.28)}.swar-menu-item{width:46px;height:46px;border-radius:999px;color:#fff!important;text-decoration:none!important;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:18px}.swar-menu-item:hover{background:rgba(255,255,255,.1)}.swar-ra{width:62px;height:62px;margin-top:-28px;background:linear-gradient(135deg,#00f5ff,#ff0050,#ffcc00);color:#fff!important;border:4px solid #0f172a;font-size:18px;box-shadow:0 12px 28px rgba(255,0,80,.35)}.swar-soon-popup{position:fixed;inset:0;background:rgba(15,23,42,.58);z-index:99999;display:flex;align-items:center;justify-content:center;padding:18px}.swar-soon-popup>div{background:#fff;border-radius:22px;padding:24px;max-width:360px;text-align:center;position:relative}.swar-soon-popup button,.swar-comments-close{position:absolute;right:12px;top:10px;width:34px;height:34px;border:0;border-radius:999px;background:#ef4444;color:#fff;font-size:24px;font-weight:900;cursor:pointer}.swar-comments-sheet{position:fixed;inset:0;background:rgba(15,23,42,.38);z-index:99998;display:flex;align-items:flex-end;justify-content:center}.swar-comments-panel{width:min(640px,100%);height:72vh;background:#fff;border-radius:24px 24px 0 0;padding:18px;position:relative;display:flex;flex-direction:column}.swar-comments-list{flex:1;overflow:auto;margin:10px 0}.swar-comment-row{display:grid;grid-template-columns:42px 1fr;gap:4px 10px;padding:9px 0;border-bottom:1px solid #f1f5f9}.swar-comment-row strong{grid-row:span 2;width:38px;height:38px;border-radius:999px;background:#0f766e;color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;overflow:hidden}.swar-comment-row span{color:#0f172a}.swar-comment-row small{color:#94a3b8}.swar-comments-panel form{display:grid;grid-template-columns:1fr auto;gap:8px}.swar-comments-panel input{grid-column:1/-1}.swar-comments-panel input,.swar-comments-panel textarea{border:1px solid #d1d5db;border-radius:13px;padding:10px}.swar-comments-panel button[type=submit]{background:#0f766e;color:#fff;border:0;border-radius:13px;padding:0 16px;font-weight:900}@media(max-width:760px){.swar-wrap{padding-left:10px;padding-right:10px}.swar-hero{display:block;padding:22px}.swar-hero h1{font-size:30px}.swar-primary{margin-top:14px}.swar-feed{grid-template-columns:1fr}.swar-media{height:70vh;max-height:620px}.swar-bottom-menu{height:62px;border-radius:24px;overflow-x:auto;justify-content:flex-start}.swar-menu-item{flex:0 0 43px;width:43px;height:43px}.swar-ra{flex-basis:58px;width:58px;height:58px}}
/* v1.0.1 bottom menu popup updates */
.swar-menu-item{position:relative}
.swar-menu-item em{position:absolute;right:-2px;top:-2px;min-width:18px;height:18px;border-radius:999px;background:#ef4444;color:#fff;font-size:10px;font-style:normal;display:flex;align-items:center;justify-content:center;border:2px solid #0f172a}
.swar-menu-popup{position:fixed;inset:0;background:rgba(15,23,42,.58);z-index:99999;display:flex;align-items:flex-end;justify-content:center;padding:16px}
.swar-menu-popup-card{width:min(560px,100%);max-height:82vh;overflow:auto;background:#fff;border-radius:24px;padding:22px;position:relative;box-shadow:0 22px 55px rgba(15,23,42,.28)}
.swar-menu-popup-card h3{margin:0 0 14px;color:#0f172a;font-size:24px}
.swar-menu-popup-card p{color:#475569}
.swar-menu-close{position:absolute;right:12px;top:10px;width:36px;height:36px;border:0;border-radius:999px;background:#ef4444;color:#fff;font-size:25px;font-weight:900;cursor:pointer;display:flex;align-items:center;justify-content:center}
.swar-inbox-grid,.swar-follow-row{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:14px 0}
.swar-inbox-grid div,.swar-follow-row div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:14px;text-align:center}
.swar-inbox-grid strong,.swar-follow-row strong{display:block;color:#0f766e;font-size:20px}
.swar-inbox-grid span,.swar-follow-row span{font-size:12px;color:#64748b;font-weight:800}
.swar-popup-tabs{display:flex;gap:8px;overflow:auto;margin:10px 0 14px}
.swar-popup-tabs button{border:1px solid #d1d5db;background:#f8fafc;border-radius:999px;padding:10px 14px;font-weight:900;white-space:nowrap;cursor:pointer}
.swar-popup-tabs button.is-active{background:#0f766e;color:#fff;border-color:#0f766e}
.swar-popup-tab{display:none;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:14px}
.swar-popup-tab.is-active{display:block}
.swar-popup-tab h4{margin:0 0 6px;color:#0f172a}
.swar-member-list{display:flex;flex-direction:column;gap:10px}
.swar-member-list a{display:flex;align-items:center;gap:10px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:10px;text-decoration:none!important;color:#0f172a}
.swar-member-list img{width:46px;height:46px;border-radius:999px;object-fit:cover}
.swar-member-list strong{display:block}
.swar-member-list small{color:#64748b}
.swar-profile-mini{display:flex;align-items:center;gap:12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;padding:14px}
.swar-profile-mini img,.swar-avatar-fallback{width:64px;height:64px;border-radius:20px;object-fit:cover;background:#0f766e;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900}
.swar-profile-mini strong{display:block;font-size:18px;color:#0f172a}
.swar-profile-mini span{color:#64748b}
.swar-ticket{background:#ecfdf5;border:1px solid #99f6e4;border-radius:18px;padding:16px;margin-bottom:14px}
.swar-ticket strong{color:#0f766e}
@media(max-width:760px){.swar-menu-popup{padding:0;align-items:flex-end}.swar-menu-popup-card{border-radius:24px 24px 0 0;width:100%;max-height:78vh}.swar-inbox-grid{grid-template-columns:repeat(2,1fr)}}


/* v1.0.4: Ads & Reels plugin no longer controls bottom menu */
.swar-bottom-menu,.swar-soon-popup{display:none!important}
.swar-media video{background:#000}


/* v1.0.5 view switch + improved reel/ad display */
.swar-hero-actions{display:flex;flex-direction:column;align-items:flex-end;gap:12px;min-width:290px}
.swar-mode-tabs{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.swar-mode-tabs a{white-space:nowrap;background:rgba(255,255,255,.12);color:#fff;text-decoration:none;border:1px solid rgba(255,255,255,.24);border-radius:999px;padding:11px 16px;font-weight:900}
.swar-mode-tabs a.is-active{background:#fff;color:#0f172a;border-color:#fff}
.swar-feed{align-items:start}
.swar-feed-reels{grid-template-columns:repeat(auto-fill,minmax(360px,420px));justify-content:flex-start}
.swar-feed-ads{grid-template-columns:repeat(auto-fill,minmax(320px,420px));justify-content:flex-start}
.swar-card{display:flex;flex-direction:column}
.swar-card.is-video{max-width:420px}
.swar-media{display:flex;align-items:center;justify-content:center;overflow:hidden}
.swar-media.swar-is-video{aspect-ratio:9/16;height:auto;min-height:540px;max-height:78vh;background:#000}
.swar-media.swar-is-image{aspect-ratio:4/5;height:auto;min-height:430px;background:#fff}
.swar-media.swar-is-image img,.swar-media.swar-is-image video,.swar-media.swar-is-video img,.swar-media.swar-is-video video{width:100%;height:100%;display:block;object-fit:contain}
.swar-sponsored{margin:-2px 0 10px;color:#475569;font-weight:700}
.swar-sponsored a,.swar-sponsored span{color:#0f766e;text-decoration:none!important;font-weight:900}
.swar-empty{max-width:420px}
@media(max-width:760px){
  .swar-hero-actions{align-items:flex-start;min-width:0;margin-top:14px}
  .swar-mode-tabs{justify-content:flex-start;width:100%}
  .swar-mode-tabs a{padding:10px 15px}
  .swar-feed-reels,.swar-feed-ads{grid-template-columns:1fr}
  .swar-card{max-width:none}
  .swar-media.swar-is-video{min-height:68vh;max-height:78vh}
  .swar-media.swar-is-image{min-height:46vh;max-height:none}
}


/* v1.0.6 compact hero action row + multi media slider */
.swar-hero-actions{flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;min-width:auto!important;flex-wrap:nowrap!important}
.swar-mode-tabs{display:flex!important;gap:6px!important;flex-wrap:nowrap!important;justify-content:flex-end!important}
.swar-mode-tabs a{padding:10px 14px!important;line-height:1!important}
.swar-hero-actions .swar-primary{padding:10px 14px!important;border-radius:999px!important;white-space:nowrap!important;line-height:1!important;margin-top:0!important}
.swar-inline-note{display:inline!important;margin:0 0 0 6px!important;font-weight:700!important;color:#64748b!important}
.swar-slider{position:relative;width:100%;height:100%}
.swar-slide{position:absolute;inset:0;display:none;width:100%;height:100%}
.swar-slide.is-active{display:block}
.swar-slide img,.swar-slide video{width:100%;height:100%;object-fit:contain;display:block;background:#000}
.swar-slide-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:36px;height:36px;border:0;border-radius:999px;background:rgba(15,23,42,.68);color:#fff;font-size:30px;line-height:30px;font-weight:900;display:flex;align-items:center;justify-content:center;cursor:pointer}
.swar-prev{left:10px}
.swar-next{right:10px}
.swar-dots{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);z-index:6;display:flex;gap:7px;align-items:center;justify-content:center;background:rgba(15,23,42,.38);border-radius:999px;padding:6px 8px}
.swar-dots button{width:8px;height:8px;border-radius:50%;border:0;background:rgba(255,255,255,.58);padding:0;cursor:pointer}
.swar-dots button.is-active{background:#fff;width:18px;border-radius:999px}
@media(max-width:760px){
  .swar-hero{padding:22px!important}
  .swar-hero-actions{margin-top:14px!important;width:100%!important;justify-content:flex-start!important;gap:7px!important;overflow-x:auto!important;padding-bottom:3px!important}
  .swar-mode-tabs a,.swar-hero-actions .swar-primary{padding:10px 13px!important;font-size:14px!important}
  .swar-slide-nav{width:34px;height:34px;font-size:28px}
}


/* v1.0.7 form preview + Shop/Book CTA */
.swar-media-preview{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:10px;margin:12px 0 4px}
.swar-preview-item{position:relative;border:1px solid #e2e8f0;background:#f8fafc;border-radius:14px;overflow:hidden;aspect-ratio:1/1}
.swar-preview-item img,.swar-preview-item video{width:100%;height:100%;object-fit:cover;display:block}
.swar-preview-item span{position:absolute;left:6px;top:6px;background:rgba(15,23,42,.74);color:#fff;border-radius:999px;padding:3px 7px;font-size:11px;font-weight:900}
.swar-preview-count{grid-column:1/-1;color:#64748b;font-weight:800;font-size:13px}
.swar-card-actions a.cta{background:#f97316!important;color:#fff!important}
.swar-form-card select[name="cta_label"]{font-weight:900}
@media(max-width:760px){.swar-media-preview{grid-template-columns:repeat(3,1fr)}}


/* v1.0.8 per-media CTA controls */
.swar-media-preview{grid-template-columns:1fr!important}
.swar-preview-item{aspect-ratio:auto!important;display:grid;grid-template-columns:92px 1fr;gap:12px;align-items:center;padding:10px;border-radius:16px}
.swar-preview-thumb{width:92px;height:92px;border-radius:12px;overflow:hidden;position:relative;background:#f8fafc}
.swar-preview-thumb img,.swar-preview-thumb video{width:100%;height:100%;object-fit:cover;display:block}
.swar-preview-thumb span{position:absolute;left:6px;top:6px;background:rgba(15,23,42,.74);color:#fff;border-radius:999px;padding:3px 7px;font-size:11px;font-weight:900}
.swar-preview-fields{display:grid;grid-template-columns:140px 1fr;gap:8px;align-items:center}
.swar-preview-fields select,.swar-preview-fields input{width:100%;border:1px solid #d1d5db;border-radius:12px;padding:10px;background:#fff}
.swar-preview-fields label{margin:0!important;font-size:12px!important;color:#64748b!important}
@media(max-width:760px){
  .swar-preview-item{grid-template-columns:76px 1fr;gap:10px}
  .swar-preview-thumb{width:76px;height:76px}
  .swar-preview-fields{grid-template-columns:1fr}
}


/* v1.0.9 one-by-one file add + delete selected media */
.swar-preview-thumb .swar-preview-remove{
  position:absolute!important;
  right:5px!important;
  top:5px!important;
  width:24px!important;
  height:24px!important;
  border:0!important;
  border-radius:50%!important;
  background:#ef4444!important;
  color:#fff!important;
  font-size:18px!important;
  line-height:20px!important;
  font-weight:900!important;
  cursor:pointer!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  z-index:4!important;
}
.swar-preview-help{
  grid-column:1/-1;
  color:#0f766e;
  font-size:12px;
  font-weight:900;
}

.swar-existing-note{background:#ecfdf5;border:1px solid #99f6e4;border-radius:14px;padding:10px 12px;color:#0f766e;font-weight:800;margin:10px 0}

.swar-form-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:12px}
.swar-delete-edit{background:#fee2e2!important;color:#b91c1c!important;border:0!important;border-radius:14px!important;padding:13px 18px!important;font-weight:900!important;cursor:pointer!important}


/* v1.1.2 delete individual existing media in edit form */
.swar-existing-media-item{position:relative}
.swar-existing-remove{
  position:absolute!important;
  right:5px!important;
  top:5px!important;
  width:24px!important;
  height:24px!important;
  border:0!important;
  border-radius:50%!important;
  background:#ef4444!important;
  color:#fff!important;
  font-size:18px!important;
  line-height:20px!important;
  font-weight:900!important;
  cursor:pointer!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  z-index:5!important;
}
.swar-existing-removed-note{background:#fff7ed;border:1px solid #fed7aa;color:#c2410c;border-radius:12px;padding:10px;margin:8px 0;font-weight:800}
