    /* WEBRTC CALLING DISPLAY */
    .webrtc-call-pane {
      display: none;
      position: absolute;
      inset: 0;
      background: #111315;
      z-index: 200;
      flex-direction: column;
    }

    .video-grid {
      flex-grow: 1;
      display: grid;
      grid-template-columns: 1fr;
      position: relative;
      background: #000;
      overflow: hidden;
    }

    .remote-video {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .local-video-box {
      position: absolute;
      bottom: 20px;
      right: 20px;
      width: 150px;
      aspect-ratio: 4/3;
      border-radius: 8px;
      border: 2px solid #ffffff;
      z-index: 210;
      background: #222;
      overflow: hidden;
    }

    .local-video {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .video-box {
      position: relative;
      width: 100%;
      height: 100%;
      background: #111;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .remote-video-box {
      width: 100%;
      height: 100%;
    }

    /* Video placeholders when camera is deactivated */
    .video-placeholder {
      position: absolute;
      inset: 0;
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: #1e1f22;
      color: #ffffff;
      z-index: 5;
      gap: 10px;
      text-align: center;
      padding: 10px;
    }
    
    .video-placeholder.active {
      display: flex;
    }

    .placeholder-avatar {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      background: var(--sociax-accent);
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2.2rem;
      font-weight: 800;
      overflow: hidden;
      box-shadow: 0 4px 15px rgba(0,0,0,0.3);
      border: 2px solid rgba(255,255,255,0.1);
    }
    
    .placeholder-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .placeholder-name {
      font-size: 0.85rem;
      font-weight: 700;
      color: #e3e5e8;
      text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    }
    
    .local-video-box .placeholder-avatar {
      width: 44px;
      height: 44px;
      font-size: 1.2rem;
      border-width: 1px;
    }
    .local-video-box .placeholder-name {
      font-size: 0.7rem;
      margin-top: -2px;
    }
    .local-video-box .video-placeholder {
      gap: 4px;
    }

    .call-controls-bar {
      height: 80px;
      background: #1c1e21;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 20px;
    }

    .btn-call-action {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.2);
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s;
    }

    .btn-call-action:hover {
      background: rgba(255,255,255,0.2);
      transform: scale(1.05);
    }

    .btn-call-action.active {
      background: #ffffff;
      color: #000000;
    }

    .btn-call-action.red {
      background: #e71d36;
      border-color: #e71d36;
    }

    .btn-call-action.red:hover {
      background: #ff334b;
    }

    /* INCOMING CALL BANNER */
    .incoming-call-alert {
      position: absolute;
      top: 20px;
      left: 50%;
      transform: translateX(-50%);
      background: var(--accent);
      color: var(--accent-contrast);
      padding: 16px 24px;
      border-radius: var(--radius);
      box-shadow: 0 10px 25px rgba(0,0,0,0.2);
      z-index: 300;
      display: none;
      align-items: center;
      gap: 20px;
    }

    .alert-actions {
      display: flex;
      gap: 10px;
    }

    .btn-alert-accept {
      background: var(--sociax-accent);
      color: #ffffff;
      padding: 8px 16px;
      border-radius: 6px;
      font-weight: 700;
      cursor: pointer;
    }

    .btn-alert-decline {
      background: #e71d36;
      color: #ffffff;
      padding: 8px 16px;
      border-radius: 6px;
      font-weight: 700;
      cursor: pointer;
    }

    /* Call History Styles */
    .call-history-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: #2b2d31;
      border: 1px solid #1e1f22;
      border-radius: 8px;
      padding: 12px 16px;
      gap: 12px;
      transition: background 0.2s;
    }
    .call-history-item:hover {
      background: #35373c;
    }
    .call-history-item.missed {
      border-color: rgba(231, 29, 54, 0.38);
      box-shadow: inset 3px 0 0 rgba(231, 29, 54, 0.85);
    }
    .call-history-item.answered {
      border-color: rgba(var(--sociax-accent-rgb), 0.28);
    }
    .call-history-details {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
      flex-grow: 1;
    }
    .call-status-icon {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .call-history-svg {
      width: 19px;
      height: 19px;
      display: block;
      fill: currentColor;
    }
    .call-history-svg path:not(:first-child) {
      fill: none;
      stroke: currentColor;
      stroke-width: 2.2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .call-status-icon.answered {
      background: rgba(var(--sociax-accent-rgb), 0.15);
      color: var(--sociax-accent);
    }
    .call-status-icon.missed {
      background: rgba(231, 29, 54, 0.15);
      color: #e71d36;
    }
    .call-info-text {
      display: flex;
      flex-direction: column;
      min-width: 0;
    }
    .call-info-title {
      font-size: 0.9rem;
      font-weight: 700;
      color: #ffffff;
      text-overflow: ellipsis;
      overflow: hidden;
      white-space: nowrap;
    }
    .call-info-sub {
      font-size: 0.75rem;
      color: #b5bac1;
      margin-top: 2px;
    }
    .call-btn-recall {
      background: var(--sociax-accent);
      border: none;
      color: #ffffff;
      padding: 8px 12px;
      border-radius: 4px;
      font-size: 0.8rem;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: background 0.2s;
      flex-shrink: 0;
    }
    .call-btn-recall:hover {
      background: var(--sociax-accent-hover);
    }
    body.premium-active .call-btn-recall {
      background: #ffd700;
      color: #000000;
    }
    body.premium-active .call-btn-recall:hover {
      background: #e6c200;
    }

    /* SOCIAX MODERN AGENDA & GROUP PANEL */
    .sociax-page-shell {
      width: min(1040px, calc(100% - 32px));
      margin: 0 auto;
      padding: 32px 0 40px;
      display: flex;
      flex-direction: column;
      gap: 22px;
    }
    .sociax-page-hero {
      border: 1px solid var(--line);
      border-radius: 24px;
      background: linear-gradient(135deg, rgba(var(--sociax-accent-rgb),.12), rgba(0,119,182,.08));
      padding: 24px;
      display: flex;
      justify-content: space-between;
      gap: 18px;
      align-items: flex-end;
    }
    html[data-theme="dark"] .sociax-page-hero {
      background: linear-gradient(135deg, rgba(var(--sociax-accent-rgb),.12), rgba(255,255,255,.025));
      border-color: #2a2e32;
    }
    .sociax-kicker {
      display: inline-flex;
      color: var(--sociax-accent);
      font-size: .72rem;
      text-transform: uppercase;
      letter-spacing: .12em;
      font-weight: 900;
      margin-bottom: 10px;
    }
    .sociax-page-hero h3 {
      margin: 0;
      color: var(--text);
      font-size: clamp(1.55rem, 3vw, 2.35rem);
      line-height: 1.05;
      font-weight: 950;
    }
    .sociax-page-hero p {
      margin: 10px 0 0;
      max-width: 540px;
      color: var(--muted);
      line-height: 1.55;
      font-size: .94rem;
    }
    .sociax-hero-chip {
      border: 1px solid var(--line);
      border-radius: 18px;
      background: var(--surface);
      padding: 12px 16px;
      min-width: 140px;
      box-shadow: 0 14px 32px rgba(0,0,0,.06);
    }
    .sociax-hero-chip span,
    .sociax-hero-chip strong {
      display: block;
    }
    .sociax-hero-chip span {
      color: var(--muted);
      font-size: .72rem;
      font-weight: 800;
      text-transform: uppercase;
    }
    .sociax-hero-chip strong {
      color: var(--text);
      margin-top: 4px;
    }
    .sociax-agenda-grid {
      display: grid;
      grid-template-columns: minmax(280px, 360px) 1fr;
      gap: 18px;
      align-items: start;
    }
    .sociax-modern-card {
      border: 1px solid var(--line);
      border-radius: 22px;
      background: var(--surface);
      box-shadow: 0 16px 36px rgba(0,0,0,.055);
      padding: 20px;
    }
    html[data-theme="dark"] .sociax-modern-card,
    html[data-theme="dark"] .sociax-hero-chip {
      background: #151819;
      border-color: #2a2e32;
      box-shadow: 0 16px 36px rgba(0,0,0,.22);
    }
    .sociax-card-heading {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
    }
    .sociax-card-heading strong {
      display: block;
      color: var(--text);
      font-weight: 950;
    }
    .sociax-card-heading small {
      display: block;
      margin-top: 2px;
      color: var(--muted);
      font-size: .78rem;
      line-height: 1.35;
    }
    .sociax-card-icon {
      width: 40px;
      height: 40px;
      border-radius: 14px;
      color: #0f766e;
      background: rgba(var(--sociax-accent-rgb),.16);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .sociax-card-icon.soft {
      color: #2563eb;
      background: rgba(37,99,235,.12);
    }
    .sociax-card-icon svg {
      width: 21px;
      height: 21px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .sociax-agenda-form {
      display: flex;
      flex-direction: column;
      gap: 10px;
      position: sticky;
      top: 18px;
    }
    .sociax-field-label {
      color: var(--muted);
      font-size: .72rem;
      text-transform: uppercase;
      letter-spacing: .08em;
      font-weight: 900;
    }
    .sociax-field {
      width: 100%;
      box-sizing: border-box;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: var(--bg-soft);
      color: var(--text);
      padding: 12px 13px;
      font: inherit;
      outline: none;
      transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    }
    .sociax-field:focus {
      border-color: rgba(var(--sociax-accent-rgb),.75);
      box-shadow: 0 0 0 4px rgba(var(--sociax-accent-rgb),.13);
      background: var(--surface);
    }
    html[data-theme="dark"] .sociax-field {
      background: #101315;
      border-color: #2a2e32;
    }
    .sociax-field-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }
    .sociax-primary-action,
    .sociax-secondary-action,
    .sociax-ghost-action {
      border: 0;
      border-radius: 999px;
      padding: 12px 16px;
      font-weight: 900;
      cursor: pointer;
      transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    }
    .sociax-primary-action {
      color: #fff;
      background: var(--sociax-accent-gradient);
      box-shadow: 0 12px 24px rgba(var(--sociax-accent-rgb),.22);
    }
    .sociax-primary-action.compact {
      padding: 10px 18px;
    }
    .sociax-secondary-action {
      color: var(--text);
      background: var(--bg-soft);
      border: 1px solid var(--line);
    }
    .sociax-ghost-action {
      color: var(--muted);
      background: transparent;
    }
    .sociax-primary-action:hover,
    .sociax-secondary-action:hover {
      transform: translateY(-1px);
    }
    .sociax-agenda-list-card {
      min-height: 360px;
    }
    .sociax-agenda-list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 10px;
      max-height: min(56vh, 560px);
      overflow-y: auto;
      padding-right: 4px;
    }
    .agenda-event-card.modern {
      display: grid;
      grid-template-columns: 58px 1fr auto;
      align-items: center;
      gap: 14px;
      border-radius: 18px;
      padding: 12px;
      background: var(--bg-soft);
      border: 1px solid var(--line);
      box-shadow: none;
    }
    html[data-theme="dark"] .agenda-event-card.modern {
      background: #101315;
      border-color: #2a2e32;
    }
    .agenda-date-tile {
      width: 52px;
      height: 52px;
      border-radius: 16px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: rgba(var(--sociax-accent-rgb),.14);
      color: #0f766e;
      text-transform: uppercase;
    }
    .agenda-date-tile strong {
      font-size: 1.05rem;
      line-height: 1;
    }
    .agenda-date-tile span {
      margin-top: 3px;
      font-size: .64rem;
      font-weight: 900;
    }
    .agenda-event-body {
      display: flex;
      flex-direction: column;
      min-width: 0;
      gap: 3px;
    }
    .agenda-event-body strong {
      color: var(--text);
      font-size: .92rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .agenda-event-body span {
      color: var(--muted);
      font-size: .78rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .agenda-event-body small {
      color: var(--sociax-accent);
      font-size: .72rem;
      font-weight: 900;
    }
    .btn-delete-event.modern {
      position: static;
      width: 34px;
      height: 34px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid rgba(231,29,54,.24);
      background: rgba(231,29,54,.08);
      color: #e71d36;
      font-size: 1.1rem;
    }
    .sociax-empty-state {
      border: 1px dashed var(--line);
      border-radius: 18px;
      padding: 26px;
      text-align: center;
      color: var(--muted);
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .sociax-empty-state strong {
      color: var(--text);
    }
    .sociax-panel-modal {
      width: min(720px, calc(100vw - 28px)) !important;
      max-width: 720px !important;
      border-radius: 24px !important;
      background: var(--surface) !important;
      color: var(--text) !important;
      border: 1px solid var(--line);
      box-shadow: 0 28px 80px rgba(0,0,0,.26) !important;
      overflow: hidden;
    }
    html[data-theme="dark"] .sociax-panel-modal {
      background: #151819 !important;
      border-color: #2a2e32;
    }
    .sociax-panel-header,
    .sociax-panel-footer {
      padding: 18px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      border-bottom: 1px solid var(--line);
    }
    .sociax-panel-footer {
      border-top: 1px solid var(--line);
      border-bottom: 0;
      background: var(--bg-soft);
      justify-content: flex-end;
    }
    html[data-theme="dark"] .sociax-panel-header,
    html[data-theme="dark"] .sociax-panel-footer {
      border-color: #2a2e32;
      background: #151819;
    }
    .sociax-panel-title-wrap {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }
    .sociax-panel-title {
      margin: 0;
      color: var(--text);
      font-size: 1.18rem;
      font-weight: 950;
    }
    .sociax-panel-title-wrap p {
      margin: 3px 0 0;
      color: var(--muted);
      font-size: .82rem;
    }
    .sociax-icon-button {
      width: 36px;
      height: 36px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: var(--bg-soft);
      color: var(--text);
      font-size: 1.2rem;
      cursor: pointer;
    }
    .sociax-panel-content {
      padding: 20px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      overflow-y: auto;
      max-height: 62vh;
    }
    .sociax-panel-section {
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 14px;
      background: var(--bg-soft);
      display: flex;
      flex-direction: column;
      gap: 9px;
    }
    .sociax-panel-section:nth-child(3),
    .sociax-panel-section:nth-child(4) {
      grid-column: 1 / -1;
    }
    html[data-theme="dark"] .sociax-panel-section {
      background: #101315;
      border-color: #2a2e32;
    }
    .sociax-section-head {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 12px;
    }
    .sociax-section-head span {
      color: var(--text);
      font-weight: 950;
      font-size: .9rem;
    }
    .sociax-section-head small {
      color: var(--muted);
      font-size: .72rem;
    }
    .sociax-clean-list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: grid;
      gap: 8px;
      max-height: 190px;
      overflow-y: auto;
    }
    .sociax-clean-list-item {
      border: 1px solid var(--line);
      border-radius: 15px;
      padding: 9px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      background: var(--surface);
    }
    html[data-theme="dark"] .sociax-clean-list-item {
      background: #151819;
      border-color: #2a2e32;
    }
    .sociax-member-summary {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }
    .sociax-member-summary strong,
    .sociax-member-summary span {
      display: block;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .sociax-member-summary strong {
      color: var(--text);
      font-size: .86rem;
      font-weight: 900;
    }
    .sociax-member-summary span {
      color: var(--muted);
      font-size: .72rem;
    }
    .sociax-member-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }
    .sociax-danger-link {
      border: 0;
      background: transparent;
      color: #e71d36;
      font-weight: 900;
      cursor: pointer;
      font-size: .78rem;
    }
    .sociax-inline-action {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 10px;
      align-items: center;
    }
    @media (max-width: 860px) {
      .sociax-page-hero,
      .sociax-agenda-grid,
      .sociax-field-row,
      .sociax-panel-content,
      .sociax-inline-action {
        grid-template-columns: 1fr;
      }
      .sociax-page-hero {
        align-items: flex-start;
        flex-direction: column;
      }
      .sociax-agenda-form {
        position: static;
      }
      .agenda-event-card.modern {
        grid-template-columns: 52px 1fr;
      }
      .btn-delete-event.modern {
        grid-column: 2;
        justify-self: start;
      }
    }


