/*
Theme Name: Ringa Social Pro
Theme URI: https://example.com
Author: Ringa
Description: Professional, simple mobile-first social theme: feed + reels + groups + profile.
Version: 1.0.18.4.55
Text Domain: ringa-social-pro
*/

:root{
  --ringa-bg: #0b0d12;
  --ringa-surface: #111521;
  --ringa-surface-2: #151a2a;
  --ringa-border: rgba(255,255,255,0.08);
  --ringa-text: rgba(255,255,255,0.92);
  --ringa-muted: rgba(255,255,255,0.65);
  --ringa-accent: #ff6120;
  --ringa-accent-2: #ff8a48;

  /* Feed media ratio (change to 1/1, 4/5, 9/16, etc) */
  --ringa-feed-post-ratio: 4 / 5;

  /* Reel video area uses full viewport minus footer */
  --ringa-footer-h: 64px;
  --ringa-shell-left: 0px;
  --ringa-shell-width: 100vw;
  --ringa-radius: 16px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
/* Prevent accidental sideways scrolling */
html, body{ overflow-x: hidden; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--ringa-bg);
  color: var(--ringa-text);
}
a{ color: inherit; text-decoration:none; }
a:active{ opacity:0.9; }

.ringa-app{
  min-height:100vh;
  width:100%;
  padding-bottom: var(--ringa-footer-h);
}

.ringa-topbar{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11,13,18,0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ringa-border);
  padding: 10px 12px;
  display:flex;
	/* Stretch children so each tab has a full-height tap target on mobile. */
	/* Center the logo/actions vertically so the title doesn't look "pushed up" on some pages */
	align-items:center;
  justify-content: space-between;
  gap: 10px;
}

/* Give the brand a predictable tap target and vertical centering */
.ringa-brand{
	display:flex;
	align-items:center;
	height:38px;
}

.ringa-brand{
  font-weight: 800;
  letter-spacing: 0.3px;
}
.ringa-top-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.ringa-icon-btn{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--ringa-border);
  background: rgba(255,255,255,0.02);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.ringa-icon-btn:active{ transform: scale(0.98); }
.ringa-content{ padding: 0; }

.ringa-feed{
  display:flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 0 18px;
}

.ringa-feed-more{
  padding: 10px 12px calc(var(--ringa-footer-h) + 16px);
  display:flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#ringaFeedSentinel{ width: 100%; height: 1px; }

.ringa-card{
  scroll-margin-top: calc(var(--ringa-topbar-h, 56px) + 10px);

  width: 100%;
  background: var(--ringa-surface);
  border-top: 1px solid var(--ringa-border);
  border-bottom: 1px solid var(--ringa-border);
}

.ringa-card-header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
}

.ringa-userline{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}
.ringa-avatar{
  width: 38px;
  height: 38px;
  border-radius: 999px;
	position: relative;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.10);
  flex: 0 0 auto;
}
.ringa-avatar img{ width:100%; height:100%; object-fit: cover; display:block; }

.ringa-user-meta{
  display:flex;
  flex-direction: column;
  min-width: 0;
}
.ringa-username{
  font-weight: 700;
  font-size: 14px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ringa-subline{
  font-size: 12px;
  color: var(--ringa-muted);
}

.ringa-pill{
  border: 1px solid var(--ringa-border);
  background: rgba(255,255,255,0.02);
  color: var(--ringa-text);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor:pointer;
}
.ringa-pill.is-primary{
  border: none;
  background: linear-gradient(135deg, var(--ringa-accent-2), var(--ringa-accent));
}
.ringa-pill.is-ghost{
  border: 1px solid var(--ringa-border);
  background: transparent;
}
.ringa-menu{
  position: relative;
}
.ringa-menu-panel{
  position: absolute;
  right: 0;
  top: 44px;
  background: #0d1018;
  border: 1px solid var(--ringa-border);
  border-radius: 14px;
  min-width: 180px;
  overflow:hidden;
  display:none;
  z-index: 50;
}
.ringa-menu-panel button{
  width:100%;
  text-align:left;
  padding: 12px 12px;
  border: none;
  background: transparent;
  color: var(--ringa-text);
  cursor:pointer;
  font-size: 14px;
}
.ringa-menu-panel button:hover{ background: rgba(255,255,255,0.06); }

.ringa-media{
  width: 100%;
  background: #000;
  position: relative;
  aspect-ratio: var(--ringa-feed-post-ratio);
  overflow:hidden;
}
.ringa-media img,
.ringa-media video{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.ringa-carousel{
  width:100%;
  height:100%;
  display:flex;
  overflow-x:auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.ringa-carousel::-webkit-scrollbar{ display:none; }
.ringa-carousel > *{
  width:100%;
  height:100%;
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.ringa-dots{
  position:absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display:flex;
  justify-content:center;
  gap: 6px;
  pointer-events:none;
}
.ringa-dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
}
.ringa-dot.is-active{ background: rgba(255,255,255,0.95); }

.ringa-card-body{
  padding: 10px 12px 12px;
}

.ringa-actions{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.ringa-actions-left{
  display:flex;
  align-items:center;
  gap: 10px;
}
.ringa-action-btn{
  border:none;
  background: transparent;
  color: var(--ringa-text);
  display:flex;
  align-items:center;
  gap: 6px;
  cursor:pointer;
  padding: 6px 6px;
  border-radius: 10px;
}
.ringa-action-btn:hover{ background: rgba(255,255,255,0.06); }
.ringa-action-btn .count{
  font-size: 13px;
  color: var(--ringa-muted);
}
.ringa-action-btn.is-on{
  color: var(--ringa-accent-2);
}
.ringa-caption{
  margin-top: 10px;
  font-size: 14px;
  color: var(--ringa-text);
  line-height: 1.35;
}
.ringa-caption .muted{ color: var(--ringa-muted); }

/* Ensure captions and comments wrap nicely on narrow screens and inside flex layouts. */
.ringa-caption, .ringa-caption-text{ overflow-wrap: anywhere; word-break: break-word; }
.ringa-caption-text{ min-width: 0; }

/* Feed caption collapse/expand: clamp and show ellipsis button at the end of the last visible line. */
.ringa-caption-collapsible{ position: relative; }
.ringa-caption-collapsible .ringa-caption-text{
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  padding-right: 20px; /* space for ellipsis button */
}
.ringa-caption-collapsible .ringa-caption-text p{ margin: 0; }
.ringa-caption-collapsible .ringa-caption-more{
  position: absolute;
  right: 0;
  bottom: 0;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 18px;
  line-height: 1;
  color: var(--ringa-muted);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.ringa-reactions-picker{
  position:absolute;
  left: 12px;
  bottom: 58px;
  background: rgba(13,16,24,0.96);
  border: 1px solid var(--ringa-border);
  border-radius: 999px;
  padding: 8px 10px;
  display:none;
  gap: 10px;
  z-index: 30;
}
.ringa-reactions-picker button{
  border:none;
  background: transparent;
  font-size: 18px;
  cursor:pointer;
}
.ringa-reactions-picker button:active{ transform: scale(0.95); }

.ringa-bottom-nav{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--ringa-footer-h);
  background: rgba(13,16,24,0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--ringa-border);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 2px;
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: 6px;
  padding-right: 6px;
	/* Keep footer above reels overlays and any other fixed UI layers on mobile. */
	z-index: 999999;
}
.ringa-bottom-nav a{
  touch-action: manipulation;
  flex: 1 1 0;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
  text-align:center;
  /* Make the entire icon area clickable and consistently sized everywhere. */
  display:flex;
  align-items:center;
  justify-content:center;
  height: 100%;
  padding: 0;
  color: rgba(255,255,255,0.70);
  font-size: 22px;
  line-height: 1;
  position: relative;
  z-index: 1000000;
}
.ringa-bottom-nav a.is-active{ color: #fff; font-weight: 800; }

/* Active-tab indicator (requested): orange line under the current page icon */
.ringa-bottom-nav a.is-active::after{
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 8px;
  height: 3px;
  border-radius: 999px;
  background: var(--ringa-accent);
}

/* Do not show the underline on the floating + button even if classes change */
.ringa-bottom-nav a.plus::after{ display:none !important; }

/* Emoji tabs: keep a full-height, centered tap target. */
.ringa-bottom-nav a.navitem{
  /* Back-compat: some builds still add .navitem. */
  font-size: 22px;
}

/* Keep the plus button centered even though the nav bar uses align-items:stretch. */
.ringa-bottom-nav .plus{ align-self: center; }
.ringa-bottom-nav .plus{
  flex: 0 0 56px;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ringa-accent-2), var(--ringa-accent));
  display:flex;
  align-items:center;
  justify-content:center;
  margin-top: 0;
  box-shadow: 0 12px 26px rgba(0,0,0,0.45);
  color:#fff;
  font-size: 26px;
}

/* Ensure the floating + button stays above adjacent icons. */
.ringa-bottom-nav a.plus{ position: relative; z-index: 1000001; }

/* Reels */
.ringa-reels{
  padding: 0;
}
.ringa-reel{
  /* Mobile browsers can report 100vh larger than the *visible* area (URL bar).
     Use dynamic viewport units when available, and a JS-set --ringa-vh fallback. */
  height: calc(100vh - var(--ringa-footer-h));
  height: calc(100dvh - var(--ringa-footer-h));
  height: calc((var(--ringa-vh, 1vh) * 100) - var(--ringa-footer-h));
  position: relative;
  scroll-snap-align: start;
  background: #000;
}
.ringa-reels-snap{
  height: calc(100vh - var(--ringa-footer-h));
  height: calc(100dvh - var(--ringa-footer-h));
  height: calc((var(--ringa-vh, 1vh) * 100) - var(--ringa-footer-h));
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}
.ringa-reel video{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Reels: disable native video controls (we use custom gestures) and reduce double-tap zoom/fullscreen quirks. */
.ringa-reel video{
  touch-action: manipulation;
}
.ringa-reel video::-webkit-media-controls,
.ringa-reel video::-webkit-media-controls-panel,
.ringa-reel video::-webkit-media-controls-enclosure,
.ringa-reel video::-webkit-media-controls-overlay-play-button{
  display: none !important;
  -webkit-appearance: none;
}
.ringa-reel-overlay{
  position: absolute;
  left: 12px;
  right: 78px;
  bottom: 16px;
  z-index: 10;
}
.ringa-reel-title{
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  text-shadow: 0 8px 22px rgba(0,0,0,0.65);
  margin-top: 10px;
}
/* Reels caption: ellipsis button at end of 2nd line (no bubble). */
.ringa-reel-title.ringa-caption-collapsible{
  position: relative;
  padding-right: 22px; /* room for ellipsis */
}
.ringa-reel-title.ringa-caption-collapsible .ringa-caption-more{
  position: absolute;
  right: 0;
  bottom: 0; /* aligns to the 2nd clamped line */
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 18px;
  line-height: 1;
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  text-shadow: 0 8px 22px rgba(0,0,0,0.65);
}

/* Collapsed caption (2 lines) with a "More" affordance. */
.ringa-reel-title-text{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.ringa-reel-user{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  margin-top: 0;
}
.ringa-reel-user .ringa-avatar{ width: 40px; height: 40px; }
.ringa-reel-user-meta{ display:flex; flex-direction:column; gap: 6px; min-width: 0; }
.ringa-reel-user-meta .ringa-username{ color: #fff; text-shadow: 0 8px 22px rgba(0,0,0,0.65); }
.ringa-reel-follow .ringa-pill{ padding: 7px 12px; }

/* Like icon color: gray when not liked, red when liked */
.ringa-heart-icon{
  display:inline-block;
  font-size: 18px;
  line-height: 1;
  color: rgba(255,255,255,0.55);
}
.ringa-react-btn.is-reacted .ringa-heart-icon{ color: #ff3b30; }
/* Extra fallbacks: some UI updates set attributes before classes */
.ringa-react-btn[aria-pressed="true"] .ringa-heart-icon{ color: #ff3b30; }
.ringa-react-btn[data-my-reaction]:not([data-my-reaction=""]) .ringa-heart-icon{ color: #ff3b30; }


/* Fullscreen reels: floating search icon (top-right) */
.ringa-reel-search-toggle{
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 30;
  width: 44px;
  height: 44px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 18px;
  line-height: 1;
}
body.ringa-no-topbar .ringa-topsearch{ top: 0; }

.ringa-reel-actions{
  position:absolute;
  right: 10px;
  bottom: calc(var(--ringa-footer-h) + 18px);
  display:flex;
  flex-direction: column;
  gap: 12px;
  z-index: 12;
}
.ringa-reel-actions .ringa-action-btn{
  background: rgba(13,16,24,0.45);
  border: 1px solid rgba(255,255,255,0.10);
  /* Make all action buttons perfectly circular (like/comment/share) */
  width: 54px;
  height: 54px;
  padding: 8px 6px;
  border-radius: 50%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.ringa-reel-actions .ringa-action-btn .count{
  font-size: 12px;
  color: rgba(255,255,255,0.82);
  line-height: 1;
  white-space: nowrap;
}

/* Forms */
.ringa-center{
  padding: 18px 12px;
}
.ringa-form{
  background: var(--ringa-surface);
  border: 1px solid var(--ringa-border);
  border-radius: 18px;
  padding: 14px;
}
.ringa-form label{ display:block; font-size: 13px; color: var(--ringa-muted); margin: 10px 0 6px; }
.ringa-form input[type="text"],
.ringa-form input[type="password"],
.ringa-form textarea{
  width:100%;
  border-radius: 14px;
  border: 1px solid var(--ringa-border);
  background: rgba(255,255,255,0.02);
  color: var(--ringa-text);
  padding: 12px 12px;
  outline: none;
}
.ringa-form textarea{ min-height: 120px; resize: vertical; }
.ringa-form input[type="file"]{ width:100%; color: var(--ringa-muted); }
.ringa-form .row{ display:flex; gap: 10px; }
.ringa-form .row > *{ flex: 1; }

.ringa-profile{
  padding: 14px 0 24px;
}
.ringa-profile-header{
  padding: 12px 12px 0;
}
.ringa-profile-top{
  display:flex;
  gap: 12px;
  align-items:center;
}
.ringa-profile-top .ringa-avatar{ width: 96px; height:96px; }
.ringa-profile-stats{
  display:flex;
  gap: 10px;
  margin-top: 12px;
}
.ringa-stat{
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--ringa-border);
  border-radius: 16px;
  padding: 10px;
  text-align:center;
}
.ringa-stat .n{ font-weight: 900; font-size: 16px; }
.ringa-stat .l{ font-size: 12px; color: var(--ringa-muted); }

.ringa-divider{
  height: 10px;
  background: transparent;
}
.ringa-empty{
  color: var(--ringa-muted);
  padding: 30px 12px;
  text-align:center;
}

/* Desktop: keep content centered, and keep the header aligned (no huge viewport-based padding). */
@media(min-width: 900px){
  .ringa-feed{ max-width: 680px; margin: 0 auto; }
  .ringa-topbar{ padding-left: 12px; padding-right: 12px; }
}

.plus-inner{line-height:1;}

body.ringa-no-topbar{ --ringa-topbar-h: 0px; }
body.ringa-no-topbar .ringa-topbar{ display:none; }
:root{ --ringa-topbar-h: 58px; }

.ringa-brand-link{ cursor:pointer; }

/* Search bar */
.ringa-topsearch{
  position: sticky;
  top: 0;
  z-index: 39;
  background: rgba(11,13,18,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ringa-border);
  padding: 8px 12px;
  display:none;
}
body.ringa-search-open .ringa-topsearch{ display:block; }
.ringa-search-form{
  display:flex;
  align-items:center;
  gap:10px;
}
.ringa-search-form input{
  flex: 1;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--ringa-border);
  background: rgba(255,255,255,0.02);
  color: var(--ringa-text);
  padding: 0 14px;
  outline: none;
}
.ringa-search-form input::placeholder{ color: rgba(255,255,255,0.55); }

.ringa-search-hint{
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ringa-muted);
}
.ringa-muted-link{
  color: var(--ringa-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Comments modal */
.ringa-modal{
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}
.ringa-modal.is-open{ display:block; }
.ringa-modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.55);
}
.ringa-modal-sheet{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13,16,24,0.98);
  border-top: 1px solid var(--ringa-border);
  border-radius: 18px 18px 0 0;
  max-height: calc(100vh - 80px);
  display:flex;
  flex-direction: column;
  overflow: hidden;
}
.ringa-modal-head{
  padding: 12px 12px 10px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ringa-border);
}
.ringa-modal-title{ font-weight: 900; }
.ringa-modal-body{
  padding: 10px 12px;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}
.ringa-comments-list{ display:flex; flex-direction: column; gap: 12px; }
.ringa-comment{
  display:flex;
  gap: 10px;
  align-items:flex-start;
}
.ringa-comment .avatar img{ border-radius: 999px; }
.ringa-comment .meta{ font-size: 13px; color: var(--ringa-muted); }
.ringa-comment .bubble{
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--ringa-border);
  border-radius: 14px;
  padding: 8px 10px;
}
.ringa-comment .name{ font-weight: 800; color: var(--ringa-text); }
.ringa-comment .text{ font-size: 14px; line-height: 1.3; }

.ringa-comment-form{
  padding: 10px 12px calc(10px + var(--ringa-footer-h));
  display:flex;
  gap: 10px;
  align-items:flex-end;
  border-top: 1px solid var(--ringa-border);
}
.ringa-comment-form textarea{
  flex:1;
  resize: none;
  border-radius: 14px;
  border: 1px solid var(--ringa-border);
  background: rgba(255,255,255,0.02);
  color: var(--ringa-text);
  padding: 10px 12px;
  min-height: 44px;
  outline: none;
}

.ringa-muted{ color: var(--ringa-muted); font-size: 13px; }



/* Floating search button on the full-screen Videos page */
.ringa-videos-search-toggle{
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 18px;
  background: rgba(13,16,24,0.45);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  color: rgba(255,255,255,0.92);
}


/* Create composer */
.ringa-kind-row{
  display:flex;
  gap: 10px;
  margin: 6px 0 12px;
}
.ringa-kind-pill{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--ringa-border);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  user-select: none;
}
.ringa-kind-pill input{ margin:0; }
.ringa-kind-pill.is-active{
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
}
.ringa-create-media .muted{ color: rgba(255,255,255,0.55); font-size: 12px; }

/* ============
   Create Studio (CapCut/TikTok-like)
   ============ */

.ringa-create-studio{ padding:0; min-height: calc(var(--ringa-vh, 1vh) * 100); }
.ringa-create-studio .ringa-center{ width:100%; }

.ringa-create-gate{
  min-height: calc(var(--ringa-vh, 1vh) * 100);
  display:flex;
  align-items:center;
  justify-content:center;
}

.ringa-create-login-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: min(280px, 80vw);
  height: 56px;
  border-radius: 14px;
  font-weight: 900;
  text-decoration:none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color:#fff;
}

.ringa-create-shell{
  min-height: calc(var(--ringa-vh, 1vh) * 100);
  position:relative;
}

.ringa-create-perms{
  /* Fixed (not absolute) so it always covers the full viewport, even if parent sizing is odd. */
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding: calc(18px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom)) 18px;
  background: rgba(0,0,0,0.70);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
}

.ringa-create-perms-card{
  width: min(420px, 92vw);
  border-radius: 18px;
  padding:16px;
  background: rgba(18,18,18,0.92);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
}
.ringa-create-perms-title{ font-size:18px; font-weight:900; margin-bottom:6px; }
.ringa-create-perms-text{ opacity:.85; line-height:1.35; }
.ringa-create-perms-actions{ display:flex; gap:10px; justify-content:flex-end; margin-top:14px; }
.ringa-create-perms-hint{ margin-top:10px; font-size:12px; opacity:.65; }

.ringa-create-camera,
.ringa-create-editor{
  min-height: calc(var(--ringa-vh, 1vh) * 100);
}

.ringa-create-camera{ position:relative; padding:12px 12px calc(var(--ringa-footer-h) + 22px + env(safe-area-inset-bottom)) 12px; display:flex; flex-direction:column; gap:12px; }
.ringa-create-camera-top{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.ringa-create-preview{ flex: 1 1 auto; border-radius: 22px; overflow:hidden; background: rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.10); position:relative; }
.ringa-create-preview video{ width:100%; height:100%; object-fit:cover; display:block; }
.ringa-create-preview-overlay{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; padding:16px; text-align:center; opacity:.75; }

.ringa-create-controls{ display:flex; align-items:center; justify-content:center; gap:18px; padding-bottom:6px; }
.ringa-create-plus{ width:44px; height:44px; border-radius:14px; background: rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.14); }
.ringa-create-filter{ height:44px; border-radius:14px; }

.ringa-create-record{ width:64px; height:64px; border-radius: 999px; border:2px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.04); display:flex; align-items:center; justify-content:center; }
.ringa-create-record-dot{ width:36px; height:36px; border-radius: 999px; background: rgba(255,255,255,0.9); }
.ringa-create-record.is-recording .ringa-create-record-dot{ background: #ff4d6d; width:30px; height:30px; border-radius: 10px; }

.ringa-create-tabs{ display:flex; gap:10px; justify-content:center; padding-bottom:6px; }
.ringa-create-tab{ border:none; background:transparent; color: rgba(255,255,255,0.65); font-weight:900; padding:8px 10px; border-radius: 999px; }
.ringa-create-tab.is-active{ color:#fff; background: rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.14); }

.ringa-create-editor{ display:flex; flex-direction:column; padding:10px 12px calc(var(--ringa-footer-h) + 16px + env(safe-area-inset-bottom)) 12px; gap:10px; }
.ringa-create-editor-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.ringa-create-link{ border:none; background:transparent; color: rgba(255,255,255,0.75); font-weight:900; padding:8px 10px; }
.ringa-create-link.is-strong{ color:#fff; }
.ringa-create-editor-title{ font-weight:900; opacity:.85; }

.ringa-create-editor-preview{ flex: 1 1 auto; border-radius: 18px; overflow:hidden; background: rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.10); }
.ringa-create-editor-preview video,
.ringa-create-editor-preview img{ width:100%; height:100%; object-fit:contain; display:block; background:#000; }
.ringa-create-editor-text{ height:100%; }
.ringa-create-editor-text textarea{ width:100%; height:100%; background:transparent; border:none; outline:none; padding:14px; font-size:18px; color:#fff; resize:none; }

.ringa-timeline{ border-top:1px solid rgba(255,255,255,0.08); padding-top:10px; }
.ringa-timeline-toolbar{ display:flex; align-items:center; gap:10px; }
.ringa-timeline-time{ font-weight:900; opacity:.8; }
.ringa-timeline-spacer{ flex:1 1 auto; }

.ringa-tracks{ margin-top:10px; display:flex; flex-direction:column; gap:10px; }
.ringa-track{ display:flex; gap:10px; align-items:center; }
.ringa-track-label{ width:56px; font-size:12px; opacity:.75; font-weight:900; }
.ringa-track-bar{ flex:1 1 auto; height:22px; border-radius: 10px; background: rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.10); }

.ringa-editor-actions{ margin-top:10px; }
.ringa-editor-actionset{ display:flex; gap:10px; }

.ringa-editor-caption{ margin-top:10px; }
.ringa-editor-caption label{ display:block; font-size:12px; font-weight:900; opacity:.75; margin-bottom:6px; }
.ringa-editor-caption textarea{ width:100%; min-height:64px; border-radius: 14px; background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12); padding:10px 12px; color:#fff; resize:vertical; }

.ringa-create-processing{
  min-height: calc(var(--ringa-vh, 1vh) * 100);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.ringa-processing-card{
  width: min(520px, 94vw);
  border-radius: 18px;
  padding:16px;
  background: rgba(18,18,18,0.92);
  border: 1px solid rgba(255,255,255,0.12);
}
.ringa-processing-title{ font-weight:900; font-size:18px; margin-bottom:6px; }
.ringa-processing-sub{ opacity:.8; }
.ringa-processing-meta{ margin-top:10px; font-size:12px; opacity:.8; display:flex; gap:10px; }
.ringa-media-preview{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.ringa-media-preview img,
.ringa-media-preview video{
  width:100%;
  height:90px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #000;
}

/* Avatar upload */
.ringa-avatar-wrap{
	/* Needed so the camera overlay positions on top of the profile picture */
	position: relative;
	width: 96px;
	height: 96px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,.12);
	background: rgba(255,255,255,.03);
	overflow: hidden;
	flex: 0 0 auto;
}

.ringa-avatar-wrap .ringa-avatar{
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 999px;
	display: block;
}

.ringa-avatar-upload{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items:center;
  justify-content:center;
}

/* Hide the actual file input (we trigger it via the camera button). */
.ringa-avatar-input{ display:none; }

/* Overlay the avatar-change control on top of the profile picture. */
.ringa-avatar-upload.ringa-avatar-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  padding: 6px;
  gap:0;
  /* Ensure the camera button is always visible/clickable above the avatar image. */
  z-index: 10;
  pointer-events: none;
}
.ringa-avatar-upload.ringa-avatar-overlay .ringa-avatar-pick{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.55);
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,0.45);
  pointer-events: auto;
}
.ringa-avatar-upload.ringa-avatar-overlay .ringa-avatar-pick .ringa-icon{
  width: 20px;
  height: 20px;
  fill: currentColor;
  opacity: 0.95;
}
/* Desktop: keep a clean phone-like column */
@media (min-width: 900px){
  .ringa-app{
    max-width: 560px;
    margin: 0 auto;
    border-left: 1px solid var(--ringa-border);
    border-right: 1px solid var(--ringa-border);
  }
  .ringa-topbar{
    max-width: 560px;
    margin: 0 auto;
  }
  .ringa-bottom-nav{
    max-width: 560px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 1px solid var(--ringa-border);
    border-right: 1px solid var(--ringa-border);
  }
}

/* ===== Notifications ===== */
.ringa-profile-actions{display:flex;gap:10px;align-items:center;}
.ringa-notif-bell{position:relative;}
.ringa-badge{
  position:absolute;
  top:-4px;
  right:-4px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background: var(--ringa-accent);
  color:#fff;
  font-size:11px;
  line-height:18px;
  font-weight:900;
  text-align:center;
  box-shadow: 0 10px 18px rgba(0,0,0,.35);
}

.ringa-page-head{padding:8px 0 14px;display:flex;align-items:center;justify-content:space-between;}
.ringa-page-title{margin:0;font-size:18px;font-weight:900;}

.ringa-notifs-wrap{margin-top:6px;}
.ringa-notifs-head{display:flex;justify-content:flex-end;margin-bottom:10px;}
.ringa-notifs-list{display:flex;flex-direction:column;gap:10px;}
.ringa-notif-item{display:flex;gap:12px;align-items:flex-start;padding:12px;border-radius:16px;border:1px solid var(--ringa-border);background: var(--ringa-surface);text-decoration:none;color:var(--ringa-text);}
.ringa-notif-item.is-unread{border-color: rgba(255,122,26,.55);box-shadow: 0 10px 26px rgba(0,0,0,.25);}
.ringa-notif-avatar{width:40px;height:40px;border-radius:999px;overflow:hidden;flex:0 0 40px;position:relative;}
.ringa-notif-avatar img{width:100%;height:100%;object-fit:cover;}
.ringa-notif-plus{
  position:absolute;
  right:-6px;
  bottom:-6px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:900;
  background:rgba(255,122,26,.95);
  color:#0b0f19;
  border:2px solid var(--ringa-surface);
  box-shadow:0 8px 18px rgba(0,0,0,.35);
  line-height:1;
}

.ringa-notif-body{flex:1;min-width:0;}
.ringa-notif-text{font-weight:800;line-height:1.25;}
.ringa-notif-time{margin-top:4px;font-size:12px;color:var(--ringa-muted);}

.ringa-notif-settings .ringa-toggle{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--ringa-border);}
.ringa-notif-settings .ringa-toggle:first-of-type{border-top:0;}
.ringa-notif-settings input[type="checkbox"]{width:18px;height:18px;}


/* Video upload overlay */
.ringa-upload-overlay{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.55);
  z-index:9999;
  padding:18px;
}
.ringa-upload-card{
  width:min(520px, 100%);
  background:rgba(13,16,24,0.96);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:18px;
  padding:16px;
  box-shadow:0 20px 60px rgba(0,0,0,0.45);
}
.ringa-upload-title{
  font-size:16px;
  font-weight:700;
  margin-bottom:6px;
}
.ringa-upload-sub{
  font-size:13px;
  color:rgba(255,255,255,0.72);
  margin-bottom:12px;
  line-height:1.35;
}
.ringa-upload-bar{
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,0.12);
  overflow:hidden;
}
.ringa-upload-bar-inner{
  height:100%;
  background:rgba(255,124,124,0.95);
  width:0%;
  border-radius:999px;
}
.ringa-upload-meta{
  margin-top:10px;
  display:flex;
  justify-content:space-between;
  font-size:12px;
  color:rgba(255,255,255,0.76);
}

/* Feed banner when processing */
.ringa-processing-banner{
  margin:10px 0 14px;
  padding:12px 14px;
  border-radius:16px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.10);
  color:rgba(255,255,255,0.86);
  font-size:13px;
}


/* Reels: keep caption close to scrubber without jumping too high.
   The reel container already subtracts the footer height, so we only offset
   for safe-area plus a small cushion. */
.page-template-page-videos .ringa-reel-overlay{
  bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
}
.page-template-page-videos .ringa-reel-actions{
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
}

/* Pull-up caption sheet */
.ringa-caption-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 1000004;
}
.ringa-caption-sheet{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateY(110%);
  transition: transform 0.22s ease;
  background: rgba(11,13,18,0.98);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  border-top: 1px solid rgba(255,255,255,0.10);
  z-index: 1000005;
  max-height: min(70vh, 520px);
  display: flex;
  flex-direction: column;
}
.ringa-caption-sheet.is-open{ transform: translateY(0); }
.ringa-caption-backdrop.is-open{
  opacity: 1;
  pointer-events: auto;
}
.ringa-caption-handle{
  width: 56px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255,255,255,0.22);
  margin: 10px auto 0;
}
.ringa-caption-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 6px;
  gap: 10px;
}
.ringa-caption-user{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ringa-caption-avatar img{
  width: 32px;
  height: 32px;
  border-radius: 999px;
}
.ringa-caption-username{
  font-weight: 900;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ringa-caption-close{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.9);
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 900;
}
.ringa-caption-body{
  padding: 10px 14px 18px;
  overflow: auto;
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  line-height: 1.35;
  word-break: break-word;
}

body.ringa-no-scroll{ overflow: hidden; }

/* Fixed shell mode: keep header/footer stable and scroll only the content (used on Store + WooCommerce pages) */
body.ringa-fixed-shell{
  height: calc(var(--ringa-vh, 1vh) * 100);
  /* Use --ringa-vh for a stable viewport height on mobile. */
  overflow: hidden;
}
body.ringa-fixed-shell .ringa-app{
  position: fixed;
  inset: 0;
  height: calc(var(--ringa-vh, 1vh) * 100);
  height: 100dvh;
  overflow: hidden;
  padding-bottom: 0;
}
body.ringa-fixed-shell .ringa-topbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
body.ringa-fixed-shell .ringa-topsearch{
  position: fixed;
  left: 0;
  right: 0;
  top: var(--ringa-topbar-h);
}
body.ringa-fixed-shell .ringa-content{
  overflow-x: hidden;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--ringa-topbar-h);
  bottom: var(--ringa-footer-h);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body.ringa-fixed-shell.ringa-search-open .ringa-content{
  /* keep content below the search bar when open */
  top: calc(var(--ringa-topbar-h) + 56px);
}
body.ringa-fixed-shell .ringa-bottom-nav{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
}
body.ringa-fixed-shell.ringa-no-scroll .ringa-content{
  overflow: hidden !important;
}


/* ===== Store (/videos/) ===== */
.ringa-store .ringa-pagehead{ padding: 10px 14px 2px 14px; }
.ringa-page-title{ font-size: 18px; font-weight: 700; }

.ringa-store-toolbar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  flex-wrap: wrap;
}
.ringa-store-search{ flex: 1 1 260px; min-width: 0; }
.ringa-store-links{ display:flex; gap: 8px; flex: 0 0 auto; }

/* Keep the store content comfortably centered on large screens */
.ringa-store .ringa-store-grid{
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.woocommerce-product-search{
  display:flex;
  gap: 8px;
}
.woocommerce-product-search input[type="search"]{
  flex: 1 1 auto;
  min-width: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: inherit;
  padding: 10px 12px;
  border-radius: 999px;
}
.woocommerce-product-search button{
  border-radius: 999px;
  padding: 10px 12px;
}

/* If Woo prints result-count / ordering, keep it neat */
.ringa-store .woocommerce-result-count{ display: none !important; }
.ringa-store .woocommerce-ordering{
  float: none !important;
  width: 100%;
  margin: 0 14px 8px 14px;
  display:flex;
  justify-content: flex-end;
}
.ringa-store .woocommerce-ordering select{
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: inherit;
  padding: 10px 12px;
  border-radius: 999px;
}

.ringa-store .ringa-store-grid > .woocommerce{ width: 100%; }
.ringa-store .woocommerce ul.products{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  grid-auto-flow: row;
  justify-items: stretch;
  align-content: start;
  padding: 12px 14px calc(var(--ringa-footer-h) + 16px) 14px;
  margin: 0;
  list-style: none;
}
.ringa-store .woocommerce ul.products li.product{
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 10px;
}
.ringa-store .woocommerce ul.products li.product a{
  color: inherit;
  text-decoration: none;
}
.ringa-store .woocommerce ul.products li.product img{
  border-radius: 14px;
}
.ringa-store .woocommerce ul.products li.product .button{
  width: 100%;
  border-radius: 999px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  font-weight: 900;
  border: none !important;
  background: linear-gradient(135deg, var(--ringa-accent-2), var(--ringa-accent)) !important;
  color: #fff !important;
  opacity: 1 !important;
}
.ringa-store .woocommerce ul.products li.product .button:active{ transform: scale(0.99); }
.ringa-store .woocommerce ul.products li.product .button.added{
  background: rgba(255,255,255,0.10) !important;
}
.ringa-store .woocommerce ul.products li.product a.added_to_cart{
  display:none !important;
}

/* ===== Discover (/groups/) ===== */
.ringa-discover .ringa-pagehead{ padding: 10px 14px 2px 14px; }

.ringa-searchbar{
  display:flex;
  gap: 10px;
  padding: 10px 14px;
}
.ringa-search-input{
  flex: 1 1 auto;
  min-width: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: inherit;
  padding: 10px 12px;
  border-radius: 999px;
}

.ringa-usercard-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
}
.ringa-usercard-left{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}
.ringa-user-name{
  font-weight: 700;
  color: inherit;
  text-decoration: none;
  display:block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ringa-user-sub{
  font-size: 12px;
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Fixed-shell store: footer is not overlaying content, so reduce extra bottom padding */
body.ringa-fixed-shell .ringa-store .woocommerce ul.products{
  padding-bottom: 18px;
}

/* Prevent horizontal drift on Store/Woo pages */
body.ringa-fixed-shell, body.ringa-fixed-shell .ringa-app, body.ringa-fixed-shell .ringa-content{ overflow-x: hidden; }
body.ringa-fixed-shell .woocommerce, body.ringa-fixed-shell .woocommerce-page{ overflow-x: hidden; }
body.ringa-fixed-shell .woocommerce-ordering, body.ringa-fixed-shell .woocommerce-ordering select{ max-width: 100%; }

/* Make sure WooCommerce buttons stay readable everywhere (shop/product/cart/checkout) */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit{
  border-radius: 999px;
  font-weight: 900;
  border: none !important;
  background: linear-gradient(135deg, var(--ringa-accent-2), var(--ringa-accent)) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.woocommerce a.button:disabled,
.woocommerce button.button:disabled,
.woocommerce input.button:disabled{
  opacity: 0.55 !important;
}

/* ===== Comments (single post share link) ===== */
.ringa-comments{ padding: 0; }
.ringa-comments-title{
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 900;
}
.ringa-comment-list{
  list-style: none;
  margin: 0 0 12px 0;
  padding: 0;
}
.ringa-comment-list li{
  margin: 0 0 10px 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}
.ringa-comment-list .comment-author{ display:flex; align-items:center; gap:10px; margin-bottom: 6px; }
.ringa-comment-list .comment-author img{ border-radius: 999px; }
.ringa-comment-list .comment-metadata{ font-size: 12px; color: var(--ringa-muted); }
.ringa-comment-list .comment-content{ color: rgba(255,255,255,0.92); }
.ringa-comment-list .reply a{ color: #fff; opacity: 0.85; }

.ringa-comment-form label{ display:block; font-size: 12px; color: var(--ringa-muted); margin: 8px 0 6px; }
.ringa-comment-form textarea,
.ringa-comment-form input[type="text"],
.ringa-comment-form input[type="email"],
.ringa-comment-form input[type="url"]{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: #fff;
  padding: 10px 12px;
  outline: none;
}
.ringa-comment-form textarea{ min-height: 110px; resize: vertical; }
.ringa-comment-form input[type="submit"]{
  width: 100%;
  border-radius: 999px;
  padding: 12px 14px;
  font-weight: 900;
  border: none !important;
  background: linear-gradient(135deg, var(--ringa-accent-2), var(--ringa-accent)) !important;
  color: #fff !important;
}
.ringa-comment-form .logged-in-as,
.ringa-comment-form .comment-notes{
  color: var(--ringa-muted);
  font-size: 12px;
  margin: 6px 0;
}


/* Deep-link highlight when opening a shared post in the feed */
.ringa-card.ringa-deeplink{
  outline: 2px solid var(--ringa-accent);
  box-shadow: 0 0 0 6px rgba(255,97,32,0.12);
}



/* Shared post page: inline comments should not reserve footer-height like modals */
.ringa-comments-inline .ringa-comment-form{
  padding: 10px 0 0;
  border-top: 1px solid var(--ringa-border);
}
.ringa-comments-inline .ringa-comment-form textarea{
  min-height: 44px;
}
.ringa-comments-inline .ringa-comment-submitwrap{
  display:flex;
  align-items:flex-end;
}
.ringa-comments-inline .ringa-empty{
  padding: 0;
  margin-top: 6px;
}


/* Shared post comments: hide WP form chrome */
.ringa-comments .comment-reply-title,
.ringa-comments .logged-in-as,
.ringa-comments .comment-notes,
.ringa-comments .comment-form-author,
.ringa-comments .comment-form-email,
.ringa-comments .comment-form-url,
.ringa-comments .comment-form-cookies-consent{
  display:none !important;
}
.ringa-comments .ringa-comment-form{
  flex-wrap: nowrap;
}
.ringa-comments .ringa-comment-form p{
  margin: 0;
}

/* =========================================================
   Ringa Beauty Pass v0.2 - premium app polish
   Keeps the dark Ringa identity, but sharpens the chrome.
   ========================================================= */
:root{
  --ringa-glass: rgba(17,21,33,0.74);
  --ringa-glow: rgba(255,97,32,0.28);
  --ringa-glow-2: rgba(255,61,122,0.22);
  --ringa-card-shadow: 0 18px 55px rgba(0,0,0,0.35);
}

html{ scroll-behavior:smooth; }
body{
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at 18% -10%, var(--ringa-glow) 0, transparent 34%),
    radial-gradient(circle at 88% 4%, var(--ringa-glow-2) 0, transparent 30%),
    linear-gradient(180deg, #080a10 0%, var(--ringa-bg) 42%, #07080d 100%);
}

.ringa-app{
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), transparent 140px),
    rgba(9,11,17,0.34);
}

.ringa-svg-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 1.15em;
  height: 1.15em;
  line-height: 1;
  flex: 0 0 auto;
}
.ringa-svg-icon svg{ width:100%; height:100%; display:block; }

.ringa-topbar{
  background: linear-gradient(180deg, rgba(15,18,28,0.86), rgba(12,14,21,0.72));
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  border-bottom-color: rgba(255,255,255,0.10);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}
.ringa-brand{
  gap: 9px;
  font-size: 17px;
  letter-spacing: .1px;
}
.ringa-brand-mark{
  width: 31px;
  height: 31px;
  border-radius: 11px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight: 950;
  color:#fff;
  background: linear-gradient(135deg, var(--ringa-accent-2), var(--ringa-accent));
  box-shadow: 0 10px 24px rgba(255,97,32,0.26), inset 0 1px 0 rgba(255,255,255,0.28);
}
.ringa-brand-text{
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.72) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* Site brand image: replaces the legacy orange R tile while preserving its footprint. */
.ringa-brand-mark--image{
  overflow:hidden;
  padding:0;
  background:#f4f4f4;
}
.ringa-brand-mark--image img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
}

.ringa-icon-btn,
.ringa-pill{
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.ringa-icon-btn{
  background: rgba(255,255,255,0.055);
  border-color: rgba(255,255,255,0.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.ringa-icon-btn:hover,
.ringa-pill:hover{ transform: translateY(-1px); }
.ringa-icon-btn:active,
.ringa-pill:active{ transform: translateY(0) scale(.98); }
.ringa-pill{
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.ringa-pill.is-primary{
  background: linear-gradient(135deg, var(--ringa-accent-2), var(--ringa-accent));
  box-shadow: 0 12px 28px rgba(255,97,32,0.22), inset 0 1px 0 rgba(255,255,255,0.22);
}
.ringa-pill.is-ghost{
  background: rgba(255,255,255,0.045);
  border-color: rgba(255,255,255,0.11);
}

.ringa-topsearch{
  background: rgba(10,12,18,0.90);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 18px 42px rgba(0,0,0,0.30);
}
.ringa-search-form input,
.ringa-form input[type="text"],
.ringa-form input[type="password"],
.ringa-form textarea,
.ringa-search-input,
.woocommerce-product-search input[type="search"]{
  background: rgba(255,255,255,0.055);
  border-color: rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.ringa-search-form input:focus,
.ringa-form input[type="text"]:focus,
.ringa-form input[type="password"]:focus,
.ringa-form textarea:focus,
.ringa-search-input:focus,
.woocommerce-product-search input[type="search"]:focus{
  border-color: color-mix(in srgb, var(--ringa-accent) 70%, white 15%);
  box-shadow: 0 0 0 3px rgba(255,97,32,0.16), inset 0 1px 0 rgba(255,255,255,0.06);
}

.ringa-feed{
  gap: 16px;
  padding: 14px 10px 20px;
}
.ringa-card{
  width: auto;
  margin: 0;
  border: 1px solid rgba(255,255,255,0.085);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
  box-shadow: var(--ringa-card-shadow);
}
.ringa-card-header{
  padding: 12px 12px 10px;
}
.ringa-avatar{
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.ringa-username{ letter-spacing:-.01em; }
.ringa-subline{ color: rgba(255,255,255,0.58); }
.ringa-media{
  margin: 0 10px;
  width: calc(100% - 20px);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.24);
}
.ringa-media img,
.ringa-media video{ border-radius: 17px; }
.ringa-card-body{ padding: 11px 12px 13px; }
.ringa-actions{
  margin-top: 0;
  padding: 4px;
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.06);
}
.ringa-action-btn{
  min-height: 36px;
  padding: 7px 9px;
  border-radius: 13px;
  color: rgba(255,255,255,0.86);
}
.ringa-action-btn:hover{ background: rgba(255,255,255,0.075); }
.ringa-action-btn .count{ color: rgba(255,255,255,0.67); font-weight: 750; }
.ringa-react-btn.is-reacted .ringa-svg-icon-heart,
.ringa-react-btn[aria-pressed="true"] .ringa-svg-icon-heart,
.ringa-react-btn[data-my-reaction]:not([data-my-reaction=""]) .ringa-svg-icon-heart,
.ringa-react-btn.is-reacted .ringa-heart-icon,
.ringa-react-btn[aria-pressed="true"] .ringa-heart-icon,
.ringa-react-btn[data-my-reaction]:not([data-my-reaction=""]) .ringa-heart-icon{
  color: #ff3b5f;
  fill: currentColor;
}
.ringa-caption{
  margin-top: 11px;
  line-height: 1.42;
}
.ringa-caption-author{
  font-weight: 850;
  color: rgba(255,255,255,0.76) !important;
}
.ringa-dot{
  width: 7px;
  height: 7px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.ringa-dot.is-active{ background: var(--ringa-accent); }

.ringa-menu-panel{
  background: rgba(12,14,22,0.98);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-color: rgba(255,255,255,0.11);
  box-shadow: 0 18px 46px rgba(0,0,0,0.42);
}

.ringa-bottom-nav{
  height: calc(var(--ringa-footer-h));
  background: linear-gradient(180deg, rgba(16,19,30,0.82), rgba(10,12,18,0.96));
  -webkit-backdrop-filter: blur(20px) saturate(1.18);
  backdrop-filter: blur(20px) saturate(1.18);
  border-top-color: rgba(255,255,255,0.11);
  box-shadow: 0 -12px 35px rgba(0,0,0,0.34);
}
.ringa-bottom-nav a.navitem{
  flex-direction: column;
  gap: 3px;
  font-size: 21px;
  color: rgba(255,255,255,0.62);
}
.ringa-bottom-nav a.navitem .ringa-svg-icon{ font-size: 22px; }
.ringa-bottom-nav a.is-active{
  color: #fff;
}
.ringa-nav-label{
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .01em;
  color: rgba(255,255,255,0.54);
}
.ringa-bottom-nav a.is-active .ringa-nav-label{ color: rgba(255,255,255,0.88); }
.ringa-bottom-nav a.is-active::after{
  left: 50%;
  right: auto;
  bottom: 6px;
  width: 5px;
  height: 5px;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--ringa-accent-2), var(--ringa-accent));
  box-shadow: 0 0 16px var(--ringa-accent);
}
.ringa-bottom-nav .plus{
  flex: 0 0 52px;
  width: 46px;
  height: 46px;
  margin-top: 0 !important;
  box-shadow: 0 12px 28px rgba(255,97,32,0.24), 0 10px 24px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.28);
}
.ringa-bottom-nav .plus .plus-inner{
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 24px;
}
.ringa-bottom-nav .plus .ringa-svg-icon{ width: 24px; height: 24px; }

.ringa-form,
.ringa-profile-header,
.ringa-notif-item,
.ringa-processing-card,
.ringa-upload-card,
.ringa-create-perms-card{
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border-color: rgba(255,255,255,0.10);
  box-shadow: var(--ringa-card-shadow);
}
.ringa-center{ padding: 20px 12px; }
.ringa-form{
  border-radius: 24px;
  padding: 18px;
}
.ringa-form label{
  font-weight: 800;
  color: rgba(255,255,255,0.70);
}
.ringa-form button[type="submit"]{
  width: 100%;
  min-height: 44px;
}
.ringa-empty{
  border-radius: 20px;
  margin: 10px 12px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
}

.ringa-profile-header{
  margin: 0 10px;
  padding: 14px;
  border-radius: 24px;
}
.ringa-profile-top .ringa-avatar{
  border: 2px solid rgba(255,255,255,0.14);
  box-shadow: 0 16px 42px rgba(0,0,0,0.32);
}
.ringa-stat{
  background: rgba(255,255,255,0.045);
  border-color: rgba(255,255,255,0.08);
}
.ringa-stat .n{ font-size: 18px; }

.ringa-store .ringa-pagehead,
.ringa-discover .ringa-pagehead{
  padding: 16px 14px 4px;
}
.ringa-page-title{
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.03em;
}
.ringa-store-toolbar,
.ringa-searchbar{
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ringa-store .woocommerce ul.products{
  gap: 14px;
}
.ringa-store .woocommerce ul.products li.product{
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 14px 40px rgba(0,0,0,0.24);
}
.ringa-store .woocommerce ul.products li.product img{
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}
.ringa-store .woocommerce ul.products li.product .woocommerce-loop-product__title{
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  line-height: 1.2;
}
.ringa-store .woocommerce ul.products li.product .price{
  color: var(--ringa-accent-2) !important;
  font-weight: 950;
}

.ringa-usercard-row{
  margin: 0 10px 10px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  box-shadow: 0 12px 34px rgba(0,0,0,0.20);
}
.ringa-discover .ringa-divider{ display:none; }

.ringa-modal-backdrop,
.ringa-caption-backdrop{ background: rgba(0,0,0,0.66); }
.ringa-modal-sheet,
.ringa-caption-sheet{
  background: rgba(12,14,22,0.98);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-color: rgba(255,255,255,0.11);
  box-shadow: 0 -18px 60px rgba(0,0,0,0.55);
}
.ringa-comment .bubble{
  background: rgba(255,255,255,0.055);
  border-color: rgba(255,255,255,0.09);
}

@media (min-width: 900px){
  .ringa-app{
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 28px 90px rgba(0,0,0,0.45);
  }
  .ringa-feed{ max-width: 560px; padding-left: 12px; padding-right: 12px; }
}

@media (max-width: 420px){
  .ringa-feed{ padding-left: 8px; padding-right: 8px; gap: 12px; }
  .ringa-card{ border-radius: 20px; }
  .ringa-media{ margin-left: 8px; margin-right: 8px; width: calc(100% - 16px); }
  .ringa-actions-left{ gap: 4px; }
  .ringa-action-btn{ padding-left: 8px; padding-right: 8px; }
  .ringa-nav-label{ font-size: 9px; }
}

/* ===== v1.0.18.4.18 hotfix: preserve original edge-to-edge feed and lock footer alignment ===== */
/* Feed posts must keep the original full-width, edge-to-edge layout inside the app column. */
.ringa-feed{
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.ringa-feed .ringa-card{
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-radius: 0 !important;
}
.ringa-feed .ringa-media{
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-radius: 0 !important;
}
.ringa-feed .ringa-media img,
.ringa-feed .ringa-media video{
  border-radius: 0 !important;
}

/* Footer geometry fix: match the real app/feed column, not the browser viewport.
   JS updates --ringa-shell-left/width from .ringa-app so the footer stays centered
   even when desktop zoom, scrollbars, WooCommerce shell mode, or cached page chrome shift things. */
@media (min-width: 900px){
  .ringa-bottom-nav,
  body.ringa-fixed-shell .ringa-bottom-nav{
    width: var(--ringa-shell-width, min(560px, 100vw)) !important;
    max-width: none !important;
    left: var(--ringa-shell-left, calc((100vw - min(560px, 100vw)) / 2)) !important;
    right: auto !important;
    transform: none !important;
  }
}

@media (max-width: 899px){
  .ringa-bottom-nav,
  body.ringa-fixed-shell .ringa-bottom-nav{
    width: 100% !important;
    max-width: none !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
  }
}


/* ===== v1.0.18.4.20 comment modal hotfix =====
   Keep the comments sheet aligned to the same app/post column and keep
   the submit form above all chrome so Send is clickable. */
#ringaCommentModal.ringa-modal{
  z-index: 1000002;
}
#ringaCommentModal .ringa-modal-backdrop{
  background: rgba(0,0,0,0.66);
}
#ringaCommentModal .ringa-modal-sheet{
  width: var(--ringa-shell-width, min(560px, 100vw)) !important;
  max-width: 100vw !important;
  left: var(--ringa-shell-left, calc((100vw - min(560px, 100vw)) / 2)) !important;
  right: auto !important;
  bottom: 0 !important;
  border-left: 1px solid rgba(255,255,255,0.10);
  border-right: 1px solid rgba(255,255,255,0.10);
  max-height: min(78vh, calc((var(--ringa-vh, 1vh) * 100) - 18px));
}
#ringaCommentModal .ringa-modal-body{
  min-height: 90px;
}
#ringaCommentModal .ringa-comment-form{
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
  gap: 8px;
  align-items: center;
}
#ringaCommentModal .ringa-comment-textarea{
  min-height: 48px;
  max-height: 128px;
}
#ringaCommentModal .ringa-comment-submit{
  flex: 0 0 auto;
  min-height: 42px;
  padding-left: 15px;
  padding-right: 15px;
}
@media (max-width: 899px){
  #ringaCommentModal .ringa-modal-sheet{
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    max-width: none !important;
  }
}


/* ===== v1.0.18.4.21 comment modal alignment refinement =====
   The comments sheet now follows the active post/feed card geometry, not only
   the outer app shell. This keeps the A/A side gaps visually equal on desktop. */
#ringaCommentModal .ringa-modal-sheet{
  width: var(--ringa-comment-width, var(--ringa-shell-width, min(560px, 100vw))) !important;
  left: var(--ringa-comment-left, var(--ringa-shell-left, calc((100vw - min(560px, 100vw)) / 2))) !important;
  right: auto !important;
  transform: none !important;
  box-sizing: border-box !important;
}
@media (min-width: 900px){
  #ringaCommentModal .ringa-modal-sheet{
    max-width: var(--ringa-comment-width, var(--ringa-shell-width, 560px)) !important;
  }
}
@media (max-width: 899px){
  #ringaCommentModal .ringa-modal-sheet{
    width: 100% !important;
    max-width: none !important;
    left: 0 !important;
    right: 0 !important;
  }
}


/* ===== v1.0.18.4.24 themed multiple-media carousel controls =====
   Orange-glass carousel UI that matches the locked Ringa dark premium theme. */
.ringa-has-carousel{
  position: relative;
  isolation: isolate;
}
.ringa-carousel{
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.ringa-carousel.is-dragging{
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}
.ringa-carousel-nav{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
  z-index: 7;
}
.ringa-carousel-btn{
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,97,32,0.42);
  background:
    radial-gradient(circle at 32% 18%, rgba(255,255,255,0.18), transparent 31%),
    linear-gradient(135deg, rgba(255,138,72,0.88), rgba(255,97,32,0.92));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow:
    0 14px 32px rgba(0,0,0,0.46),
    0 0 22px rgba(255,97,32,0.26),
    inset 0 1px 0 rgba(255,255,255,0.22);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  transition: transform .16s ease, opacity .16s ease, filter .16s ease, box-shadow .16s ease;
}
.ringa-carousel-btn svg{
  width: 21px;
  height: 21px;
  display: block;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.38));
}
.ringa-carousel-btn:hover{
  transform: scale(1.06);
  filter: brightness(1.07) saturate(1.08);
  box-shadow:
    0 16px 36px rgba(0,0,0,0.5),
    0 0 30px rgba(255,97,32,0.38),
    inset 0 1px 0 rgba(255,255,255,0.26);
}
.ringa-carousel-btn:active{
  transform: scale(.95);
}
.ringa-carousel-btn[disabled]{
  opacity: .34;
  cursor: default;
  transform: none;
  filter: grayscale(.18) brightness(.82);
}
.ringa-has-carousel .ringa-dots{
  z-index: 8;
  pointer-events: auto;
  left: 50%;
  right: auto;
  bottom: 12px;
  transform: translateX(-50%);
  width: auto;
  min-height: 22px;
  padding: 6px 8px;
  gap: 6px;
  align-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(16,19,30,0.68), rgba(7,9,14,0.84));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 24px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  backdrop-filter: blur(12px) saturate(1.15);
}
.ringa-has-carousel .ringa-dot{
  cursor: pointer;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.34);
  box-shadow: none;
  transition: transform .16s ease, background .16s ease, width .16s ease, box-shadow .16s ease;
}
.ringa-has-carousel .ringa-dot:hover{
  background: rgba(255,255,255,0.68);
}
.ringa-has-carousel .ringa-dot.is-active{
  width: 20px;
  background: linear-gradient(135deg, var(--ringa-accent-2), var(--ringa-accent));
  box-shadow: 0 0 14px rgba(255,97,32,0.46);
}
@media (max-width: 899px){
  .ringa-carousel-nav{
    padding: 0 9px;
  }
  .ringa-carousel-btn{
    width: 36px;
    height: 36px;
    opacity: .94;
  }
  .ringa-carousel-btn svg{
    width: 19px;
    height: 19px;
  }
  .ringa-has-carousel .ringa-dots{
    bottom: 10px;
    min-height: 20px;
    padding: 5px 7px;
  }
}
@media (hover: none) and (pointer: coarse){
  .ringa-carousel{ cursor: default; }
}



/* ===== v1.0.18.4.25 caption order cleanup =====
   Captions now live above the like/comment/share action bar, and the inline
   repeated author name is removed because the post header already shows it. */
.ringa-card-body .ringa-caption{
  margin: 0 0 12px;
}
.ringa-card-body .ringa-caption + .ringa-actions{
  margin-top: 0;
}
.ringa-card-body .ringa-actions + .ringa-caption{
  margin-top: 12px;
}
.ringa-caption-author{
  display: none !important;
}


/* ===== v1.0.18.4.26 caption above media fix =====
   Post title/caption/description now sits directly under the post header and
   above photos/videos, while actions remain below the media. */
.ringa-card-body.ringa-caption-zone{
  padding: 0 12px 11px !important;
}
.ringa-card-body.ringa-actions-zone{
  padding: 11px 12px 13px !important;
}
.ringa-card-body.ringa-caption-zone .ringa-caption{
  margin: 0 !important;
}
.ringa-card-body.ringa-caption-zone + .ringa-media{
  margin-top: 0 !important;
}
.ringa-card-body.ringa-caption-zone .ringa-caption-text p{
  margin: 0;
}
.ringa-feed .ringa-card-body.ringa-caption-zone{
  padding-left: 12px !important;
  padding-right: 12px !important;
}
@media (max-width: 420px){
  .ringa-card-body.ringa-caption-zone{
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}


/* ===== v1.0.18.4.27 Create Studio v2 =====
   Modern create page uses choose > preview > caption > upload progress flow.
*/

/* v1.0.18.4.34 Bunny processing feedback */
.ringa-processing-eta,
.ringa-feed-status-card small{
  display:block;
  margin-top:8px;
  color:rgba(255,255,255,.72);
  font-weight:700;
  letter-spacing:.01em;
}
.ringa-feed-status-card{
  margin:14px auto 10px;
  max-width:720px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  background:linear-gradient(135deg, rgba(255,58,119,.16), rgba(255,122,36,.12)), rgba(15,17,24,.96);
  box-shadow:0 18px 44px rgba(0,0,0,.28);
  padding:16px;
  color:#fff;
}
.ringa-feed-status-card strong,
.ringa-feed-status-card span{
  display:block;
}
.ringa-feed-status-card strong{
  font-size:1.02rem;
  margin-bottom:5px;
}
.ringa-feed-status-card span{
  color:rgba(255,255,255,.78);
}
.ringa-feed-status-bar{
  height:12px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  overflow:hidden;
  margin:12px 0 6px;
}
.ringa-feed-status-bar i{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg, #ff3b7b, #ff7a24);
  transition:width .35s ease;
}
.ringa-feed-status-card button{
  margin-top:12px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-weight:800;
  padding:10px 16px;
}
.ringa-feed-status-card.is-ready{
  background:linear-gradient(135deg, rgba(74,222,128,.18), rgba(255,122,36,.12)), rgba(15,17,24,.96);
}


/* =========================================================
   Build 1.0.18.4.36: feed side drawer + settings hub
   ========================================================= */
.ringa-top-left{
  display:flex;
  align-items:center;
  min-width:0;
  gap:9px;
}
.ringa-drawer-toggle{
  flex:0 0 38px;
  width:38px;
  height:38px;
}
.ringa-drawer-backdrop{
  position:fixed;
  inset:0;
  z-index:109;
  background:rgba(0,0,0,.64);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .22s ease, visibility .22s ease;
  -webkit-backdrop-filter:blur(3px);
  backdrop-filter:blur(3px);
}
.ringa-app-drawer{
  position:fixed;
  z-index:110;
  top:0;
  bottom:0;
  left:0;
  width:min(88vw, 370px);
  height:100vh;
  height:100dvh;
  display:flex;
  flex-direction:column;
  background:
    radial-gradient(circle at 0 0, rgba(255,97,32,.18), transparent 32%),
    linear-gradient(180deg,#111521 0%,#090b11 100%);
  border-right:1px solid rgba(255,255,255,.11);
  box-shadow:28px 0 70px rgba(0,0,0,.48);
  transform:translateX(-104%);
  visibility:hidden;
  transition:transform .25s cubic-bezier(.2,.8,.2,1), visibility .25s ease;
  overflow:hidden;
}
body.ringa-drawer-open{ overflow:hidden; }
body.ringa-drawer-open .ringa-drawer-backdrop{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
body.ringa-drawer-open .ringa-app-drawer{
  transform:translateX(0);
  visibility:visible;
}
.ringa-drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 14px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.ringa-drawer-brand{ display:flex; align-items:center; gap:10px; }
.ringa-drawer-brand>div{ display:flex; flex-direction:column; gap:2px; }
.ringa-drawer-brand strong{ font-size:17px; }
.ringa-drawer-brand span:not(.ringa-brand-mark){ font-size:11px; color:var(--ringa-muted); }
.ringa-drawer-close{ width:38px; height:38px; flex:0 0 38px; }
.ringa-drawer-user{
  display:grid;
  grid-template-columns:52px 1fr 18px;
  align-items:center;
  gap:11px;
  margin:13px 13px 4px;
  padding:12px;
  border-radius:18px;
  background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.035));
  border:1px solid rgba(255,255,255,.09);
}
.ringa-drawer-user .avatar,.ringa-drawer-avatar{
  width:52px!important;
  height:52px!important;
  border-radius:17px!important;
  object-fit:cover;
}
.ringa-drawer-user>span{ min-width:0; display:flex; flex-direction:column; gap:3px; }
.ringa-drawer-user strong,.ringa-drawer-user small{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ringa-drawer-user small{ color:var(--ringa-muted); }
.ringa-drawer-user>.ringa-svg-icon{ color:var(--ringa-muted); }
.ringa-drawer-guest{
  margin:13px 13px 4px;
  padding:14px;
  border-radius:18px;
  display:flex;
  flex-direction:column;
  gap:5px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.08);
}
.ringa-drawer-guest span{ color:var(--ringa-muted); font-size:12px; line-height:1.45; }
.ringa-drawer-nav{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:5px 10px 18px;
  scrollbar-width:thin;
}
.ringa-drawer-label{
  padding:17px 10px 7px;
  color:rgba(255,255,255,.46);
  font-size:10px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.ringa-drawer-nav a,.ringa-drawer-auth a{
  display:grid;
  grid-template-columns:23px 1fr 18px;
  align-items:center;
  gap:12px;
  min-height:48px;
  padding:10px 11px;
  border-radius:14px;
  color:rgba(255,255,255,.88);
  font-size:14px;
  font-weight:760;
}
.ringa-drawer-nav a:hover,.ringa-drawer-auth a:hover{ background:rgba(255,255,255,.065); }
.ringa-drawer-nav a>.ringa-svg-icon:first-child,.ringa-drawer-auth a>.ringa-svg-icon:first-child{ color:var(--ringa-accent); font-size:19px; }
.ringa-drawer-nav a>.ringa-svg-icon:last-child{ color:rgba(255,255,255,.32); font-size:14px; }
.ringa-drawer-auth{
  flex:0 0 auto;
  padding:10px 12px max(12px,env(safe-area-inset-bottom));
  border-top:1px solid rgba(255,255,255,.08);
  background:rgba(6,8,13,.7);
}
.ringa-drawer-auth a{ grid-template-columns:23px 1fr; }
.ringa-drawer-auth a.is-primary{
  margin-top:7px;
  background:linear-gradient(135deg,var(--ringa-accent-2),var(--ringa-accent));
  color:#fff;
}
.ringa-drawer-auth a.is-primary>.ringa-svg-icon:first-child{ color:#fff; }

/* Settings hub */
.ringa-settings-page{ padding:0 12px 28px; }
.ringa-settings-head{
  max-width:720px;
  margin:0 auto;
  padding:22px 0 12px;
  display:flex;
  align-items:flex-start;
  gap:12px;
}
.ringa-settings-head h1{ margin:0; font-size:26px; letter-spacing:-.03em; }
.ringa-settings-head p{ margin:5px 0 0; color:var(--ringa-muted); font-size:13px; }
.ringa-settings-back{
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:grid;
  place-items:center;
  border-radius:13px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.05);
  font-size:28px;
  line-height:1;
}
.ringa-settings-card{
  max-width:720px;
  margin:12px auto;
  padding:15px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.09);
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025));
  box-shadow:0 16px 42px rgba(0,0,0,.2);
}
.ringa-settings-card-title{ display:flex; align-items:center; gap:11px; padding-bottom:12px; }
.ringa-settings-card-title>.ringa-svg-icon{
  width:39px;
  height:39px;
  padding:9px;
  border-radius:13px;
  color:var(--ringa-accent);
  background:rgba(255,97,32,.12);
  border:1px solid rgba(255,97,32,.2);
}
.ringa-settings-card-title h2{ margin:0; font-size:17px; }
.ringa-settings-card-title p{ margin:3px 0 0; color:var(--ringa-muted); font-size:12px; }
.ringa-settings-account{ display:flex; align-items:center; gap:12px; padding:5px 0 13px; }
.ringa-settings-account img{ width:58px; height:58px; border-radius:18px; object-fit:cover; }
.ringa-settings-account>div{ min-width:0; display:flex; flex-direction:column; gap:4px; }
.ringa-settings-account span{ color:var(--ringa-muted); font-size:12px; overflow:hidden; text-overflow:ellipsis; }
.ringa-settings-actions{ display:flex; flex-wrap:wrap; gap:8px; }
.ringa-settings-actions a{
  padding:9px 11px;
  border-radius:12px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  font-size:12px;
  font-weight:800;
}
.ringa-settings-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:13px 0;
  border-top:1px solid rgba(255,255,255,.07);
}
.ringa-settings-row>span{ display:flex; flex-direction:column; gap:4px; }
.ringa-settings-row small{ color:var(--ringa-muted); line-height:1.4; }
.ringa-settings-row input[type=checkbox]{ width:20px; height:20px; accent-color:var(--ringa-accent); flex:0 0 auto; }
.ringa-settings-save{ margin-top:10px; }
.ringa-settings-saved{
  max-width:720px;
  margin:12px auto;
  padding:11px 13px;
  border-radius:14px;
  background:rgba(57,201,120,.12);
  border:1px solid rgba(57,201,120,.28);
  color:#bff4d4;
  font-weight:800;
  font-size:13px;
}
.ringa-settings-notifications .ringa-notif-settings>.ringa-card{
  width:100%;
  margin:0;
  border:0;
  box-shadow:none;
  background:transparent;
  padding:0!important;
}
.ringa-settings-notifications .ringa-notif-settings>.ringa-card>div:first-child{ display:none; }
.ringa-settings-session{ margin-bottom:22px; }

@media (min-width: 760px){
  .ringa-app-drawer{ width:370px; }
  .ringa-settings-page{ padding-left:24px; padding-right:24px; }
}


/* ===== Inbox / direct messages | Build 1.0.18.4.40 ===== */
.ringa-inbox-icon{position:relative;}
.ringa-inbox-page{padding-bottom:calc(var(--ringa-footer-h) + 16px);}
.ringa-inbox-page-head{padding-bottom:10px;}
.ringa-inbox-app{min-height:360px;}
.ringa-inbox-search-wrap{
  position:relative;
  margin:0 0 16px;
  padding:14px;
  border:1px solid var(--ringa-border);
  border-radius:18px;
  background:var(--ringa-surface);
}
.ringa-inbox-search-wrap label{display:block;font-weight:900;font-size:13px;margin-bottom:8px;}
.ringa-inbox-search-wrap input{
  width:100%;height:44px;padding:0 13px;border-radius:14px;
  border:1px solid var(--ringa-border);background:var(--ringa-surface-2);color:var(--ringa-text);outline:none;
}
.ringa-inbox-search-wrap input:focus{border-color:rgba(255,97,32,.7);box-shadow:0 0 0 3px rgba(255,97,32,.12);}
.ringa-message-user-results{display:flex;flex-direction:column;margin-top:8px;gap:4px;}
.ringa-message-user-result{display:flex;align-items:center;gap:10px;padding:9px;border-radius:13px;color:var(--ringa-text);text-decoration:none;}
.ringa-message-user-result:hover{background:rgba(255,255,255,.045);}
.ringa-message-user-result>span:first-child,.ringa-message-user-result img{width:44px;height:44px;border-radius:50%;object-fit:cover;flex:0 0 44px;}
.ringa-message-user-result>span:last-child{display:flex;min-width:0;flex-direction:column;gap:2px;}
.ringa-message-user-result strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ringa-message-user-result small,.ringa-message-search-empty{color:var(--ringa-muted);font-size:12px;}
.ringa-message-search-empty{padding:10px 6px;}
.ringa-inbox-section-label{margin:0 2px 8px;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--ringa-muted);font-weight:900;}
.ringa-conversation-list{display:flex;flex-direction:column;gap:7px;}
.ringa-conversation-item{
  position:relative;display:flex;align-items:center;gap:11px;padding:11px 12px;
  border:1px solid var(--ringa-border);border-radius:17px;background:var(--ringa-surface);color:var(--ringa-text);text-decoration:none;
}
.ringa-conversation-item.is-unread{border-color:rgba(255,97,32,.45);background:linear-gradient(90deg,rgba(255,97,32,.08),var(--ringa-surface) 45%);}
.ringa-conversation-avatar,.ringa-conversation-avatar img{width:52px;height:52px;border-radius:50%;object-fit:cover;flex:0 0 52px;}
.ringa-conversation-main{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px;}
.ringa-conversation-line{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;}
.ringa-conversation-line strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ringa-conversation-line time{font-size:10px;color:var(--ringa-muted);white-space:nowrap;}
.ringa-conversation-user{font-size:11px;color:var(--ringa-muted);}
.ringa-conversation-preview{font-size:12px;color:var(--ringa-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ringa-message-count{min-width:21px;height:21px;padding:0 6px;border-radius:999px;background:var(--ringa-accent);color:#fff;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:900;}
.ringa-inbox-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:52px 20px;color:var(--ringa-muted);}
.ringa-inbox-empty strong{color:var(--ringa-text);font-size:16px;}
.ringa-inbox-empty-icon{width:52px;height:52px;border-radius:17px;display:flex;align-items:center;justify-content:center;background:var(--ringa-surface);border:1px solid var(--ringa-border);font-size:23px;margin-bottom:4px;}
.ringa-inbox-thread-head{display:flex;align-items:center;gap:10px;padding:10px 10px 12px;border-bottom:1px solid var(--ringa-border);}
.ringa-inbox-back{width:36px;height:36px;border:1px solid var(--ringa-border);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--ringa-text);text-decoration:none;font-size:28px;line-height:1;background:var(--ringa-surface);}
.ringa-inbox-thread-avatar,.ringa-inbox-thread-avatar img{width:44px;height:44px;border-radius:50%;object-fit:cover;flex:0 0 44px;}
.ringa-inbox-thread-person{display:flex;flex-direction:column;min-width:0;}
.ringa-inbox-thread-person strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ringa-inbox-thread-person small{font-size:11px;color:var(--ringa-muted);}
.ringa-thread-stage{height:min(55vh,520px);min-height:330px;overflow-y:auto;padding:16px 8px 10px;scroll-behavior:smooth;}
.ringa-thread{display:flex;flex-direction:column;gap:8px;min-height:100%;justify-content:flex-end;}
.ringa-message-row{display:flex;align-items:flex-end;gap:7px;max-width:88%;}
.ringa-message-row.is-mine{align-self:flex-end;justify-content:flex-end;}
.ringa-message-row.is-theirs{align-self:flex-start;}
.ringa-message-avatar,.ringa-message-avatar img{width:30px;height:30px;border-radius:50%;object-fit:cover;flex:0 0 30px;}
.ringa-message-bubble{max-width:100%;padding:9px 11px 6px;border-radius:17px;background:var(--ringa-surface);border:1px solid var(--ringa-border);font-size:13px;line-height:1.42;overflow-wrap:anywhere;}
.ringa-message-row.is-mine .ringa-message-bubble{background:var(--ringa-accent);color:#fff;border-color:transparent;border-bottom-right-radius:5px;}
.ringa-message-row.is-theirs .ringa-message-bubble{border-bottom-left-radius:5px;}
.ringa-message-bubble time{display:block;text-align:right;font-size:9px;margin-top:3px;opacity:.7;}
.ringa-thread-start{margin:auto;text-align:center;display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--ringa-muted);padding:25px;}
.ringa-thread-start img{width:72px;height:72px;border-radius:50%;object-fit:cover;margin-bottom:5px;}
.ringa-thread-start strong{color:var(--ringa-text);font-size:16px;}
.ringa-thread-start small{font-size:11px;}
.ringa-thread-start p{margin:10px 0 0;font-size:12px;}
.ringa-message-composer{display:flex;gap:8px;align-items:flex-end;padding:10px 8px 2px;border-top:1px solid var(--ringa-border);}
.ringa-message-composer textarea{flex:1;min-height:42px;max-height:120px;resize:none;padding:10px 12px;border-radius:17px;border:1px solid var(--ringa-border);background:var(--ringa-surface);color:var(--ringa-text);outline:none;font:inherit;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--ringa-accent) transparent;}
.ringa-message-composer textarea::-webkit-scrollbar{width:7px;}
.ringa-message-composer textarea::-webkit-scrollbar-track{background:transparent;border-radius:999px;}
.ringa-message-composer textarea::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#ff6933,#ff7a00);border-radius:999px;border:2px solid var(--ringa-surface);}
.ringa-message-composer textarea::-webkit-scrollbar-thumb:hover{background:var(--ringa-accent);}
.ringa-message-composer textarea::-webkit-scrollbar-button{display:none;width:0;height:0;}
.ringa-message-composer textarea::-webkit-scrollbar-corner{background:transparent;}
.ringa-message-composer textarea:focus{border-color:rgba(255,97,32,.65);}
.ringa-message-composer button{height:42px;padding:0 15px;border:0;border-radius:14px;background:var(--ringa-accent);color:#fff;font-weight:900;cursor:pointer;}
.ringa-message-composer button:disabled{opacity:.55;cursor:default;}
@media (max-width:420px){
  .ringa-profile-actions{gap:7px;}
  .ringa-profile-actions .ringa-icon-btn{width:39px;height:39px;}
  .ringa-thread-stage{height:52vh;}
}


/* ===== Messaging privacy | Build 1.0.18.4.40 ===== */
.ringa-message-privacy-option{
  display:flex;align-items:flex-start;gap:11px;padding:12px 0;border-top:1px solid var(--ringa-border);cursor:pointer;
}
.ringa-message-privacy-option:first-of-type{border-top:0;}
.ringa-message-privacy-option input[type=radio]{width:20px;height:20px;margin:2px 0 0;accent-color:var(--ringa-accent);flex:0 0 auto;}
.ringa-message-privacy-option>span{display:flex;flex-direction:column;gap:4px;}
.ringa-message-privacy-option small{color:var(--ringa-muted);line-height:1.4;}
.ringa-message-user-result em{font-style:normal;font-size:10px;color:var(--ringa-accent);margin-top:2px;line-height:1.3;}
.ringa-message-user-result.is-restricted{opacity:.82;}
.ringa-message-restricted{
  display:flex;flex-direction:column;gap:4px;margin:10px 8px 2px;padding:12px 14px;border:1px solid rgba(255,97,32,.28);
  border-radius:15px;background:rgba(255,97,32,.07);text-align:center;
}
.ringa-message-restricted strong{font-size:13px;color:var(--ringa-text);}
.ringa-message-restricted span{font-size:11px;line-height:1.4;color:var(--ringa-muted);}

/* ===== Direct-message entry points: Find Friends + public profiles ===== */
.ringa-usercard-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex:0 0 auto;
}
.ringa-message-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  text-decoration:none;
  white-space:nowrap;
}
.ringa-message-link .ringa-svg-icon{width:15px;height:15px;}
.ringa-message-link.is-message{
  border-color:rgba(255,255,255,0.13);
  background:rgba(255,255,255,0.045);
}
.ringa-message-link.is-message:hover{background:rgba(255,255,255,0.075);}
.ringa-profile-primary-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
@media (max-width:520px){
  .ringa-usercard-row{gap:8px;}
  .ringa-usercard-right{gap:6px;}
  .ringa-usercard-right .ringa-pill{padding:7px 10px;font-size:12px;}
  .ringa-message-link .ringa-svg-icon{width:14px;height:14px;}
}


/* ===== Find Friends / Find Groups tabs ===== */
.ringa-find-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  margin:8px 14px 2px;
  padding:4px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:rgba(255,255,255,.035);
}
.ringa-find-tab{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:9px 12px;
  border-radius:10px;
  color:var(--ringa-muted);
  text-decoration:none;
  font-size:13px;
  font-weight:800;
  transition:background .18s ease,color .18s ease,box-shadow .18s ease;
}
.ringa-find-tab:hover{ color:var(--ringa-text); }
.ringa-find-tab.is-active{
  color:#fff;
  background:linear-gradient(135deg,rgba(255,97,32,.98),rgba(255,138,72,.92));
  box-shadow:0 6px 18px rgba(255,97,32,.16);
}

/* ===== Group discovery ===== */
.ringa-group-admin-wrap{ padding:0 14px 10px; }
.ringa-group-create-panel{
  overflow:hidden;
  border:1px solid rgba(255,255,255,.09);
  border-radius:14px;
  background:rgba(255,255,255,.035);
}
.ringa-group-create-panel > summary{ list-style:none; }
.ringa-group-create-panel > summary::-webkit-details-marker{ display:none; }
.ringa-group-create-summary{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:10px 14px;
  cursor:pointer;
  color:#fff;
  font-weight:850;
  user-select:none;
}
.ringa-group-create-plus{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--ringa-accent-2),var(--ringa-accent));
  font-size:18px;
  line-height:1;
}
.ringa-group-create-form{
  display:grid;
  gap:8px;
  padding:12px 14px 14px;
  border-top:1px solid rgba(255,255,255,.07);
}
.ringa-group-create-form label{
  font-size:12px;
  font-weight:750;
  color:var(--ringa-muted);
}
.ringa-group-input{
  width:100%;
  min-width:0;
  padding:11px 12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  outline:none;
  background:rgba(0,0,0,.18);
  color:var(--ringa-text);
  font:inherit;
}
.ringa-group-input:focus{
  border-color:rgba(255,97,32,.78);
  box-shadow:0 0 0 2px rgba(255,97,32,.10);
}
.ringa-group-textarea{ resize:vertical; min-height:78px; max-height:160px; }
.ringa-group-create-submit{ justify-self:start; margin-top:3px; }
.ringa-group-notice{
  margin:0 14px 10px;
  padding:10px 12px;
  border-radius:12px;
  font-size:13px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
}
.ringa-group-notice.is-error{ color:#ffc0b4; border-color:rgba(255,97,32,.28); }
.ringa-group-notice.is-success{ color:#d8ffe3; }
.ringa-group-list{ padding-bottom:8px; }
.ringa-group-card{
  display:flex;
  align-items:center;
  gap:11px;
  padding:12px 14px;
}
.ringa-group-avatar,
.ringa-group-hero-avatar{
  flex:0 0 auto;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(145deg,rgba(255,138,72,.25),rgba(255,97,32,.08)),#161922;
  color:#fff;
  text-decoration:none;
  font-weight:950;
}
.ringa-group-avatar{ width:52px; height:52px; border-radius:15px; font-size:20px; }
.ringa-group-avatar img,
.ringa-group-hero-avatar img{ width:100%; height:100%; object-fit:cover; }
.ringa-group-card-main{ flex:1 1 auto; min-width:0; }
.ringa-group-name{
  display:block;
  overflow:hidden;
  color:var(--ringa-text);
  text-decoration:none;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:15px;
  font-weight:850;
}
.ringa-group-description{
  display:-webkit-box;
  overflow:hidden;
  margin-top:3px;
  color:var(--ringa-muted);
  font-size:12px;
  line-height:1.35;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.ringa-group-follow-count{ margin-top:4px; color:var(--ringa-muted); font-size:11px; }
.ringa-group-card-actions{ display:flex; align-items:center; gap:7px; flex:0 0 auto; }
.ringa-group-card-actions .ringa-pill{ min-height:36px; padding:8px 12px; font-size:12px; }
.ringa-group-view-btn{ text-decoration:none; }

/* ===== Individual group page ===== */
.ringa-group-single-content{ padding-bottom:18px; }
.ringa-group-single-topbar{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-bottom:1px solid rgba(255,255,255,.07);
}
.ringa-group-back{
  display:flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  background:rgba(255,255,255,.035);
  color:#fff;
  text-decoration:none;
  font-size:28px;
  line-height:1;
}
.ringa-group-hero{
  display:flex;
  align-items:center;
  gap:13px;
  padding:18px 14px;
  border-bottom:1px solid rgba(255,255,255,.07);
  background:linear-gradient(180deg,rgba(255,97,32,.055),transparent);
}
.ringa-group-hero-avatar{ width:68px; height:68px; border-radius:19px; font-size:28px; }
.ringa-group-hero-copy{ flex:1 1 auto; min-width:0; }
.ringa-group-hero-copy h1{
  margin:0;
  overflow:hidden;
  color:var(--ringa-text);
  text-overflow:ellipsis;
  font-size:21px;
  line-height:1.15;
}
.ringa-group-about{ padding:18px 14px; }
.ringa-group-about h2{ margin:0 0 9px; font-size:16px; }
.ringa-group-about p{ margin:0; color:rgba(255,255,255,.84); font-size:14px; line-height:1.55; }
.ringa-muted-copy{ color:var(--ringa-muted) !important; }

@media (max-width:520px){
  .ringa-group-card{ align-items:flex-start; flex-wrap:wrap; }
  .ringa-group-card-main{ min-width:calc(100% - 64px); }
  .ringa-group-card-actions{ width:100%; padding-left:63px; }
  .ringa-group-card-actions .ringa-pill{ flex:1 1 0; justify-content:center; }
  .ringa-group-hero{ align-items:flex-start; flex-wrap:wrap; }
  .ringa-group-hero .ringa-follow-group-btn{ margin-left:81px; }
}


/* Ringa group profile + group identity posts (1.0.18.4.44) */
.ringa-group-profile-nav{display:flex;align-items:center;gap:10px;margin:0 0 14px;font-weight:850;font-size:13px;color:var(--ringa-muted);}
.ringa-group-profile-back{width:34px;height:34px;border-radius:999px;border:1px solid var(--ringa-border);display:grid;place-items:center;background:rgba(255,255,255,.03);font-size:25px;line-height:1;color:var(--ringa-text);}
.ringa-group-profile-copy{flex:1;min-width:0;}
.ringa-group-profile-title{font-weight:900;font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ringa-group-profile-avatar{overflow:hidden;position:relative;background:linear-gradient(145deg,rgba(255,97,32,.32),rgba(255,138,72,.12));}
.ringa-group-profile-avatar>img,.ringa-group-feed-avatar>img,.ringa-create-group-chip-avatar>img{width:100%;height:100%;object-fit:cover;display:block;}
.ringa-group-avatar-fallback{width:100%;height:100%;display:grid;place-items:center;font-weight:950;font-size:1.15em;color:#fff;background:linear-gradient(145deg,rgba(255,97,32,.42),rgba(255,138,72,.18));}
.ringa-group-profile-avatar .ringa-group-avatar-fallback{font-size:38px;}
.ringa-group-feed-avatar{overflow:hidden;}
.ringa-group-profile-bio{margin-top:14px;padding:12px 14px;border:1px solid var(--ringa-border);border-radius:14px;background:rgba(255,255,255,.025);font-size:13px;line-height:1.55;color:var(--ringa-muted);}
.ringa-group-post-as{display:inline-flex;align-items:center;gap:7px;}
.ringa-group-post-plus{display:grid;place-items:center;width:18px;height:18px;border-radius:999px;background:linear-gradient(135deg,var(--ringa-accent),var(--ringa-accent-2));color:#fff;font-weight:900;font-size:15px;line-height:1;}
.ringa-group-profile-error{padding:10px 14px;color:#ffb4a5;}
.ringa-group-profile-empty{padding:28px 18px;}
.ringa-create-group-chip-avatar{width:40px;height:40px;border-radius:999px;overflow:hidden;display:grid;place-items:center;flex:0 0 40px;background:linear-gradient(145deg,rgba(255,97,32,.32),rgba(255,138,72,.12));}
.ringa-create-group-chip-avatar .ringa-group-avatar-fallback{font-size:15px;}
@media (max-width:560px){
  .ringa-group-profile .ringa-profile-primary-actions{flex-wrap:wrap;}
  .ringa-group-profile .ringa-group-post-as{padding-left:12px;padding-right:12px;}
}


/* Ringa account recovery + resilient avatar upload */
.ringa-auth-links{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;font-size:13px;color:var(--ringa-muted);}
.ringa-auth-links a{color:#fff;font-weight:850;text-decoration:none;}
.ringa-auth-links a:hover{text-decoration:underline;}
.ringa-auth-copy{color:var(--ringa-muted);font-size:14px;line-height:1.55;margin:0 0 16px;}
.ringa-auth-message{margin:0 0 14px;padding:12px 14px;border:1px solid var(--ringa-border);border-radius:14px;background:rgba(255,255,255,.035);font-size:13px;line-height:1.45;}
.ringa-auth-message.is-success{border-color:rgba(74,222,128,.32);color:#bbf7d0;background:rgba(34,197,94,.08);}
.ringa-auth-message.is-error{border-color:rgba(255,122,75,.36);color:#ffc4b5;background:rgba(255,87,51,.08);}
.ringa-avatar-upload-status{position:absolute;left:50%;bottom:-28px;transform:translateX(-50%);white-space:nowrap;font-size:11px;font-weight:800;color:var(--ringa-muted);z-index:8;}
.ringa-avatar-upload.is-uploading .ringa-avatar-pick{pointer-events:none;opacity:.72;}
.ringa-avatar-upload.is-uploading .ringa-avatar-pick::after{content:"";position:absolute;inset:7px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:ringa-avatar-spin .7s linear infinite;}
@keyframes ringa-avatar-spin{to{transform:rotate(360deg)}}


/* Password reset UX polish (1.0.18.4.47) */
.ringa-password-guidance{
  margin:8px 0 0;
  color:rgba(255,255,255,.58);
  font-size:13px;
  line-height:1.45;
}
.ringa-password-match{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:24px;
  margin:8px 0 0;
  font-size:13px;
  font-weight:700;
  line-height:1.4;
}
.ringa-password-match::before{
  content:'•';
  display:grid;
  place-items:center;
  width:18px;
  height:18px;
  flex:0 0 18px;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  color:rgba(255,255,255,.65);
}
.ringa-password-match.is-neutral{ color:rgba(255,255,255,.58); }
.ringa-password-match.is-error{ color:#ffaaa5; }
.ringa-password-match.is-error::before{
  content:'!';
  background:rgba(255,92,83,.15);
  color:#ffaaa5;
}
.ringa-password-match.is-success{ color:#8ef0b1; }
.ringa-password-match.is-success::before{
  content:'✓';
  background:rgba(55,196,112,.16);
  color:#8ef0b1;
}
.ringa-auth-submit-form .ringa-pill[disabled]{
  cursor:not-allowed;
  opacity:.58;
  filter:saturate(.65);
  box-shadow:none;
}
.ringa-auth-submit-form.is-submitting .ringa-pill{
  opacity:1;
  cursor:wait;
}
.ringa-auth-submit-form.is-submitting input{
  opacity:.72;
}
.ringa-button-spinner{
  display:none;
  width:18px;
  height:18px;
  margin-left:9px;
  vertical-align:-4px;
  border:2px solid rgba(255,255,255,.35);
  border-top-color:#fff;
  border-radius:50%;
  animation:ringa-auth-spin .75s linear infinite;
}
.ringa-auth-submit-form.is-submitting .ringa-button-spinner{ display:inline-block; }
.ringa-submit-progress{
  margin:12px 0 0;
  padding:12px 14px;
  border:1px solid rgba(255,112,47,.32);
  border-radius:14px;
  background:rgba(255,94,49,.08);
  color:#ffd5c2;
  font-size:13px;
  font-weight:700;
  text-align:center;
}
.ringa-email-delivery-note{
  margin:12px 0 0;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:14px;
  background:rgba(255,255,255,.035);
  color:rgba(255,255,255,.65);
  font-size:13px;
  line-height:1.45;
}
.ringa-auth-success-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
.ringa-auth-success-actions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 16px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:999px;
  background:rgba(255,255,255,.045);
  color:#fff;
  font-weight:800;
  text-decoration:none;
}
@keyframes ringa-auth-spin{ to{ transform:rotate(360deg); } }
