/* secretmsg.css - styles for Secret Message child theme pages */

body,
.main-title,
.main-navigation,
.site-content,
.inside-article,
.widget,
button,
input,
select,
textarea,
h1, h2, h3, h4, h5, h6 {
    font-family: "DM Sans", sans-serif !important;
}

:root {
    /* Fonts */
    --gp-font-body: "DM Sans", sans-serif;
    --gp-font-heading: "DM Sans", sans-serif;
    
    /* Colors */
    --color-bg: #f9fafb;
    --color-surface: #ffffff;
    --color-primary: #1f1f1f;
    --color-primary-hover: #333333;
    --color-text-main: #1f1f1f;
    --color-text-muted: #6b7280;
    --color-border: #e2e8f0;
    --color-border-hover: #cbd5e1;
    --color-border-focus: #1f1f1f;
    --color-danger: #ef4444;
    --color-success: #22c55e;
    --color-purple: #6366f1; /* Used for Message Board highlight */
    --color-purple-hover: #4f46e5;
    --color-purple-light: #f5f3ff;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);
    --shadow-float: 0 12px 24px -6px rgba(0,0,0,0.08), 0 6px 12px -4px rgba(0,0,0,0.04);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 9999px;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =================================
   GLOBAL TYPOGRAPHY
================================= */

body {
    font-size: 16px !important;
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-bg);
}

body h1, body h2, body h3, body h4, body h5, body h6 {
    color: var(--color-text-main);
    font-weight: 700;
}

body h1 {
    font-size: 32px !important;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

body h2 {
    font-size: 28px !important;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

body h3 {
    font-size: 24px !important;
    line-height: 1.3;
}

body h4 {
    font-size: 20px !important;
}

body h5 {
    font-size: 18px !important;
}

body h6 {
    font-size: 16px !important;
}

body p {
    font-size: 16px !important;
    line-height: 1.6;
}


/* =================================
   MOBILE TYPOGRAPHY
================================= */

@media (max-width: 768px) {
    body h1 {
        font-size: 28px !important;
    }
    body h2 {
        font-size: 24px !important;
    }
    body h3 {
        font-size: 22px !important;
    }
    body h4 {
        font-size: 18px !important;
    }
    body h5 {
        font-size: 16px !important;
    }
    body h6 {
        font-size: 15px !important;
    }
    body, body p {
        font-size: 16px !important;
    }
}


/* =========================
   TYPOGRAPHY SYSTEM ENDS
========================= */

body {
    font-family: "DM Sans", sans-serif;
}

/* Container */
.sm-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Hero */
.sm-hero-inner { text-align: center; margin-bottom: 32px; }
.sm-hero-inner h1 { margin-bottom: 8px; }
.sm-hero-inner p { color: var(--color-text-muted); margin: 0; }

/* Row layout */
.sm-row { display:flex; gap:32px; align-items:flex-start; justify-content:center; }

/* Columns */
.sm-col { box-sizing:border-box; }
.sm-col-main { flex: 0 0 55%; max-width:55%; }
.sm-col-board { flex: 0 0 38%; max-width:38%; }

/* Button spinner */
.sm-btn-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sm-spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes sm-spin { to { transform: rotate(360deg); } }

/* Cards */
.sm-card { background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--color-border); transition: var(--transition-base); }
.sm-card-board { padding: 24px; }

/* /* Inputs + buttons */
.sm-input { height: 44px; width:100%; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--color-border); box-sizing:border-box; transition: var(--transition-base); background: var(--color-surface); font-size: 15px; }
.sm-input:focus { border-color: var(--color-border-focus); outline: none; box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-border-focus); }
.sm-share-input { flex:1; }
.sm-tnc-wrapper { display:block; margin-top:12px; color: var(--color-text-main); font-size:14px; }
.sm-cta { height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--color-primary); color: #fff; border:none; padding:0 24px; border-radius: var(--radius-pill); cursor:pointer; width: 100%; font-weight: 600; font-size: 15px; transition: var(--transition-base); }
.sm-cta:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.sm-cta:active { transform: translateY(0) scale(0.98); }
.sm-cta:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-primary); }

.sm-cpylink { height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--color-primary); color: #fff; border: none; padding: 0 24px; border-radius: var(--radius-pill); cursor: pointer; font-weight: 600; font-size: 15px; transition: var(--transition-base); }
.sm-cpylink:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.sm-cpylink:active { transform: translateY(0) scale(0.98); }
.sm-cpylink:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-primary); }

.sm-cred-btn { height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--color-primary); color:#fff; border:none; padding:0 20px; border-radius: var(--radius-md); font-size: 15px; cursor:pointer; font-weight: 600; transition: var(--transition-base); }
.sm-cred-btn:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.sm-cred-btn:active { transform: translateY(0) scale(0.98); }
.sm-cred-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-primary); }

/* Labels, small text */
.sm-label { display:block; margin-bottom:8px; font-weight:600; }
.sm-small { font-size:13px; color:#666; margin-top:12px; }

/* Social buttons */
.sm-social { background:#eee; border:none; border-radius:8px; padding:8px 10px; margin-right:8px; cursor:pointer; }

/* Message board */
.sm-message-board h3 { margin-top:0; display:flex; align-items:center; gap:8px; justify-content:space-between; }
.sm-refresh { background:#4a4a4a; color:#fff; border:none; padding:8px 12px; border-radius:8px; cursor:pointer; }


/* Modal */
.sm-modal { position:fixed; left:0; top:0; right:0; bottom:0; display:flex; align-items:center; justify-content:center; background: rgba(0,0,0,0.45); z-index:9999; }
.sm-modal-content { background:#fff; padding:20px; border-radius:10px; width:320px; box-shadow: 0 8px 30px rgba(0,0,0,0.2); }

/* Message cards inside board */
.sm-msg-card { margin-bottom:10px; padding:12px; border-radius:8px; }

/* Message action buttons (reply / delete) */
.sm-msg-action {
  width: 27px;
  height: 27px;
  min-width: 27px;
  min-height: 27px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: background 0.2s;
}

.sm-msg-action:hover {
  background: rgba(255, 255, 255, 0.35);
}


/* Copy confirmation style (temporary) */
.sm-copy-confirm { position:relative; }
.sm-copy-confirm .copied-tip {
  position:absolute; right:10px; top:-32px; background:#333; color:#fff; padding:6px 8px; border-radius:6px; font-size:13px;
  display:inline-block; opacity:0; transform:translateY(6px); transition:opacity .12s ease, transform .12s ease;
}
.sm-copy-confirm.show .copied-tip { opacity:1; transform:translateY(0); }

/* Responsive: stack columns on narrow screens */
@media (max-width: 880px) {
  .sm-row { flex-direction:column; gap:18px; }
  .sm-col-main, .sm-col-board { max-width:100%; flex: 1 1 100%; }
}


/* === HERO - dark rounded header area (matches your screenshot) === */
.sm-hero {
  background: #1f1f1f;        /* dark header */
  color: #fff;
  padding: 15px;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 6px 14px rgba(0,0,0,0.05);
  margin-bottom: 5px;
}
.sm-hero-inner { max-width: 760px; margin: 0 auto; }
.sm-hero-inner h1 { font-size: 30px; margin: 0 0 6px 0; font-weight:700; color: #ffffff !important; }
.sm-hero-inner p, .sm-hero-inner .entry-content { color: #e9e9e9; margin: 0; }

/* Make the create/share card visually separate and slightly overlapping (optional) */
.sm-card-main {
  margin-top: -16px;  /* gentle overlap with hero */
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

/* === Share header - match hero look (dark mini-header inside share area) === */
.sm-share-area .share-header {
  background: #1f1f1f;    /* same dark color as hero */
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* ensure share header text & buttons are readable */
.sm-share-area .share-header h3,
.sm-share-area .share-header p { color: #fff; margin:0; }

/* style for Take Screenshot button to match dark theme (invert style) */
.sm-cred-btn {
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

/* keep share input visually clean */
.sm-link-row .sm-input {
  background: #fff;
  border: 1px solid #e6e6e6;
  padding: 10px;
  border-radius: 8px;
}

/* social links simple pill buttons */
.sm-social-link, .sm-social-placeholder a {
  display:inline-block;
  margin-right:8px;
  padding:8px 10px;
  border-radius:8px;
  background:#f0f0f0;
  color:#333;
  text-decoration:none;
  font-weight:600;
}

/* adjust on small screens */
@media (max-width:720px){
  .sm-hero-inner { padding: 8px; }
  .sm-card-main { margin-top: -8px; }
}


/* second info card (editor content) */
.sm-info {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
  font-size: 15px;
  color: var(--color-text-main);
  line-height: 1.6;
  box-sizing: border-box;
}

.sm-wrapper {
  display: flex;
  justify-content: center;
  padding: 40px 0;
  width: 100%;
  box-sizing: border-box;
}

/* Page inner width */
.sm-inner {
  width: 100%;
  max-width: 728px;
  padding: 0 16px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .sm-inner {
    padding: 0 24px;
  }
}



.reload-btn {
    background: #efefef;
    border: none;
    border-radius: 50%;
    padding: 9px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.reload-btn:hover {
    background: #222222;
}

.reload-btn:focus,
.reload-btn:focus-visible {
    background: #efefef;
    outline: none;
    box-shadow: none;
}

.reload-btn:focus:hover {
    background: #222222;
}

.reload-icon {
    font-size: 18px;
    color: #222222;
    display: inline-block;
    transition: transform 1s, color 0.3s;
}

.reload-btn:hover .reload-icon {
   color: #fff;
}

.reload-btn:focus .reload-icon,
.reload-btn:focus-visible .reload-icon {
   color: #222222;
}

.reload-btn:focus:hover .reload-icon {
   color: #fff;
}


.sm-link-row {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.sm-btn-row {
    margin-top: 12px;
    display: flex;
    gap: 12px;
}

.sm-btn {
    flex: 1;
    padding: 14px 20px;
    text-align: center;
    color: #fff;
    background: var(--color-primary);
    font-size: 16px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-base);
}

a:hover.sm-btn, .sm-btn:hover {
    color: white;    
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.sm-btn:active {
    transform: translateY(0);
}

.sm-btn i {
    font-size: 18px;
}

/* WhatsApp Button */
.sm-wa {
    background-color: #25D366;
}

/* Copy Button */
.sm-copy {
    background-color: #4c8bf5;
}

/* Instagram Button */
.sm-ig {
    background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}




/* Popup Overlay */
.ig-popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    overflow-y: auto;                 /* entire popup scrolls */
    padding: 20px 12px;
    z-index: 9999;
    align-items: flex-start;          /* show popup starting at the top */
    justify-content: center;
    -webkit-overflow-scrolling: touch;
}

/* Popup Box */
.ig-popup {
    background: var(--color-surface);
    width: 92%;
    max-width: 420px;
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    animation: popupFade 0.25s var(--transition-base);
    box-sizing: border-box;
    box-shadow: var(--shadow-lg);
}

/* Fade animation */
@keyframes popupFade {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Images shown in vertical list (no grid) */
.ig-images {
    margin: 18px 0;
}

.ig-img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 14px;           /* space between images */
    display: block;
}

/* Share button */
.ig-popup-btn {
    width: 100%;
    padding: 14px;
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 16px;
    background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}
.ig-popup-btn:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.ig-popup-btn:active {
    transform: translateY(0);
}

/* Close button */
.ig-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 26px;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: var(--transition-base);
    line-height: 1;
}
.ig-close:hover {
    color: var(--color-text-main);
}


.sm-social-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
    margin-bottom: 12px;
    justify-content: center;
    align-items: center;
}

.sm-cta {
    background: var(--color-primary);
    color: #ffffff;
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}
.sm-cta:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.sm-cta:active {
    transform: translateY(0);
}

.sm-btn-ghost {
    background: transparent !important;
    color: var(--color-text-main) !important;
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid transparent !important;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition-base);
}
.sm-btn-ghost:hover, .sm-btn-ghost:focus {
    background: var(--color-border) !important;
    color: var(--color-text-main) !important;
}

/* Step 2 Sliding Wrapper */
.sm-step2-wrapper {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
}
.sm-step2-wrapper.active {
    max-height: 500px;
    opacity: 1;
}
.sm-step2-section {
    text-align: left;
}

.sm-social {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sm-social:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
    color: #ffffff;
}


@media (max-width: 600px) {
    .sm-social {
        width: 40px;      /* smaller box */
        height: 40px;
        font-size: 17px;  /* smaller icon */
        border-radius: 10px;
    }
    .sm-social-row {
       gap: 2px; 
    }
}


/* Brand Colors */
.fb { background: #1877f2; }
.x  { background: #000000; }
.tg { background: #2AABEE; }
.ms { background: #0084FF; }
.li { background: #0A66C2; }
.rd { background: #FF4500; }


.sm-mobile-only { display: none; }

@media (max-width: 768px) {
    .sm-mobile-only {
        display: flex;
        justify-content: center;
    }
}



/* ===== POPUP BACKDROP ===== */
.sm-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 32px 16px;
  z-index: 9999;
  box-sizing: border-box;
}

/* ===== POPUP CONTENT WRAPPER ===== */
.sm-popup-content {
  width: 360px;
  max-width: 100%;
  text-align: center;
  position: relative;
  color: #fff;
  margin: auto 0;
  box-sizing: border-box;
}

/* Constrain fallback image height on mobile viewports */
#sm-fallback-img {
  max-height: 55vh;
  width: auto !important;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

/* CLOSE BUTTON */
.sm-close {
  position: absolute;
  right: 8px;
  top: -8px;
  font-size: 26px;
  cursor: pointer;
  opacity: .9;
}

/* ===== SOCIAL PILL BAR ===== */
.sm-social-pill {
  display: inline-flex;
  background: rgba(0,0,0,.45);
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 18px;
  backdrop-filter: blur(10px);
}

.sm-mode {
  margin: 0 10px;
  font-size: 20px;
  opacity: .5;
  cursor: pointer;
  transition: .2s;
}

.sm-mode.active {
  opacity: 1;
  transform: scale(1.15);
}

/* ===== GRADIENT MESSAGE CARD ===== */
.sm-gradient-card {
  background: linear-gradient(TO RIGHT, #040404, #000000, #656565);
  border-radius: 28px;
  padding: 26px 22px;
  /*margin-bottom: 20px;*/
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
}

.sm-card-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}

/* OUTER CARD */
.sm-card-shell {
  background: linear-gradient(108deg,rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 1) 24%);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 35px 70px rgba(0,0,0,.6);
  border-radius: 25px;
}

/* HEADER SECTION */
.sm-card-header {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}

/* WHITE PANEL */
.sm-card-message-box {
  background: #fff;
  /*margin: 0 20px 22px;*/
  border-radius: 0px 0px 25px 25px;
  padding: 36px 14px;
  box-shadow: inset 0 4px 12px rgba(0,0,0,.08);
}

/* MESSAGE TEXT */
.sm-card-message {
  font-weight: 700;
  color: #000;
  text-align: center;
  font-size: 16px;
}

/* ===== REPLY INPUT (GLASS STYLE) ===== */
#smReplyInput {
  width: 100%;
  padding: 16px;
  border-radius: 22px;
  border: none;
  margin-top: 25px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 14px;
}

/* ===== REPLY BUTTON ===== */
.sm-reply-btn {
  width: 100%;
  margin-top: 16px;
  padding: 16px;
  border-radius: 35px;
  background: #000;
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,.5);
}

.sm-reply-btn.loading {
  opacity: .7;
  pointer-events: none;
}

.sm-reply-btn .loader {
  margin-left: 8px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: rotate 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

/* ===== FOOTER ===== */
.sm-footer-text {
  font-size: 12px;
  margin-top: 14px;
  opacity: .75;
}

/* ===== SNAPSHOT TEMPLATE (NEW DESIGN) ===== */
#ngl-share-snapshot {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 720px;
  height: 1280px;
}

/* DARK BACKGROUND */
.snap-stage {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #1b1b1b, #000);
  padding-top: 180px;
  box-sizing: border-box;
  position: relative;
  text-align: center;
  background-color: #000; /* fallback */
}

/* CARD WRAPPER */
.snap-card {
  width: 620px;
  margin: 0 auto;
}

/* WHITE CARD */
.snap-card-shell {
  background: #fff;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.6);
  isolation: isolate; /* FIX canvas edge bleeding */
}


/* GRADIENT HEADER */
.snap-card-header {
  padding: 32px;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  /*background: linear-gradient(90deg,#3b00ff,#ff00c8);*/
    background: linear-gradient(108deg,rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 1) 24%);
  border-radius: 40px 40px 0 0; /* fix corner blending */
}

/* MESSAGE BOX */
.snap-card-message-box {
  padding: 60px 30px;
  background: #ffffff;        /* FORCE white */
  border-radius: 0 0 40px 40px;
  box-shadow: none !important;
  filter: none !important;
}


.snap-message {
  color: #000;
  font-size: 34px;
  font-weight: 700;
  word-break: break-word;
}

/* REPLY TEXT */
.snap-reply {
  margin-top: 90px;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
}

/* WATERMARK */
.snap-watermark {
  position: absolute;
  bottom: 70px;
  width: 100%;
  text-align: center;
  font-size: 24px;
  color: #fff;
  /*opacity: .7;*/
}

.imgrdy{
    font-size: 22px;
}



/* =========================
   TOAST PREMIUM
========================= */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Toast box */
.toast {
  min-width: 260px;
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  animation: toastIn 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Colors */
.toast.success { background: #22c55e; }
.toast.error   { background: #ef4444; }
.toast.warning { background: #f59e0b; }
.toast.info    { background: #3b82f6; }

/* Icon */
.toast .icon {
  font-size: 18px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

/* Progress bar */
.toast::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255,255,255,0.7);
  width: 100%;
  animation: progress linear forwards;
}

/* Animations */
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
  to { transform: translateX(100%); opacity: 0; }
}

@keyframes progress {
  from { width: 100%; }
  to   { width: 0%; }
}

/* =========================
   BUTTON SPINNER LOADER
========================= */
.sm-btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sm-spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes sm-spin {
  to { transform: rotate(360deg); }
}

/* =========================
   PIN BOX DISPLAY
========================= */
.sm-pin-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.sm-pin-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 60px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 26px;
  font-weight: 700;
  color: #1a1a2e;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  letter-spacing: 0;
}

/* PIN card in share area */
.sm-pin-card {
  background: #fff;
  border: 1px solid #e8e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================
   INPUT / TEXTAREA ZOOM FIX
   font-size ≥ 16px stops iOS
   from zooming on focus
========================= */
.sm-input,
.sm-text,
input[type="text"],
input[type="password"],
input[type="number"],
textarea {
  font-size: 16px !important;
}

/* =========================
   LOGIN INPUT HARDENING
   (prevent autocomplete
    password manager noise)
========================= */
input[autocomplete="new-password"] {
  -webkit-text-security: disc;
}

/* =========================
   MESSAGE CARD THEME COLORS
   (applied via JS inline styles
    but these provide fallback)
========================= */
.sm-msg-card {
  transition: box-shadow 0.2s ease;
}
.sm-msg-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* =========================
   PROFILE PAGE (B&W THEME)
========================= */

#primary.sm-profile-page {
    background-color: #f7f7f7;
    color: #1f1f1f;
    min-height: 100vh;
    padding-bottom: 60px;
    display: flex;
    justify-content: center;
    width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
}

.sm-profile-container {
    width: 100%;
    max-width: 728px;
    padding: 16px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .sm-profile-container {
        padding: 24px;
    }
}

/* =========================
   1. PROFILE SUMMARY CARD
========================= */
.sm-profile-header {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin-bottom: 24px;
}

.sm-profile-header-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    pointer-events: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
    border-radius: 20px;
}
.sm-profile-header-bg svg {
    height: 100%;
    width: auto;
    max-width: 100%;
}

.sm-profile-header-content {
    position: relative;
    z-index: 2;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.sm-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.sm-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #1f1f1f;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.sm-avatar-initial {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-top: 4px;
}

.sm-avatar-emoji {
    font-size: 54px;
    line-height: 1;
    margin-top: 4px;
}

.sm-avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #ffffff !important;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1f1f1f !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    transition: all 0.2s;
    padding: 0;
    line-height: 0;
}

.sm-avatar-edit-btn:hover,
.sm-avatar-edit-btn:focus {
    background: #f0f0f0 !important;
    color: #1f1f1f !important;
}

.sm-emoji-picker-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 100;
    width: 160px;
}

.sm-emoji-option {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
}
.sm-emoji-option[data-emoji=""] {
    font-size: 14px;
    font-weight: 600;
    color: #1f1f1f;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sm-emoji-option:hover {
    background: #f0f0f0;
}

.sm-profile-header-details {
    flex-grow: 1;
}

.sm-profile-name {
    font-size: 28px !important;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1f1f1f;
}

.sm-profile-meta {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sm-profile-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.sm-profile-actions .sm-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    width: auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
}

.sm-btn-primary, .sm-btn-primary:visited {
    background: var(--color-primary) !important;
    color: #ffffff !important;
    border: 1px solid var(--color-primary) !important;
    transition: var(--transition-base);
}
.sm-btn-primary:hover, .sm-btn-primary:focus {
    background: var(--color-primary-hover) !important;
    border-color: var(--color-primary-hover) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.sm-btn-secondary, .sm-btn-secondary:visited {
    background: var(--color-surface) !important;
    border: 1px solid var(--color-border) !important;
    color: var(--color-text-main) !important;
    transition: var(--transition-base);
}
.sm-btn-secondary:hover, .sm-btn-secondary:focus {
    background: var(--color-bg) !important;
    border-color: var(--color-border-hover) !important;
    color: var(--color-text-main) !important;
}

/* =========================
   2. STATS GRID
========================= */
.sm-profile-stats-card {
    display: flex;
    align-items: center;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-float);
}

.sm-stat-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.sm-stat-icon {
    width: 48px;
    height: 48px;
    background: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.sm-stat-content {
    display: flex;
    flex-direction: column;
}

.sm-stat-val {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1.1;
}

.sm-stat-label {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.sm-stat-divider {
    width: 1px;
    height: 48px;
    background: var(--color-border);
}

/* =========================
   3. BOARD LINK CARD
========================= */
.sm-profile-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-float);
}

.sm-card-title {
    font-size: 16px !important;
    font-weight: 700;
    color: var(--color-text-main);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sm-title-icon {
    width: 32px;
    height: 32px;
    background: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.sm-input-group {
    display: flex;
    gap: 12px;
}

.sm-input-group .sm-link-input {
    flex: 1;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: var(--transition-base);
}
.sm-input-group .sm-link-input:focus {
    outline: none;
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 3px rgba(31,31,31,0.1);
}

.sm-btn-light, .sm-btn-light:visited {
    background: var(--color-bg) !important;
    color: var(--color-text-main) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-sm);
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-base);
}
.sm-btn-light:hover, .sm-btn-light:focus {
    background: var(--color-border) !important;
    color: var(--color-text-main) !important;
}

/* =========================
   4. ACCORDION SETTINGS
========================= */
.sm-profile-settings-list {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float);
    margin-bottom: 24px;
    overflow: hidden;
}

.sm-accordion-item {
    border-bottom: 1px solid var(--color-border);
}
.sm-accordion-item:last-child {
    border-bottom: none;
}

.sm-accordion-trigger, .sm-accordion-trigger:visited {
    width: 100%;
    background: transparent !important;
    color: var(--color-text-main) !important;
    border: none;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-base);
}
.sm-accordion-trigger:hover, .sm-accordion-trigger:focus {
    background: var(--color-bg) !important;
    color: var(--color-text-main) !important;
}

.sm-accordion-icon {
    width: 44px;
    height: 44px;
    background: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.sm-danger-item .sm-danger-icon {
    background: #fef2f2;
    color: #dc2626;
}

.sm-accordion-text {
    flex-grow: 1;
}
.sm-accordion-text h3 {
    font-size: 16px !important;
    font-weight: 700;
    color: var(--color-text-main);
    margin: 0 0 4px 0;
}
.sm-accordion-text p {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 0;
}

.sm-text-danger {
    color: #dc2626 !important;
}

.sm-accordion-arrow {
    color: #888;
    transition: transform 0.3s;
}
.sm-accordion-trigger[aria-expanded="true"] .sm-accordion-arrow {
    transform: rotate(90deg);
}

.sm-accordion-content {
    display: none;
    padding: 16px 24px 24px 84px; /* Align with text */
}

.sm-input-wrapper {
    position: relative;
    margin-bottom: 16px;
}
.sm-input-wrapper input {
    width: 100%;
    padding: 14px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    font-size: 15px;
    color: var(--color-text-main);
    box-sizing: border-box;
    transition: var(--transition-base);
}
.sm-input-wrapper input:focus {
    border-color: var(--color-border-focus);
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 31, 31, 0.1);
}

.sm-danger-text {
    font-size: 14px;
    color: #666;
    margin: 0 0 16px 0;
}

.sm-btn-danger, .sm-btn-danger:visited {
    background: var(--color-danger) !important;
    color: #ffffff !important;
    border: 1px solid var(--color-danger) !important;
    padding: 14px 20px;
    border-radius: var(--radius-pill);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}
.sm-btn-danger:hover, .sm-btn-danger:focus {
    background: #b91c1c !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* =========================
   5. LOGOUT BUTTON
========================= */
.sm-profile-logout-box {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

.sm-btn-logout, .sm-btn-logout:visited {
    width: 100%;
    background: var(--color-bg) !important;
    border: 1px solid var(--color-border) !important;
    color: var(--color-text-main) !important;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-base);
}
.sm-btn-logout:hover, .sm-btn-logout:focus {
    background: var(--color-border) !important;
    color: var(--color-text-main) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* =========================
   6. Profile Alert Banner
========================= */
.sm-alert-banner {
    background: #fff8e6;
    border: 1px solid #ffcc00;
    color: #8a6d00;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(255,204,0,0.1);
}
.sm-alert-icon {
    flex-shrink: 0;
    margin-top: 2px;
}
.sm-alert-text strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
    color: #665000;
}
.sm-alert-text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #8a6d00;
}

/* =========================
   7. OTP / PIN Boxes
========================= */
.sm-pin-row { 
  display: flex; gap: 8px; justify-content: space-between; align-items: center; max-width: 320px; margin: 0 auto 20px;
}
.sm-pin-box {
  width: 46px; height: 56px;
  border: 2px solid var(--color-border); border-radius: var(--radius-md);
  font-size: 22px; font-weight: 700; color: var(--color-text-main);
  background: var(--color-surface); box-shadow: var(--shadow-sm);
  text-align: center;
  line-height: 52px;
  transition: var(--transition-base);
  caret-color: var(--color-primary);
  -webkit-appearance: none;
  appearance: none;
  inputmode: numeric;
  padding: 0;
  box-sizing: border-box;
  overflow: visible;
}
.sm-pin-box:focus, .sm-pin-box.filled {
  border-color: #6366f1 !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2) !important;
  background: #f5f3ff;
}
@media (max-width: 400px) {
  .sm-pin-row { gap: 6px; }
  .sm-pin-box { width: 40px; height: 50px; font-size: 20px; line-height: 46px; border-radius: var(--radius-sm); }
}

/* =========================
   7. Form Alerts (Result Boxes)
========================= */
.sm-result {
    margin-top: 16px !important;
    font-size: 14px !important;
    transition: all 0.3s ease;
}
.sm-result.error {
    background: #fef2f2;
    color: #991b1b !important;
    border-left: 4px solid #ef4444;
    padding: 12px;
    border-radius: 8px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sm-result.error::before {
    content: "⚠️";
    font-size: 16px;
}
.sm-result.success {
    background: #f0fdf4;
    color: #166534 !important;
    border-left: 4px solid #22c55e;
    padding: 12px;
    border-radius: 8px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sm-result.success::before {
    content: "✅";
    font-size: 16px;
}

/* Profile Status Alerts */
.sm-status {
    margin-top: 16px !important;
    margin-bottom: 20px !important;
    font-size: 14px !important;
    transition: all 0.3s ease;
}
.sm-status.error {
    background: #fef2f2;
    color: #991b1b !important;
    border-left: 4px solid #ef4444;
    padding: 12px;
    border-radius: 8px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sm-status.error::before {
    content: "⚠️";
    font-size: 16px;
}
.sm-status.success {
    background: #f0fdf4;
    color: #166534 !important;
    border-left: 4px solid #22c55e;
    padding: 12px;
    border-radius: 8px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sm-status.success::before {
    content: "✅";
    font-size: 16px;
}

/* =========================
   8. Media Queries (Mobile)
========================= */
@media (max-width: 600px) {
    .sm-profile-header-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 20px 16px;
    }
    .sm-profile-meta {
        justify-content: center;
    }
    .sm-profile-actions {
        display: flex;
        flex-direction: row;
        gap: 10px;
        width: 100%;
        justify-content: center;
    }
    .sm-profile-actions .sm-btn {
        flex: 1;
        width: 50%;
        font-size: 13px !important;
        padding: 10px 8px !important;
        white-space: nowrap;
        justify-content: center;
    }
    .sm-profile-actions .sm-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .sm-profile-stats-card {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        padding: 20px !important;
        flex-direction: unset !important;
    }
    .sm-stat-divider {
        display: none !important;
    }
    .sm-stat-item {
        width: 100% !important;
        max-width: 130px !important;
        margin: 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        padding-left: 0 !important;
    }
    
    .sm-input-group {
        flex-direction: column;
    }
    .sm-btn-light {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
    
    .sm-accordion-content {
        padding: 16px 20px 20px 20px;
    }
}



/* =========================
   MESSAGE BOARD EMPTY STATE
========================= */
.sm-btn-refresh {
    background: #ffffff;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-base);
}
.sm-btn-refresh:hover {
    background: var(--color-bg);
}
.sm-empty-state {
    text-align: center;
    padding: 60px 20px 40px;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}
.sm-empty-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    color: var(--color-primary);
}
.sm-empty-state h3 {
    font-size: 22px !important;
    font-weight: 800;
    color: var(--color-text-main);
    margin: 0 0 12px 0;
}
.sm-empty-state p {
    font-size: 15px;
    color: var(--color-text-muted);
    margin: 0 0 24px 0;
    line-height: 1.6;
}
.sm-btn-purple {
    background: var(--color-purple) !important;
    border: 1px solid var(--color-purple) !important;
    color: #fff !important;
}
.sm-btn-purple:hover {
    background: var(--color-purple-hover) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.sm-empty-tip {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #ffffff;
    margin-bottom: 24px;
}
.sm-tip-icon {
    width: 40px;
    height: 40px;
    background: var(--color-purple-light);
    color: var(--color-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sm-tip-content {
    flex-grow: 1;
}
.sm-tip-content h4 {
    margin: 0 0 4px 0;
    font-size: 15px !important;
    font-weight: 700;
    color: var(--color-text-main);
}
.sm-tip-content p {
    margin: 0;
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
}
.sm-tip-socials {
    display: flex;
    gap: 8px;
}
.sm-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-main);
    cursor: pointer;
    transition: var(--transition-base);
}
.sm-social-icon:hover {
    background: var(--color-bg);
}
.sm-social-icon.sm-wa { color: #25D366; }
.sm-social-icon.sm-ig { color: #d62976; }
.sm-social-icon.sm-link { color: var(--color-purple); }

.sm-empty-footer {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-bottom: 20px;
}


.sm-empty-subtitle {
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 15px;
    color: var(--color-text-muted);
    opacity: 0.85;
}




/* =========================
   MESSAGE BOARD EMPTY STATE
========================= */
.sm-btn-refresh {
    background: #ffffff;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-base);
}
.sm-btn-refresh:hover {
    background: var(--color-bg);
}
.sm-empty-state {
    text-align: center;
    padding: 60px 20px 40px;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}
.sm-empty-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    color: var(--color-primary);
}
.sm-empty-state h3 {
    font-size: 22px !important;
    font-weight: 800;
    color: var(--color-text-main);
    margin: 0 0 12px 0;
}
.sm-empty-state p {
    font-size: 15px;
    color: var(--color-text-muted);
    margin: 0 0 24px 0;
    line-height: 1.6;
}
.sm-btn-purple {
    background: var(--color-purple) !important;
    border: 1px solid var(--color-purple) !important;
    color: #fff !important;
}
.sm-btn-purple:hover {
    background: var(--color-purple-hover) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.sm-empty-tip {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #ffffff;
    margin-bottom: 24px;
}
.sm-tip-icon {
    width: 40px;
    height: 40px;
    background: var(--color-purple-light);
    color: var(--color-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sm-tip-content {
    flex-grow: 1;
}
.sm-tip-content h4 {
    margin: 0 0 4px 0;
    font-size: 15px !important;
    font-weight: 700;
    color: var(--color-text-main);
}
.sm-tip-content p {
    margin: 0;
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
}
.sm-tip-socials {
    display: flex;
    gap: 8px;
}
.sm-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-main);
    cursor: pointer;
    transition: var(--transition-base);
}
.sm-social-icon:hover {
    background: var(--color-bg);
}
.sm-social-icon.sm-wa { color: #25D366; }
.sm-social-icon.sm-ig { color: #d62976; }
.sm-social-icon.sm-link { color: var(--color-purple); }

.sm-empty-footer {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-bottom: 20px;
}


.sm-empty-subtitle {
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 15px;
    color: var(--color-text-muted);
    opacity: 0.85;
}
@media (max-width: 600px) {
    .sm-empty-subtitle {
        font-size: 13.5px;
        line-height: 1.5;
        margin-bottom: 20px;
    }
}


/* =================================
   GLOBAL LAYOUT CONSTRAINT
================================= *//* Strip default GeneratePress background and padding for app templates */
.page-template-template-login .site-content, .page-template-template-login #primary, .page-template-template-login #main, .page-template-template-login .inside-article,
.page-template-template-send .site-content, .page-template-template-send #primary, .page-template-template-send #main, .page-template-template-send .inside-article,
.page-template-template-profile .site-content, .page-template-template-profile #primary, .page-template-template-profile #main, .page-template-template-profile .inside-article,
.home .site-content, .home #primary, .home #main, .home .inside-article {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Give all app pages the same gray background container as the profile page */
.home #primary,
.page-template-template-login #primary,
.page-template-template-send #primary {
    background-color: #f7f7f7 !important;
}



/* Force sm-inner to expand in flex containers */
.sm-inner {
    flex: 1 1 100%;
}


/* Ensure #main fills the flex container when inside .sm-profile-page so it does not shrink-wrap */
.sm-profile-page > #main {
    width: 100%;
}


/* Message Goal Card */
.sm-goal-card {
    margin-bottom: 24px;
}
.sm-goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.sm-goal-title-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sm-goal-title-area .sm-card-title {
    margin: 0;
}
.sm-goal-count {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 500;
}


.sm-progress-bar-container {
    height: 12px;
    background: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}
.sm-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-purple));
    border-radius: 6px;
    transition: width 0.8s ease-out;
}
.sm-goal-tip {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 0;
}

.sm-goal-edit-form .sm-input {
    flex: 1;
    max-width: 150px;
}


/* Gamification: Inbox Surprise Animation */
.sm-inbox-surprise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.sm-inbox-surprise.show {
    opacity: 1;
    visibility: visible;
}
.sm-surprise-text {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, #fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s;
}
.sm-inbox-surprise.show .sm-surprise-text {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.2s;
}




/* Gamification Teaser Alert (Homepage) */
.sm-gamification-teaser {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 100px;
    padding: 8px 10px 8px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
    z-index: 9999;
    opacity: 0;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    width: max-content;
    max-width: 92vw;
}
.sm-gamification-teaser.show {
    bottom: 24px;
    opacity: 1;
}
.sm-gt-content {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sm-gt-icon {
    font-size: 18px;
    line-height: 1;
}
.sm-gt-text {
    font-size: 14px;
    font-weight: 600;
    color: #27272a;
    white-space: nowrap;
}
.sm-gt-btn {
    background: var(--color-primary);
    color: white !important;
    text-decoration: none !important;
    padding: 7px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1;
}
.sm-gt-btn:hover {
    background: var(--color-primary-hover);
    transform: scale(1.05);
    color: #ffffff !important;
    text-decoration: none !important;
}
.sm-gt-close {
    background: rgba(0,0,0,0.05);
    border: none;
    color: rgba(0,0,0,0.4);
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.sm-gt-close:hover {
    color: #000000;
    background: rgba(0,0,0,0.1) !important;
}
@media (max-width: 480px) {
    .sm-gt-text {
        font-size: 12px;
    }
    .sm-gamification-teaser {
        gap: 8px;
        padding: 6px 8px 6px 14px;
    }
    .sm-gt-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* ====================================================
   PHASE 2 GAMIFICATION STYLES
   ==================================================== */

/* Avatar Progress Ring */
.sm-avatar-xp-ring {
    position: relative;
    width: 124px;
    height: 124px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.sm-xp-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 124px;
    height: 124px;
    transform: rotate(-90deg);
}
.sm-xp-bg {
    stroke: rgba(255,255,255,0.06);
}
.sm-xp-fill {
    stroke: #ff8207;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.sm-avatar {
    width: 106px !important;
    height: 106px !important;
    z-index: 2;
}
.sm-level-badge {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    border: 2px solid var(--color-surface);
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    white-space: nowrap;
}

/* Streak Fire Icon Pulse */
@keyframes fire-pulse {
    0% { filter: drop-shadow(0 0 2px rgba(249, 115, 22, 0.4)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.8)); transform: scale(1.08); }
    100% { filter: drop-shadow(0 0 2px rgba(249, 115, 22, 0.4)); transform: scale(1); }
}
.sm-streak-fire {
    animation: fire-pulse 2s infinite ease-in-out;
}

/* Mystery Message Style */
.sm-msg-mystery {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.sm-msg-mystery:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(234, 179, 8, 0.15);
}
.sm-msg-mystery-blurred .sm-mystery-text {
    filter: blur(8px);
    opacity: 0.25;
    pointer-events: none;
    user-select: none;
}
.sm-mystery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 10;
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(2px);
    border-radius: 6px;
    transition: background 0.2s;
}
.sm-msg-mystery:hover .sm-mystery-overlay {
    background: rgba(17, 24, 39, 0.25);
}
.sm-mystery-overlay-icon {
    font-size: 24px;
    animation: bounce-slow 2s infinite;
}
.sm-mystery-overlay-label {
    font-size: 11px;
    font-weight: 800;
    color: #eab308;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
/* Achievements Badges Styling Updates */
.sm-badge-card {
    position: relative;
    overflow: hidden;
    background: var(--badge-bg) !important;
    border: 1px solid var(--badge-border) !important;
}
.sm-badge-card.unlocked:hover {
    transform: translateY(-4px) scale(1.02);
    background: var(--badge-bg-hover) !important;
    border-color: var(--badge-border-hover) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px var(--badge-border) !important;
}
/* Individual badge hover icon glow pulses */
.sm-badge-card.unlocked:hover .sm-badge-icon-wrapper {
    transform: scale(1.1);
}
.sm-badge-card.locked:hover {
    transform: translateY(-2px);
    background: var(--badge-bg-hover) !important;
    border-color: var(--badge-border-hover) !important;
    filter: grayscale(0.5);
    opacity: 0.75 !important;
}

/* ====================================================
   AdSense Reserving Wrappers (CLS Prevention)
==================================================== */
.sm-ad-wrapper {
    margin: 24px auto;
    text-align: center;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* 1. Horizontal Banner Layout (Header/Footer/Between sections) */
.sm-ad-horizontal {
    width: 100%;
    min-width: 250px;
    min-height: 90px;
}
@media (max-width: 480px) {
    .sm-ad-horizontal {
        min-height: 100px;
    }
}

/* 2. Rectangle Layout (Post-submit, inside message list) */
.sm-ad-rectangle {
    width: 100%;
    min-width: 250px;
    max-width: 336px;
    min-height: 280px;
}
@media (max-width: 480px) {
    .sm-ad-rectangle {
        max-width: 300px;
        min-height: 250px;
    }
}

@media (min-width: 1024px) {
    .sm-ad-sidebar {
        width: 160px;
        min-height: 600px;
    }
}

.sm-close-fallback-btn {
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15) !important;
}
.sm-close-fallback-btn:hover {
    background: #e5e7eb !important;
}
.sm-close-fallback-btn:active {
    background: #d1d5db !important;
}

/* ====================================================
   Block Editor Content Styling (.sm-info Gutenberg)
==================================================== */
.sm-info h2, 
.sm-info .wp-block-heading {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-text-main);
    margin-top: 22px;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    width: 100%;
}
.sm-info h2::after,
.sm-info .wp-block-heading::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #000000, transparent);
    margin-top: 6px;
    border-radius: 2px;
}

.sm-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-main);
    margin-top: 18px;
    margin-bottom: 10px;
}

.sm-info p {
    font-size: 15px;
    line-height: 1.65;
    color: #000000;
    margin-bottom: 12px;
}

/* Bullet list styling - compact left spacing */
.sm-info ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    margin-bottom: 20px;
}
.sm-info ul li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    line-height: 1.6;
    color: #000000;
}
.sm-info ul li::before {
    content: "•";
    color: #000000;
    font-weight: bold;
    font-size: 20px;
    position: absolute;
    left: 2px;
    top: -2px;
}

/* Numeric list styling - custom circular badges */
.sm-info ol {
    list-style: none;
    counter-reset: li;
    padding-left: 0;
    margin-left: 0;
    margin-bottom: 20px;
}
.sm-info ol li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    line-height: 1.6;
    color: #000000;
}
.sm-info ol li::before {
    content: counter(li);
    counter-increment: li;
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    background: rgba(0, 0, 0, 0.06);
    color: #000000;
    font-weight: 700;
    font-size: 11px;
    text-align: center;
    border-radius: 50%;
}

/* FAQ Group Box style */
.sm-info .wp-block-group.sm-faq-box {
    background: var(--color-purple-light);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 14px;
}
.sm-info .wp-block-group.sm-faq-box h3,
.sm-info .wp-block-group.sm-faq-box h4 {
    color: var(--color-purple);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 8px;
    border-left: none;
    padding-left: 0;
}
.sm-info .wp-block-group.sm-faq-box h3::after,
.sm-info .wp-block-group.sm-faq-box h4::after {
    display: none; /* Hide bottom accent inside FAQ cards */
}
.sm-info .wp-block-group.sm-faq-box p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Hide underlines for any headings inside FAQ sections */
.sm-info [id*="faq"] h2::after,
.sm-info [class*="faq"] h2::after,
.sm-info [id*="faq"] .wp-block-heading::after,
.sm-info [class*="faq"] .wp-block-heading::after,
.sm-info h2.faq-question::after,
.sm-info .faq-question::after {
    display: none !important;
}

/* Rank Math FAQ Block Styling & Schema integration */
.sm-info .rank-math-faq {
    margin-top: 24px;
    margin-bottom: 24px;
}
.sm-info .rank-math-faq-item {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}
.sm-info .rank-math-faq-item:last-child {
    border-bottom: none;
}
.sm-info .rank-math-question {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-main) !important;
    margin-top: 0;
    margin-bottom: 8px;
    position: relative;
}
.sm-info .rank-math-question::after {
    display: none !important; /* Force no underlines for Rank Math Qs */
}
.sm-info .rank-math-answer {
    font-size: 15px;
    line-height: 1.65;
    color: #000000 !important;
    margin: 0;
}




