/* Mobile-First Responsive Base Styles */
/* Global Mobile-First Responsive Styles */
:root {
  /* Safe Area Insets (for notch/safe areas) */
  --safe-area-inset-top: 0;
  --safe-area-inset-right: 0;
  --safe-area-inset-bottom: 0;
  --safe-area-inset-left: 0;

  /* Navigation Heights */
  --nav-height: 60px;
  --header-height: 56px;

  /* Spacing Scale (mobile-first) */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;

  /* Z-index Layers */
  --z-sticky: 100;
  --z-dropdown: 200;
  --z-modal-backdrop: 300;
  --z-modal: 310;
  --z-popover: 250;
  --z-tooltip: 220;
}
/* Mobile-first base styles */
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 16px; /* Base font size for viewport calculations */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  overflow-x: hidden;
}
#root {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* Mobile Viewport Setup */
@viewport {
  width: device-width;
  initial-scale: 1;
  user-scalable: yes;
  maximum-scale: 5;
}
/* Container Queries for Responsive Components */
@supports (container-type: inline-size) {
  .container-responsive {
    container-type: inline-size;
  }

  @container (min-width: 320px) {
    .container-responsive-xs {
      /* Mobile styles */
    }
  }

  @container (min-width: 640px) {
    .container-responsive-sm {
      /* Tablet styles */
    }
  }
}
/* Touch Targets (minimum 44x44px for accessibility) */
button,
a,
input[type='checkbox'],
input[type='radio'],
select {
  min-height: 44px;
  min-width: 44px;
}
/* Responsive Images */
img,
picture,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}
/* Responsive Table */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
/* Responsive Forms */
input,
textarea,
select {
  width: 100%;
  font-size: 16px; /* Prevents zoom on iOS */
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.375rem;
  font-family: inherit;
}
textarea {
  resize: vertical;
  min-height: 120px;
}
select {
  -webkit-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}
/* Responsive Typography (mobile-first scaling) */
h1 {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}
h2 {
  font-size: clamp(1.25rem, 4vw, 1.875rem);
  line-height: 1.3;
  margin-bottom: 0.875rem;
}
h3 {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
h4 {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.4;
  margin-bottom: 0.625rem;
}
p {
  font-size: clamp(0.875rem, 2vw, 1rem);
  line-height: 1.5;
  margin-bottom: 1rem;
}
/* Responsive Lists */
ul,
ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
li {
  margin-bottom: 0.5rem;
}
/* Responsive Grid (mobile-first) */
.grid-auto-fit {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.grid-auto-fill {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
/* Flexbox Responsive Wrapper */
.flex-responsive {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .flex-responsive {
    flex-direction: row;
  }
}
/* Safe Area Padding for Notched Devices */
.safe-inset-bottom {
  padding-bottom: max(1rem, var(--safe-area-inset-bottom));
}
.safe-inset-all {
  padding: max(1rem, var(--safe-area-inset-top))
    max(1rem, var(--safe-area-inset-right))
    max(1rem, var(--safe-area-inset-bottom))
    max(1rem, var(--safe-area-inset-left));
}
/* Mobile Navigation Area */
.mobile-nav-spacing {
  padding-bottom: calc(var(--nav-height) + var(--safe-area-inset-bottom));
}
/* Responsive Breakpoint Utilities */
@media (max-width: 639px) {
  /* Hide on mobile */
  .hide-mobile {
    display: none !important;
  }

  /* Stack columns on mobile */
  .col-span-full-mobile {
    grid-column: 1 / -1;
  }

  /* Responsive padding */
  .px-mobile {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* Responsive gaps */
  .gap-mobile {
    gap: 0.75rem;
  }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .hide-tablet {
    display: none !important;
  }
}
@media (min-width: 1024px) {
  .hide-desktop {
    display: none !important;
  }
}
/* Responsive Print Styles */
@media print {
  body {
    background: white;
  }

  .no-print {
    display: none !important;
  }

  a {
    text-decoration: underline;
  }
}
/* Smooth Scrolling for Mobile */
html {
  scroll-behavior: smooth;
}
/* Mobile Optimization: Prevent Zoom on Double-Tap */
input[type='text'],
input[type='email'],
input[type='password'],
input[type='number'],
input[type='tel'],
select,
textarea {
  font-size: 16px; /* Prevents iOS zoom on focus */
}
/* High DPI / Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2) {
  body {
    /* Slightly thinner fonts for retina */
    font-weight: 400;
  }
}
/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
}
/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* Landscape Mode Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  body {
    font-size: 14px;
  }

  h1,
  h2,
  h3 {
    margin-bottom: 0.5rem;
  }

  .hide-landscape {
    display: none;
  }
}
/* iPhone Notch Support */
@supports (padding: max(0px)) {
  body {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }

  .notch-safe {
    padding-top: max(0px, env(safe-area-inset-top));
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
}
/* Responsive Focus Styles */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #4f46e5;
  outline-offset: 2px;
}
/* Animation Performance on Mobile */
@media (prefers-reduced-motion: no-preference) {
  .smooth-transition {
    transition: all 0.3s ease-in-out;
  }
}
/* Mobile Keyboard Adjustments */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}
/* Instagram-style theme variables and base overrides */
:root {
  /* Instagram-like gradient */
  --ig-gradient-start: #f58529;
  --ig-gradient-mid: #dd2a7b;
  --ig-gradient-end: #8134af;

  /* Primary accent (used for buttons, links) */
  --ig-primary: #0095f6; /* keep compatibility with existing theme-color */
  --ig-accent: linear-gradient(90deg, var(--ig-gradient-start), var(--ig-gradient-mid), var(--ig-gradient-end));

  /* Neutral palette */
  --ig-bg: #ffffff;
  --ig-surface: #fafafa;
  --ig-muted: #8e8e8e;
  --ig-border: #dbdbdb;
  --ig-text: #262626;

  /* Message bubbles */
  --ig-message-incoming-bg: #ffffff;
  --ig-message-outgoing-bg: #0095f6;
  --ig-message-outgoing-text: #fff;

  /* Profile highlight ring */
  --ig-highlight-ring: 3px solid transparent;
  --ig-highlight-gradient: conic-gradient(from 180deg at 50% 50%, var(--ig-gradient-start), var(--ig-gradient-mid), var(--ig-gradient-end));

  /* Spacing scale */
  --ig-space-xs: 4px;
  --ig-space-sm: 8px;
  --ig-space-md: 16px;
  --ig-space-lg: 24px;

  /* Typography */
  --ig-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
/* Apply base font and background */
body[data-theme='instagram'],
:root[data-theme='instagram'] {
  background-color: var(--ig-bg);
  color: var(--ig-text);
  font-family: var(--ig-font-family);
}
/* Buttons and primary controls */
.ig-btn {
  background: var(--ig-accent);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.ig-btn.ghost {
  background: transparent;
  color: var(--ig-text);
  border: 1px solid var(--ig-border);
}
/* Profile avatar with highlight ring (for highlights) */
.ig-avatar-highlight {
  display: inline-block;
  padding: 4px;
  border-radius: 999px;
  background: var(--ig-highlight-gradient);
}
.ig-avatar-highlight .ig-avatar-inner {
  display: inline-block;
  border-radius: 999px;
  overflow: hidden;
  background: var(--ig-bg);
  padding: 2px;
}
/* Messages */
.ig-messages {
  display: flex;
  flex-direction: column;
  gap: var(--ig-space-sm);
}
.ig-message {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--ig-border);
}
.ig-message.incoming {
  background: var(--ig-message-incoming-bg);
  align-self: flex-start;
  color: var(--ig-text);
}
.ig-message.outgoing {
  background: var(--ig-message-outgoing-bg);
  color: var(--ig-message-outgoing-text);
  align-self: flex-end;
}
/* Notes styling in messages */
.ig-note {
  background: linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0.02));
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--ig-muted);
}
/* Simple utilities */
.ig-flex { display:flex; gap:var(--ig-space-sm); align-items:center }
.ig-muted { color:var(--ig-muted) }
/* Map existing message classes to Instagram visual style */
.messages-container { background: var(--ig-surface); }
.messages-sidebar { background: var(--ig-surface); border-right: 1px solid var(--ig-border); }
.messages-content { background: transparent; }
.message-wrapper { margin: 8px 12px; }
.message-bubble { padding: 10px 14px; border-radius: 14px; box-shadow: 0 6px 12px rgba(0,0,0,0.04); max-width: 78%; }
.message-bubble.me { background: var(--ig-message-outgoing-bg); color: var(--ig-message-outgoing-text); align-self: flex-end; border: none; }
.message-bubble.other { background: var(--ig-message-incoming-bg); color: var(--ig-text); border: 1px solid var(--ig-border); align-self: flex-start; }
.message-text { font-size: 0.98rem; line-height: 1.35; }
.message-footer { display:flex; gap:8px; align-items:center; margin-top:6px; color:var(--ig-muted); font-size:0.85rem }
.message-input { border-top: 1px solid var(--ig-border); background: var(--ig-bg); padding: 10px; }
.message-reply { background: rgba(0,0,0,0.02); padding: 8px; border-radius: 10px; margin-bottom:8px }
.message-media img, .gif-image, .preview-video { border-radius: 10px; max-width:100%; }
.message-reactions { display:flex; gap:6px; margin-top:6px }
.reaction { background: rgba(255,255,255,0.9); padding:4px 6px; border-radius:12px; box-shadow:0 4px 8px rgba(0,0,0,0.06) }
/* Profile note bubble */
.profile-thought-bubble { background: var(--ig-accent); color:#fff; padding:8px 12px; border-radius:20px; display:inline-block; cursor:pointer }
/* Profile highlights list */
.instagram-highlights {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  align-items: center;
}
.instagram-highlights-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  padding-bottom: 2px;
}
.instagram-highlights-container::-webkit-scrollbar {
  display: none;
}
.instagram-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 78px;
  scroll-snap-align: start;
  animation: popIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  transition: transform 80ms ease;
}
.instagram-highlight:active {
  transform: scale(0.96);
}
.instagram-highlight-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.instagram-highlight-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.instagram-highlight-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.instagram-highlight-label {
  margin-top: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #262626;
  text-align: center;
  max-width: 70px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.instagram-highlight.new-highlight .instagram-highlight-circle {
  background: #fff;
  border: 1px solid #d1d5db;
}
.instagram-highlight-plus {
  font-size: 28px;
  color: #262626;
  line-height: 1;
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}
::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}
/* ! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com */
/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/
*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}
::before,
::after {
  --tw-content: '';
}
/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/
html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */ /* 3 */
  tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}
/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/
body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}
/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/
hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}
/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/
abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}
/*
Remove the default font size and weight for headings.
*/
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}
/*
Reset links to optimize for opt-in styling instead of opt-out.
*/
a {
  color: inherit;
  text-decoration: inherit;
}
/*
Add the correct font weight in Edge and Safari.
*/
b,
strong {
  font-weight: bolder;
}
/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}
/*
Add the correct font size in all browsers.
*/
small {
  font-size: 80%;
}
/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/
table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}
/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}
/*
Remove the inheritance of text transform in Edge and Firefox.
*/
button,
select {
  text-transform: none;
}
/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/
button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}
/*
Use the modern Firefox focus style for all focusable elements.
*/
:-moz-focusring {
  outline: auto;
}
/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/
:-moz-ui-invalid {
  box-shadow: none;
}
/*
Add the correct vertical alignment in Chrome and Firefox.
*/
progress {
  vertical-align: baseline;
}
/*
Correct the cursor style of increment and decrement buttons in Safari.
*/
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}
/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/
[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}
/*
Remove the inner padding in Chrome and Safari on macOS.
*/
::-webkit-search-decoration {
  -webkit-appearance: none;
}
/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}
/*
Add the correct display in Chrome and Safari.
*/
summary {
  display: list-item;
}
/*
Removes the default spacing and border for appropriate elements.
*/
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}
fieldset {
  margin: 0;
  padding: 0;
}
legend {
  padding: 0;
}
ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}
/*
Prevent resizing textareas horizontally by default.
*/
textarea {
  resize: vertical;
}
/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/
input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}
/*
Set the default cursor for buttons.
*/
button,
[role="button"] {
  cursor: pointer;
}
/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}
/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}
/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/
img,
video {
  max-width: 100%;
  height: auto;
}
/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.container {
  width: 100%;
}
@media (min-width: 320px) {
  .container {
    max-width: 320px;
  }
}
@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}
.visible {
  visibility: visible;
}
.invisible {
  visibility: hidden;
}
.collapse {
  visibility: collapse;
}
.static {
  position: static;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.table {
  display: table;
}
.table-row {
  display: table-row;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.resize {
  resize: both;
}
.border {
  border-width: 1px;
}
.uppercase {
  text-transform: uppercase;
}
.italic {
  font-style: italic;
}
.underline {
  -webkit-text-decoration-line: underline;
          text-decoration-line: underline;
}
.shadow {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.outline {
  outline-style: solid;
}
.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.drop-shadow {
  --tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06));
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.grayscale {
  --tw-grayscale: grayscale(100%);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.invert {
  --tw-invert: invert(100%);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.sepia {
  --tw-sepia: sepia(100%);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.transition {
  transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
body {
  margin: 0;
  font-family: var(--app-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f9fafb;
}
code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
}
/* Loading Spinner Styles */
.route-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 2rem;
}
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.route-loading p {
  color: #666;
  font-size: 1rem;
  margin: 0;
}
.global-error-banner,
.backend-connection-banner {
  background: #ffeded;
  color: #8b0000;
  padding: 0.75rem 1rem;
  border-left: 4px solid #c62828;
  margin: 0;
}
.backend-connection-banner {
  background: #fff4e5;
  color: #7d4c00;
  border-color: #ff9800;
}
.global-error-banner p,
.backend-connection-banner p {
  margin: 0;
  font-size: 0.95rem;
}
.backend-connection-banner small {
  display: block;
  margin-top: 0.5rem;
  color: #5f4500;
}
.status-page {
  max-width: 780px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}
.status-page h1 {
  margin-top: 0;
  font-size: 2rem;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  margin: 1rem 0;
}
.status-badge.online {
  background: #e6f4ea;
  color: #1b5e20;
}
.status-badge.offline {
  background: #ffebee;
  color: #b71c1c;
}
.status-payload {
  margin-top: 1rem;
  padding: 1rem;
  background: #f7f7f7;
  border-radius: 8px;
  overflow: auto;
  font-size: 0.95rem;
}

.header-profile{position:relative}
.profile-icon{background:none;border:none;padding:10px;border-radius:8px;cursor:pointer;font-size:18px}
.profile-actions-menu{position:absolute;top:110%;right:0;background:#e0e0e0;border-radius:12px;padding:8px;box-shadow:8px 8px 16px #bebebe,-8px -8px 16px #fff;display:flex;flex-direction:column;min-width:180px;z-index:2000}
.profile-actions-menu a,.profile-actions-menu button{padding:10px;border-radius:8px;border:none;background:none;text-align:left;cursor:pointer;color:#222}
.profile-actions-menu a:hover,.profile-actions-menu button:hover{background:#f0f0f0}
.profile-actions-menu a.premium-link{color:#1a73e8;font-weight:700}
.profile-actions-menu a.premium-link:hover{background:rgba(26,115,232,0.08)}

@media (min-width: 901px) {
  /* hide this expanded menu on large screens since full navbar is visible */
}
:root {
  --app-font-family: 'Segoe UI', sans-serif;

  /* Instagram-inspired Color System */
  --primary-color: #0095f6;
  --primary-hover: #0078cc;
  --secondary-color: #262626;
  --accent-color: #f56040;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;

  /* Background Colors */
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f2f2f2;
  --bg-overlay: rgba(0, 0, 0, 0.5);

  /* Text Colors */
  --text-primary: #262626;
  --text-secondary: #8e8e8e;
  --text-muted: #8e8e8e;
  --text-inverse: #ffffff;

  /* Border Colors */
  --border-color: #dbdbdb;
  --border-hover: #c7c7c7;

  /* Shadow System */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 30px rgba(0, 0, 0, 0.12);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Spacing - Mobile First */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.75rem;
  --space-lg: 1rem;
  --space-xl: 1.5rem;
  --space-2xl: 2rem;

  /* Layout */
  --header-height: 56px;
  --nav-height: 60px;
  --safe-area-inset-top: 0;
  --safe-area-inset-right: 0;
  --safe-area-inset-bottom: 0;
  --safe-area-inset-left: 0;
}

* {
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  font-family: var(--app-font-family, 'Segoe UI', sans-serif);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
}

#root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* Mobile-First App Shell */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  padding: 0;
}

/* Top App Bar - Mobile First */
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-md);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  padding-top: max(var(--space-md), var(--safe-area-inset-top));
  padding-left: max(var(--space-md), var(--safe-area-inset-left));
  padding-right: max(var(--space-md), var(--safe-area-inset-right));
}

.app-topbar-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.app-topbar-left img {
  height: 32px;
  width: auto;
}

.app-topbar-right {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  flex-shrink: 0;
}

/* Main Content Area - Mobile First */
.app-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: var(--space-md);
  padding-bottom: calc(var(--nav-height) + var(--space-md) + var(--safe-area-inset-bottom));
  overflow-y: auto;
  overflow-x: hidden;
}

/* Small Mobile Devices (320px - 479px) */
@media (max-width: 479px) {
  .app-shell {
    padding: 0;
  }

  .app-topbar {
    padding: var(--space-sm) var(--space-sm);
    gap: var(--space-xs);
  }

  .app-topbar-left img {
    height: 28px;
  }

  .app-content {
    padding: var(--space-sm);
    padding-bottom: calc(var(--nav-height) + var(--space-sm) + var(--safe-area-inset-bottom));
  }
}

/* Standard Mobile (480px - 639px) */
@media (min-width: 480px) and (max-width: 639px) {
  .app-topbar {
    padding: var(--space-md) var(--space-md);
  }

  .app-content {
    padding: var(--space-md);
    padding-bottom: calc(var(--nav-height) + var(--space-md) + var(--safe-area-inset-bottom));
  }
}

/* Tablet (640px - 1023px) */
@media (min-width: 640px) and (max-width: 1023px) {
  .app-shell {
    padding: 0 var(--space-lg);
  }

  .app-topbar {
    padding: var(--space-lg) var(--space-lg);
    border-radius: var(--radius-lg);
    margin: var(--space-lg);
    margin-bottom: var(--space-md);
  }

  .app-content {
    max-width: 760px;
    margin: 0 auto;
    padding: var(--space-lg);
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .app-shell {
    padding: var(--space-lg);
  }

  .app-topbar {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
  }

  .app-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-lg);
  }
}

/* App Bar - Branded Header */
.app-bar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-inverse);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.brand-stack h1 {
  margin: 0;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-family: 'Lobster', 'Georgia', 'Times New Roman', cursive;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-inverse);
  background: linear-gradient(45deg, var(--text-inverse), rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.brand-stack p {
  display: none;
}

/* Global Error Banner */
.global-error-banner,
.backend-connection-banner {
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}

.global-error-banner {
  background-color: #fee;
  color: var(--error-color);
  border: 1px solid var(--error-color);
}

.backend-connection-banner {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

/* Landscape Mode Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .app-topbar {
    padding: var(--space-sm);
  }

  .app-content {
    padding: var(--space-sm);
    padding-bottom: calc(var(--nav-height) + var(--space-sm));
  }
}

/* High DPI / Retina Display */
@media (-webkit-min-device-pixel-ratio: 2) and (max-width: 640px) {
  .app-topbar-left img {
    height: 32px;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #2d2d2d;
    --text-primary: #e4e4e4;
    --text-secondary: #a0a0a0;
    --border-color: #3d3d3d;
  }

  .app-topbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .global-error-banner {
    background-color: #5c1f1f;
    color: #ff9999;
  }

  .backend-connection-banner {
    background-color: #5c4f1f;
    color: #ffd699;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .app-bar {
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
  }
}

/* Print Styles */
@media print {
  .app-topbar,
  .bottom-navbar {
    display: none !important;
  }

  .app-content {
    padding-bottom: var(--space-md);
  }
}

.app-bar.ig-style { height: 60px; }
.app-bar .center-brand { position: absolute; left: 50%; transform: translateX(-50%); }
.app-bar-left, .app-bar-right { display: flex; align-items: center; gap: var(--space-sm); }
.app-bar-left { margin-left: var(--space-sm) }
.app-bar-right { margin-right: var(--space-lg) }

/* Typing Indicators */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #666;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0095f6;
  animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

.typing-text {
  font-style: italic;
}

/* Message Search */
.search-bar {
  padding: 12px 20px;
  border-bottom: 1px solid #ddd;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #ffffff;
  font-size: 14px;
  outline: none;
}

.search-input:focus {
  border-color: #0095f6;
  box-shadow: 0 0 0 2px rgba(0, 149, 246, 0.1);
}

.search-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-close:hover {
  background: #e0e0e0;
}

.search-results {
  max-height: 200px;
  overflow-y: auto;
  border-top: 1px solid #eee;
}

.search-result-item {
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-result-item:hover {
  background: #f5f9ff;
}

.search-result-preview {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

.search-result-highlight {
  background: #fff3cd;
  padding: 2px 4px;
  border-radius: 3px;
}

/* Forward Message Modal */
.forward-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.forward-modal {
  background: #ffffff;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.forward-modal-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.forward-modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-btn:hover {
  background: #f0f0f0;
}

.forward-message-preview {
  padding: 16px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.forward-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 600;
}

.forward-message-content {
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  font-size: 14px;
  word-wrap: break-word;
}

.forward-conversations {
  padding: 20px;
  max-height: 300px;
  overflow-y: auto;
}

.forward-conversations h4 {
  margin: 0 0 16px 0;
  font-size: 16px;
  color: #333;
}

.forward-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.forward-conversation-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.forward-conversation-item:hover {
  background: #f0f8ff;
}

.forward-conversation-item .conversation-avatar {
  width: 40px;
  height: 40px;
  margin-right: 12px;
}

.forward-conversation-item .conversation-info {
  flex: 1;
}

.forward-conversation-item .conversation-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.forward-conversation-item .conversation-preview {
  font-size: 12px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.instagram-profile-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
  transition: all 0.2s ease;
}

.instagram-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.instagram-button:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
  transition: all 0.2s ease;
}

.instagram-button:active {
  transform: scale(0.98);
  transition: all 0.1s ease;
}

/* Interactive Elements */
.interactive-element {
  transition: all 0.3s ease;
  cursor: pointer;
}

.interactive-element:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.interactive-element:active {
  transform: translateY(0);
  transition: all 0.1s ease;
}

/* Gradient Text Effects */
.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.top-navbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  border-bottom: 1px solid #dbdbdb;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-navbar-content {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.logo {
  font-family: 'Lobster', cursive;
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.search-container {
  flex: 1;
  margin: 0 20px;
}

.search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  background: #fafafa;
  font-size: 14px;
}

.top-icons {
  display: flex;
  gap: 16px;
}

.top-icon {
  color: #333;
  text-decoration: none;
  font-size: 20px;
}

.icon-btn { background: transparent; color: #fff; border: none; font-size: 20px; padding: 6px 8px; cursor: pointer; }
.icon-btn:hover { opacity: 0.9 }

.app-bar .profile-icon img { display: block }

/* Story ring style to mimic Instagram gradient */
.story-tray { padding: 12px 0; display: flex; gap: 14px; overflow-x: auto; }
.story-tile { min-width: 84px; padding: 8px 6px; background: transparent; box-shadow: none; text-align: center; }
.story-tile .avatar-circle { width: 68px; height: 68px; margin-bottom: 6px; background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); padding: 3px; box-sizing: border-box; }
.story-tile .avatar-circle > div, .story-tile .avatar-circle img { width: 100%; height: 100%; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
.story-tile p { margin: 0; font-size: 12px; color: #fff; }

/* Post card to mimic Instagram's minimal white card with image */
.post-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-xl);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.post-card .post-header { padding: 12px; display: flex; align-items: center; justify-content: space-between; }
.post-card .post-image { width: 100%; background: #000; min-height: 360px; object-fit: cover; display: block; }
.post-card .post-actions { padding: 8px 12px; display: flex; gap: 12px; align-items: center; }
.post-card .post-caption { padding: 0 12px 12px; color: #222; }

/* Dark background page to match screenshot vibe */
body.feed-theme { background: #0b0b0b; color: #fff; }
body.feed-theme .app-content { max-width: 640px; }
body.feed-theme .neumorphic { background: transparent; box-shadow: none; padding: 0 }
body.feed-theme .feature-card, body.feed-theme .post-card { background: #fff; color: #000 }

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ghost-button,
button {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
}

/* Create Note Page */
.create-note-page {
  padding: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.create-note-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.create-note-header h2 {
  margin: 0;
  font-size: 1.8rem;
}

.create-note-header .muted {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.note-type-chip {
  background: rgba(255, 255, 255, 0.18);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.create-note-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

.create-note-form,
.create-note-preview-panel {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.note-section {
  margin-bottom: 22px;
}

.note-section h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.note-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.note-mode-btn {
  border: 1px solid var(--border-color);
  background: #f7f7f7;
  color: var(--text-primary);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
}

.note-mode-btn.active {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: #fff;
}

.note-settings-row,
.note-audience-row {
  display: grid;
  gap: 16px;
}

.note-settings-row {
  grid-template-columns: 1fr 1fr;
}

.note-color-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.color-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
}

.color-swatch.selected {
  border-color: var(--secondary-color);
}

.note-font-select,
.note-audience-select,
.note-textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 14px;
}

.note-textarea {
  min-height: 140px;
  resize: vertical;
}

.song-selection .song-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.song-card {
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: #fafafa;
  cursor: pointer;
}

.song-card.selected {
  border-color: var(--primary-color);
  background: #eff6ff;
}

.song-card strong {
  display: block;
  margin-bottom: 6px;
}

.song-card span {
  color: var(--text-secondary);
  font-size: 14px;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.emoji-option {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: #fafafa;
  font-size: 22px;
  cursor: pointer;
}

.emoji-option.selected,
.emoji-option:hover {
  border-color: var(--primary-color);
  background: #eff6ff;
}

.note-action-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.status-message {
  margin-top: 12px;
  color: var(--error-color);
}

.create-note-preview-panel h3 {
  margin-top: 0;
}

.note-preview-card {
  border-radius: var(--radius-lg);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.note-preview-content {
  width: 100%;
  text-align: center;
}

.note-preview-content p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
}

.song-preview-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.note-preview-icon {
  font-size: 1.8rem;
}

.emoji-preview-large {
  font-size: 3rem;
}

.song-preview-player {
  margin-top: 18px;
}

.audio-player {
  width: 100%;
  margin-top: 10px;
}

@media (max-width: 960px) {
  .create-note-grid {
    grid-template-columns: 1fr;
  }
}

button:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-card {
  max-width: 460px;
  margin: 32px auto;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 32px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  box-shadow: 0 24px 70px rgba(14, 165, 233, 0.14);
  padding: 40px 36px;
}

.auth-top {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.auth-logo {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.16);
  object-fit: contain;
}

.auth-branding {
  text-align: center;
  margin-bottom: 18px;
}

.auth-branding h1 {
  margin: 0;
  font-size: 36px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: #0f172a;
}

.auth-branding p {
  margin: 8px 0 0;
  color: #475569;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at top left, #e8fbff 0%, #dff5fb 40%, #dbeef4 100%);
  padding: 24px;
}

.login-shell {
  padding: 40px 20px;
}

.login-card,
.auth-card {
  width: min(460px, 100%);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 36px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  box-shadow: 0 25px 75px rgba(14, 165, 233, 0.14);
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.login-top {
  display: flex;
  justify-content: center;
}

.login-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  padding: 12px;
}

.login-copy h1,
.auth-card h2 {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1.05;
  color: #0f172a;
}

.login-copy p,
.auth-branding p {
  margin: 12px 0 0;
  color: #475569;
  font-size: 1rem;
  line-height: 1.7;
}

.login-form,
.auth-form {
  display: grid;
  gap: 18px;
}

.login-password-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.password-link {
  font-size: 0.92rem;
  color: #0ea5e9;
  text-decoration: none;
}

.password-link:hover {
  text-decoration: underline;
}

.password-field-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #0ea5e9;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
}

.login-label {
  font-size: 0.92rem;
  color: #475569;
  margin-bottom: 6px;
}

.login-field,
.auth-input {
  width: 100%;
  border: 1px solid rgba(14, 165, 233, 0.24);
  border-radius: 20px;
  padding: 18px 18px;
  font-size: 0.98rem;
  background: #f8fdff;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-field:focus,
.auth-input:focus {
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.08);
}

.login-button,
.auth-button {
  width: 100%;
  border: none;
  border-radius: 22px;
  padding: 18px 0;
  background: linear-gradient(90deg, #0ea5e9, #22d3ee);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 35px rgba(14, 165, 233, 0.18);
}

.login-button:hover,
.auth-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(14, 165, 233, 0.22);
}

.login-button:disabled,
.auth-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 14px 35px rgba(14, 165, 233, 0.18);
}

.login-button:disabled:hover,
.auth-button:disabled:hover {
  transform: none;
  box-shadow: 0 14px 35px rgba(14, 165, 233, 0.18);
}

.login-error {
  margin: 0;
  color: #dc2626;
  font-size: 0.95rem;
}

.login-footer,
.auth-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  color: #64748b;
  font-size: 0.94rem;
}

.auth-footer a,
.login-footer a,
.login-link-button {
  color: #0ea5e9;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.auth-footer a:hover,
.login-link-button:hover {
  text-decoration: underline;
}

.app-content {
  max-width: 1200px;
  margin: 0 auto;
}

.neumorphic {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: none;
  padding: 24px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 30px;
}

.neumorphic.wide-page {
  max-width: 1200px;
}

input,
textarea,
select {
  width: 100%;
  padding: var(--space-md);
  margin: var(--space-sm) 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: none;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.neumorphic button {
  font-weight: 700;
  background: #f8fafc;
  color: #111;
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: none;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.story-tray {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 16px 0;
}

.story-tile {
  min-width: 140px;
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: grid;
  gap: var(--space-sm);
  text-align: center;
  transition: all 0.2s ease;
}

.story-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.story-tile p {
  margin: 0;
  font-weight: 600;
}

.story-tile small {
  color: #666;
}

.feature-card,
.notification-card,
.message-item {
  background: #e0e0e0;
  border-radius: 22px;
  box-shadow: 12px 12px 24px rgba(176, 184, 195, 0.18), -12px -12px 24px rgba(255, 255, 255, 0.9);
  padding: 22px;
}

.feature-list {
  display: grid;
  gap: 18px;
}

.hashtag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}

.hashtag-pill {
  background: #f4f7ff;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(63, 81, 181, 0.12);
  cursor: pointer;
}

.avatar-circle,
.reel-thumb,
.shop-badge {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border-color);
  font-size: 20px;
  margin-bottom: var(--space-md);
  transition: all 0.2s ease;
}

.avatar-circle:hover,
.reel-thumb:hover,
.shop-badge:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.reel-thumb {
  border-radius: 20px;
  width: 100%;
  min-height: 160px;
}

.shop-badge {
  border-radius: 999px;
  width: auto;
  padding: 8px 12px;
  font-size: 12px;
}

.upgrade-btn,
.subscribe-button,
.add-to-cart-btn {
  background: linear-gradient(135deg, #4f8cff, #2752ff);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.upgrade-btn:hover,
.subscribe-button:hover,
.add-to-cart-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(79, 140, 255, 0.24);
}

.product-lock-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px dashed rgba(79, 140, 255, 0.4);
  border-radius: 20px;
  text-align: center;
}

.product-lock-panel .badge {
  background: rgba(79, 140, 255, 0.12);
  color: #2752ff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.locked {
  opacity: 0.92;
}

.membership-badge-panel,
.shop-membership-badge {
  margin: 16px 0;
  padding: 14px 18px;
  border-radius: 24px;
  background: rgba(79, 140, 255, 0.1);
  border: 1px solid rgba(79, 140, 255, 0.25);
}

.shop-membership-badge .badge-member {
  background: linear-gradient(135deg, #4f8cff, #2752ff);
  color: #fff;
}

.messages-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 20px;
}

/* Responsive: mobile single-view like Instagram */
@media (max-width: 900px) {
  .messages-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .messages-sidebar { display: none; }
  .chat-window { border-radius: 0; padding: 12px; min-height: 100vh; }
}

.messages-sidebar {
  display: grid;
  gap: 14px;
}

.message-item {
  text-align: left;
  cursor: pointer;
  border: none;
}

.message-item.active,
.message-item:hover {
  border: 1px solid #c8d1e4;
}

.chat-window {
  min-height: 320px;
  background: #f4f8ff;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-bubble {
  max-width: 70%;
  padding: 14px 18px;
  border-radius: 24px;
  line-height: 1.5;
}

.chat-bubble.me {
  align-self: flex-end;
  background: #d7e9ff;
}

.chat-bubble.other {
  align-self: flex-start;
  background: #ffffff;
}

.chat-input {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.chat-input input {
  flex: 1;
}

.chat-input button {
  width: 120px;
}

.sticker-picker-overlay,
.gift-picker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.sticker-picker-modal,
.gift-picker-modal {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sticker-picker-header,
.gift-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.sticker-picker-header h3,
.gift-picker-header h3 {
  margin: 0;
  font-size: 18px;
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-button:hover {
  background: #f0f0f0;
}

.sticker-picker-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
}

.sticker-picker-tabs button {
  flex: 1;
  padding: 12px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.sticker-picker-tabs button.active {
  border-bottom: 2px solid #007bff;
  color: #007bff;
}

.sticker-search-form {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 8px;
}

.sticker-search-form input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.sticker-search-form button {
  padding: 8px 16px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.sticker-grid,
.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  padding: 16px 20px;
  overflow-y: auto;
  max-height: 300px;
}

.sticker-item {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
}

.website-navigation {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.website-navigation button {
  padding: 8px 16px;
  background: #e0e5ec;
  border: none;
  border-radius: 8px;
  box-shadow: 9px 9px 16px #b8c0c8, -9px -9px 16px #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.website-navigation button:hover {
  box-shadow: 6px 6px 12px #b8c0c8, -6px -6px 12px #ffffff;
}

.website-navigation button.active {
  background: #d1d9e6;
  box-shadow: inset 6px 6px 12px #b8c0c8, inset -6px -6px 12px #ffffff;
}

.website-sections {
  margin-top: 20px;
}

.section {
  padding: 20px;
  background: #e0e5ec;
  border-radius: 12px;
  box-shadow: 9px 9px 16px #b8c0c8, -9px -9px 16px #ffffff;
  margin-bottom: 20px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.product-card {
  padding: 16px;
  background: #e0e5ec;
  border-radius: 8px;
  box-shadow: 6px 6px 12px #b8c0c8, -6px -6px 12px #ffffff;
}

.product-card h4 {
  margin: 0 0 8px 0;
}

.product-card p {
  margin: 4px 0;
}

.product-card button {
  margin-top: 8px;
  padding: 8px 16px;
  background: #e0e5ec;
  border: none;
  border-radius: 6px;
  box-shadow: 4px 4px 8px #b8c0c8, -4px -4px 8px #ffffff;
  cursor: pointer;
}

.donations-section {
  max-width: 800px;
}

.donation-goals {
  margin-bottom: 30px;
}

.donation-goal-card {
  background: #e0e5ec;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 9px 9px 16px #b8c0c8, -9px -9px 16px #ffffff;
}

.donation-goal-card h5 {
  margin: 0 0 10px 0;
  color: #333;
}

.goal-progress {
  margin: 15px 0;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background: #d1d9e6;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 4px 4px 8px #b8c0c8, inset -4px -4px 8px #ffffff;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #45a049);
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  margin-top: 5px;
  font-size: 14px;
  color: #666;
}

.goal-deadline {
  font-size: 12px;
  color: #888;
  margin-top: 10px;
}

.donate-actions {
  display: flex;
  gap: 15px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.donate-button, .create-goal-button {
  padding: 12px 24px;
  background: #e0e5ec;
  border: none;
  border-radius: 8px;
  box-shadow: 9px 9px 16px #b8c0c8, -9px -9px 16px #ffffff;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.donate-button:hover, .create-goal-button:hover {
  box-shadow: 6px 6px 12px #b8c0c8, -6px -6px 12px #ffffff;
}

.donate-button {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
}

.recent-donations {
  margin-top: 30px;
}

.donation-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #e0e5ec;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 6px 6px 12px #b8c0c8, -6px -6px 12px #ffffff;
}

.donor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.donor-name {
  font-weight: 500;
  color: #333;
}

.donation-details {
  flex: 1;
  text-align: right;
}

.donation-amount {
  font-size: 18px;
  font-weight: bold;
  color: #4CAF50;
}

.donation-message {
  font-style: italic;
  color: #666;
  margin: 5px 0;
}

.donation-date {
  font-size: 12px;
  color: #888;
}

.donation-modal, .goal-modal {
  max-width: 500px;
}

.donation-modal .form-group, .goal-modal .form-group {
  margin-bottom: 20px;
}

.donation-modal label, .goal-modal label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.donation-modal input, .goal-modal input,
.donation-modal textarea, .goal-modal textarea {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #e0e5ec;
  box-shadow: inset 4px 4px 8px #b8c0c8, inset -4px -4px 8px #ffffff;
  font-size: 16px;
}

.donation-modal textarea, .goal-modal textarea {
  resize: vertical;
  min-height: 80px;
}

.donation-modal .modal-actions, .goal-modal .modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.donation-modal button, .goal-modal button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.donation-modal button[type="submit"] {
  background: #4CAF50;
  color: white;
  box-shadow: 4px 4px 8px #b8c0c8, -4px -4px 8px #ffffff;
}

.donation-modal button[type="button"], .goal-modal button[type="button"] {
  background: #e0e5ec;
  box-shadow: 4px 4px 8px #b8c0c8, -4px -4px 8px #ffffff;
}

.blog-section {
  max-width: 800px;
}

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-post-card {
  background: #e0e5ec;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 9px 9px 16px #b8c0c8, -9px -9px 16px #ffffff;
  transition: transform 0.2s ease;
}

.blog-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 12px 12px 20px #b8c0c8, -12px -12px 20px #ffffff;
}

.blog-post-header {
  margin-bottom: 15px;
}

.blog-post-title {
  margin: 0 0 10px 0;
  font-size: 20px;
  color: #333;
  line-height: 1.3;
}

.blog-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #666;
}

.blog-post-stats {
  display: flex;
  gap: 15px;
}

.blog-post-content {
  margin: 15px 0;
  line-height: 1.6;
  color: #444;
}

.blog-post-content p {
  margin: 0;
}

.blog-post-media {
  position: relative;
  margin: 15px 0;
  border-radius: 8px;
  overflow: hidden;
}

.blog-post-image-container {
  width: 100%;
  max-height: 300px;
  overflow: hidden;
}

.blog-post-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  display: block;
}

.blog-post-video {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.blog-post-media-count {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
}

.blog-post-footer {
  margin-top: 15px;
  text-align: right;
}

.blog-read-more {
  padding: 8px 16px;
  background: #e0e5ec;
  border: none;
  border-radius: 6px;
  box-shadow: 4px 4px 8px #b8c0c8, -4px -4px 8px #ffffff;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.blog-read-more:hover {
  box-shadow: 2px 2px 4px #b8c0c8, -2px -2px 4px #ffffff;
}

.blog-empty {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.contact-form-section {
  max-width: 600px;
  margin: 0 auto;
}

.contact-info {
  text-align: center;
  margin-bottom: 30px;
}

.contact-info h3 {
  margin-bottom: 10px;
  color: #333;
}

.contact-info p {
  color: #666;
  line-height: 1.6;
}

.contact-info a {
  color: #4CAF50;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form {
  background: #e0e5ec;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 9px 9px 16px #b8c0c8, -9px -9px 16px #ffffff;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #e0e5ec;
  box-shadow: inset 4px 4px 8px #b8c0c8, inset -4px -4px 8px #ffffff;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: inset 6px 6px 12px #b8c0c8, inset -6px -6px 12px #ffffff;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 6px 6px 12px #b8c0c8, -6px -6px 12px #ffffff;
  transition: all 0.2s ease;
}

.contact-submit-btn:hover:not(:disabled) {
  box-shadow: 4px 4px 8px #b8c0c8, -4px -4px 8px #ffffff;
  transform: translateY(-1px);
}

.contact-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  border: 1px solid #c3e6cb;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .contact-form {
    padding: 20px;
  }
}

.website-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.website-tabs button {
  padding: 10px 20px;
  background: #e0e5ec;
  border: none;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.website-tabs button.active {
  background: #d1d9e6;
  box-shadow: inset 4px 4px 8px #b8c0c8, inset -4px -4px 8px #ffffff;
}

.website-analytics {
  max-width: 100%;
}

.analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.analytics-header h3 {
  margin: 0;
}

.timeframe-selector select {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background: #e0e5ec;
  box-shadow: inset 2px 2px 4px #b8c0c8, inset -2px -2px 4px #ffffff;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.analytics-card {
  background: #e0e5ec;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 9px 9px 16px #b8c0c8, -9px -9px 16px #ffffff;
  text-align: center;
}

.analytics-card.full-width {
  grid-column: 1 / -1;
}

.analytics-card h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 16px;
}

.metric-value {
  font-size: 32px;
  font-weight: bold;
  color: #4CAF50;
  margin-bottom: 5px;
}

.metric-change {
  font-size: 14px;
  color: #666;
}

.metric-change.positive {
  color: #4CAF50;
}

.metric-change.negative {
  color: #f44336;
}

.top-pages-list, .activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.top-page-item, .activity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 6px;
}

.traffic-sources {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.traffic-source-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.source-bar {
  flex: 1;
  height: 20px;
  background: #f5f5f5;
  border-radius: 10px;
  overflow: hidden;
}

.source-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #45a049);
  transition: width 0.3s ease;
}

.activity-item {
  justify-content: flex-start;
  gap: 15px;
}

.activity-icon {
  font-size: 20px;
}

.activity-content {
  flex: 1;
}

.activity-text {
  font-weight: 500;
  color: #333;
}

.activity-time {
  font-size: 12px;
  color: #666;
}

.website-manager-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
}

.website-manager-sidebar {
  background: #e0e5ec;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 9px 9px 16px #b8c0c8, -9px -9px 16px #ffffff;
}

.website-item {
  padding: 15px;
  margin-bottom: 10px;
  background: #f5f5f5;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.website-item:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 8px #b8c0c8, -4px -4px 8px #ffffff;
}

.website-item.active {
  background: #d1d9e6;
  box-shadow: inset 4px 4px 8px #b8c0c8, inset -4px -4px 8px #ffffff;
}

.website-item h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
}

.website-item p {
  margin: 0 0 8px 0;
  color: #666;
  font-size: 14px;
}

.live-status.live {
  color: #4CAF50;
  font-weight: 500;
}

.live-status.offline {
  color: #666;
}

.create-new-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  margin-top: 20px;
}

.live-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.live-btn.live {
  background: #f44336;
  color: white;
}

.live-btn.offline {
  background: #4CAF50;
  color: white;
}

.view-website-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #2196F3;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.view-website-btn:hover {
  background: #1976D2;
}

.website-manager-quicktools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.quick-tool-card,
.website-public-tools,
.website-manager-social-links,
.website-public-meta {
  background: #f2f6fc;
  border-radius: 18px;
  padding: 18px;
  box-shadow: inset 4px 4px 10px #d3dce9, inset -4px -4px 10px #ffffff;
}

.quick-tool-card h4 {
  margin: 0 0 12px 0;
  font-size: 18px;
}

.quick-tool-card button,
.website-public-tools button,
.website-public-actions button {
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  background: #4a7cff;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.quick-tool-card button:hover,
.website-public-tools button:hover,
.website-public-actions button:hover {
  transform: translateY(-1px);
  background: #375fd1;
}

.website-public-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.website-manager-social-links input,
.form-row input,
.form-row select,
input[type="url"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
}

.website-manager-social-links {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.website-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.website-checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #eff4fb;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
}

.website-recommendations {
  background: #f6faff;
  border-radius: 18px;
  padding: 18px;
  margin: 16px 0;
}

.website-recommendations h4 {
  margin-top: 0;
}

.website-recommendations ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.website-recommendations li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #dce6f4;
}

.website-recommendations li:last-child {
  border-bottom: none;
}

.website-recommendations button {
  padding: 8px 12px;
  background: #4a7cff;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.related-websites-panel {
  background: #eef4ff;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 20px;
}

.related-websites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.related-site-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 4px 4px 12px rgba(16, 32, 80, 0.08);
}

.related-site-card h4 {
  margin: 0 0 10px;
}

.related-site-card p {
  margin: 0 0 10px;
  color: #4f6284;
}

.related-site-link {
  display: inline-block;
  padding: 10px 14px;
  background: #4a7cff;
  color: white;
  border-radius: 12px;
  text-decoration: none;
}

.related-site-link:hover {
  background: #375fd1;
}

.website-public-banner {
  border-radius: 22px;
  margin-bottom: 22px;
  padding: 32px;
  background-color: #eef5ff;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.website-public-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 70, 0.18);
}

.website-public-banner-content {
  position: relative;
  z-index: 1;
  color: #10203a;
}

.website-public-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  color: #1f3355;
}

.badge-live {
  background: #d7f5e3;
  color: #177a3e;
}

.badge-offline {
  background: #f8d9d9;
  color: #a61010;
}

.website-features-grid,
.feature-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.feature-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(31, 51, 85, 0.12);
  border-radius: 18px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.95rem;
}

.website-ideas-panel {
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(240, 246, 255, 0.9);
  border: 1px solid rgba(56, 108, 255, 0.12);
}

/* Enhanced Drawing Tools Styles */
.enhanced-drawing-tools {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 20px;
  margin-top: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.drawing-tools-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.drawing-tools-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.drawing-tools-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.drawing-tools-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #333;
}

.drawing-tools-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawing-tools-row {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 120px;
}

.control-group label {
  font-size: 14px;
  font-weight: 500;
  color: #555;
  margin: 0;
}

.brush-type-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.brush-type-btn, .eraser-btn {
  width: 40px;
  height: 40px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
}

.brush-type-btn:hover, .eraser-btn:hover {
  border-color: #4a7cff;
  transform: scale(1.05);
}

.brush-type-btn.active {
  background: #4a7cff;
  color: white;
  border-color: #4a7cff;
}

.eraser-btn.active {
  background: #ff6b6b;
  color: white;
  border-color: #ff6b6b;
}

.control-group input[type="color"] {
  width: 50px;
  height: 40px;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  background: none;
}

.control-group input[type="color"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.control-group input[type="range"] {
  width: 120px;
  height: 6px;
  border-radius: 3px;
  background: #ddd;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4a7cff;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.control-group input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4a7cff;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.clear-drawing-btn, .undo-drawing-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.clear-drawing-btn {
  background: #ff6b6b;
  color: white;
}

.clear-drawing-btn:hover {
  background: #ff5252;
  transform: translateY(-1px);
}

.undo-drawing-btn {
  background: #ffa726;
  color: white;
}

.undo-drawing-btn:hover {
  background: #fb8c00;
  transform: translateY(-1px);
}

/* Responsive adjustments for drawing tools */
@media (max-width: 768px) {
  .drawing-tools-row {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .control-group {
    min-width: auto;
  }

  .brush-type-buttons {
    justify-content: center;
  }

  .control-group input[type="range"] {
    width: 100%;
  }
}

/* Advanced Effect Options Styles */
.advanced-effect-options {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 20px;
  margin-top: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-height: 70vh;
  overflow-y: auto;
}

.effect-options-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.effect-options-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.effect-options-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.effect-options-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #333;
}

.effect-options-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.effect-section {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 20px;
}

.effect-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.effect-section h5 {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: #444;
}

.filter-buttons, .effect-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn, .effect-btn {
  padding: 8px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.filter-btn:hover, .effect-btn:hover {
  border-color: #4a7cff;
  transform: translateY(-1px);
}

.filter-btn.active, .effect-btn.active {
  background: #4a7cff;
  color: white;
  border-color: #4a7cff;
}

.advanced-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.advanced-controls-grid .control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.advanced-controls-grid .control-group label {
  font-size: 14px;
  font-weight: 500;
  color: #555;
  margin: 0;
}

.advanced-controls-grid .control-group input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #ddd;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.advanced-controls-grid .control-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4a7cff;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.advanced-controls-grid .control-group input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4a7cff;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.custom-filter-input {
  width: 100%;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease;
}

.custom-filter-input:focus {
  border-color: #4a7cff;
}

.reset-filters-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  background: #ff6b6b;
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.reset-filters-btn:hover {
  background: #ff5252;
  transform: translateY(-1px);
}

/* Responsive adjustments for effect options */
@media (max-width: 768px) {
  .advanced-controls-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .filter-buttons, .effect-buttons {
    justify-content: center;
  }

  .filter-btn, .effect-btn {
    flex: 1;
    min-width: 100px;
  }
}

.website-ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.idea-chip {
  background: #ffffff;
  border: 1px solid rgba(31, 51, 85, 0.12);
  border-radius: 16px;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.website-preview {
  margin: 24px 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(31, 51, 85, 0.1);
}

.website-preview h4 {
  margin: 0;
  padding: 18px 22px 12px;
}

.website-preview-banner {
  min-height: 180px;
  background-color: #eef2ff;
  background-position: center;
  background-size: cover;
  position: relative;
}

.website-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 70, 0.16);
}

.website-preview-header {
  position: relative;
  z-index: 1;
  color: #10203a;
  padding: 20px;
}

.website-preview-body {
  padding: 18px 22px 22px;
  background: #ffffff;
}

.website-preview-seo {
  margin: 12px 0;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid #007bff;
}

.website-preview-seo small {
  display: block;
  margin-bottom: 4px;
  color: #666;
  font-size: 0.8rem;
}

.website-preview-seo strong {
  color: #333;
}

.website-preview-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.website-preview-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.website-preview-nav span {
  padding: 8px 14px;
  background: rgba(56, 108, 255, 0.08);
  border-radius: 999px;
  font-size: 0.85rem;
}

.badge.preview-badge {
  background: rgba(56, 108, 255, 0.12);
  color: #1f4fb0;
}

.badge.preview-badge.inactive {
  background: rgba(220, 224, 255, 0.8);
  color: #4a5568;
}

.badge-countdown {
  background: #fff2d8;
  color: #9a6400;
}

.badge-feature {
  background: #e7f5ff;
  color: #1b4c7a;
}

.website-public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-callout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: center;
  margin: 24px 0;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 22px rgba(17, 39, 74, 0.08);
}

.hero-callout img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  height: 240px;
}

.hero-callout-content h4 {
  margin-bottom: 12px;
}

.promo-banner,
.countdown-panel,
.newsletter-block,
.testimonials-block,
.faq-block,
.featured-products-block,
.social-proof-block,
.analytics-summary-block {
  margin: 22px 0;
  padding: 22px;
  border-radius: 20px;
  background: rgba(248, 251, 255, 0.96);
  border: 1px solid rgba(56, 108, 255, 0.12);
}

.promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.promo-banner button,
.newsletter-form button {
  padding: 10px 18px;
  border-radius: 999px;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(31, 51, 85, 0.12);
}

.newsletter-message {
  margin-top: 12px;
  color: #0f5d92;
}

.testimonials-grid,
.social-proof-grid,
.analytics-grid,
.products-grid {
  display: grid;
  gap: 16px;
}

.testimonials-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.testimonial-card,
.social-proof-card,
.analytics-card,
.product-card,
.faq-item {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(31, 51, 85, 0.08);
}

.product-card button {
  margin-top: 12px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.social-proof-grid,
.analytics-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.featured-products-block .products-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.website-public-meta p {
  margin: 0 0 8px;
}

@media (max-width: 1024px) {
  .website-manager-grid {
    grid-template-columns: 1fr;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }
}

.shop-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 1px solid #ddd;
}

.tab-btn {
  padding: 12px 24px;
  background: #e0e5ec;
  border: none;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.2s ease;
  box-shadow: inset 2px 2px 4px #b8c0c8, inset -2px -2px 4px #ffffff;
}

.tab-btn:hover {
  transform: translateY(-1px);
}

.tab-btn.active {
  background: #d1d9e6;
  box-shadow: 4px 4px 8px #b8c0c8, -4px -4px 8px #ffffff;
  color: #4CAF50;
  font-weight: 600;
}

.contact-form-section {
  max-width: 600px;
  margin: 0 auto;
}

.contact-info {
  text-align: center;
  margin-bottom: 30px;
}

.contact-info h3 {
  margin-bottom: 10px;
  color: #333;
}

.contact-info p {
  color: #666;
  line-height: 1.6;
}

.contact-info a {
  color: #4CAF50;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form {
  background: #e0e5ec;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 9px 9px 16px #b8c0c8, -9px -9px 16px #ffffff;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #e0e5ec;
  box-shadow: inset 4px 4px 8px #b8c0c8, inset -4px -4px 8px #ffffff;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: inset 6px 6px 12px #b8c0c8, inset -6px -6px 12px #ffffff;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 6px 6px 12px #b8c0c8, -6px -6px 12px #ffffff;
  transition: all 0.2s ease;
}

.contact-submit-btn:hover:not(:disabled) {
  box-shadow: 4px 4px 8px #b8c0c8, -4px -4px 8px #ffffff;
  transform: translateY(-1px);
}

.contact-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  border: 1px solid #c3e6cb;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .contact-form {
    padding: 20px;
  }
}

.sticker-item:hover {
  transform: scale(1.05);
}

.sticker-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gift-categories {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  overflow-x: auto;
}

.gift-categories button {
  padding: 6px 12px;
  background: #f0f0f0;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
}

.gift-categories button.active {
  background: #007bff;
  color: white;
}

.gift-item {
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.gift-item:hover,
.gift-item.selected {
  border-color: #007bff;
  transform: scale(1.02);
}

.gift-image {
  aspect-ratio: 1;
  overflow: hidden;
}

.gift-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gift-info {
  padding: 8px;
  text-align: center;
}

.gift-info h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
}

.gift-info p {
  margin: 0 0 8px 0;
  font-size: 12px;
  color: #666;
}

.gift-price {
  font-weight: bold;
  color: #007bff;
}

/* Explore Page Main Tabs */
.explore-main-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 16px;
}

.explore-main-tabs button {
  padding: 12px 20px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  color: #475569;
  transition: all 0.2s ease;
}

.explore-main-tabs button:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.explore-main-tabs button.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Live Streams Section */
.live-streams-section {
  margin-top: 20px;
}

.live-categories {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding: 8px 0;
}

.category-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  color: #475569;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.category-filter:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.category-filter.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.category-icon {
  font-size: 16px;
}

.category-name {
  font-size: 14px;
}

.live-streams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.live-stream-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.live-stream-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.stream-thumbnail {
  position: relative;
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}

.live-indicator {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 0, 0, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.stream-preview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}

.stream-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255, 255, 255, 0.8);
}

.stream-info {
  padding: 16px;
  background: white;
}

.stream-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stream-host {
  font-size: 14px;
  color: #718096;
  margin-bottom: 8px;
}

.stream-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #a0aec0;
}

.viewers {
  display: flex;
  align-items: center;
  gap: 4px;
}

.no-streams {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #f8fafc;
  border-radius: 16px;
  border: 2px dashed #e2e8f0;
}

.no-streams-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.no-streams h4 {
  margin: 0 0 8px 0;
  font-size: 20px;
  color: #4a5568;
}

.no-streams p {
  margin: 0 0 24px 0;
  color: #718096;
  font-size: 16px;
}

.start-stream-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.start-stream-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.loading-spinner {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: #718096;
  font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .live-streams-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }
  
  .live-categories {
    gap: 8px;
  }
  
  .category-filter {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .explore-main-tabs {
    gap: 4px;
  }
  
  .explore-main-tabs button {
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* Livestream Search and Sort Controls */
.livestream-controls {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: center;
}

.livestream-search {
  flex: 1;
  min-width: 200px;
}

.livestream-search input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  background: #f8fafc;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.livestream-search input:focus {
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: #ffffff;
}

.livestream-sort {
  display: flex;
  gap: 8px;
}

.livestream-sort select {
  padding: 10px 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: #f8fafc;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.livestream-sort select:hover {
  background: #e2e8f0;
}

.livestream-sort select:focus {
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .livestream-controls {
    flex-direction: column;
    gap: 12px;
  }
  
  .livestream-sort {
    width: 100%;
  }
  
  .livestream-sort select {
    width: 100%;
  }
}

.gift-send-section {
  border-top: 1px solid #eee;
  padding: 16px 20px;
}

.selected-gift-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.selected-gift-preview img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
}

.selected-gift-preview h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
}

.selected-gift-preview p {
  margin: 0;
  color: #666;
}

.gift-send-section textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 16px;
  resize: vertical;
}

.gift-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* Stream Analytics Panel */
.stream-analytics-panel {
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  color: white;
}

.stream-analytics-panel h4 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.analytics-item {
  text-align: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.analytics-label {
  display: block;
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 4px;
}

.analytics-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.view-full-analytics-btn {
  width: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-full-analytics-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Promotion Settings */
.promotion-settings {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.promotion-settings h4 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}

.promotion-settings .settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.promotion-settings .setting-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #4b5563;
}

.promotion-settings .setting-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #667eea;
}

.giphy-picker-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-in-out;
}

.giphy-picker-modal {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.giphy-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.giphy-picker-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.giphy-search-container {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

.giphy-search-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.giphy-search-input:focus {
  border-color: #0095f6;
  background: #fafafa;
}

.giphy-categories {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  overflow-x: auto;
  scrollbar-width: thin;
}

.giphy-category-btn {
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}

.giphy-category-btn:hover {
  border-color: #0095f6;
  color: #0095f6;
}

.giphy-category-btn.active {
  background: #0095f6;
  border-color: #0095f6;
  color: white;
}

.giphy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.giphy-item {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  transition: transform 0.2s;
}

.giphy-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.giphy-item:hover img {
  transform: scale(1.05);
}

.giphy-item.selected {
  border: 3px solid #0095f6;
  box-shadow: 0 0 0 2px white, 0 0 0 5px #0095f6;
}

.giphy-loading,
.giphy-empty,
.giphy-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 14px;
}

.giphy-error {
  color: #d9534f;
}

.giphy-load-more-wrapper {
  display: flex;
  justify-content: center;
  padding: 12px 16px 20px;
}

.giphy-load-more-btn {
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: #0095f6;
  color: white;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.giphy-load-more-btn:hover {
  background: #007ad9;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #666;
}

.no-stickers,
.no-gifts {
  text-align: center;
  padding: 40px;
  color: #666;
  grid-column: 1 / -1;
}

.danger {
  background: #ffd4d4;
  color: #a00;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.profile-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .messages-layout,
  .profile-grid {
    grid-template-columns: 1fr;
  }
}


.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e9f7ff;
}

.profile-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

.pin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.pin-grid div {
  height: 110px;
  border-radius: 16px;
}

.profile-status {
  margin-top: 8px;
  color: #555;
  font-size: 14px;
}

.profile-summary {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.profile-summary p {
  margin: 0;
  font-weight: 600;
}

.profile-meta-detail {
  margin-top: 18px;
  color: #555;
}

.follow-requests,
.profile-tag-list,
.profile-pinned-section,
.profile-post-grid-section,
.profile-history-section {
  margin-top: 30px;
}

.request-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f5f5f5;
  padding: 12px 16px;
  border-radius: 16px;
  margin-top: 12px;
}

.request-actions {
  display: flex;
  gap: 10px;
}

.request-actions button {
  padding: 8px 12px;
  border-radius: 12px;
}

.profile-pinned-section h3,
.profile-post-grid-section h3,
.profile-history-section h3 {
  margin-bottom: 16px;
}

.pinned-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.pinned-post-card {
  background: #f9f9f9;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.profile-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-post-tile {
  min-height: 140px;
  background: #e8e8e8;
  border-radius: 16px;
}

.profile-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.blocked-contact {
  background: #ffe5e5;
  padding: 8px 12px;
  border-radius: 12px;
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blocked-contact button {
  margin-left: 12px;
  width: auto;
}

.qr-card {
  margin-top: 16px;
  padding: 20px;
  background: #f5f5ff;
  border-radius: 20px;
  border: 1px solid #dfe4ff;
}

.qr-placeholder {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  background: #ffffff;
  border: 1px dashed #ccc;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-weight: bold;
}

@media (max-width: 900px) {
  .messages-layout,
  .profile-grid,
  .stories-creation-panel {
    grid-template-columns: 1fr;
  }
  .profile-post-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Hide less-important navbar items on small screens */
@media (max-width: 700px) {
  .hide-on-mobile { display: none !important; }
  /* Move some header actions into a compact layout */
  .header-actions { gap: 8px; }
}

@media (min-width: 901px) {
  /* On large screens show full navbar and hide header compact menu if desired */
  /* Keep profile-actions-menu visible for dropdown functionality */
}

.stories-page .story-panel-left,
.stories-page .story-panel-right {
  background: #f0f0f0;
  border-radius: 20px;
  padding: 20px;
}

.stories-creation-panel {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.sticker-control-row,
.story-action-buttons,
.story-status-grid,
.analytics-grid,
.close-friends-grid {
  display: grid;
  gap: 12px;
}

.pill-row,
.close-friends-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill,
.sticker-chip {
  border: none;
  padding: 10px 14px;
  border-radius: 999px;
  background: #e0e0e0;
  cursor: pointer;
}

.pill.active,
.sticker-chip.selected {
  background: #d0f1ff;
  box-shadow: inset 4px 4px 8px #bbe5f7,
              inset -4px -4px 8px #ffffff;
}

.story-preview-card {
  min-height: 220px;
}

.story-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.story-status-card {
  border-radius: 18px;
  background: #fafafa;
  padding: 16px;
  margin-top: 12px;
}

.story-action-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.analytics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analytics-grid > div {
  padding: 16px;
  border-radius: 18px;
  background: #f7fbff;
}

.stories-page h3 {
  margin-top: 28px;
}

.stories-page .setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.setting-row:last-child {
  border-bottom: none;
}

.setting-row label {
  flex: 1;
  font-weight: 500;
  color: var(--text-primary);
}

.setting-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #007bff;
  cursor: pointer;
}

.setting-row select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  font-size: 14px;
  min-width: 120px;
}

.setting-row button {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.setting-description {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 4px 0 8px 0;
  line-height: 1.4;
}

.stories-page textarea {
  min-height: 120px;
}

.story-panel-left button,
.story-panel-right button,
.story-status-card button {
  width: auto;
}

.story-status-grid .feature-card {
  padding: 20px;
}

.close-friends-grid .pill {
  min-width: 120px;
}

.story-panel-right .feature-card {
  display: grid;
  gap: 16px;
}

.story-panel-right .story-preview-card p {
  margin: 6px 0;
}

.story-panel-left .sticker-chip {
  text-align: left;
}

.story-panel-left .sticker-chip:hover,
.pill:hover {
  transform: translateY(-1px);
}

/* Call Modal */
.call-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.call-content {
  background: #e0e0e0;
  border-radius: 20px;
  box-shadow: 8px 8px 16px #bebebe,
              -8px -8px 16px #ffffff;
  padding: 20px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.call-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.call-header h3 {
  margin: 0;
}

.close-call-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.call-videos {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.video-container {
  position: relative;
  width: 100%;
  height: 300px;
}

.local-video,
.remote-video {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.local-video {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 120px;
  height: 90px;
  border: 2px solid #fff;
}

.voice-call-info {
  text-align: center;
}

.avatar-circle.large {
  width: 120px;
  height: 120px;
  font-size: 48px;
  margin: 0 auto 20px;
}

.call-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.control-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: #e0e0e0;
  box-shadow: inset 4px 4px 8px #bebebe,
              inset -4px -4px 8px #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.control-btn:hover {
  box-shadow: inset 2px 2px 4px #bebebe,
              inset -2px -2px 4px #ffffff;
}

.control-btn.muted,
.control-btn.off {
  background: #ffe5e5;
}

.control-btn.end-call {
  background: #ffd4d4;
  color: #a00;
}

/* Watch Together Styles */
.shared-content-section {
  margin-bottom: 20px;
  background: #f0f0f0;
  border-radius: 12px;
  padding: 15px;
  box-shadow: inset 2px 2px 4px #bebebe,
              inset -2px -2px 4px #ffffff;
}

.shared-content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.shared-content-header span {
  font-weight: bold;
  color: #333;
}

.stop-sharing-btn {
  background: #ffe5e5;
  border: none;
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
  box-shadow: inset 2px 2px 4px #bebebe,
              inset -2px -2px 4px #ffffff;
}

.shared-content-display {
  position: relative;
}

.shared-video,
.shared-image {
  width: 100%;
  max-height: 200px;
  border-radius: 8px;
  object-fit: cover;
}

.content-info {
  margin-top: 10px;
}

.content-info h4 {
  margin: 0 0 5px 0;
  font-size: 14px;
}

.video-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.content-play-btn {
  background: #e0e0e0;
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  box-shadow: inset 2px 2px 4px #bebebe,
              inset -2px -2px 4px #ffffff;
}

.seek-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #ddd;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.seek-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #666;
  cursor: pointer;
}

.content-selector {
  position: absolute;
  bottom: 80px;
  left: 20px;
  right: 20px;
  background: #e0e0e0;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 4px 4px 8px #bebebe,
              -4px -4px 8px #ffffff;
  max-height: 300px;
  overflow-y: auto;
}

.content-selector h4 {
  margin: 0 0 15px 0;
  text-align: center;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.content-item {
  background: #f0f0f0;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  box-shadow: inset 2px 2px 4px #bebebe,
              inset -2px -2px 4px #ffffff;
  transition: transform 0.2s;
}

.content-item:hover {
  transform: translateY(-2px);
  box-shadow: 2px 2px 4px #bebebe,
              -2px -2px 4px #ffffff;
}

.content-preview {
  width: 100%;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  margin-bottom: 5px;
}

.content-details h5 {
  margin: 0 0 2px 0;
  font-size: 12px;
  font-weight: bold;
}

.content-details span {
  font-size: 10px;
  color: #666;
}

.close-selector-btn {
  width: 100%;
  margin-top: 15px;
  padding: 10px;
  background: #e0e0e0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: inset 2px 2px 4px #bebebe,
              inset -2px -2px 4px #ffffff;
}

/* ===== LIVE STREAMING STYLES ===== */

.live-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.live-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  background: #e0e0e0;
  border-radius: 20px;
  box-shadow: 8px 8px 16px #bebebe,
              -8px -8px 16px #ffffff;
}

.live-tabs {
  display: flex;
  gap: 10px;
}

.live-tabs button {
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  background: #e0e0e0;
  box-shadow: inset 4px 4px 8px #bebebe,
              inset -4px -4px 8px #ffffff;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.live-tabs button.active {
  background: #ffffff;
  box-shadow: 4px 4px 8px #bebebe,
              -4px -4px 8px #ffffff;
}

.live-tabs button:hover {
  box-shadow: inset 2px 2px 4px #bebebe,
              inset -2px -2px 4px #ffffff;
}

.live-actions {
  display: flex;
  gap: 10px;
}

.live-actions button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: #e0e0e0;
  box-shadow: inset 4px 4px 8px #bebebe,
              inset -4px -4px 8px #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.live-actions button:hover {
  box-shadow: inset 2px 2px 4px #bebebe,
              inset -2px -2px 4px #ffffff;
}

/* Browse Live */
.live-browse {
  margin-bottom: 40px;
}

.browse-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.browse-summary-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: inset 2px 2px 6px rgba(255,255,255,0.8),
              inset -2px -2px 6px rgba(148, 163, 184, 0.1);
}

.browse-summary-card h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.browse-summary-card p {
  margin: 0;
  font-size: 18px;
  color: #0f172a;
  font-weight: 700;
}

.live-filters {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: #e0e0e0;
  border-radius: 15px;
  box-shadow: inset 4px 4px 8px #bebebe,
              inset -4px -4px 8px #ffffff;
}

.filter-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sort-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-selector label {
  font-weight: 600;
  color: #334155;
}

.sort-selector select {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #f8fafc;
  font-size: 14px;
  color: #475569;
  cursor: pointer;
}

.search-input {
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: #f0f0f0;
  box-shadow: inset 4px 4px 8px #bebebe,
              inset -4px -4px 8px #ffffff;
  font-size: 16px;
}

.filter-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-tag {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  background: #f0f0f0;
  box-shadow: inset 2px 2px 4px #bebebe,
              inset -2px -2px 4px #ffffff;
  cursor: pointer;
  font-size: 14px;
}

.filter-tag.active {
  background: #ffffff;
  box-shadow: 2px 2px 4px #bebebe,
              -2px -2px 4px #ffffff;
}

.stream-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 13px;
  color: #475569;
}

.stream-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f8fafc;
}

.search-input {
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: #f0f0f0;
  box-shadow: inset 4px 4px 8px #bebebe,
              inset -4px -4px 8px #ffffff;
  font-size: 16px;
}

.filter-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-tag {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  background: #f0f0f0;
  box-shadow: inset 2px 2px 4px #bebebe,
              inset -2px -2px 4px #ffffff;
  cursor: pointer;
  font-size: 14px;
}

.filter-tag.active {
  background: #ffffff;
  box-shadow: 2px 2px 4px #bebebe,
              -2px -2px 4px #ffffff;
}

.live-streams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.live-stream-card {
  background: #e0e0e0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 8px 8px 16px #bebebe,
              -8px -8px 16px #ffffff;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.live-stream-card:hover {
  transform: translateY(-5px);
  box-shadow: 12px 12px 20px #bebebe,
              -12px -12px 20px #ffffff;
}

.stream-thumbnail {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.stream-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-indicator {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff4757;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 4px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.viewer-count {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.stream-info {
  padding: 15px;
}

.streamer-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.avatar-circle.small {
  width: 40px;
  height: 40px;
  font-size: 16px;
}

.streamer-name {
  font-weight: bold;
  color: #333;
}

.stream-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.stream-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stream-tag {
  background: #f0f0f0;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  color: #666;
}

/* Watch Live */
.live-watch {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 20px;
}

.watch-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-player {
  position: relative;
  background: #000;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.live-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.live-badge {
  background: #ff4757;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
}

.viewer-count-badge {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
}

.product-tag {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: tagPulse 2s infinite;
}

@keyframes tagPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.pinned-comment {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pin-icon {
  font-size: 20px;
}

.comment-content strong {
  color: #ff4757;
}

.stream-info-panel {
  background: #e0e0e0;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 8px 8px 16px #bebebe,
              -8px -8px 16px #ffffff;
}

.streamer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.avatar-circle.medium {
  width: 60px;
  height: 60px;
  font-size: 24px;
}

.streamer-details h2 {
  margin: 0 0 5px 0;
  font-size: 18px;
}

.streamer-details p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.follow-btn {
  padding: 8px 16px;
  background: #ff4757;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
}

.stream-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.stat-label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
}

.watch-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Comments */
.comments-section {
  background: #e0e0e0;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 8px 8px 16px #bebebe,
              -8px -8px 16px #ffffff;
  flex: 1;
}

.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.comments-header h3 {
  margin: 0;
  font-size: 18px;
}

.settings-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
}

.comments-list {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 15px;
}

.comment-item {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.comment-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.role-badge {
  font-size: 12px;
  margin-top: 2px;
}

.command-badge {
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: bold;
}

.command-shoutout {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
}

.command-lurk {
  background: linear-gradient(45deg, #74b9ff, #0984e3);
  color: white;
}

.comment-reactions {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.reaction-btn {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.reaction-btn:hover {
  background: #e9ecef;
  transform: scale(1.05);
}

.reaction-btn.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.reaction-buttons {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* Prediction Styles */
.prediction-panel {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.prediction-panel h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
}

.prediction-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prediction-option {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s;
  overflow: hidden;
}

.prediction-option:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.prediction-option.voted {
  background: rgba(255, 255, 255, 0.3);
  border-color: #4CAF50;
}

.prediction-option:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.prediction-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.prediction-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  transition: width 0.5s ease;
  border-radius: 0 0 6px 6px;
}

.prediction-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 12px;
}

.voted-indicator {
  color: #4CAF50;
  font-weight: bold;
}

/* Prediction Results */
.prediction-results-panel {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.prediction-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.result-item.winner {
  background: rgba(255, 215, 0, 0.3);
  border: 2px solid gold;
}

.winner-badge {
  font-size: 12px;
  font-weight: bold;
  color: gold;
}

/* Prediction Creator */
.prediction-creator {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.create-prediction-btn {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  transition: all 0.3s;
}

.create-prediction-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.prediction-creator-form {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prediction-title-input,
.prediction-option-input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.prediction-controls {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.prediction-controls select {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  flex: 1;
}

.start-prediction-btn {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  flex: 1;
}

.start-prediction-btn:hover {
  background: #45a049;
}

/* Channel Points Styles */
.channel-points-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.points-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.points-header h4 {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.points-balance {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.toggle-points-btn {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  width: 100%;
  font-size: 14px;
  transition: all 0.2s;
}

.toggle-points-btn:hover {
  background: #e9ecef;
}

.points-rewards {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.points-reward {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.reward-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reward-emoji {
  font-size: 20px;
}

.reward-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reward-title {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.reward-cost {
  font-size: 12px;
  color: #666;
}

.redeem-btn {
  background: linear-gradient(45deg, #28a745, #20c997);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
}

.redeem-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.redeem-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.streaming-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.control-section {
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

.control-section:last-child {
  border-bottom: none;
}

.control-section h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.control-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.control-buttons button {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.control-buttons button:hover {
  background: #f5f5f5;
  border-color: #bbb;
}

.co-host-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 12px;
}

.settings-btn {
  width: 100%;
  padding: 10px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
}

.settings-btn:hover {
  background: #0056b3;
}

/* Membership System Styles */
.membership-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
  color: white;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.membership-section h3 {
  margin: 0 0 16px 0;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.membership-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.membership-tier {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.membership-tier:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.membership-tier.featured {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.membership-tier h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
}

.membership-price {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.membership-benefits {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  text-align: left;
}

.membership-benefits li {
  margin-bottom: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.membership-benefits li::before {
  content: "✓";
  color: #4ade80;
  font-weight: bold;
}

.membership-join-btn {
  background: white;
  color: #667eea;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  margin-top: 16px;
}

.membership-join-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.membership-join-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.exclusive-content-section {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
  color: white;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.exclusive-content-section h3 {
  margin: 0 0 16px 0;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.exclusive-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.exclusive-content-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.exclusive-content-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.exclusive-content-item h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
}

.exclusive-content-item p {
  margin: 0 0 16px 0;
  font-size: 14px;
  opacity: 0.9;
}

.exclusive-content-btn {
  background: white;
  color: #f5576c;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.exclusive-content-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.membership-required-notice {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  border-left: 4px solid #ff6b6b;
  display: flex;
  align-items: center;
  gap: 12px;
}

.membership-required-notice .icon {
  font-size: 24px;
  color: #ff6b6b;
}

.membership-required-notice .content h4 {
  margin: 0 0 4px 0;
  color: #d63031;
  font-size: 16px;
  font-weight: 600;
}

.membership-required-notice .content p {
  margin: 0;
  color: #636e72;
  font-size: 14px;
}

.membership-required-notice .upgrade-btn {
  background: #ff6b6b;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: auto;
}

.membership-required-notice .upgrade-btn:hover {
  background: #e17055;
  transform: translateY(-1px);
}

/* Membership Badge Styles */
.membership-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.membership-badge.bronze {
  background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
  color: white;
}

.membership-badge.silver {
  background: linear-gradient(135deg, #c0c0c0 0%, #808080 100%);
  color: white;
}

.membership-badge.gold {
  background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
  color: #333;
}

.membership-badge.platinum {
  background: linear-gradient(135deg, #e5e4e2 0%, #b8b8b8 100%);
  color: #333;
}

.membership-badge.diamond {
  background: linear-gradient(135deg, #b9f2ff 0%, #4fc3f7 100%);
  color: #0277bd;
}

/* Responsive Membership Styles */
@media (max-width: 768px) {
  .membership-tiers {
    grid-template-columns: 1fr;
  }

  .exclusive-content-grid {
    grid-template-columns: 1fr;
  }

  .membership-section,
  .exclusive-content-section {
    padding: 16px;
  }

  .membership-required-notice {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .membership-required-notice .upgrade-btn {
    margin-left: 0;
    width: 100%;
  }
}

/* Exclusive Content Styles */
.exclusive-streams,
.member-content {
  margin-bottom: 20px;
}

.exclusive-streams h5,
.member-content h5 {
  margin: 0 0 12px 0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.exclusive-stream-list,
.content-grid {
  display: grid;
  gap: 12px;
}

.exclusive-stream-item,
.content-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stream-info h6,
.content-item h6 {
  margin: 0 0 4px 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.stream-info p,
.content-item p {
  margin: 0 0 8px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  line-height: 1.4;
}

.stream-time {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
}

.join-exclusive-btn,
.content-thumbnail {
  position: relative;
}

.content-thumbnail img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
}

.member-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.join-exclusive-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.join-exclusive-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}
.avatar-circle.tiny {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: bold;
}

.badge-supporter {
  background: #ffd700;
  color: #333;
}

.badge-vip {
  background: #ff4757;
  color: white;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.comment-header strong {
  font-size: 14px;
  color: #333;
}

.donation-badge {
  background: #ffd700;
  color: #333;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
}

.comment-actions {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.action-btn {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 4px;
}

.action-btn:hover {
  background: #f0f0f0;
}

.comment-input {
  display: flex;
  gap: 10px;
}

.comment-input-field {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 20px;
  background: #f0f0f0;
  box-shadow: inset 2px 2px 4px #bebebe,
              inset -2px -2px 4px #ffffff;
}

.send-comment-btn {
  padding: 12px 20px;
  background: #ff4757;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
}

.comment-gif-btn {
  padding: 12px;
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 2px 2px 4px #bebebe,
              -2px -2px 4px #ffffff;
  transition: all 0.2s;
}

.comment-gif-btn:hover {
  background: #e0e0e0;
  box-shadow: inset 2px 2px 4px #bebebe,
              inset -2px -2px 4px #ffffff;
}

.live-gif-image {
  max-width: 200px;
  max-height: 150px;
  object-fit: contain;
  border-radius: 8px;
  align-self: flex-start;
}

/* Instagram Stories Styles */
.instagram-stories-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.stories-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.create-story-btn {
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-weight: bold;
  cursor: pointer;
}

.your-story-section, .friends-stories {
  margin-bottom: 20px;
}

.story-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  margin-right: 15px;
}

.story-ring.your-story .story-avatar {
  border: 2px dashed #ddd;
}

.story-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 5px;
}

.stories-list {
  display: flex;
  overflow-x: auto;
  padding: 10px 0;
}

.create-story-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 1000;
}

.create-story-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #ddd;
}

.story-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
}

.story-type-card {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.story-type-card:hover {
  border-color: #007bff;
}

.story-type-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.camera-view {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: black;
  z-index: 1000;
}

.camera-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-controls {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  align-items: center;
}

.capture-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid white;
  background: none;
  cursor: pointer;
  font-size: 24px;
}

.upload-btn {
  background: rgba(255,255,255,0.8);
  color: black;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  cursor: pointer;
}

.close-camera {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 20px;
}

.edit-story-view {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: black;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.edit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  color: white;
}

.share-options {
  display: flex;
  gap: 10px;
}

.share-options button {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid white;
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
}

.share-options button.active {
  background: white;
  color: black;
}

/* Story tool control panels */
.edit-tools .speed-controls,
.edit-tools .filter-controls,
.edit-tools .voice-over-controls,
.edit-tools .time-lapse-controls,
.edit-tools .stop-motion-controls,
.edit-tools .green-screen-controls,
.edit-tools .ar-effects-controls,
.edit-tools .music-viz-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  width: 100%;
  margin-top: 14px;
}

.edit-tools .speed-controls label,
.edit-tools .filter-controls label,
.edit-tools .ar-effects-controls label,
.edit-tools .green-screen-controls label,
.edit-tools .voice-over-controls span,
.edit-tools .time-lapse-controls span,
.edit-tools .stop-motion-controls span,
.edit-tools .music-viz-controls span {
  color: #fff;
  font-weight: 600;
  min-width: 100px;
}

.edit-tools .speed-controls select,
.edit-tools .filter-controls select,
.edit-tools .ar-effects-controls select,
.edit-tools .green-screen-controls input[type="range"],
.edit-tools .green-screen-controls input[type="file"],
.edit-tools .voice-over-controls button,
.edit-tools .time-lapse-controls button,
.edit-tools .stop-motion-controls button,
.edit-tools .green-screen-controls button,
.edit-tools .ar-effects-controls button,
.edit-tools .music-viz-controls button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.edit-tools .speed-controls select,
.edit-tools .filter-controls select,
.edit-tools .ar-effects-controls select {
  min-width: 180px;
}

.edit-tools .green-screen-controls input[type="file"] {
  padding: 10px 12px;
  min-width: 220px;
}

.edit-tools .green-screen-controls input[type="range"] {
  flex: 1 1 180px;
  margin-left: 10px;
}

.edit-tools .speed-controls button:hover,
.edit-tools .voice-over-controls button:hover,
.edit-tools .time-lapse-controls button:hover,
.edit-tools .stop-motion-controls button:hover,
.edit-tools .green-screen-controls button:hover,
.edit-tools .ar-effects-controls button:hover,
.edit-tools .music-viz-controls button:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.edit-tools .music-viz-controls span {
  flex: 1 1 auto;
}

.edit-tools .stop-motion-controls button:last-child,
.edit-tools .green-screen-controls button,
.edit-tools .ar-effects-controls button,
.edit-tools .music-viz-controls button {
  min-width: 140px;
}

/* ===== PROFILE PAGE STYLES ===== */

.instagram-profile-container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.instagram-profile-cover {
  position: relative;
  height: 230px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}

.instagram-profile-note-overlay {
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 40px));
  padding: 0 12px;
  z-index: 10;
}

.profile-thought-bubble {
  position: absolute;
  top: -80px;
  right: 20px;
  background: #ffffff;
  border-radius: 18px;
  padding: 10px 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 200px;
  cursor: pointer;
  z-index: 20;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.profile-thought-bubble:hover {
  transform: scale(1.05);
}

.thought-bubble-content {
  font-size: 14px;
  color: #0f172a;
  line-height: 1.4;
  word-wrap: break-word;
  text-align: center;
}

.thought-bubble-tail {
  position: absolute;
  bottom: -8px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #ffffff;
}

.instagram-profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instagram-profile-header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  border-radius: 16px;
  margin: 20px 0;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
}

.instagram-profile-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 100%);
}

.instagram-profile-avatar {
  position: absolute;
  top: -60px;
  left: 20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid white;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.instagram-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instagram-profile-info {
  margin-left: 140px;
  flex: 1;
}

.instagram-profile-name {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #333;
}

.instagram-profile-handle {
  font-size: 16px;
  color: #666;
  margin: 0 0 12px 0;
}

.instagram-profile-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}

.instagram-profile-stat {
  text-align: center;
}

.instagram-profile-stat-number {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  display: block;
}

.instagram-profile-stat-label {
  font-size: 14px;
  color: #666;
}

.instagram-profile-bio {
  margin: 16px 0;
  line-height: 1.5;
  color: #333;
}

.instagram-profile-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.instagram-create-dropdown {
  position: relative;
}

.instagram-create-dropdown .profile-actions-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
}

.instagram-create-dropdown .profile-actions-menu button {
  width: 100%;
  text-align: left;
}

.website-create-modal {
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px;
}

.website-create-modal form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.website-create-modal input,
.website-create-modal textarea,
.website-create-modal select {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.navigation-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.navigation-options label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
}

.instagram-settings-btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #dbdbdb;
  background: white;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.instagram-settings-btn:hover {
  background: #f8f8f8;
}

.instagram-profile-button {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #dbdbdb;
  background: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.instagram-profile-button:hover {
  background: #f8f8f8;
}

.instagram-profile-button.primary {
  background: #0095f6;
  color: white;
  border-color: #0095f6;
}

.instagram-profile-button.primary:hover {
  background: #007acc;
}

.instagram-profile-button.secondary {
  background: #f8f8f8;
  color: #333;
}

.instagram-profile-button.secondary:hover {
  background: #e8e8e8;
}

.share-btn {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
}

.story-preview {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.story-preview img, .story-preview video {
  max-width: 100%;
  max-height: 100%;
}

.text-story-preview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.text-story-input {
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  text-align: center;
  resize: none;
}

.stickers-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.sticker-item {
  position: absolute;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 14px;
}

.edit-tools {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
}

.edit-tools button {
  background: rgba(255,255,255,0.8);
  color: black;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  cursor: pointer;
}

/* Media Gallery Styles */
.media-gallery-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.media-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.8);
  gap: 20px;
}

.media-navigation button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
}

.media-navigation button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.media-counter {
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.media-thumbnails {
  display: flex;
  gap: 10px;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.8);
  overflow-x: auto;
  align-items: center;
}

.thumbnail {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  background: rgba(100, 100, 100, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.remove-thumbnail {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(255, 0, 0, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  display: none;
}

.thumbnail:hover .remove-thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-media-button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px dashed rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.add-media-button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.sticker-modal {
  background: white;
  border-radius: 10px;
  padding: 20px;
  max-width: 400px;
  width: 90%;
}

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.sticker-option {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: white;
  cursor: pointer;
  text-align: center;
}

.recording-timer {
  color: red;
  font-weight: bold;
  font-size: 18px;
}

/* Mini-Games Styles */
.mini-games-section {
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.1), rgba(255, 140, 0, 0.1));
  border: 1px solid rgba(255, 140, 0, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}

.mini-games-section h4 {
  margin: 0 0 8px 0;
  color: #ff8c00;
  font-weight: 600;
}

.mini-games-section p {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.start-games-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #ff8c00, #ff6b35);
  border: none;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.start-games-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.current-game-display {
  background: rgba(255, 140, 0, 0.1);
  border: 1px solid rgba(255, 140, 0, 0.3);
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-emoji {
  font-size: 20px;
}

.game-info {
  display: flex;
  flex-direction: column;
}

.game-title {
  font-weight: 600;
  color: white;
}

.game-status {
  font-size: 12px;
  color: rgba(255, 140, 0, 0.8);
}

.end-game-btn {
  padding: 6px 12px;
  background: rgba(220, 53, 69, 0.8);
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}

.end-game-btn:hover {
  background: rgba(220, 53, 69, 1);
}

/* Game Picker Modal */
.game-picker-modal {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 2px solid rgba(255, 140, 0, 0.3);
  border-radius: 16px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.game-picker-header {
  background: linear-gradient(135deg, #ff8c00, #ff6b35);
  padding: 20px;
  position: relative;
  color: white;
}

.game-picker-header h3 {
  margin: 0 0 4px 0;
  font-size: 20px;
}

.game-picker-header p {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
}

.close-modal-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s ease;
}

.close-modal-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.games-grid-modal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  padding: 20px;
}

.game-option-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 140, 0, 0.2);
  border-radius: 12px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.game-option-btn:hover {
  background: rgba(255, 140, 0, 0.15);
  border-color: rgba(255, 140, 0, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 140, 0, 0.15);
}

.game-icon {
  font-size: 28px;
  display: block;
}

.game-name {
  font-weight: 600;
  font-size: 13px;
  text-align: center;
}

.game-description {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  line-height: 1.3;
}

.game-settings-btn,
.viewer-game-submit,
.start-games-btn,
.close-settings-btn {
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.start-games-btn,
.game-settings-btn {
  margin-right: 10px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #ff8c00, #ff6b35);
  color: #fff;
  font-weight: 600;
}

.start-games-btn:hover,
.game-settings-btn:hover,
.viewer-game-submit:hover,
.close-settings-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 107, 53, 0.2);
}

.game-settings-panel {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255, 140, 0, 0.2);
  border-radius: 14px;
  padding: 12px 16px;
  margin-top: 12px;
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.settings-header h5 {
  margin: 0;
  color: #fff;
}

.setting-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.allowed-games-list {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
}

.settings-label {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.games-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.game-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
}

.viewer-game-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
  margin-top: 12px;
}

.viewer-game-status,
.viewer-game-locked,
.viewer-game-waiting {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.viewer-game-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.viewer-game-input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.viewer-game-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.viewer-game-submit {
  padding: 10px 16px;
  background: #22c55e;
  color: #fff;
}

.viewer-game-notice {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.game-question-display {
  margin-top: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.game-prompt {
  margin: 0;
  color: #fff;
  font-weight: 600;
}

.responses-count {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.close-settings-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Donations */
.donations-section {
  background: #e0e0e0;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 8px 8px 16px #bebebe,
              -8px -8px 16px #ffffff;
}

.donations-section h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
}

.donations-list {
  margin-bottom: 15px;
}

.donation-item {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
}

.donation-item strong {
  color: #ff4757;
}

.donate-btn {
  width: 100%;
  padding: 12px;
  background: #ffd700;
  color: #333;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
}

/* Stream Setup */
.live-stream-setup {
  background: #e0e0e0;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 8px 8px 16px #bebebe,
              -8px -8px 16px #ffffff;
}

.setup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.setup-header h2 {
  margin: 0;
  font-size: 24px;
}

.setup-tabs {
  display: flex;
  gap: 10px;
}

.setup-tabs button {
  padding: 10px 20px;
  border: none;
  border-radius: 12px;
  background: #f0f0f0;
  box-shadow: inset 2px 2px 4px #bebebe,
              inset -2px -2px 4px #ffffff;
  cursor: pointer;
  font-weight: bold;
}

.setup-tabs button.active {
  background: #ffffff;
  box-shadow: 2px 2px 4px #bebebe,
              -2px -2px 4px #ffffff;
}

.stream-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: bold;
  color: #333;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: #f0f0f0;
  box-shadow: inset 4px 4px 8px #bebebe,
              inset -4px -4px 8px #ffffff;
  font-size: 16px;
}

.stream-settings {
  background: #f0f0f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: inset 2px 2px 4px #bebebe,
              inset -2px -2px 4px #ffffff;
}

.stream-settings h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.setting-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.setting-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.preview-section {
  background: #f0f0f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: inset 2px 2px 4px #bebebe,
              inset -2px -2px 4px #ffffff;
}

.preview-section h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
}

.preview-container {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-controls {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.test-audio-btn,
.test-video-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}

.stream-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.practice-btn {
  padding: 15px 30px;
  background: #ffa502;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
}

.go-live-btn {
  padding: 15px 30px;
  background: #ff4757;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
}

.go-live-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Live Streaming Modal */
.live-streaming-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.streaming-interface {
  width: 95%;
  height: 95%;
  background: #e0e0e0;
  border-radius: 20px;
  box-shadow: 8px 8px 16px #bebebe,
              -8px -8px 16px #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.streaming-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #f0f0f0;
  border-bottom: 1px solid #ddd;
}

.streaming-header h2 {
  margin: 0;
  font-size: 24px;
  color: #333;
}

.streaming-stats {
  display: flex;
  gap: 20px;
  font-size: 16px;
  font-weight: bold;
}

.streaming-stats span {
  color: #666;
}

.end-stream-btn {
  padding: 12px 24px;
  background: #ff4757;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
}

.streaming-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.main-stream {
  flex: 1;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.streaming-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.co-hosts-grid {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 300px;
}

.co-host-video {
  width: 120px;
  height: 90px;
  background: #333;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.co-host-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.co-host-video span {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.guest-requests {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px;
  border-radius: 12px;
  max-width: 250px;
}

.guest-request {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.guest-request button {
  padding: 5px 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
}

.guest-request button:first-of-type {
  background: #ff4757;
  color: white;
  margin-right: 5px;
}

.guest-request button:last-of-type {
  background: #666;
  color: white;
}

.streaming-sidebar {
  width: 300px;
  background: #f0f0f0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.live-comments-preview {
  flex: 1;
}

.preview-comment {
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
}

.preview-comment strong {
  color: #ff4757;
}

.streaming-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.streaming-controls button {
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  background: #e0e0e0;
  box-shadow: inset 2px 2px 4px #bebebe,
              inset -2px -2px 4px #ffffff;
}

.streaming-controls button:hover {
  box-shadow: inset 1px 1px 2px #bebebe,
              inset -1px -1px 2px #ffffff;
}

/* Product Tagger */
.product-tagger-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.tagger-content {
  background: #e0e0e0;
  border-radius: 15px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  box-shadow: 8px 8px 16px #bebebe,
              -8px -8px 16px #ffffff;
}

.tagger-content h3 {
  margin: 0 0 20px 0;
  text-align: center;
  font-size: 24px;
}

.products-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.product-item {
  background: #f0f0f0;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  box-shadow: inset 2px 2px 4px #bebebe,
              inset -2px -2px 4px #ffffff;
  transition: transform 0.2s;
}

.product-item:hover {
  transform: translateY(-2px);
  box-shadow: 2px 2px 4px #bebebe,
              -2px -2px 4px #ffffff;
}

.product-item img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
}

.product-item span {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: #333;
}

.tagger-content button {
  width: 100%;
  padding: 12px;
  background: #ff4757;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
}

/* ===== ANIMATIONS & MICRO-INTERACTIONS ===== */

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@keyframes confetti {
  0% { transform: translateY(-100vh) rotate(0deg); }
  100% { transform: translateY(100vh) rotate(360deg); }
}

.post-card {
  animation: bounceIn 0.6s ease-out;
}

.like-button:active {
  animation: heartPulse 0.3s ease;
}

.new-notification {
  animation: slideInUp 0.4s ease-out;
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

/* Hover effects */
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.story-tile:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

.live-stream-card:hover {
  transform: translateY(-5px);
  box-shadow: 12px 12px 20px #bebebe,
              -12px -12px 20px #ffffff;
  transition: all 0.3s ease;
}

/* Button interactions */
button:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

.icon-btn:hover {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

/* Loading animations */
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-post {
  height: 400px;
  border-radius: 8px;
  margin-bottom: 18px;
}

.skeleton-text {
  height: 16px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.skeleton-text:last-child {
  width: 60%;
}

/* Celebration effects */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ff4757;
  animation: confetti 3s linear infinite;
}

.confetti-piece:nth-child(2n) {
  background: #ffa502;
}

.confetti-piece:nth-child(3n) {
  background: #3742fa;
}

.confetti-piece:nth-child(4n) {
  background: #2ed573;
}

/* ===== DARK MODE THEME ===== */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-muted: #adb5bd;
  --border-color: #dee2e6;
  --shadow-light: rgba(0, 0, 0, 0.08);
  --shadow-dark: rgba(255, 255, 255, 0.9);
  --accent-primary: #007bff;
  --accent-secondary: #ff4757;
  --success: #28a745;
  --warning: #ffc107;
  --error: #dc3545;
}

[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --border-hover: #475569;
  --primary-color: #818cf8;
  --primary-hover: #6366f1;
  --secondary-color: #a78bfa;
  --accent-color: #fbbf24;
  --success-color: #34d399;
  --warning-color: #fbbf24;
  --error-color: #f87171;
}

[data-theme="dark"] body {
  background: var(--bg-primary);
  color: var(--text-primary);
}

[data-theme="dark"] .post-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .live-stream-card,
[data-theme="dark"] .auth-card {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .app-bar {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

[data-theme="dark"] .top-navbar {
  background: var(--bg-secondary);
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .search-input {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] button {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

[data-theme="dark"] .live-indicator {
  background: var(--accent-secondary);
}

[data-theme="dark"] .live-badge {
  background: var(--accent-secondary);
}

[data-theme="dark"] .follow-btn,
[data-theme="dark"] .go-live-btn,
[data-theme="dark"] .end-stream-btn {
  background: var(--accent-secondary);
}

[data-theme="dark"] .donate-btn {
  background: var(--warning);
  color: var(--text-primary);
}

[data-theme="cyberpunk"] {
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;
  --text-primary: #e2e8f0;
  --text-secondary: #a8a8a8;
  --text-muted: #6b6b6b;
  --border-color: #16213e;
  --border-hover: #0f3460;
  --primary-color: #e94560;
  --primary-hover: #d6336c;
  --secondary-color: #0f3460;
  --accent-color: #e94560;
  --success-color: #21bf73;
  --warning-color: #f39c12;
  --error-color: #e74c3c;
}

[data-theme="cyberpunk"] body {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

[data-theme="ocean"] {
  --bg-primary: #f0f9ff;
  --bg-secondary: #e0f2fe;
  --bg-tertiary: #bae6fd;
  --text-primary: #0c4a6e;
  --text-secondary: #0369a1;
  --text-muted: #0284c7;
  --border-color: #7dd3fc;
  --border-hover: #38bdf8;
  --primary-color: #0284c7;
  --primary-hover: #0369a1;
  --secondary-color: #0ea5e9;
  --accent-color: #06b6d4;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
}

[data-theme="ocean"] body {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

[data-theme="forest"] {
  --bg-primary: #f0fdf4;
  --bg-secondary: #dcfce7;
  --bg-tertiary: #bbf7d0;
  --text-primary: #14532d;
  --text-secondary: #166534;
  --text-muted: #22c55e;
  --border-color: #86efac;
  --border-hover: #4ade80;
  --primary-color: #16a34a;
  --primary-hover: #15803d;
  --secondary-color: #22c55e;
  --accent-color: #84cc16;
  --success-color: #22c55e;
  --warning-color: #eab308;
  --error-color: #dc2626;
}

[data-theme="forest"] body {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

[data-theme="sunset"] {
  --bg-primary: #fff7ed;
  --bg-secondary: #fed7aa;
  --bg-tertiary: #fdba74;
  --text-primary: #9a3412;
  --text-secondary: #c2410c;
  --text-muted: #ea580c;
  --border-color: #fb923c;
  --border-hover: #f97316;
  --primary-color: #ea580c;
  --primary-hover: #dc2626;
  --secondary-color: #f97316;
  --accent-color: #f59e0b;
  --success-color: #16a34a;
  --warning-color: #d97706;
  --error-color: #dc2626;
}

[data-theme="sunset"] body {
  background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
}

/* Theme toggle button */
.theme-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  font-size: 20px;
  cursor: pointer;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  color: var(--text-primary);
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.theme-toggle.active {
  background: var(--primary-color);
  color: var(--text-inverse);
  border-color: var(--primary-color);
}

.theme-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.theme-option {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-width: 110px;
  text-align: center;
  font-weight: 600;
}

.theme-option:hover {
  transform: translateY(-2px);
}

.theme-option.active {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

/* ===== GAMIFICATION ELEMENTS ===== */

.points-badge {
  background: linear-gradient(45deg, #ff6b6b, #ffa500);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.points-badge::before {
  content: "⭐";
}

.streak-indicator {
  background: linear-gradient(45deg, #ff4757, #ff3838);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: pulse 2s infinite;
}

.streak-indicator::before {
  content: "🔥";
}

.achievement-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #333;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1000;
  animation: slideInUp 0.5s ease-out;
  max-width: 300px;
}

.achievement-popup h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
}

.achievement-popup p {
  margin: 0;
  font-size: 14px;
}

/* ===== ENHANCED LOADING STATES ===== */

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  animation: loadingDots 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loadingDots {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */

@media (max-width: 768px) {
  .post-card,
  .live-stream-card {
    margin-bottom: 12px;
  }

  .story-tray {
    padding: 8px 0;
  }

  .live-streams-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus indicators */
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --bg-primary: #000000;
    --bg-secondary: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #000000;
  }
}

/* Schedule Live */
.live-schedule {
  background: #e0e0e0;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 8px 8px 16px #bebebe,
              -8px -8px 16px #ffffff;
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.schedule-header h2 {
  margin: 0;
  font-size: 24px;
}

.create-scheduled-btn {
  padding: 12px 24px;
  background: #ff4757;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
}

.scheduled-streams {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.scheduled-stream-card {
  background: #f0f0f0;
  border-radius: 15px;
  padding: 20px;
  box-shadow: inset 2px 2px 4px #bebebe,
              inset -2px -2px 4px #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.schedule-info h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #333;
}

.schedule-info p {
  margin: 0 0 10px 0;
  color: #666;
}

.schedule-time {
  display: flex;
  gap: 15px;
  font-size: 14px;
  color: #666;
}

.schedule-actions {
  display: flex;
  gap: 10px;
}

.schedule-actions button {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
}

.edit-btn {
  background: #ffa502;
  color: white;
}

.delete-btn {
  background: #ff4757;
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .live-page {
    padding: 10px;
  }

  .live-header {
    flex-direction: column;
    gap: 15px;
  }

  .live-tabs {
    width: 100%;
    justify-content: center;
  }

  .live-streams-grid {
    grid-template-columns: 1fr;
  }

  .live-watch {
    grid-template-columns: 1fr;
  }

  .watch-sidebar {
    order: -1;
  }

  .streaming-layout {
    flex-direction: column;
  }

  .streaming-sidebar {
    width: 100%;
    height: 200px;
  }

  .co-hosts-grid {
    position: static;
    display: flex;
    justify-content: center;
    margin-top: 10px;
  }
}

/* Account Switcher */
.account-switcher {
  position: relative;
}

.account-current {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 20px;
  background: #e0e0e0;
  box-shadow: inset 4px 4px 8px #bebebe,
              inset -4px -4px 8px #ffffff;
}

.account-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #e0e0e0;
  border-radius: 12px;
  box-shadow: 8px 8px 16px #bebebe,
              -8px -8px 16px #ffffff;
  padding: 8px;
  min-width: 200px;
  z-index: 1000;
}

.account-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  text-align: left;
}

.account-option:hover,
.account-option.active {
  background: #f0f0f0;
}

.account-option div {
  flex: 1;
}

.account-option small {
  color: #666;
}

.add-account {
  border-top: 1px solid #ccc;
  margin-top: 8px;
  padding-top: 16px;
}

/* Profile Actions Menu */
.profile-actions-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #e0e0e0;
  border-radius: 12px;
  box-shadow: 8px 8px 16px #bebebe,
              -8px -8px 16px #ffffff;
  padding: 8px;
  min-width: 200px;
  z-index: 1000;
}

.profile-actions-menu button {
  display: block;
  width: 100%;
  padding: 12px;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  border-radius: 8px;
}

.profile-actions-menu button:hover {
  background: #f0f0f0;
}

/* Post Styles */
.post-card {
  margin-bottom: 20px;
}

.post-actions {
  display: flex;
  gap: 16px;
  margin: 12px 0;
  padding: 8px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-btn:hover {
  background: #f5f5f5;
}

.action-btn.liked {
  color: #e91e63;
}

.post-menu {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
}

.comments-section {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.comment-input {
  margin-bottom: 12px;
}

.comment-input input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #f9f9f9;
}

.comment {
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}

.comment:last-child {
  border-bottom: none;
}

/* Enhanced Comment Input Styles */
.comment-input-container {
  margin-bottom: 12px;
}

.comment-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 4px;
}

.comment-input-field {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: 16px;
  outline: none;
}

.comment-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

.comment-sticker-btn,
.comment-gift-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.comment-sticker-btn:hover,
.comment-gift-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Comment Sticker and Gift Styles */
.comment-sticker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.comment-sticker-image {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.comment-gift {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
}

.comment-gift .gift-animation {
  font-size: 18px;
  text-align: center;
}

.comment-gift-image {
  width: 48px;
  height: 48px;
  object-fit: contain;
  align-self: center;
}

.comment-gif {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
}

.gif-image {
  max-width: 200px;
  max-height: 150px;
  object-fit: contain;
  border-radius: 8px;
  align-self: flex-start;
}

.comment-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comment-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.comment-author-photo,
.comment-author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #333;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.comment-author-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comment-handle {
  font-size: 12px;
  color: #bbb;
}

/* Story Stickers and Gifts Sections */
.giphy-stickers-section,
.gifts-section {
  margin-top: 16px;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 8px;
}

.sticker-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.sticker-section-header label {
  font-weight: 600;
}

.add-sticker-btn,
.add-gift-btn {
  background: #6366f1;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s;
}

.add-sticker-btn:hover,
.add-gift-btn:hover {
  background: #4f46e5;
}

.selected-giphy-stickers,
.selected-gifts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 8px;
}

.giphy-sticker-item,
.gift-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  border: 1px solid #ddd;
  aspect-ratio: 1;
}

.giphy-sticker-item img,
.gift-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-sticker-btn,
.remove-gift-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.remove-sticker-btn:hover,
.remove-gift-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.gift-item span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 10px;
  padding: 2px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Live Stream Sticker and Gift Styles */
.live-sticker-img,
.live-gift-img {
  max-width: 60px;
  max-height: 60px;
  object-fit: contain;
  margin: 4px 0;
}

.comment-sticker-item,
.comment-gift-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
}

.sticker-btn,
.gift-btn {
  background: #8b5cf6;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.sticker-btn:hover,
.gift-btn:hover {
  background: #7c3aed;
}

/* Profile Stickers and Gifts Sections */
.profile-stickers-section,
.profile-gifts-section {
  margin-top: 20px;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #eee;
}

.profile-stickers-section h4,
.profile-gifts-section h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
}

.sticker-display-grid,
.gift-display-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 12px;
}

.profile-sticker-item,
.profile-gift-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  border: 1px solid #ddd;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-sticker-item img,
.profile-gift-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.remove-sticker,
.remove-gift {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.remove-sticker:hover,
.remove-gift:hover {
  background: rgba(0, 0, 0, 0.9);
}

.profile-gift-item span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 10px;
  padding: 2px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Profile Action Buttons */
.sticker-action-btn,
.gift-action-btn {
  background: #f59e0b;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.sticker-action-btn:hover,
.gift-action-btn:hover {
  background: #d97706;
}

/* Search Styles */
.explore-page-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.explore-page-header h2 {
  margin: 0;
}

.explore-search-wide {
  width: 100%;
}

.explore-search-wide input,
.explore-search input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 28px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 16px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

.explore-search {
  margin-bottom: 20px;
}

.explore-search input {
  max-width: 100%;
}

.search-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.search-tabs button {
  padding: 12px 24px;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-weight: 500;
}

.search-tabs button.active {
  border-bottom-color: #0095f6;
  color: #0095f6;
}

/* Enhanced Messages Styles */
.messages-container {
  display: flex;
  height: calc(100vh - 140px);
  background: #e0e0e0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 8px 8px 16px #bebebe,
              -8px -8px 16px #ffffff;
}

.messages-sidebar {
  width: 350px;
  background: #f0f0f0;
  border-right: 1px solid #ddd;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-actions .icon-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
}

.search-bar {
  padding: 10px 20px;
}

.search-bar input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 25px;
  background: #ffffff;
  font-size: 14px;
}

.conversations-list {
  flex: 1;
  overflow-y: auto;
}

.conversation-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s;
}

.conversation-item:hover,
.conversation-item.active {
  background: #e8f4fd;
}

.conversation-item.ai {
  background: linear-gradient(135deg, #f8f4ff, #eef3ff);
  border-left: 4px solid #7c3aed;
}

.conversation-item.ai:hover,
.conversation-item.ai.active {
  background: #e7defd;
}

.messages-sidebar-header {
  padding: 20px 20px 10px;
}

.messages-tabs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.messages-tabs button {
  flex: 1;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #d0d0d0;
  background: #f7f7f7;
  color: #333;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.messages-tabs button.active {
  background: #0095f6;
  color: #fff;
  border-color: #0095f6;
}

.request-placeholder,
.request-view {
  padding: 20px;
  color: #555;
}

.request-placeholder .muted,
.request-view p {
  margin: 0 0 10px;
  color: #777;
}

.notes-row {
  padding: 12px 16px 10px;
  background: transparent;
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.notes-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.notes-heading strong {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.notes-heading span {
  font-size: 12px;
  color: #6b7280;
  max-width: 260px;
}

.notes-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 0;
}

.notes-empty {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafc 100%);
  border: 1px solid #e5e7eb !important;
  border-radius: 28px;
  color: #374151;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.instagram-note-empty {
  background: #ffffff;
}

.instagram-note-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 24px;
  box-shadow: 0 12px 20px rgba(197, 53, 132, 0.18);

  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f56040 0%, #c13584 100%);
  color: white;
  font-size: 24px;
}

.instagram-note-empty-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.instagram-note-empty-text {
  margin: 0;
  color: #6b7280;
  line-height: 1.6;
}

.note-card {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 12px 14px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  cursor: default;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 260px;
}

.note-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.ig-note-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f46e5 0%, #38bdf8 100%);
  color: white;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.ig-note-bubble {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #f2f4ff;
  padding: 12px 14px;
  border-radius: 22px;
  font-size: 14px;
  color: #0f172a;
  line-height: 1.45;
}

.ig-note-meta {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: #475569;
  font-size: 11px;
}

.note-actions {
  display: flex;
  gap: 8px;
  margin-left: 10px;
}

.note-status-pill {
  background: #e0e7ff;
  color: #3730a3;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.note-time {
  font-size: 11px;
  color: #64748b;
}

.note-gif-image {
  max-width: 150px;
  max-height: 120px;
  object-fit: contain;
  border-radius: 8px;
  align-self: flex-start;
}

.note-input-area {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

.note-input {
  flex: 1 1 260px;
  min-width: 220px;
  padding: 16px 20px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 24px;
  font-size: 15px;
  outline: none;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

.note-input:focus {
  border-color: #c13584;
  box-shadow: 0 0 0 3px rgba(193, 53, 132, 0.14);
}

.note-audience-select {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  padding: 14px 20px;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  outline: none;
  min-width: 220px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

.note-send-btn {
  background: linear-gradient(135deg, #f56040 0%, #c13584 100%);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 16px 26px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 14px 32px rgba(197, 53, 132, 0.22);
}

.note-send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(197, 53, 132, 0.24);
}

.note-send-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.note-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.note-action-btn,
.note-cancel-btn {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #262626;
  border-radius: 999px;
  min-width: 84px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  padding: 0 16px;
}

.note-action-btn:hover,
.note-cancel-btn:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}

.note-action-btn {
  border-color: rgba(15, 23, 42, 0.08);
}

.note-cancel-btn {
  border-color: rgba(15, 23, 42, 0.08);
}

.note-send-btn {
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.note-send-btn:hover {
  background: #2563eb;
}

.conversation-avatar {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  box-shadow: inset 3px 3px 6px #bebebe,
              inset -3px -3px 6px #ffffff;
}

.online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #4CAF50;
  border-radius: 50%;
  border: 2px solid #f0f0f0;
}

.conversation-content {
  flex: 1;
}

.conversation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.conversation-name {
  font-weight: 600;
  font-size: 16px;
}

.conversation-time {
  font-size: 12px;
  color: #666;
}

.conversation-preview {
  font-size: 14px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-sender {
  font-weight: 600;
  color: #0095f6;
}

.unread-badge {
  background: #0095f6;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.messages-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 15px 20px;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9f9f9;
}

.chat-info {
  display: flex;
  align-items: center;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  box-shadow: inset 3px 3px 6px #bebebe,
              inset -3px -3px 6px #ffffff;
}

.chat-details h4 {
  margin: 0;
  font-size: 16px;
}

.chat-status {
  font-size: 12px;
  color: #666;
}

.chat-actions {
  display: flex;
  gap: 10px;
}

.chat-actions .icon-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.chat-actions .icon-btn:hover {
  background: #e0e0e0;
}

.chat-header {
  flex-wrap: wrap;
  gap: 10px;
}

.chat-info {
  min-width: 0;
}

.chat-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-actions .icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 16px;
  padding: 8px;
}

.chat-input-area {
  padding: 14px 18px 16px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.action-dropdown {
  position: relative;
}

.action-dropdown-menu {
  position: absolute;
  right: 0;
  top: 40px;
  width: 220px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 16px 32px rgba(0,0,0,.12);
  z-index: 50;
  display: flex;
  flex-direction: column;
}

.dropdown-item {
  background: transparent;
  border: none;
  text-align: left;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.dropdown-item:hover {
  background: #f5f5f5;
}

.call-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.call-modal {
  width: min(540px, 95%);
  background: #ffffff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.2);
}

.call-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.call-status {
  margin: 6px 0 0;
  color: #555;
  font-size: 13px;
}

.call-media-panel {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.call-video-panel {
  flex: 1;
  min-height: 180px;
  background: #111;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.call-video-panel.local {
  max-width: 180px;
}

.call-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,.58);
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.call-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.call-control-btn {
  border: none;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.call-control-btn.accept {
  background: #10b981;
  color: white;
}

.call-control-btn.decline,
.call-control-btn.hangup {
  background: #ef4444;
  color: white;
}

.call-control-btn.control-toggle {
  background: #6366f1;
  color: white;
  font-size: 13px;
  padding: 10px 14px;
}

.call-control-btn.control-toggle.active {
  background: #f59e0b;
}

.call-control-btn:hover {
  opacity: 0.95;
}

.call-header-content {
  flex: 1;
}

.call-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.call-quality-indicator {
  font-size: 18px;
  font-weight: 600;
}

.call-quality-indicator.good {
  color: #10b981;
}

.call-quality-indicator.poor {
  color: #ef4444;
  animation: pulse-warning 1s infinite;
}

@keyframes pulse-warning {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f0f0f0;
}

/* Layout for messages split view */
.messages-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 16px;
}

.chat-messages.drag-over {
  border: 2px dashed rgba(0,0,0,0.12);
  background: linear-gradient(180deg, rgba(0,149,246,0.02), rgba(0,0,0,0.02));
}

.message-seen {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
  text-align: right;
}

.message-wrapper {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.message-wrapper.me {
  justify-content: flex-end;
}

.message-wrapper.other {
  justify-content: flex-start;
}

.message-bubble {
  max-width: 70%;
  background: #fff;
  padding: 10px 14px;
  border-radius: 18px;
  margin-bottom: 8px;
  font-size: 15px;
  position: relative;
  box-shadow: 0 2px 6px rgba(11,20,32,0.06);
}

.message-wrapper.me .message-bubble {
  background: linear-gradient(135deg,#e6f2ff,#d7e9ff);
  color: #07263b;
  margin-left: auto;
}

.message-wrapper.other .message-bubble {
  background: #f1f1f1;
  color: #111827;
  border-bottom-left-radius: 4px;
}

.message-reply {
  border-left: 3px solid #ddd;
  padding-left: 10px;
  margin-bottom: 8px;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 8px;
}

.reply-line {
  height: 2px;
  background: #0095f6;
  margin-bottom: 5px;
}

.message-media {
  margin-bottom: 8px;
}

.message-media img,
.message-media video {
  max-width: 100%;
  border-radius: 12px;
}

.message-media video {
  display: block;
  max-height: 320px;
  width: 100%;
  object-fit: cover;
}

.file-message a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  color: #111;
  text-decoration: none;
}

.file-message a:hover {
  background: #f3f4f6;
}

.message-media img {
  max-width: 100%;
  border-radius: 12px;
}

.voice-message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.play-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.voice-waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.wave-bar {
  width: 3px;
  height: 20px;
  background: #0095f6;
  border-radius: 2px;
  animation: wave 1.5s ease-in-out infinite;
}

.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }

@keyframes wave {
  0%, 100% { height: 10px; }
  50% { height: 20px; }
}

.voice-duration {
  font-size: 12px;
  color: #666;
}

.message-text {
  word-wrap: break-word;
}

.message-gif {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0;
}

.message-gif .gif-image {
  max-width: 250px;
  max-height: 200px;
  object-fit: contain;
  border-radius: 8px;
  align-self: flex-start;
}

.message-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}

.message-time {
  font-size: 11px;
  color: #666;
}

.message-status {
  font-size: 12px;
  color: #666;
}

.read-ticks {
  color: #0095f6;
}

.message-reactions {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}

.reaction {
  background: #f0f0f0;
  border-radius: 12px;
  padding: 2px 6px;
  font-size: 12px;
}

.message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.message-actions button,
.chat-actions button,
.secondary {
  background: #f4f6f8;
  border: 1px solid #d1d9e6;
  border-radius: 18px;
  padding: 8px 10px;
  cursor: pointer;
  color: #1f2937;
  transition: background-color 0.2s, transform 0.2s;
}

.message-actions button:hover,
.chat-actions button:hover,
.secondary:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.message-status {
  font-size: 11px;
  color: #7c7c7c;
  margin-left: 8px;
}

.send-btn {
  background: #0095f6;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 50%;
  font-size: 16px;
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.send-btn:hover {
  background: #007acc;
}

.send-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.voice-btn.recording {
  color: #ff4444;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* View-Once Message Styles */
.message-bubble.view-once {
  border: 2px solid #ff6b6b;
  background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
}

.view-once-expired {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-style: italic;
}

.view-once-icon {
  font-size: 16px;
}

.view-once-text {
  font-size: 14px;
}

.view-once-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

.view-once-badge {
  font-size: 14px;
}

.view-count {
  font-size: 12px;
  color: #666;
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 10px;
}

.view-once-toggle {
  background: #f4f6f8;
  border: 1px solid #d1d9e6;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
}

.view-once-toggle:hover {
  background: #e2e8f0;
  transform: scale(1.05);
}

.view-once-toggle.active {
  background: #ff6b6b;
  color: white;
  border-color: #ff6b6b;
}

.view-once-toggle.active:hover {
  background: #ff5252;
}

.media-preview-card {
  border: 1px solid #d5d9e0;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.media-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 600;
}

.media-preview-content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
  background: #f7fafc;
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 10px;
}

.preview-image,
.preview-video {
  max-width: 100%;
  max-height: 220px;
  border-radius: 14px;
}

.preview-file-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #eef2f7;
  border-radius: 14px;
  width: 100%;
  justify-content: center;
  font-weight: 600;
}

.media-preview-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.media-preview-label {
  color: #475569;
  font-size: 14px;
}

.input-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid #e5e5e5;
  background: #ffffff;
}

.composer-left,
.composer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.composer-left {
  flex-shrink: 0;
}

.composer-center {
  flex: 1;
  min-width: 0;
}

.composer-right {
  flex-shrink: 0;
}

.caption-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
  margin-left: 4px;
}

.message-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d9e6;
  border-radius: 999px;
  font-size: 14px;
  outline: none;
  background: #f8fafc;
}

@media (max-width: 820px) {
  .input-container {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .composer-left,
  .composer-center,
  .composer-right {
    width: 100%;
  }

  .composer-left,
  .composer-right {
    justify-content: space-between;
  }

  .composer-center {
    margin: 0;
  }

  .send-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }

  .attach-btn,
  .send-btn,
  .voice-recorder {
    min-width: 42px;
  }
}

@media (max-width: 560px) {
  .input-container {
    gap: 8px;
    padding: 10px;
  }

  .media-preview-card {
    padding: 10px;
  }

  .media-preview-content {
    min-height: 100px;
  }

  .preview-image,
  .preview-video {
    max-height: 180px;
  }
}

.message-input:focus {
  border-color: #a3bffa;
  background: #ffffff;
}

.attach-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #d1d9e6;
  background: #f7fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.attach-btn:hover {
  background: #e2e8f0;
}

.send-btn {
  padding: 10px 18px;
  border-radius: 16px;
  min-width: 72px;
}

.delete-options {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.delete-options button {
  background: none;
  border: none;
  padding: 8px 12px;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.2s;
}

.delete-options button:hover {
  background: #f5f5f5;
}

.reaction-btn {
  background: #f4f6f8;
  border: 1px solid #d1d9e6;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
  margin: 2px;
}

.reaction-btn:hover {
  background: #e2e8f0;
  transform: scale(1.1);
}

.pinned-indicator {
  color: #ff6b35;
  font-weight: 600;
  font-size: 12px;
  margin-top: 4px;
}

.starred-indicator {
  color: #ffd700;
  font-weight: 600;
  font-size: 12px;
  margin-top: 4px;
}

.attach-menu {
  position: absolute;
  bottom: 70px;
  left: 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 1000;
}

.attach-menu button {
  background: none;
  border: none;
  padding: 10px 15px;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  font-size: 14px;
}

/* Poll and Location Message Styles */
.message-location {
  margin-bottom: 8px;
}

.location-preview {
  padding: 8px;
  background: #f0f0f0;
  border-radius: 8px;
  margin-bottom: 8px;
}

.location-btn {
  background: #0095f6;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  cursor: pointer;
}

.message-poll {
  width: 100%;
}

.poll-question {
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 16px;
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.poll-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #f5f5f5;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.poll-option:hover {
  background: #e8f4fd;
}

.poll-votes {
  color: #666;
  font-size: 12px;
}

.stream-goal-panel,
.poll-panel,
.stream-poll-summary {
  margin-top: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.goal-header,
.goal-creator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.goal-progress-bar {
  height: 12px;
  border-radius: 999px;
  background: #e8e8e8;
  overflow: hidden;
  margin-top: 12px;
}

.goal-progress {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #57c7ff, #2a8cff);
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.poll-option {
  width: 100%;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 14px;
  border: 1px solid #e4e7ec;
  background: #fff;
  transition: transform 0.2s ease, background 0.2s ease;
}

.poll-option.selected {
  background: #f0f8ff;
  transform: translateX(2px);
}

.poll-summary-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #e4e7ec;
  background: #fafbff;
}

.poll-summary-option {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f1f3f7;
}

.poll-summary-option:last-child {
  border-bottom: none;
}

.goal-editor-panel,
.poll-creator {
  margin-top: 16px;
}

.goal-editor-panel label,
.poll-creator label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}

.goal-editor-panel input,
.poll-creator input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #ddd;
  padding: 10px 12px;
  margin-top: 6px;
}

.create-poll-btn,
.save-goal-btn,
.poll-creator button {
  margin-top: 10px;
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  background: #0095f6;
  color: white;
  cursor: pointer;
}

.create-poll-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Poll Creator Modal */
.poll-creator-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.poll-creator-content {
  background: #ffffff;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.poll-creator-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.poll-creator-header h3 {
  margin: 0;
}

.poll-creator-header button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poll-creator-body {
  padding: 20px;
}

.poll-creator-body input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #f9f9f9;
  font-size: 16px;
  margin-bottom: 15px;
}

.poll-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.poll-option-input {
  display: flex;
  align-items: center;
  gap: 10px;
}

.poll-option-input input {
  flex: 1;
  margin-bottom: 0;
}

.poll-option-input button {
  background: #ff4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================
   INSTAGRAM STYLE FEED DESIGN
   ======================================== */

.instagram-feed-container {
  background: var(--bg-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 80px;
  color: var(--text-primary);
}

.instagram-loader {
  background: transparent;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-size: 18px;
}

/* Top Navigation Bar - Instagram Style */
.instagram-top-nav {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.instagram-logo {
  font-family: 'Lobster', cursive;
  font-size: 26px;
  font-weight: 400;
  margin: 0;
  color: var(--text-primary);
  letter-spacing: 2px;
}

.nav-icon {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: opacity 0.2s ease;
  color: var(--text-primary);
}

.nav-icon:hover {
  opacity: 0.75;
}

.message-icon,
.heart-icon {
  color: var(--text-primary);
}

.notification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ed4956;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.share-status-message {
  color: var(--text-primary);
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 10px 14px;
  margin: 0 16px 12px;
  display: inline-block;
  font-size: 14px;
}

.stories-loading,
.stories-empty {
  color: #8e8e8e;
  text-align: center;
  margin: 0;
  padding: 12px 16px;
  font-size: 14px;
}

.instagram-stories-tray {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px;
  scrollbar-width: none;
}

.instagram-stories-tray::-webkit-scrollbar {
  display: none;
}

.instagram-live-reels-panel {
  padding: 16px 0 0;
  background: transparent;
  border-bottom: 1px solid transparent;
}

.story-action-composer {
  margin: 0 16px 16px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border-color);
}

.composer-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.composer-avatar-shell {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.composer-avatar-shell img,
.story-avatar-inner img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.composer-input-button {
  width: 100%;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  text-align: left;
  font-size: 14px;
  cursor: pointer;
}

.composer-action-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.suggested-follows-card {
  margin: 0 16px 20px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 18px;
}

.suggested-follows-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.suggested-follows-header h2 {
  font-size: 1rem;
  margin: 0;
  color: var(--text-primary);
}

.suggested-follows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.suggested-person-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border-color);
}

.suggested-person-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.suggested-person-info strong,
.suggested-person-info span,
.suggested-person-info small {
  color: var(--text-primary);
}

.suggested-person-info span {
  opacity: 0.7;
}

.follow-btn {
  background: #0095f6;
  border: none;
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.follow-btn:hover {
  transform: translateY(-1px);
  background: #0078cc;
}

.composer-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.composer-action-btn:hover {
  transform: translateY(-1px);
  background: #f5f5f5;
}

.composer-action-live {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 34%, #cc2366 70%, #bc1888 100%);
  border-color: transparent;
  color: #fff;
}

.composer-action-live:hover {
  background: linear-gradient(135deg, #f48c2d, #dc4f53);
}

@media (max-width: 768px) {
  .instagram-top-nav {
    padding: 8px 12px;
    height: auto;
  }

  .instagram-logo {
    font-size: 22px;
    letter-spacing: 1px;
  }

  .nav-icon {
    font-size: 20px;
    padding: 6px;
  }

  .gamification-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .points-badge,
  .streak-indicator {
    font-size: 12px;
    padding: 4px 8px;
    gap: 4px;
  }

  .composer-action-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .composer-action-btn {
    padding: 10px 8px;
    gap: 6px;
    font-size: 13px;
  }

  .composer-action-btn span:first-child {
    font-size: 16px;
  }

  .instagram-stories-tray {
    padding: 0 12px;
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .composer-action-row {
    grid-template-columns: 1fr;
  }

  .composer-action-btn {
    justify-content: flex-start;
    width: 100%;
  }
}

.studio-avatar-shell {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 34%, #cc2366 70%, #bc1888 100%);
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-avatar-shell img,
.story-avatar-inner img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.studio-label {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8e8e8e;
}

.studio-card-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 18px;
}

.studio-feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.feature-pill {
  padding: 10px 12px;
  border-radius: 999px;
  background: #f5f5f5;
  color: var(--text-primary);
  font-size: 13px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.studio-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feed-action-btn {
  flex: 1;
  min-width: 140px;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform 0.2s, background-color 0.2s;
}

.feed-action-btn:hover {
  transform: translateY(-1px);
}

.feed-action-reels {
  background: #fff;
  color: #111;
  border: 1px solid var(--border-color);
}

.feed-action-live {
  background: #0095f6;
  color: #fff;
}

.instagram-story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  padding: 10px 0;
}

.story-avatar-plus,
.story-plus-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 18px;
  border: 2px solid #fff;
  position: absolute;
  right: 8px;
  bottom: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.instagram-story-item.your-story-item .story-avatar-gradient {
  border: 2px solid #fff;
}

.story-avatar-you {
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 700;
}

.story-empty-note {
  color: #8e8e8e;
  opacity: 1;
  font-size: 13px;
  padding: 14px 0;
}

.story-creation-instructions {
  padding: 16px;
  margin: 0 20px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border-color);
}

.story-creation-instructions p,
.story-step {
  margin: 10px 0;
  line-height: 1.5;
  color: var(--text-primary);
}

.story-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f5f5f5;
  border: 1px solid var(--border-color);
  border-radius: 14px;
}

.story-settings,
.story-settings-card {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 20px 20px;
}

.story-settings-item {
  flex: 1 1 220px;
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 12px 14px;
  border-radius: 14px;
}

.story-settings-item label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #8e8e8e;
}

.share-options.small {
  display: flex;
  gap: 8px;
}

.toggle-switch {
  width: 60px;
  height: 32px;
  border: none;
  border-radius: 16px;
  padding: 0;
  cursor: pointer;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}


.toggle-switch.on {
  background: linear-gradient(135deg, #28a745, #20c997);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.toggle-switch.off {
  background: #6c757d;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.toggle-switch:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toggle-switch:active {
  transform: translateY(0);
}

.filter-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 16px;
  margin: 12px 0;
}

.filter-chip {
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  color: #fff;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  white-space: nowrap;
}

.filter-chip.active {
  background: #fff;
  color: #111;
}

.story-overlay-hint {
  margin-top: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

.edit-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px;
}

.edit-tools button {
  flex: 1 1 120px;
  border: none;
  border-radius: 999px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
}

.edit-tools button:hover {
  background: rgba(255,255,255,0.14);
}

.story-avatar-gradient {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-radius: 50%;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-avatar-inner {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.story-avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
}

.story-username {
  color: #fff;
  font-size: 12px;
  margin: 0;
  text-align: center;
  max-width: 70px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-preview {
  position: relative;
  margin: 0 20px 20px;
  border-radius: 24px;
  overflow: hidden;
  background: #111;
  min-height: 520px;
}

.story-preview img,
.story-preview video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 720px;
}

.drawing-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  z-index: 10;
}

.text-overlay-item {
  position: absolute;
  z-index: 12;
  text-shadow: 0 0 10px rgba(0,0,0,0.8);
  white-space: pre-wrap;
}

.music-preview-banner {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 12px 14px;
  background: rgba(0,0,0,0.72);
  border-radius: 16px;
  color: #fff;
  font-size: 13px;
  z-index: 11;
}

.draw-controls,
.text-editor-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 20px 16px;
}

.draw-controls label,
.text-editor-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.draw-controls input[type="color"],
.text-editor-controls input[type="color"] {
  width: 32px;
  height: 32px;
  border: none;
  padding: 0;
  background: none;
}

.draw-controls input[type="range"],
.text-editor-controls input[type="range"] {
  min-width: 140px;
}

.text-editor-panel {
  margin: 0 20px 20px;
  padding: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
}

.text-editor-panel textarea {
  width: 100%;
  min-height: 90px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 12px;
  resize: vertical;
}

.text-overlay-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.text-overlay-list div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

.music-picker-panel {
  margin: 0 20px 20px;
}

.effect-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 20px 20px;
}

.effect-options button {
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
}

.effect-options button.active {
  background: #fff;
  color: #111;
}

.story-camera-page {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: #000;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.camera-shell {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.camera-preview-frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.camera-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.camera-top-bar {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  z-index: 20;
}

.camera-top-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.top-icon {
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.top-icon:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.15);
}

.camera-side-tools {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 20;
}

.side-tool-btn {
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.side-tool-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
}

.camera-action-row {
  position: absolute;
  left: 50%;
  bottom: 140px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 20;
  padding: 0 12px;
}

.capture-action-btn,
.capture-circle-btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.capture-action-btn {
  width: 52px;
  height: 52px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 18px;
}

.capture-circle-btn {
  width: 88px;
  height: 88px;
  background: #fff;
  color: #111;
  font-size: 26px;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.35);
}

.capture-action-btn:hover,
.capture-circle-btn:hover {
  transform: translateY(-2px);
}

.camera-mode-switcher {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.42);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  z-index: 20;
}

.mode-pill {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.mode-pill.active {
  background: rgba(255, 255, 255, 0.92);
  color: #111;
}

.mode-pill:hover,
.more-pill:hover {
  transform: translateY(-1px);
}

.more-pill {
  background: rgba(255,255,255,0.1);
}

.story-mode-more-group {
  position: relative;
}

.story-mode-more-dropdown {
  position: absolute;
  bottom: 120%;
  right: 0;
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
  z-index: 25;
}

.story-mode-more-dropdown .camera-mode-button {
  display: flex;
  justify-content: flex-start;
  padding: 10px 12px;
  width: 100%;
  color: #fff;
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
}

.story-mode-more-dropdown .camera-mode-button.active {
  background: rgba(255,255,255,0.18);
}

.camera-hint-row {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: calc(100% - 48px);
  max-width: 640px;
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  line-height: 1.4;
  padding: 0 12px;
}

@media (max-width: 820px) {
  .camera-top-bar {
    top: 12px;
    left: 12px;
    right: 12px;
  }

  .camera-side-tools {
    right: 10px;
    gap: 10px;
  }

  .capture-action-btn {
    width: 46px;
    height: 46px;
  }

  .capture-circle-btn {
    width: 72px;
    height: 72px;
  }

  .camera-mode-switcher {
    bottom: 20px;
    padding: 10px 12px;
  }

  .mode-pill {
    padding: 8px 12px;
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .camera-side-tools {
    display: none;
  }

  .top-icon {
    width: 38px;
    height: 38px;
  }

  .story-mode-more-dropdown {
    right: 50%;
    transform: translateX(50%);
  }
}

.gallery-thumb,
.effects-btn,
.main-capture-btn {
  border: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
}

.gallery-thumb,
.effects-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}

.main-capture-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.camera-hint-row {
  margin-top: 12px;
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
}

/* Multi-Capture Preview */
.multi-capture-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(0,0,0,0.5);
  border-radius: 8px;
  margin-top: 12px;
}

.captured-photos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.captured-photo-thumb {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid #1f1f1f;
  background: #000;
}

.captured-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.multi-capture-controls {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
}

.multi-capture-controls button {
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid #262626;
  background: #262626;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.multi-capture-controls button:hover:not(:disabled) {
  background: #404040;
}

.multi-capture-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Photo Booth Countdown */
.photobooth-countdown {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  z-index: 10;
  pointer-events: none;
}

.countdown-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: bold;
  color: #fff;
  animation: countdownPulse 1s ease-out;
}

@keyframes countdownPulse {
  0% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

/* Feed Posts */
.instagram-feed {
  flex: 1;
  background: #000;
}

.no-posts-message {
  color: #888;
  text-align: center;
  padding: 40px 20px;
  margin: 0;
  font-size: 16px;
}

.instagram-post {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #000;
  border-bottom: 1px solid #262626;
  margin-bottom: 0;
  padding-bottom: 12px;
}

/* Post Header */
.post-header-instagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.post-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #262626;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-handle {
  color: #fff;
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.post-timestamp {
  color: #888;
  font-size: 12px;
}

.post-menu-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.post-menu-btn:hover {
  opacity: 0.7;
}

/* Post Image */
.post-image-container {
  width: 100%;
  background: #000;
  aspect-ratio: 1;
  overflow: hidden;
}

.post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Post Actions */
.post-actions-instagram {
  display: flex;
  padding: 10px 16px;
  border-top: 1px solid #262626;
  margin-top: auto;
}

.action-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
}

.action-icon {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 6px;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 34px;
}

.repost-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffd24d;
  color: #101010;
  font-size: 18px;
  padding: 0;
}

.action-count {
  font-size: 13px;
  color: #a8a8a8;
  margin-left: 4px;
}

.action-icon:hover {
  opacity: 0.7;
}

.action-icon.liked {
  animation: heartBeat 0.3s;
  color: #ff3040;
}

.action-icon.saved {
  color: #ffd700;
}

.action-icon.reposted {
  color: #00ff88;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Post Caption */
.post-caption {
  color: #fff;
  padding: 0 16px 12px;
  font-size: 14px;
  line-height: 1.5;
}

.post-caption strong {
  margin-right: 4px;
}

.instagram-post-long {
  min-height: 560px;
}

.instagram-post-short {
  min-height: 0;
}

.instagram-post-long .post-caption,
.instagram-post-short .post-caption {
  max-width: 100%;
}

/* Styled Text Posts */
.styled-text-post {
  padding: 16px;
  border-radius: 12px;
  margin: 12px 0;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.styled-text-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.styled-text-handle {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 4px;
}

.styled-text-body {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  white-space: pre-wrap;
}

/* Composer input field under stories */
.composer-input-field {
  width: 100%;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #121212;
  color: #eee;
  font-size: 14px;
  cursor: text;
}

.composer-input-field::placeholder {
  color: #999;
}

/* Create Post Page */
.page-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.page-subtitle {
  margin: 8px 0 0;
  color: #c2c2c2;
  font-size: 14px;
}

.create-post-form {
  display: grid;
  gap: 16px;
}

.create-post-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #121212;
  color: #fff;
  resize: vertical;
}

.create-post-form input[type="file"] {
  margin-top: 10px;
  color: #fff;
}

.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-error {
  color: #f87171;
  font-size: 13px;
}

/* Location Input Styles */
.location-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.location-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  background: white;
}

.location-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.location-remove-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  color: #6b7280;
}

.location-loading {
  position: absolute;
  right: 35px;
  font-size: 12px;
  color: #9ca3af;
}

.location-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #d1d5db;
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
}

.location-suggestion {
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background-color 0.2s;
}

.location-suggestion:hover {
  background-color: #f9fafb;
}

.location-name {
  font-weight: 500;
  color: #111827;
  font-size: 14px;
}

.location-address {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.selected-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 12px;
  background-color: #ecf0ff;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  font-size: 13px;
  color: #1e40af;
}

.location-icon {
  font-size: 14px;
}

/* Nearby Content Styles */
.nearby-controls {
  margin-bottom: 24px;
  padding: 16px;
  background-color: #f9fafb;
  border-radius: 8px;
}

.nearby-controls label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #1f2937;
}

.radius-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  margin-bottom: 12px;
}

.radius-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
}

.radius-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  border: none;
}

.radius-display {
  font-size: 12px;
  color: #6b7280;
  margin-top: 8px;
}

.nearby-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.nearby-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #f3f4f6;
  border: 2px solid transparent;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  transition: all 0.2s;
}

.nearby-tab:hover {
  background-color: #e5e7eb;
}

.nearby-tab.active {
  background-color: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.tab-icon {
  font-size: 16px;
}

.nearby-content-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.nearby-post-card,
.nearby-reel-card,
.nearby-livestream-card,
.nearby-event-card,
.nearby-checkin-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 16px;
  transition: box-shadow 0.2s;
}

.nearby-post-card:hover,
.nearby-reel-card:hover,
.nearby-livestream-card:hover,
.nearby-event-card:hover,
.nearby-checkin-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.avatar-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.post-author {
  font-weight: 600;
  color: #1f2937;
  font-size: 14px;
}

.post-location {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

.post-content {
  color: #374151;
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.post-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.post-stats {
  font-size: 12px;
  color: #6b7280;
}

.reel-thumbnail {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.reel-title {
  font-weight: 600;
  color: #1f2937;
  font-size: 14px;
  margin-bottom: 8px;
}

.reel-location {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
}

.reel-stats {
  font-size: 12px;
  color: #6b7280;
}

.livestream-badge {
  display: inline-block;
  background-color: #ef4444;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
}

.livestream-title {
  font-weight: 600;
  color: #1f2937;
  font-size: 14px;
  margin-bottom: 8px;
}

.livestream-location {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
}

.livestream-viewers {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.event-title {
  font-weight: 600;
  color: #1f2937;
  font-size: 14px;
  margin-bottom: 10px;
}

.event-details {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-description {
  font-size: 12px;
  color: #374151;
  line-height: 1.4;
}

.checkin-place {
  font-weight: 600;
  color: #1f2937;
  font-size: 14px;
  margin-bottom: 6px;
}

.checkin-address {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 10px;
}

.checkin-message {
  font-size: 12px;
  color: #374151;
  margin-bottom: 8px;
  font-style: italic;
  border-left: 3px solid #3b82f6;
  padding-left: 8px;
}

.checkin-rating {
  font-size: 12px;
  color: #f59e0b;
  font-weight: 500;
}

/* Trends Styles */
.trends-controls {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  padding: 16px;
  background-color: #f9fafb;
  border-radius: 8px;
  flex-wrap: wrap;
}

.control-group {
  flex: 1;
  min-width: 200px;
}

.control-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #1f2937;
  font-size: 14px;
}

.control-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  background: white;
}

.trends-weather-section {
  margin-bottom: 32px;
}

.trends-weather-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1f2937;
}

.weather-card {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  color: white;
}

.weather-main {
  flex: 1;
}

.weather-temp {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 8px;
}

.weather-condition {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.9;
}

.weather-details {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.trends-hashtags-section {
  margin-bottom: 24px;
}

.trends-hashtags-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1f2937;
}

.hashtags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.hashtag-card {
  padding: 16px;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}

.hashtag-card:hover {
  background-color: #f3f4f6;
  border-color: #3b82f6;
}

.hashtag-rank {
  font-weight: 700;
  color: #3b82f6;
  font-size: 14px;
  margin-bottom: 8px;
}

.hashtag-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 14px;
  margin-bottom: 6px;
  word-break: break-word;
}

.hashtag-count {
  font-size: 12px;
  color: #6b7280;
}

.trends-info-box {
  margin-top: 24px;
  padding: 16px;
  background-color: #ecf0ff;
  border-left: 4px solid #3b82f6;
  border-radius: 6px;
  font-size: 13px;
  color: #1e40af;
}

.trends-info-box p {
  margin: 4px 0;
}

.composer-mode-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.composer-mode-tabs button {
  flex: 1;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #fff;
  cursor: pointer;
}

.composer-mode-tabs button.active {
  background: rgba(255,255,255,0.14);
}

.neumorphic.wide-page {
  padding: 24px;
}

.primary,
.secondary {
  border: none;
  border-radius: 18px;
  padding: 12px 20px;
  cursor: pointer;
}

.primary {
  background: #4f46e5;
  color: #fff;
}

.secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* Text Post Styling */
.text-post-preview {
  margin: 20px 0;
}

.text-post-preview h4 {
  margin-bottom: 12px;
  color: #fff;
}

/* Enhanced Music Picker Styles */
.music-picker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.music-picker-modal {
  background: #1a1a1a;
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.music-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #333;
  background: #2a2a2a;
}

.music-picker-header h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.music-picker-close-btn {
  background: none;
  border: none;
  color: #ccc;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.music-picker-close-btn:hover {
  background: #444;
  color: #fff;
}

.music-picker-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.music-search-section {
  padding: 20px 24px;
  border-bottom: 1px solid #333;
  background: #222;
}

.music-search-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #555;
  border-radius: 25px;
  background: #333;
  color: #fff;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.music-search-input:focus {
  border-color: #007bff;
}

.music-search-input::placeholder {
  color: #aaa;
}

.music-results-section {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.music-popular-section {
  padding: 20px 24px;
  border-bottom: 1px solid #333;
}

.music-popular-section h4 {
  margin: 0 0 16px 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.music-popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.music-track-card {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.music-track-card:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.music-track-card.selected {
  border-color: #007bff;
  background: #1a4f7a;
}

.music-track-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.music-track-artwork {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.music-track-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-track-details {
  flex: 1;
  min-width: 0;
}

.music-track-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-track-artist {
  color: #ccc;
  font-size: 14px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-track-duration {
  color: #888;
  font-size: 12px;
  margin: 0;
}

.music-track-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.music-play-btn {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.music-play-btn:hover {
  background: #0056b3;
}

.music-play-btn.playing {
  background: #28a745;
}

.music-clip-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.music-clip-label {
  color: #ccc;
  font-size: 12px;
  white-space: nowrap;
}

.music-time-input {
  width: 60px;
  padding: 4px 8px;
  border: 1px solid #555;
  border-radius: 4px;
  background: #333;
  color: #fff;
  font-size: 12px;
  text-align: center;
}

.music-time-input:focus {
  border-color: #007bff;
  outline: none;
}

.music-search-results {
  padding: 20px 24px;
}

.music-search-results h4 {
  margin: 0 0 16px 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.music-search-empty {
  text-align: center;
  color: #888;
  padding: 40px 20px;
  font-size: 16px;
}

.music-loading {
  text-align: center;
  padding: 40px 20px;
  color: #888;
  font-size: 16px;
}

.music-error {
  text-align: center;
  padding: 40px 20px;
  color: #f87171;
  font-size: 16px;
}

.music-picker-footer {
  padding: 20px 24px;
  border-top: 1px solid #333;
  background: #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.music-selected-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.music-selected-track {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.music-selected-time {
  color: #ccc;
  font-size: 12px;
}

.music-picker-actions {
  display: flex;
  gap: 12px;
}

.music-cancel-btn {
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s;
}

.music-cancel-btn:hover {
  background: #5a6268;
}

.music-add-btn {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s;
}

.music-add-btn:hover {
  background: #0056b3;
}

.music-add-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

/* Responsive Music Picker */
@media (max-width: 768px) {
  .music-picker-modal {
    width: 95%;
    max-height: 95vh;
  }

  .music-picker-header {
    padding: 16px 20px;
  }

  .music-picker-header h3 {
    font-size: 18px;
  }

  .music-search-section {
    padding: 16px 20px;
  }

  .music-popular-section {
    padding: 16px 20px;
  }

  .music-popular-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .music-search-results {
    padding: 16px 20px;
  }

  .music-picker-footer {
    padding: 16px 20px;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .music-selected-info {
    justify-content: center;
  }

  .music-picker-actions {
    justify-content: center;
  }
}

.text-post-card {
  padding: 20px;
  border-radius: 16px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.text-post-card p {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.preview-music {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.preview-music small {
  color: #ccc;
  font-size: 14px;
}

/* Styling Controls */
.styling-controls {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.styling-control-group {
  position: relative;
}

.styling-button {
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s;
}

.styling-button:hover {
  background: rgba(255,255,255,0.1);
}

/* Dropdown Menus */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  z-index: 1000;
  margin-top: 4px;
  max-height: 300px;
  overflow-y: auto;
}

/* Color Picker */
.color-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px;
}

.color-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.color-circle:hover {
  transform: scale(1.1);
}

.color-circle.active {
  border-color: #fff;
  transform: scale(1.1);
}

/* Font Picker */
.font-picker-list {
  padding: 8px;
}

.font-option {
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.font-option:hover {
  background: rgba(255,255,255,0.1);
}

.font-option.active {
  background: rgba(255,255,255,0.2);
}

.font-sample {
  font-size: 16px;
}

/* Music Editor */
.music-editor {
  padding: 16px 0;
}

.selected-track-info {
  margin-bottom: 20px;
}

.selected-track-info h5 {
  margin: 0 0 8px 0;
  color: #fff;
  font-size: 16px;
}

.selected-track-info p {
  margin: 4px 0;
  color: #ccc;
  font-size: 14px;
}

.track-duration {
  color: #999 !important;
  font-size: 12px !important;
}

.time-selector {
  margin-bottom: 20px;
}

.time-label {
  display: block;
  margin-bottom: 16px;
  color: #fff;
  font-size: 14px;
}

.time-slider {
  width: 100%;
  margin-top: 8px;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.2);
  outline: none;
}

.time-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4f46e5;
  cursor: pointer;
}

.time-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4f46e5;
  cursor: pointer;
  border: none;
}

.clip-duration {
  text-align: center;
  color: #4f46e5;
  font-weight: bold;
  margin: 12px 0;
}

.music-editor-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.music-clip-info {
  display: block;
  margin: 4px 0;
  color: #4f46e5;
  font-size: 12px;
}

/* Music Picker Styles */
.music-picker-card {
  margin: 20px 0;
  padding: 16px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}

.music-picker-card h4 {
  margin: 0 0 12px 0;
  color: #fff;
}

/* Media Preview and Styling */
.media-preview-section {
  margin: 20px 0;
  padding: 16px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}

.media-preview-section h4 {
  margin: 0 0 16px 0;
  color: #fff;
  font-size: 16px;
}

.media-preview-container {
  position: relative;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.media-preview-frame {
  position: relative;
  width: 100%;
  max-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-preview-image,
.media-preview-video {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}

.media-text-overlay {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.media-sticker-overlay {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.media-styling-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.media-text-editor {
  margin-top: 16px;
  padding: 16px;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
}

.media-text-editor textarea {
  width: 100%;
  padding: 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  margin-bottom: 12px;
  resize: vertical;
}

.text-editor-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.text-editor-controls label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
  font-size: 14px;
}

.text-editor-controls input[type="color"] {
  width: 50px;
  height: 30px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.text-editor-controls input[type="range"] {
  width: 100px;
}

.text-editor-controls button {
  padding: 8px 16px;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.text-editor-controls button:hover {
  background: #4338ca;
}

.text-overlay-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.text-overlay-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
}

.text-overlay-item span {
  color: #fff;
  font-size: 14px;
}

.text-overlay-item button {
  padding: 4px 8px;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.text-overlay-item button:hover {
  background: #b91c1c;
}

.media-sticker-picker {
  margin-top: 16px;
  padding: 16px;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
}

.media-effect-options {
  margin-top: 16px;
  padding: 16px;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
}

.effect-option {
  padding: 8px 12px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.effect-option:hover {
  background: rgba(255,255,255,0.2);
}

.effect-option.active {
  background: #4f46e5;
  border-color: #4f46e5;
}

.music-selection-preview {
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
}

.music-selection-preview strong {
  color: #fff;
  display: block;
}

.music-selection-preview p {
  color: #ccc;
  margin: 4px 0 0 0;
}

.music-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.music-result-card {
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s;
}

.music-result-card:hover {
  background: rgba(255,255,255,0.1);
}

.music-result-info strong {
  color: #fff;
  display: block;
  font-size: 14px;
}

.music-result-info span {
  color: #ccc;
  font-size: 12px;
}

.music-result-meta {
  margin-top: 8px;
}

.music-result-meta small {
  color: #999;
  font-size: 11px;
  margin-right: 8px;
}

.music-result-album-art {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  object-fit: cover;
  margin-bottom: 8px;
}

/* Music Info */
.post-music-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: #1a1a1a;
  border-top: 1px solid #262626;
  border-bottom: 1px solid #262626;
  color: #fff;
  font-size: 13px;
}

.music-icon {
  font-size: 16px;
}

.music-details strong {
  display: block;
  font-size: 14px;
}

.music-details small {
  color: #888;
}

.music-album-art {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  object-fit: cover;
}

/* Enhanced Media Text Editor */
.media-text-editor-enhanced {
  background: rgba(0, 0, 0, 0.9);
  border-radius: 12px;
  padding: 20px;
  margin-top: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 600px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.text-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.text-editor-header h4 {
  margin: 0;
  color: #fff;
  font-size: 18px;
}

.text-editor-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.text-editor-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.text-editor-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.text-editor-input {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
}

.text-editor-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.text-editor-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.text-editor-row {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 120px;
}

.control-group label {
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.control-group select,
.control-group input[type="color"] {
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
}

.control-group select:focus,
.control-group input[type="color"]:focus {
  outline: none;
  border-color: #007bff;
}

.control-group input[type="range"] {
  width: 100%;
  max-width: 120px;
}

.formatting-buttons,
.alignment-buttons {
  display: flex;
  gap: 5px;
}

.format-btn,
.align-btn {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  min-width: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.format-btn:hover,
.align-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.format-btn.active,
.align-btn.active {
  background: #007bff;
  border-color: #007bff;
}

.gradient-colors {
  display: flex;
  gap: 5px;
}

.gradient-colors input[type="color"] {
  width: 40px;
  height: 30px;
  padding: 0;
  border: none;
  cursor: pointer;
}

.template-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}

.template-buttons button {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.template-buttons button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

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

.add-text-btn,
.reset-text-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.add-text-btn {
  background: #007bff;
  color: #fff;
}

.add-text-btn:hover:not(:disabled) {
  background: #0056b3;
  transform: translateY(-1px);
}

.add-text-btn:disabled {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  cursor: not-allowed;
}

.reset-text-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.reset-text-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.text-overlay-list {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.text-overlay-list h5 {
  margin: 0 0 15px 0;
  color: #fff;
  font-size: 14px;
}

.text-overlay-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 8px;
}

.text-preview {
  flex: 1;
  margin-right: 10px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  word-break: break-word;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-item-actions {
  display: flex;
  gap: 5px;
}

.edit-text-btn,
.remove-text-btn {
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.edit-text-btn {
  background: rgba(0, 123, 255, 0.8);
  color: #fff;
}

.edit-text-btn:hover {
  background: #007bff;
}

.remove-text-btn {
  background: rgba(220, 53, 69, 0.8);
  color: #fff;
}

.remove-text-btn:hover {
  background: #dc3545;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .media-text-editor-enhanced {
    padding: 15px;
    margin: 15px -10px 0;
  }

  .text-editor-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .control-group {
    min-width: auto;
  }

  .formatting-buttons,
  .alignment-buttons {
    justify-content: center;
  }

  .template-buttons {
    justify-content: center;
  }

  .text-editor-actions {
    flex-direction: column;
  }
}

.comment-input-wrapper {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.comment-input {
  flex: 1;
  background: #262626;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  outline: none;
}

.comment-input::placeholder {
  color: #888;
}

/* Live Page Overview */
.live-overview {
  margin: 0 16px 18px;
  padding: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
}

.live-overview-intro h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 24px;
}

.live-overview-intro p {
  margin: 0;
  color: #ddd;
  font-size: 14px;
  line-height: 1.6;
}

.live-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.feature-card {
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}

.feature-card strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 14px;
}

.feature-card p {
  margin: 0;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
}

.comment-action-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}

.comment-send-btn {
  background: #0095f6;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 18px;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
}

.comment-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.comment-action-btn:hover,
.comment-send-btn:hover {
  opacity: 0.85;
}

.comment-item {
  margin-bottom: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #262626;
  font-size: 13px;
  color: #fff;
}

.comment-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.comment-text {
  word-break: break-word;
}

.comment-sticker,
.comment-gift {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sticker-image,
.gift-image {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 4px;
}

.gift-animation {
  color: #ffd700;
  font-weight: bold;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  max-height: 80vh;
  overflow-y: auto;
  max-width: 400px;
  width: 90vw;
}

.modal-body {
  padding: 24px;
}

.highlight-options-modal .modal-body {
  padding: 20px 24px 24px;
}

.highlight-option-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.highlight-option-actions button {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.highlight-option-actions .btn-secondary {
  background: #f5f5f7;
  color: #111827;
}

.highlight-option-actions .btn-danger {
  background: #ef4444;
  color: white;
}

.highlight-option-actions .btn-primary {
  background: #0095f6;
  color: white;
}

.highlight-viewer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.highlight-viewer-modal {
  position: relative;
  width: min(100%, 940px);
  max-width: 980px;
  border-radius: 24px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.highlight-progress-container {
  display: flex;
  gap: 6px;
  padding: 16px 16px 0;
}

.highlight-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  overflow: hidden;
}

.highlight-progress-fill {
  height: 100%;
  background: white;
  width: 0;
  transition: width 0.1s linear;
}

.highlight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  color: white;
}

.highlight-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.highlight-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.highlight-avatar-placeholder {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.highlight-details h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.highlight-details span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.highlight-close-btn {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
}

.highlight-story-content {
  position: relative;
  cursor: pointer;
  touch-action: pan-y;
}

.highlight-media,
.highlight-text-story {
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}

.highlight-image,
.highlight-video {
  max-width: 100%;
  max-height: calc(100vh - 220px);
  border-radius: 0;
}

.highlight-text-story {
  padding: 24px;
  color: white;
}

.highlight-text-content h2,
.highlight-text-content p {
  margin: 0;
  color: white;
}

.highlight-text-content h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.highlight-text-content p {
  font-size: 18px;
  line-height: 1.5;
}

.highlight-text-overlay,
.highlight-sticker-overlay {
  position: absolute;
  pointer-events: none;
}

.highlight-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: white;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  display: grid;
  place-items: center;
}

.highlight-prev-btn {
  left: 16px;
}

.highlight-next-btn {
  right: 16px;
}

.modal-body h3 {
  margin: 0 0 12px;
  color: #111;
}

.modal-body p {
  margin: 0 0 20px;
  color: #444;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.notification-toast {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1100;
  padding: 14px 18px;
  border-radius: 14px;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  min-width: 260px;
  max-width: 340px;
}

.notification-toast.success {
  background: #16a34a;
}

.notification-toast.error {
  background: #dc2626;
}

.sticker-modal,
.gift-modal {
  background: #fff;
}

.add-option-btn {
  background: #f0f0f0;
  border: 1px solid #ddd;
  padding: 10px 15px;
  border-radius: 25px;
  cursor: pointer;
  width: 100%;
  font-size: 14px;
}

.add-option-btn:hover {
  background: #e9e9e9;
}

.poll-creator-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.poll-creator-footer button {
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
}

.poll-creator-footer button:first-child {
  background: #f5f5f5;
  border: 1px solid #ddd;
}

.poll-creator-footer button:last-child {
  background: #2196f3;
  border: 1px solid #2196f3;
  color: white;
}

.poll-creator-footer button:last-child:disabled {
  background: #ccc;
  border-color: #ccc;
  cursor: not-allowed;
}

/* Group Creation Styles */
.group-create-header {
  text-align: center;
  margin-bottom: 30px;
}

.group-create-header h2 {
  margin-bottom: 10px;
}

.group-create-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-section {
  margin-bottom: 25px;
}

.form-section label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.form-section input,
.form-section textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #f9f9f9;
  font-size: 16px;
  margin-bottom: 5px;
}

.form-section textarea {
  resize: vertical;
  min-height: 80px;
}

.form-section small {
  color: #666;
  font-size: 12px;
  display: block;
  text-align: right;
}

.search-contacts {
  margin-bottom: 15px;
}

.search-contacts input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 25px;
  background: #f9f9f9;
}

.selected-participants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
  min-height: 40px;
  padding: 8px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #f9f9f9;
}

.selected-contact {
  background: #e3f2fd;
  border: 1px solid #2196f3;
  border-radius: 20px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.selected-contact button {
  background: none;
  border: none;
  cursor: pointer;
  color: #2196f3;
  font-size: 16px;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Reels Styles */
.reels-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  overflow: hidden;
  z-index: 1000;
}

.reel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.reel-item.active {
  opacity: 1;
  z-index: 1;
}

.reel-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 20px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.reel-info {
  flex: 1;
  margin-right: 20px;
}

.reel-info h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
}

.reel-info p {
  margin: 0 0 8px 0;
  font-size: 14px;
  opacity: 0.9;
}

.reel-creator {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.8;
}

.reel-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.reel-action-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s;
}

.reel-action-btn:hover {
  background: rgba(255,255,255,0.1);
}

.reels-create-floating-btn {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 1001;
}

.reels-create-floating-btn button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ff4081;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.reels-create {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
}

.reels-back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 18px;
}

.reels-create-form {
  max-width: 400px;
  margin: 80px auto 0;
}

.reels-create-form h3 {
  text-align: center;
  margin-bottom: 30px;
}

.reels-create-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.reels-create-form input {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

.reels-create-form button {
  padding: 12px;
  background: #0095f6;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.reels-create-form button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.reels-loading,
.reels-empty {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.reels-empty h2 {
  margin-bottom: 20px;
}

.reels-empty button {
  padding: 12px 24px;
  background: #ff4081;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

/* Reels Edit View Styles */
.reel-edit-view {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #000;
  color: white;
  overflow-y: auto;
}

.reel-preview {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #111;
  overflow: hidden;
  min-height: 420px;
}

.reel-preview.aspect-1-1 {
  aspect-ratio: 1 / 1;
}

.reel-preview.aspect-16-9 {
  aspect-ratio: 16 / 9;
}

.reel-preview.aspect-9-16 {
  aspect-ratio: 9 / 16;
}

.reel-preview-header {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  font-size: 14px;
}

.preview-label {
  font-weight: 700;
  color: #fff;
}

.preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #ddd;
  font-size: 12px;
}

.preview-meta span {
  background: rgba(255,255,255,0.08);
  padding: 4px 10px;
  border-radius: 999px;
}

.reel-preview-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-preview video,
.reel-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-post-preview-summary {
  width: 100%;
  margin: 16px 0 0;
  padding: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
}

.reel-post-preview-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.reel-post-preview-description {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 12px;
  line-height: 1.5;
}

.reel-post-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reel-post-preview-tag {
  display: inline-flex;
  padding: 6px 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
}

.drawing-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.overlay-draggable {
  cursor: move;
  -webkit-user-select: none;
          user-select: none;
}

.overlay-draggable:active {
  cursor: grabbing;
}

.text-overlay-item {
  background: rgba(0,0,0,0.7);
  padding: 8px 12px;
  border-radius: 8px;
  border: 2px solid transparent;
  min-width: 100px;
  text-align: center;
}

.text-overlay-item:hover {
  border-color: rgba(255,255,255,0.5);
}

.media-sticker-overlay,
.media-gif-overlay {
  border: 2px solid transparent;
  border-radius: 8px;
}

.media-sticker-overlay:hover,
.media-gif-overlay:hover {
  border-color: rgba(255,255,255,0.5);
}

.music-preview-banner {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}

.clip-order-list {
  background: rgba(0,0,0,0.9);
  padding: 15px;
  margin: 10px 0;
}

.clip-order-list h4 {
  margin: 0 0 10px 0;
  color: white;
}

.clip-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.clip-thumbnail {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
}

.clip-thumbnail.active {
  border-color: #ff4081;
}

.clip-thumbnail video,
.clip-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clip-thumbnail span {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0,0,0,0.8);
  color: white;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.clip-controls {
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  display: flex;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.2s;
}

.clip-thumbnail:hover .clip-controls {
  opacity: 1;
}

.clip-controls button {
  background: rgba(0,0,0,0.8);
  color: white;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-tools {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px 20px;
  background: rgba(0,0,0,0.95);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.edit-tools button {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.edit-tools button:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}

.advanced-edit-panels {
  background: #1a1a1a;
  padding: 20px;
  max-height: 40vh;
  overflow-y: auto;
}

.advanced-edit-panels .panel {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
}

.advanced-edit-panels .panel h4 {
  margin: 0 0 10px 0;
  color: white;
  font-size: 16px;
}

.advanced-edit-panels .panel label {
  display: block;
  margin-bottom: 8px;
  color: #ccc;
  font-size: 14px;
}

.advanced-edit-panels .panel input[type="range"] {
  width: 100%;
  margin-bottom: 15px;
}

.advanced-edit-panels .panel input[type="text"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #555;
  border-radius: 6px;
  background: #333;
  color: white;
  font-size: 14px;
}

.advanced-edit-panels .panel select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #555;
  border-radius: 6px;
  background: #333;
  color: white;
  font-size: 14px;
}

.advanced-edit-panels .panel button {
  background: #ff4081;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  margin-right: 8px;
  margin-bottom: 8px;
}

.advanced-edit-panels .panel button:hover {
  background: #e0356f;
}

.preset-btn {
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
}

.preset-btn.active {
  background: #ff4081 !important;
  border-color: #ff4081 !important;
}

.reel-metadata-section {
  position: -webkit-sticky;
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.95);
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 10;
}

.reel-metadata-section h4 {
  margin: 0 0 15px 0;
  color: white;
  font-size: 18px;
}

.reel-title-input,
.reel-description-input,
.reel-tags-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #555;
  border-radius: 8px;
  background: #333;
  color: white;
  font-size: 16px;
  margin-bottom: 15px;
}

.reel-title-input::placeholder,
.reel-description-input::placeholder,
.reel-tags-input::placeholder {
  color: #aaa;
}

.reel-permissions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.reel-permissions label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ccc;
  font-size: 14px;
  cursor: pointer;
}

.reel-permissions input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.create-reel-btn {
  width: 100%;
  padding: 15px;
  background: #ff4081;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.create-reel-btn:hover:not(:disabled) {
  background: #e0356f;
}

.create-reel-btn:disabled {
  background: #666;
  cursor: not-allowed;
}

/* Text Editor Styles */
.text-editor-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.95);
  padding: 20px;
  border-radius: 12px;
  z-index: 1000;
  min-width: 300px;
}

.text-editor-panel h4 {
  margin: 0 0 15px 0;
  color: white;
}

.text-editor-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.text-editor-controls input,
.text-editor-controls select {
  padding: 8px 12px;
  border: 1px solid #555;
  border-radius: 6px;
  background: #333;
  color: white;
}

.text-editor-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.text-editor-actions button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.text-editor-actions .cancel {
  background: #666;
  color: white;
}

.text-editor-actions .add-text {
  background: #ff4081;
  color: white;
}

/* Drawing Tools Styles */
.enhanced-drawing-tools {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.95);
  padding: 20px;
  border-radius: 12px;
  z-index: 1000;
  min-width: 350px;
  max-width: 90vw;
}

.drawing-tools-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.drawing-tools-header h4 {
  margin: 0;
  color: white;
}

.drawing-tools-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawing-tools-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.drawing-tools-row {
  display: flex;
  gap: 15px;
  align-items: center;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.control-group label {
  color: #ccc;
  font-size: 14px;
  font-weight: 500;
}

.control-group input[type="color"] {
  width: 50px;
  height: 40px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.control-group input[type="range"] {
  width: 100%;
}

.brush-type-buttons {
  display: flex;
  gap: 8px;
}

.brush-type-btn {
  width: 40px;
  height: 40px;
  border: 2px solid #555;
  border-radius: 50%;
  background: #333;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
}

.brush-type-btn.active {
  border-color: #ff4081;
  background: rgba(255, 64, 129, 0.2);
}

.eraser-btn {
  background: #ff6b6b !important;
  border-color: #ff6b6b !important;
}

.eraser-btn.active {
  background: rgba(255, 107, 107, 0.3) !important;
}

/* Camera Recording Styles */
.reels-create-options {
  margin-bottom: 20px;
  text-align: center;
}

.reels-option-btn {
  padding: 15px 30px;
  background: #0095f6;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 15px;
  display: block;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.reels-option-divider {
  margin: 15px 0;
  color: #666;
  font-weight: bold;
}

.reels-camera {
  margin-bottom: 20px;
  text-align: center;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  min-height: 500px;
  max-height: calc(100vh - 220px);
  background: #000;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.camera-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  background: #000;
}

.camera-controls {
  margin-top: 15px;
}

.record-btn {
  padding: 12px 24px;
  background: #ff4444;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
}

.stop-btn {
  padding: 12px 24px;
  background: #666;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
}

.recorded-video {
  margin-bottom: 20px;
  text-align: center;
}

.recorded-preview {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
}

.reels-create-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  resize: vertical;
  min-height: 80px;
  margin-bottom: 10px;
}

/* File Upload Styles */
.reels-upload-section {
  margin-bottom: 20px;
}

.reels-upload-label {
  display: inline-block;
  padding: 15px 30px;
  background: #ff4081;
  color: white;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  margin-bottom: 15px;
}

.reels-upload-label:hover {
  background: #e0356f;
}

.selected-files-count {
  color: #666;
  margin-bottom: 10px;
  font-weight: 500;
}

.selected-file-preview {
  max-width: 300px;
  max-height: 300px;
  border-radius: 12px;
  margin-bottom: 15px;
}

.proceed-btn {
  padding: 12px 24px;
  background: #0095f6;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
}

.proceed-btn:hover {
  background: #007acc;
}

/* Comments Styles */
.reel-comments {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.9);
  color: white;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.comments-header h4 {
  margin: 0;
}

.comments-header button {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  max-height: 300px;
}

.comment {
  margin-bottom: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.comment strong {
  color: #0095f6;
}

.comment-input {
  display: flex;
  padding: 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
  gap: 10px;
}

.comment-input input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 14px;
}

.comment-input button {
  padding: 10px 20px;
  background: #0095f6;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
}

/* Like button animation */
.reel-action-btn.liked {
  color: #ff4081;
  animation: heart-pulse 0.6s ease;
}

@keyframes heart-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Discovery algorithm styles - trending indicator */
.reel-trending {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 193, 7, 0.9);
  color: black;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
}

.reel-discovery-score {
  position: absolute;
  top: 50px;
  left: 20px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
}

.reel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.reel-tag {
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
}

.reel-gif-image {
  max-width: 200px;
  max-height: 150px;
  object-fit: contain;
  border-radius: 8px;
  align-self: flex-start;
  margin-top: 4px;
}

/* Camera Recording Styles */
.reels-create-options {
  margin-bottom: 20px;
  text-align: center;
}

.reels-option-btn {
  padding: 15px 30px;
  background: #0095f6;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 15px;
  display: block;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.reels-option-divider {
  margin: 15px 0;
  color: #666;
  font-weight: bold;
}

.reels-camera {
  margin-bottom: 20px;
  text-align: center;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  min-height: 500px;
  max-height: calc(100vh - 220px);
  background: #000;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.camera-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  background: #000;
}

.camera-controls {
  margin-top: 15px;
}

.record-btn {
  padding: 12px 24px;
  background: #ff4444;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
}

.stop-btn {
  padding: 12px 24px;
  background: #666;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
}

.recorded-video {
  margin-bottom: 20px;
  text-align: center;
}

.recorded-preview {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
}

.reels-create-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  resize: vertical;
  min-height: 80px;
  margin-bottom: 10px;
}

/* Comments Styles */
.reel-comments {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.9);
  color: white;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.comments-header h4 {
  margin: 0;
}

.comments-header button {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  max-height: 300px;
}

.comment {
  margin-bottom: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.comment strong {
  color: #0095f6;
}

.comment-input {
  display: flex;
  padding: 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
  gap: 10px;
}

.comment-input input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 14px;
}

.comment-input button {
  padding: 10px 20px;
  background: #0095f6;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
}

/* Like button animation */
.reel-action-btn.liked {
  color: #ff4081;
  animation: heart-pulse 0.6s ease;
}

@keyframes heart-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Discovery algorithm styles - trending indicator */
.reel-trending {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 193, 7, 0.9);
  color: black;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
}

.reel-discovery-score {
  position: absolute;
  top: 50px;
  left: 20px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
}

.reel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.reel-tag {
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
}

.reel-gif-image {
  max-width: 200px;
  max-height: 150px;
  object-fit: contain;
  border-radius: 8px;
  align-self: flex-start;
  margin-top: 4px;
}

.contacts-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  transition: background-color 0.2s;
}

.contact-item:hover {
  background: #f9f9f9;
}

.contact-item.selected {
  background: #e3f2fd;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  box-shadow: inset 2px 2px 4px #bebebe,
              inset -2px -2px 4px #ffffff;
}

.contact-info {
  flex: 1;
}

.contact-name {
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-handle {
  color: #666;
  font-size: 14px;
}

.contact-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

.contact-item.selected .contact-checkbox {
  background: #2196f3;
  border-color: #2196f3;
  color: white;
}

.group-create-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.group-create-actions button {
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.group-create-actions .secondary {
  background: #f5f5f5;
  border: 1px solid #ddd;
  color: #333;
}

.group-create-actions .secondary:hover {
  background: #e9e9e9;
}

.group-create-actions .primary {
  background: #2196f3;
  border: 1px solid #2196f3;
  color: white;
}

.group-create-actions .primary:hover:not(:disabled) {
  background: #1976d2;
}

.group-create-actions .primary:disabled {
  background: #ccc;
  border-color: #ccc;
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
  .messages-container {
    flex-direction: column;
    height: auto;
  }

  .messages-sidebar {
    width: 100%;
    height: auto;
  }

  .conversations-list {
    display: flex;
    overflow-x: auto;
    padding: 10px;
  }

  .conversation-item {
    min-width: 240px;
    border-bottom: none;
    margin-right: 10px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  }

  .message-bubble {
    max-width: 85%;
  }

  .input-container {
    padding: 10px 12px;
  }

  .message-input {
    font-size: 14px;
  }

  .chat-header {
    align-items: flex-start;
  }

  .chat-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .chat-actions .icon-btn {
    width: 38px;
    height: 38px;
  }
}

/* Instagram-style Profile Page */
.instagram-profile-page {
  max-width: 935px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
}

.instagram-profile-header {
  display: flex;
  padding: 30px 20px 44px;
  border-bottom: 1px solid #dbdbdb;
}

.instagram-profile-picture {
  margin-right: 30px;
}

.instagram-profile-img,
.instagram-profile-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px solid #dbdbdb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 300;
  color: #8e8e8e;
  background: #fafafa;
}

.instagram-profile-img {
  object-fit: cover;
}

.instagram-profile-info {
  flex: 1;
  padding-top: 12px;
}

.instagram-profile-username-section {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 20px;
}

.instagram-username {
  font-size: 28px;
  font-weight: 300;
  margin: 0;
  color: #262626;
}

.instagram-profile-actions {
  display: flex;
  gap: 8px;
}

.instagram-profile-note-section {
  margin: 0 20px 24px;
  background: #f6f6f8;
  border-radius: 34px;
  padding: 18px 18px 14px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(219, 219, 219, 0.8);
  position: relative;
  overflow: hidden;
}

.instagram-profile-note-section:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #f56040 0%, #c13584 30%, #833ab4 60%, #515bd4 100%);
}

.instagram-note-panel {
  padding-top: 16px;
}

.instagram-note-content {
  background: #ffffff;
  border-radius: 30px;
  padding: 22px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.instagram-note-header {
  position: relative;
  z-index: 1;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.instagram-note-header .notes-heading {
  margin-bottom: 0;
}

.instagram-note-header .notes-heading strong {
  font-size: 20px;
  letter-spacing: 0.02em;
  color: #111827;
}

.instagram-note-header .notes-heading span {
  color: #6b7280;
  max-width: 320px;
}

.instagram-note-loading {
  color: #8e8e8e;
  font-size: 14px;
}

.instagram-note-empty {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafc 100%);
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.instagram-note-empty-icon {
  width: 60px;
  height: 60px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: white;
  background: linear-gradient(135deg, #f56040 0%, #c13584 100%);
  box-shadow: 0 12px 24px rgba(197, 53, 132, 0.18);
}

.instagram-note-create-btn {
  border: 1px solid #262626;
  background: #fff;
  color: #262626;
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.instagram-note-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 12px 14px;
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  margin-bottom: 12px;
}

.instagram-note-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.instagram-note-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.instagram-note-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.instagram-note-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
}

.instagram-note-timestamp {
  font-size: 11px;
  color: #64748b;
}

.instagram-note-card-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #1f2937;
}

.instagram-note-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.instagram-note-edit-btn,
.instagram-note-delete-btn,
.instagram-note-save-btn,
.instagram-note-cancel-btn {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
}

.instagram-note-edit-btn {
  background: #ffffff;
  color: #2563eb;
  border-color: #c7d2fe;
}

.instagram-note-delete-btn {
  background: #fee2e2;
  color: #b91c1c;
}

.instagram-note-composer {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 30px;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.05);
}

.instagram-bubble-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 4px;
  position: relative;
}

.instagram-profile-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f56040 0%, #c13584 45%, #833ab4 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(149, 76, 233, 0.14);
  position: relative;
  z-index: 1;
}

.instagram-profile-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  object-fit: cover;
}

.instagram-profile-initials {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  color: #111827;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.85);
}

.instagram-profile-name {
  font-size: 13px;
  color: #111827;
  font-weight: 600;
  text-align: center;
  margin-top: 4px;
}

.instagram-thought-bubble {
  position: relative;
  display: inline-block;
  width: 140px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
  display: grid;
  gap: 4px;
  cursor: pointer;
  text-align: center;
  z-index: 2;
  margin-bottom: 6px;
}

.instagram-thought-tail {
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 50% 50% 50% 0;
  transform: translateX(-50%) rotate(45deg);
  border-left: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.instagram-thought-copy strong {
  display: block;
  color: #111827;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
}

.instagram-thought-copy span {
  display: block;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.3;
}

.instagram-note-bubble {
  margin-top: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.note-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
}

.note-bubble {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.note-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.note-avatar-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f3f4f6;
  color: #111827;
  font-weight: 700;
}

.note-text {
  position: absolute;
  bottom: -4px;
  width: 100%;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: #000;
  padding: 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-caption {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  max-width: 180px;
}

.instagram-bubble-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.instagram-bubble-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.instagram-bubble-subtitle {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
  margin-top: 4px;
}

.instagram-bubble-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  display: grid;
  place-items: center;
  color: #111827;
  cursor: pointer;
  font-size: 14px;
}

.instagram-bubble-body {
  display: grid;
  gap: 16px;
}

.instagram-bubble-feed {
  display: grid;
  gap: 12px;
}

.instagram-note-creator {
  display: grid;
  gap: 14px;
}

.instagram-note-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.instagram-note-mode-btn {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 999px;
  color: #111827;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.instagram-note-mode-btn.active {
  background: linear-gradient(135deg, #f56040 0%, #c13584 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(197, 53, 132, 0.18);
}

.instagram-note-creator-panel {
  display: grid;
  gap: 16px;
}

.instagram-song-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.instagram-song-option {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 16px;
  display: grid;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  text-align: left;
}

.instagram-song-option.selected {
  border-color: #c13584;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(197, 53, 132, 0.12);
}

.instagram-song-option strong {
  font-size: 15px;
  color: #111827;
}

.instagram-song-option span {
  font-size: 13px;
  color: #6b7280;
}

.instagram-note-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  gap: 12px;
}

.instagram-choice-pill {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 18px;
  min-height: 56px;
  display: grid;
  place-items: center;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.instagram-choice-pill.selected {
  border-color: #c13584;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(197, 53, 132, 0.14);
}

.instagram-note-style-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.instagram-note-color-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.instagram-note-color-option {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.instagram-note-color-option.selected {
  border-color: #111827;
  transform: scale(1.08);
}

.note-font-select {
  min-width: 150px;
  border: 1px solid #d1d5db;
  border-radius: 18px;
  padding: 10px 12px;
  background: #ffffff;
  color: #111827;
}

.note-input-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

@media (max-width: 760px) {
  .instagram-note-composer {
    flex-direction: column;
    align-items: stretch;
  }
}

.instagram-note-textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
  padding: 14px 16px;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.6;
  background: #fff;
  color: #111827;
}

.instagram-note-editor-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.instagram-note-save-btn {
  background: #0095f6;
  color: #fff;
  border-color: #0095f6;
}

.instagram-note-cancel-btn {
  background: #f8fafc;
  color: #1f2937;
  border-color: #d1d5db;
}

.instagram-note-status {
  color: #2563eb;
  font-size: 13px;
}

/* Milestone Message */
.milestone-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 40px;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  z-index: 10000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: milestonePop 0.5s ease-out;
}

@keyframes milestonePop {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.instagram-edit-btn,
.instagram-message-btn,
.instagram-follow-btn {
  padding: 5px 9px;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  background: #fff;
  color: #262626;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.instagram-edit-btn {
  padding: 5px 24px;
}

.instagram-follow-btn {
  background: #0095f6;
  color: #fff;
  border-color: #0095f6;
}

.instagram-follow-btn:hover {
  background: #0077cc;
}

.instagram-follow-btn.following {
  background: #fff;
  color: #262626;
  border-color: #dbdbdb;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.instagram-follow-btn.following:hover {
  background: #f7f7f7;
}

.instagram-follow-btn.requested {
  background: #ffdd57;
  color: #262626;
  border-color: #f6c400;
}

.instagram-follow-btn.requested:hover {
  background: #f5c023;
}

.instagram-follow-request-badge {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: #f5f5f5;
  border: 1px solid #dbdbdb;
  color: #262626;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.instagram-follow-request-badge:hover {
  background: #ececec;
}

.instagram-private-state {
  padding: 32px;
  border-radius: 24px;
  text-align: center;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.instagram-private-note h3 {
  margin: 0 0 12px 0;
  font-size: 22px;
  color: #262626;
}

.instagram-private-note p {
  margin: 6px 0;
  color: #4d4d4d;
  font-size: 15px;
}

.instagram-request-note {
  margin-top: 10px;
  color: #8e8e8e;
  font-size: 14px;
}

.instagram-follow-btn:disabled,
.instagram-follow-btn:disabled:hover {
  cursor: not-allowed;
  opacity: 0.85;
  background: #ffec9f;
  color: #262626;
  border-color: #f0d56a;
}

.comments-preview-instagram {
  margin: 12px 0 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fbfbfb;
  border: 1px solid #ececec;
}

.comment-preview-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.comment-preview-item:last-child {
  border-bottom: none;
}

.comment-preview-item strong {
  font-weight: 700;
  color: #262626;
}

.comment-preview-text {
  color: #262626;
  opacity: 0.85;
  font-size: 14px;
  line-height: 1.5;
}

.view-all-comments-btn {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #ffffff;
  color: #262626;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-all-comments-btn:hover {
  background: #f2f2f2;
  border-color: #dbdbdb;
}

.instagram-profile-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 20px;
}

.instagram-stat {
  display: flex;
  flex-direction: column;
}

.instagram-stat-number {
  font-size: 16px;
  font-weight: 600;
  color: #262626;
}

.instagram-stat-label {
  font-size: 14px;
  color: #8e8e8e;
}

.instagram-profile-bio h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #262626;
}

.instagram-bio-text {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 8px 0;
  color: #262626;
  white-space: pre-wrap;
}

.instagram-website-link {
  color: #00376b;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

.instagram-highlights {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #dbdbdb;
  align-items: center;
}

.instagram-highlights-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  padding-bottom: 2px;
}

.instagram-highlights-container::-webkit-scrollbar {
  display: none;
}

.instagram-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 78px;
  scroll-snap-align: start;
  animation: popIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  transition: transform 80ms ease;
}

.instagram-highlight:active {
  transform: scale(0.96);
}

.instagram-highlight-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.instagram-highlight-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.instagram-highlight-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instagram-highlight-label {
  margin-top: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #262626;
  text-align: center;
  max-width: 70px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.instagram-highlight.new-highlight .instagram-highlight-circle {
  background: #fff;
  border: 1px solid #d1d5db;
}

.instagram-highlight-plus {
  font-size: 28px;
  color: #262626;
  line-height: 1;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.instagram-tabs {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #dbdbdb;
}

.instagram-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: #8e8e8e;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}

.instagram-tab.active {
  color: #262626;
  border-bottom-color: #262626;
}

.instagram-section-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0 8px;
  border-bottom: 1px solid #efefef;
  margin-bottom: 12px;
}

.instagram-section-tabs .instagram-tab {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.instagram-section-tabs .instagram-tab.active {
  background: #262626;
  color: #fff;
  border-color: rgba(0, 0, 0, 0.12);
}

.instagram-more-group {
  position: relative;
  display: inline-flex;
}

.instagram-more-button {
  min-width: 42px;
  padding: 10px 12px;
}

.instagram-more-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  z-index: 20;
  min-width: 150px;
}

.instagram-dropdown-tab {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  border-bottom: 1px solid #f1f1f1;
}

.instagram-dropdown-tab:last-child {
  border-bottom: none;
}

.instagram-dropdown-tab.active,
.instagram-dropdown-tab:hover {
  background: #f7f7f7;
}

.instagram-content-view {
  margin: 0 0 24px;
}

.instagram-section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #262626;
}

.instagram-follow-list {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: #fafafa;
  border: 1px solid #ececec;
}

.instagram-follow-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #f0f0f0;
}

.instagram-follow-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.instagram-follow-row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.instagram-row-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #dbdbdb;
  background: #ffffff;
  color: #262626;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

.instagram-follow-row:hover .instagram-row-btn {
  opacity: 1;
  pointer-events: auto;
}

.instagram-row-btn.following {
  background: #f5f5f5;
  border-color: #d1d5db;
}

.instagram-row-btn:hover {
  background: #f2f2f2;
}

.instagram-follow-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.instagram-follow-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instagram-follow-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8e8e8e;
  font-weight: 600;
  font-size: 16px;
}

.instagram-follow-timestamp {
  color: #8e8e8e;
  font-size: 13px;
}

.instagram-empty-state {
  padding: 24px;
  border-radius: 18px;
  text-align: center;
  color: #767676;
  background: #f9f9f9;
  border: 1px solid #eee;
}

.instagram-post.instagram-post-small {
  min-height: 0;
  background: #f5f5f5;
}

.instagram-post.instagram-post-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instagram-profile-stats .instagram-stat {
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.instagram-profile-stats .instagram-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.instagram-profile-stats .instagram-stat.active,
.instagram-profile-stats .instagram-stat:hover {
  background: linear-gradient(135deg, rgba(138, 237, 116, 0.1) 0%, rgba(122, 184, 255, 0.1) 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.instagram-profile-stats .instagram-stat:hover::before {
  left: 100%;
}

.instagram-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 0 4px;
}

.instagram-post {
  aspect-ratio: 1;
  background: #f0f0f0;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.instagram-post:hover .instagram-post-overlay {
  opacity: 1;
}

.instagram-post-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.instagram-post-stats {
  display: flex;
  gap: 16px;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
}

.instagram-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #262626;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 1000;
}

/* Responsive Design */
@media (max-width: 735px) {
  .instagram-profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px 30px;
  }

  .instagram-profile-picture {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .instagram-profile-username-section {
    justify-content: center;
  }

  .instagram-profile-stats {
    justify-content: center;
    gap: 30px;
  }

  .instagram-posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 450px) {
  .instagram-username {
    font-size: 24px;
  }

  .instagram-posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Enhanced Cross-Platform Responsive Design */

/* Mobile Styles (iOS, Android) */
@media (max-width: 768px) {
  .app-content {
    padding: 10px;
  }

  .neumorphic {
    padding: 20px;
    margin-bottom: 20px;
  }

  .top-navbar {
    padding: 8px 12px;
  }

  .top-navbar-content {
    max-width: none;
    margin: 0;
  }

  .logo {
    font-size: 20px;
  }

  .search-container {
    margin: 0 10px;
  }

  .top-icons {
    gap: 12px;
  }

  .messages-layout {
    grid-template-columns: 1fr;
  }

  .conversations-sidebar {
    order: 2;
  }

  .chat-area {
    order: 1;
    height: 60vh;
  }

  .messages-sidebar-header {
    padding: 15px 15px 8px;
  }

  .messages-tabs {
    gap: 6px;
  }

  .messages-tabs button {
    padding: 6px 8px;
    font-size: 14px;
  }

  .notes-row {
    padding: 15px 15px 10px;
  }

  .notes-heading {
    margin-bottom: 10px;
  }

  .notes-heading strong {
    font-size: 13px;
  }

  .notes-heading span {
    font-size: 11px;
  }

  .notes-list {
    gap: 6px;
  }

  .note-card {
    padding: 10px 12px;
  }

  .note-text {
    font-size: 12px;
  }

  .note-audience {
    font-size: 10px;
  }

  .conversation-item {
    padding: 12px 15px;
  }

  .conversation-content {
    margin-left: 12px;
  }

  .conversation-name {
    font-size: 15px;
  }

  .conversation-preview {
    font-size: 13px;
  }

  .chat-header {
    padding: 12px 15px;
  }

  .messages-area {
    padding: 15px;
  }

  .message-input-area {
    padding: 12px 15px;
  }

  .message-input-area input {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .live-streams-grid {
    grid-template-columns: 1fr;
  }

  .live-watch {
    grid-template-columns: 1fr;
  }

  .streaming-layout {
    flex-direction: column;
  }

  .streaming-sidebar {
    width: 100%;
    height: 200px;
  }

  .co-hosts-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: none;
  }

  .co-host-video {
    width: 80px;
    height: 60px;
  }

  .guest-requests {
    max-width: none;
    left: 10px;
    right: 10px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stories-creation-panel {
    grid-template-columns: 1fr;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .instagram-profile-header {
    padding: 15px;
    flex-direction: column;
    text-align: center;
  }

  .instagram-profile-avatar {
    position: static;
    margin: -60px auto 15px;
  }

  .instagram-profile-info {
    margin-left: 0;
  }

  .instagram-profile-stats {
    justify-content: center;
  }

  .instagram-profile-actions {
    justify-content: center;
  }

  .story-type-grid {
    grid-template-columns: 1fr;
  }

  .edit-tools {
    bottom: 30px;
  }

  .edit-tools button {
    padding: 8px 16px;
    font-size: 14px;
  }

  .camera-controls {
    bottom: 30px;
  }

  .capture-btn {
    width: 60px;
    height: 60px;
  }

  .upload-btn {
    padding: 8px 16px;
  }

  .share-options {
    flex-direction: column;
    gap: 8px;
  }

  .share-options button {
    padding: 6px 12px;
  }

  .sticker-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .gift-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .scheduled-stream-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .schedule-actions {
    width: 100%;
    justify-content: space-between;
  }

  .streaming-stats {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .streaming-controls {
    flex-direction: row;
    justify-content: space-around;
  }

  .streaming-controls button {
    flex: 1;
    max-width: 120px;
  }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .app-content {
    padding: 15px;
  }

  .live-streams-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .live-watch {
    grid-template-columns: 1fr 280px;
  }

  .streaming-sidebar {
    width: 280px;
  }

  .co-hosts-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .profile-post-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stories-creation-panel {
    grid-template-columns: 1.2fr 1fr;
  }

  .analytics-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .settings-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-type-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sticker-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .gift-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .products-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large Desktop Styles */
@media (min-width: 1401px) {
  .live-streams-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .profile-post-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .sticker-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .gift-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .products-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .conversation-item:hover,
  .note-card:hover,
  button:hover {
    transform: none;
    box-shadow: none;
  }

  .conversation-item:active,
  .note-card:active,
  button:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

/* iOS Safari Specific Fixes */
@supports (-webkit-touch-callout: none) {
  .message-input-area input,
  .search-input,
  .login-field,
  .auth-input {
    font-size: 16px !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  .notes-list {
    -webkit-overflow-scrolling: touch;
  }

  .story-tray,
  .live-streams-grid {
    -webkit-overflow-scrolling: touch;
  }
}

/* Android Chrome Specific Fixes */
@supports (-webkit-appearance: none) {
  .message-input-area input:focus,
  .search-input:focus,
  .login-field:focus,
  .auth-input:focus {
    outline: 2px solid #0095f6;
    outline-offset: 2px;
  }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .avatar-circle,
  .instagram-profile-avatar img,
  .story-avatar img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Safe Area Inset Support for iPhone X and newer */
@supports (padding: max(0px)) {
  .app-content {
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }

  .top-navbar {
    padding-top: max(8px, env(safe-area-inset-top));
  }

  .live-streaming-modal .streaming-interface {
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
}

/* Profile Visitors Styles */
.instagram-visitors {
  padding: 16px;
}

.visitor-timeframe-selector {
  margin-bottom: 16px;
}

.visitor-timeframe-selector select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
}

.visitor-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.visitor-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.visitor-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
}

.visitor-info {
  flex: 1;
}

.visitor-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.visitor-details {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}

.visitor-details span {
  margin-right: 12px;
}

.visitor-last-visit {
  font-size: 12px;
  color: #999;
}

/* PWA Install Prompt */
.pwa-install-prompt {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 1000;
  animation: slideUp 0.3s ease-out;
}

.pwa-prompt-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.pwa-prompt-icon {
  font-size: 24px;
  color: white;
}

.pwa-prompt-text h4 {
  margin: 0 0 4px 0;
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.pwa-prompt-text p {
  margin: 0;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
}

.pwa-prompt-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.pwa-install-btn,
.pwa-dismiss-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.pwa-install-btn {
  background: white;
  color: #667eea;
}

.pwa-install-btn:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
}

.pwa-dismiss-btn {
  background: rgba(255,255,255,0.2);
  color: white;
}

.pwa-dismiss-btn:hover {
  background: rgba(255,255,255,0.3);
}

@keyframes slideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Event Pages Styles */
.events-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.events-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.events-header h1 {
  margin: 0;
  color: #333;
}

.create-event-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s;
}

.create-event-btn:hover {
  background: #0056b3;
}

.events-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.events-filter {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}

.events-filter.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.event-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.event-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.event-content {
  padding: 20px;
}

.event-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: #333;
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.event-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 14px;
}

.event-detail i {
  width: 16px;
  text-align: center;
}

.event-description {
  color: #555;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-rsvp-btn {
  padding: 8px 16px;
  border: 1px solid #007bff;
  border-radius: 20px;
  background: white;
  color: #007bff;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.event-rsvp-btn.going {
  background: #007bff;
  color: white;
}

.event-rsvp-btn.interested {
  background: #28a745;
  border-color: #28a745;
  color: white;
}

.event-rsvp-btn.not-going {
  background: #dc3545;
  border-color: #dc3545;
  color: white;
}

.event-attendees {
  color: #666;
  font-size: 14px;
}

/* Event Details Page */
.event-details-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.event-details-header {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  margin-bottom: 30px;
}

.event-details-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
}

.event-details-info {
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.event-details-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 15px 0;
  color: #333;
}

.event-details-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.event-details-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #666;
}

.event-details-meta-item i {
  margin-top: 2px;
  width: 16px;
  text-align: center;
}

.event-details-description {
  color: #555;
  line-height: 1.6;
  margin-bottom: 25px;
}

.event-details-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.event-details-rsvp-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.event-details-rsvp-btn.going {
  background: #007bff;
  color: white;
}

.event-details-rsvp-btn.interested {
  background: #28a745;
  color: white;
}

.event-details-rsvp-btn.not-going {
  background: #dc3545;
  color: white;
}

.event-details-share-btn {
  background: #6c757d;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.event-details-share-btn:hover {
  background: #5a6268;
}

.event-details-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}

.event-agenda {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.event-agenda h3 {
  margin: 0 0 20px 0;
  color: #333;
  font-size: 20px;
}

.agenda-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.agenda-item:last-child {
  border-bottom: none;
}

.agenda-time {
  font-weight: 600;
  color: #007bff;
  min-width: 80px;
}

.agenda-content h4 {
  margin: 0 0 5px 0;
  color: #333;
}

.agenda-content p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.event-attendees-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.event-attendees-section h3 {
  margin: 0 0 20px 0;
  color: #333;
  font-size: 20px;
}

.attendees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 15px;
}

.attendee-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.attendee-more {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-weight: 600;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Event Creation Page */
.event-create-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.event-create-form {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.event-create-form h2 {
  margin: 0 0 30px 0;
  color: #333;
  text-align: center;
}

.form-section {
  margin-bottom: 25px;
}

.form-section label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.form-section input,
.form-section textarea,
.form-section select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f9f9f9;
  font-size: 16px;
  transition: border-color 0.2s;
}

.form-section input:focus,
.form-section textarea:focus,
.form-section select:focus {
  outline: none;
  border-color: #007bff;
}

.form-section textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
}

.agenda-section {
  margin-bottom: 25px;
}

.agenda-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.agenda-item-input {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: start;
}

.agenda-item-input input,
.agenda-item-input textarea {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f9f9f9;
  font-size: 14px;
}

.agenda-item-input textarea {
  min-height: 60px;
  resize: vertical;
}

.add-agenda-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  margin-top: 10px;
  transition: background-color 0.2s;
}

.add-agenda-btn:hover {
  background: #218838;
}

.remove-agenda-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  margin-top: 5px;
  align-self: flex-start;
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 30px;
}

.form-actions button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.form-actions .cancel-btn {
  background: #6c757d;
  color: white;
}

.form-actions .cancel-btn:hover {
  background: #5a6268;
}

.form-actions .create-btn {
  background: #007bff;
  color: white;
}

.form-actions .create-btn:hover:not(:disabled) {
  background: #0056b3;
}

.form-actions .create-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Responsive Event Styles */
@media (max-width: 768px) {
  .events-page,
  .event-details-page,
  .event-create-page {
    padding: 15px;
  }

  .events-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .events-filters {
    flex-direction: column;
    align-items: flex-start;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .event-details-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .event-details-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .agenda-item-input {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
  }
}

/* Post media styles */

.post-media-container {
  position: relative;
  margin-top: 10px;
}

.post-media {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.media-text {
  position: absolute;
  pointer-events: none;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.media-sticker {
  position: absolute;
  max-width: 50px;
  max-height: 50px;
}

/* Streaming Controls Styles */

.streaming-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.control-section {
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

.control-section:last-child {
  border-bottom: none;
}

.control-section h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.control-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.control-buttons button {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.control-buttons button:hover {
  background: #f5f5f5;
  border-color: #bbb;
}

.co-host-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 12px;
}

.settings-btn {
  width: 100%;
  padding: 10px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
}

.settings-btn:hover {
  background: #0056b3;
}

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #2196F3;
  animation: slideInRight 0.3s ease-out;
  pointer-events: all;
  min-width: 320px;
  max-width: 100%;
  word-wrap: break-word;
}

.toast.toast-enter {
  animation: slideInRight 0.3s ease-out;
}

.toast.toast-exit {
  animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

/* Toast Types */
.toast-success {
  border-left-color: #4CAF50;
  background: linear-gradient(135deg, #f1f8f5 0%, #e8f5e9 100%);
}

.toast-success .toast-icon {
  color: #4CAF50;
}

.toast-error {
  border-left-color: #f44336;
  background: linear-gradient(135deg, #fef5f5 0%, #ffebee 100%);
}

.toast-error .toast-icon {
  color: #f44336;
}

.toast-warning {
  border-left-color: #ff9800;
  background: linear-gradient(135deg, #fff9f5 0%, #ffe0b2 100%);
}

.toast-warning .toast-icon {
  color: #ff9800;
}

.toast-info {
  border-left-color: #2196F3;
  background: linear-gradient(135deg, #f5f9ff 0%, #e3f2fd 100%);
}

.toast-info .toast-icon {
  color: #2196F3;
}

.toast-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.toast-icon {
  font-weight: bold;
  font-size: 18px;
  min-width: 24px;
  text-align: center;
  margin-top: 2px;
}

.toast-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toast-title {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.toast-message {
  color: #666;
  font-size: 13px;
  line-height: 1.4;
}

.toast-action {
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 4px;
  color: #2196F3;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.toast-action:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.toast-close {
  background: none;
  border: none;
  color: #999;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-left: auto;
}

.toast-close:hover {
  color: #333;
  transform: scale(1.1);
}

/* Mobile responsive */
@media (max-width: 480px) {
  .toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .toast {
    min-width: auto;
    width: 100%;
  }

  .toast-text {
    flex: 1;
  }

  @keyframes slideInRight {
    from {
      transform: translateY(-20px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  @keyframes slideOutRight {
    from {
      transform: translateY(0);
      opacity: 1;
    }
    to {
      transform: translateY(-20px);
      opacity: 0;
    }
  }
}