/* ── Call / Text Choice Modal (Figma node 7357:4087) ── */
.frc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.frc-modal-backdrop.is-visible {
    display: flex !important;
    animation: frcBackdropIn 0.2s ease;
}

@keyframes frcBackdropIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.frc-modal-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    animation: frcCardPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    margin: auto;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

@keyframes frcCardPop {
    from { transform: scale(0.93) translateY(12px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

/* Header row */
.frc-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.frc-modal-title {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #242424;
    line-height: 1.25;
    margin: 0;
    flex: 1;
    text-align: center;
}

.frc-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.frc-modal-close:hover {
    opacity: 1;
}

/* Subtitle */
.frc-modal-subtitle {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    color: #666;
    line-height: 1.4;
    text-align: center;
    margin: 0;
}

/* Option cards row */
.frc-modal-options {
    display: flex;
    gap: 24px;
    width: 100%;
}

.frc-option-card {
    flex: 1 0 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    min-width: 0;
    box-sizing: border-box;
}

.frc-option-icon-wrap {
    background: rgba(152, 26, 54, 0.10);
    border-radius: 16px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.frc-option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
    width: 100%;
}

.frc-option-title {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    line-height: 24px;
    display: block;
}

.frc-option-desc {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    color: #888;
    line-height: 1.25;
    display: block;
}

/* Action buttons — Figma: px-[17px] py-[11px], 16px bold, rounded-[8px], gap-[8px] */
.frc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 17px;
    border-radius: 8px;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    box-sizing: border-box;
    line-height: 1;
    flex-shrink: 0;
    margin-top: auto;
}

.frc-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.frc-btn-call {
    background: #981A36;
    border: 1px solid #981A36;
    color: #ffffff;
}

.frc-btn-call:hover {
    background: #7d1630;
    border-color: #7d1630;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(152, 26, 54, 0.35);
}

.frc-btn-text {
    background: #ffffff;
    border: 1px solid #981A36;
    color: #981A36;
}

.frc-btn-text:hover {
    background: rgba(152, 26, 54, 0.06);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(152, 26, 54, 0.15);
}

/* Privacy note */
.frc-modal-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.frc-modal-privacy span {
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

/* ── Responsive: stack to column on tablet & mobile ── */
@media (max-width: 640px) {
    .frc-modal-backdrop {
        padding: 14px;
    }

    .frc-modal-card {
        padding: 20px 16px;
        border-radius: 14px;
        gap: 14px;
        max-width: 100%;
    }

    .frc-modal-title {
        font-size: 17px;
        line-height: 1.3;
    }

    .frc-modal-subtitle {
        font-size: 13.5px;
        line-height: 1.4;
    }

    .frc-modal-options {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .frc-option-card {
        display: grid;
        grid-template-columns: 38px 1fr;
        grid-template-rows: auto auto;
        column-gap: 12px;
        row-gap: 14px;
        align-items: center;
        padding: 16px;
        border-radius: 12px;
        border: 1px solid #E5E7EB;
        background: #FAFAFA;
        width: 100%;
        box-sizing: border-box;
    }

    .frc-option-icon-wrap {
        grid-column: 1;
        grid-row: 1;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        align-self: start;
        margin-top: 2px;
        flex-shrink: 0;
    }

    .frc-option-text {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
        display: flex;
        flex-direction: column;
        gap: 3px;
        min-width: 0;
    }

    .frc-option-title {
        font-size: 15px;
        font-weight: 700;
        color: #1F2937;
        line-height: 1.3;
    }

    .frc-option-desc {
        font-size: 13px;
        color: #6B7280;
        line-height: 1.35;
    }

    .frc-btn {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        max-width: 100%;
        font-size: 14.5px;
        font-weight: 700;
        padding: 11px 16px;
        border-radius: 8px;
        margin-top: 0;
        box-sizing: border-box;
        text-align: center;
        justify-content: center;
    }

    .frc-modal-privacy {
        gap: 6px;
        padding-top: 2px;
    }

    .frc-modal-privacy span {
        white-space: normal;
        text-align: center;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .frc-modal-backdrop {
        padding: 10px 8px;
    }

    .frc-modal-card {
        padding: 16px 12px;
        gap: 12px;
    }

    .frc-modal-title {
        font-size: 15px;
    }

    .frc-modal-subtitle {
        font-size: 12.5px;
    }

    .frc-option-card {
        padding: 12px;
        column-gap: 10px;
        row-gap: 12px;
    }

    .frc-option-icon-wrap {
        width: 34px;
        height: 34px;
    }

    .frc-btn {
        font-size: 13px;
        padding: 10px 10px;
    }
}

/* ── Text via findeREC — SMS Modal Styles (Step 1 UI) ── */
.frc-sms-modal-card {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
    animation: frcCardPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    overflow: hidden;
}

/* Header */
.frc-sms-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px 24px;
    border-bottom: 1px solid #EDEDED;
    background: #ffffff;
}

.frc-sms-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.frc-sms-header-icon-wrap {
    background: rgba(152, 26, 54, 0.10);
    border-radius: 10px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.frc-sms-title {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #242424;
    margin: 0;
    line-height: 1.2;
}

.frc-sms-subtitle {
    font-family: 'Arial', sans-serif;
    font-size: 13px;
    color: #666;
    margin: 4px 0 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.frc-sms-recipient-highlight {
    font-weight: 700;
    color: #242424;
}

.frc-sms-recipient-badge {
    background: rgba(0, 168, 132, 0.12);
    color: #008769;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Scrollable Body */
.frc-sms-body {
    padding: 18px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: calc(90vh - 140px);
}

.frc-sms-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.frc-sms-section-header-message {
    margin-top: 4px;
}

.frc-sms-section-title {
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #981A36;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.frc-sms-section-hint {
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    color: #888;
}

.frc-sms-char-counter {
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #008236;
    transition: color 0.2s ease;
}

.frc-sms-char-counter.is-warning {
    color: #EA580C;
}

.frc-sms-char-counter.is-limit {
    color: #DC2626;
}

/* Template List */
.frc-templates-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 215px;
    overflow-y: auto;
    padding-right: 4px;
}

.frc-templates-list::-webkit-scrollbar {
    width: 5px;
}

.frc-templates-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.frc-template-item {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
}

.frc-template-item:hover {
    background: rgba(152, 26, 54, 0.03);
    border-color: #981A36;
    transform: translateY(-1px);
}

.frc-template-item.is-selected {
    background: rgba(152, 26, 54, 0.06);
    border: 1.5px solid #981A36;
    box-shadow: 0 2px 6px rgba(152, 26, 54, 0.08);
}

.frc-template-badge {
    background: rgba(152, 26, 54, 0.10);
    color: #981A36;
    font-family: 'Arial', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.frc-template-content {
    flex: 1;
    min-width: 0;
}

.frc-template-title {
    font-family: 'Arial', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #242424;
    line-height: 1.25;
}

.frc-template-preview {
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    color: #666;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.frc-template-check {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
    flex-shrink: 0;
}

.frc-template-item.is-selected .frc-template-check {
    opacity: 1;
}

/* Editor */
.frc-sms-editor-wrap {
    display: flex;
    flex-direction: column;
    border: 1.5px solid #D1D5DB;
    border-radius: 8px;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.frc-sms-editor-wrap:focus-within {
    border-color: #981A36;
    box-shadow: 0 0 0 3px rgba(152, 26, 54, 0.12);
}

.frc-sms-textarea {
    width: 100%;
    border: none;
    outline: none;
    padding: 12px 14px;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: #242424;
    resize: none;
    box-sizing: border-box;
    background: transparent;
}

.frc-sms-textarea::placeholder {
    color: #9CA3AF;
}

.frc-sms-editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #F9FAFB;
    border-top: 1px solid #E5E7EB;
}

.frc-sms-tool-btn {
    background: #ffffff;
    border: 1px solid #981A36;
    border-radius: 6px;
    color: #981A36;
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.frc-sms-tool-btn:hover {
    background: rgba(152, 26, 54, 0.08);
}

.frc-sms-tool-btn.is-active {
    background: #981A36;
    color: #ffffff;
    border-color: #981A36;
}

.frc-sms-tool-btn.is-active:hover {
    background: #7D152C;
    border-color: #7D152C;
}

.frc-sms-loc-remove-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    margin-left: 4px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    transition: background 0.15s ease, transform 0.15s ease;
}

.frc-sms-tool-btn.is-active:hover .frc-sms-loc-remove-icon {
    background: rgba(255, 255, 255, 0.45);
    transform: scale(1.12);
}

.frc-sms-limit-note {
    font-family: 'Arial', sans-serif;
    font-size: 11px;
    color: #888;
}

/* Privacy note */
.frc-sms-privacy-banner {
    background: rgba(152, 26, 54, 0.05);
    border: 1px solid rgba(152, 26, 54, 0.15);
    border-radius: 8px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    color: #4B5563;
    line-height: 1.35;
}

.frc-sms-privacy-banner strong {
    color: #981A36;
}

/* Status Banner */
.frc-sms-status-banner {
    padding: 10px 14px;
    border-radius: 8px;
    font-family: 'Arial', sans-serif;
    font-size: 13px;
    line-height: 1.4;
    display: none;
    animation: noticePop 0.2s ease;
}

.frc-sms-status-banner.is-success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
    display: block;
}

.frc-sms-status-banner.is-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
    display: block;
}

/* Footer Actions */
.frc-sms-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #EDEDED;
    background: #ffffff;
}

.frc-sms-btn-cancel {
    background: #F3F4F6;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #4B5563;
    cursor: pointer;
    transition: background 0.15s;
}

.frc-sms-btn-cancel:hover {
    background: #E5E7EB;
    color: #1F2937;
}

.frc-sms-btn-send {
    background: #981A36;
    border: 1px solid #981A36;
    border-radius: 8px;
    padding: 10px 20px;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.18s ease;
    box-shadow: 0 2px 6px rgba(152, 26, 54, 0.25);
}

.frc-sms-btn-send:hover {
    background: #7d1630;
    border-color: #7d1630;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(152, 26, 54, 0.35);
}

.frc-sms-btn-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.frc-sms-spinner {
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: frcSmsSpin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes frcSmsSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .frc-sms-modal-card {
        max-width: 100%;
        border-radius: 12px;
        margin: auto;
        max-height: 94vh;
    }

    .frc-sms-header {
        padding: 14px 16px;
    }

    .frc-sms-header-left {
        min-width: 0;
        flex: 1;
        gap: 10px;
    }

    .frc-sms-title {
        font-size: 16px;
    }

    .frc-sms-subtitle {
        font-size: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .frc-sms-body {
        padding: 14px 16px;
        gap: 12px;
    }

    .frc-templates-list {
        max-height: 170px;
    }

    .frc-template-item {
        padding: 8px 10px;
        gap: 8px;
        min-width: 0;
    }

    .frc-template-content {
        min-width: 0;
        flex: 1;
    }

    .frc-template-badge {
        font-size: 10px;
        padding: 2px 6px;
        flex-shrink: 0;
    }

    .frc-sms-footer {
        padding: 12px 16px;
        gap: 8px;
    }

    .frc-sms-btn-cancel {
        padding: 10px 14px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .frc-sms-btn-send {
        flex: 1;
        justify-content: center;
        font-size: 13px;
        padding: 10px 14px;
        white-space: nowrap;
    }
}

@media (max-width: 380px) {
    .frc-sms-footer {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .frc-sms-btn-cancel,
    .frc-sms-btn-send {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* Clean CSS Token Classes (Zero Inline Styles) */
.webrtc-text-white {
    color: #ffffff !important;
}

.webrtc-text-light {
    font-size: 0.88rem;
    line-height: 1.45;
    color: #e2e8f0 !important;
}

.webrtc-text-green {
    color: #00a884 !important;
}

.webrtc-icon-amber {
    color: #f59e0b !important;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.webrtc-icon-red {
    color: #ef4444 !important;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.webrtc-progress-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
}

.webrtc-progress-fill {
    width: 0%;
    background-color: #00a884;
}

/* Universal Glassmorphic Notification Toast */
.webrtc-notice-toast-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.webrtc-notice-toast-backdrop.is-visible {
    display: flex !important;
}

.webrtc-notice-toast-card {
    background: #111b21;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 24px;
    max-width: 480px;
    width: 100%;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
    animation: noticePop 0.3s ease;
}

@keyframes noticePop {
    from { transform: scale(0.9) translateY(-10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.webrtc-notice-icon {
    padding-top: 2px;
    flex-shrink: 0;
}

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

.webrtc-btn-action {
    background-color: #00a884;
    color: #ffffff;
    font-weight: 700;
    border: none;
    border-radius: 20px;
    padding: 9px 22px;
    font-size: 0.88rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 168, 132, 0.4);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.webrtc-btn-action:hover {
    background-color: #008f70;
    color: #ffffff;
    transform: translateY(-1px);
}

.webrtc-btn-fallback {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-decoration: none;
    display: none;
    align-items: center;
    justify-content: center;
}

.webrtc-btn-fallback.is-visible {
    display: inline-flex !important;
}

.webrtc-btn-fallback:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* WhatsApp Web Style Floating Call Dock */
.webrtc-call-card-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999999;
    width: 340px;
    max-width: 90vw;
    display: none;
    animation: dockSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.webrtc-call-card-container.is-visible {
    display: block !important;
}

@keyframes dockSlideIn {
    from { transform: translate(-50%, 80px) scale(0.95); opacity: 0; }
    to { transform: translate(-50%, 0) scale(1); opacity: 1; }
}

.webrtc-call-card {
    background: #111b21;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 18px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.webrtc-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 168, 132, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #00a884;
    flex-shrink: 0;
}

.webrtc-contact-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
}

.webrtc-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.pulse-connecting {
    background-color: #f59e0b;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    animation: pulseYellow 1.5s infinite;
}

.pulse-ringing {
    background-color: #3b82f6;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    animation: pulseBlue 1.5s infinite;
}

.pulse-active {
    background-color: #00a884;
    box-shadow: 0 0 0 0 rgba(0, 168, 132, 0.7);
    animation: pulseGreen 1.5s infinite;
}

@keyframes pulseYellow {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

@keyframes pulseBlue {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(0, 168, 132, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(0, 168, 132, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 168, 132, 0); }
}

.webrtc-status-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #00a884;
}

.webrtc-call-timer {
    font-size: 0.9rem;
    font-family: monospace;
    color: #ffffff;
}

.btn-webrtc-ctrl {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.btn-mute {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.btn-mute:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.btn-mute.is-muted {
    background: #ef4444;
    color: #ffffff;
}

.btn-disabled {
    background: rgba(255, 255, 255, 0.05);
    color: #64748b;
    cursor: not-allowed;
}

.btn-end-call {
    background: #ea4335;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(234, 67, 53, 0.4);
}

.btn-end-call:hover {
    background: #dc2626;
    color: #ffffff;
    transform: scale(1.05);
}

/* Mobile & Tablet Responsive Adaptations (Full Screen WhatsApp Style) */
@media (max-width: 768px) {
    .webrtc-call-card-container {
        bottom: 0;
        left: 0;
        top: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        max-width: none;
        transform: none !important;
        animation: fullScreenFadeIn 0.3s ease;
        background: rgba(17, 27, 33, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 0;
    }
    
    .webrtc-call-card-container.is-visible {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    @keyframes fullScreenFadeIn {
        from { opacity: 0; transform: scale(0.95); }
        to { opacity: 1; transform: scale(1); }
    }

    .webrtc-call-card {
        background: transparent;
        border: none;
        box-shadow: none;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        padding: 60px 20px 40px 20px;
    }

    .webrtc-call-card > .d-flex.align-items-center.mb-3 {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center;
        margin-bottom: 0 !important;
        width: 100%;
        flex-grow: 1;
    }

    .webrtc-avatar {
        width: 130px;
        height: 130px;
        font-size: 3.5rem;
        margin: 0 0 24px 0 !important; /* Force override of any Bootstrap margins like me-3 */
        box-shadow: 0 10px 30px rgba(0, 168, 132, 0.3);
    }

    .webrtc-contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow: visible;
        width: 100%;
    }

    .webrtc-contact-name {
        font-size: 1.6rem;
        margin-bottom: 12px !important;
        white-space: normal;
        text-align: center;
        width: 100%;
    }

    .webrtc-contact-info .d-flex {
        justify-content: center !important;
        align-items: center !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin-top: 0 !important;
        width: 100%;
    }

    .webrtc-call-timer {
        font-size: 1.2rem;
        margin-left: 0 !important;
        margin-top: 12px;
    }
    
    .webrtc-progress-track {
        display: none; /* Hide thin progress bar on mobile, rely on timer text */
    }

    .webrtc-controls {
        width: 100%;
        background: rgba(255, 255, 255, 0.05);
        padding: 30px 10px;
        border-radius: 40px 40px 0 0;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 25px !important;
    }

    .btn-webrtc-ctrl {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }
    
    .webrtc-notice-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
