
agent-cards {
    display: block;
    width: 100%;
    font-family: 'Inter', 'Helvetica', 'Arial', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.01) 100%);
    --card-border-style: dashed;
    --card-border-color: rgba(255, 255, 255, 0.3);
    --card-text-color: rgba(255, 255, 255, 0.92);
    --card-label-color: rgba(255, 255, 255, 0.644);
}

agent-cards * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.agent-cards-wrap {
    width: calc(100% + 32px);
    margin: 0 -16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    -webkit-mask-image: linear-gradient(to right, transparent 0px, black 16px, black calc(100% - 16px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0px, black 16px, black calc(100% - 16px), transparent 100%);
}

swiper-container {
    width: 100%;
    --swiper-pagination-color: #fff;
    --swiper-pagination-bullet-inactive-color: rgba(255, 255, 255, 0.4);
    --swiper-pagination-bullet-inactive-opacity: 1;
    --swiper-pagination-bullet-size: 4px;
    --swiper-pagination-bullet-horizontal-gap: 2.5px;
}

swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 20px;
    height: 64px;
    margin-bottom: 24px;
}

.agent-card {
    width: 100%;
    height: 100%;
    border: 1px var(--card-border-style) var(--card-border-color);
    border-radius: 20px;
    padding: 8px 18px;
    background: var(--card-bg);
    backdrop-filter: blur(4px);
    font-size: 16px;
    line-height: 150%;
    letter-spacing: -0.02em;
    font-weight: 500;
    color: var(--card-text-color);
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The card text is a <p>, so without explicit color/weight it inherits the
   global `p` rule (font-weight:300, --text-secondary/#585858) and reads thin
   and gray. Pin it to the card's own (dark) text color at weight 500. */
.agent-card p {
    margin: 0;
    color: var(--card-text-color);
    font-weight: 500;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}

.agent-card__label {
    font-size: 16px;
    line-height: 150%;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--card-label-color);
    opacity: 1;
}





  agent-module {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    background: transparent;
    color: white;
    font-family: 'Inter', 'Helvetica', 'Arial', sans-serif;
    padding: 32px 24px 24px;
    box-sizing: border-box;
    overflow: hidden;
    --agent-accent-color: #5600C7;
    --agent-main-btn-bg: #000;
    --agent-main-btn-icon-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

agent-module * {
    font-family: 'Inter', 'Helvetica', 'Arial', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

agent-options {
    display: block;
    width: 100%;
    transition: opacity 0.3s ease;
}

/* ── Icon Button ── */

.agent-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 47px;
}

.agent-icon-ring {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 1);
    width: 92px;
    height: 92px;
    opacity: 0.30;
    box-shadow: none;
    border: none;
}

.agent-icon-btn {
    position: relative;
    z-index: 1;
    width: 94px;
    height: 94px;
    border-radius: 50%;
    background: var(--agent-main-btn-bg);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: transform 0.2s ease;
    color: var(--agent-main-btn-icon-color);
}

.agent-icon-btn:hover {
    transform: scale(1.06);
}

.agent-icon-btn svg {
    width: 37px;
    height: 37px;
}

/* ── Call Action Buttons (Mute / Hang Up) ── */
.agent-call-btn {
    position: absolute;
    z-index: 2;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: none;
    /* Center in container */
    top: 50%;
    left: 50%;
    margin-top: -46px; /* half of 92px height */
    margin-left: -46px; /* half of 92px width */
}

.agent-call-btn img,
.agent-call-btn svg {
    width: 48px;
    height: 48px;
}

.agent-call-btn--mute {
    background: transparent;
    color: white;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.agent-call-btn--mute.active {
    background: rgba(0, 0, 0, 0.08);
    color: white;
}

.agent-call-btn--hangup {
    background: var(--agent-main-btn-bg);
    color: var(--agent-main-btn-icon-color);
}

.agent-call-actions-pill {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    gap: 8px;
    padding: 6px;
    border-radius: 50px;
    background: transparent;
    box-sizing: border-box;
    z-index: 10;
}

.agent-call-actions-pill .agent-call-btn {
    position: relative;
    top: auto;
    left: auto;
    margin: 0;
    transform: none !important;
    display: flex;
    z-index: 2;
}

.agent-call-pill-bg {
    position: absolute;
    inset: 0;
    border-radius: 50px;
    /* Default to the active option's accent (coral on outbound, purple on
       inbound) so the pill always matches the demo theme. Previously hardcoded
       to a purple gradient, which left the orange outbound demo looking off.
       A page can still override via `pillBackground` (--agent-pill-bg). */
    background: var(--agent-pill-bg, var(--agent-accent-color, #5600C7));
    z-index: 1;
    pointer-events: none;
}

.agent-pill-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 1);
    opacity: 0;
    pointer-events: none;
}

/* Ring 1: same size as the pill container */
.agent-pill-ring--1 {
    width: 100%;
    height: 100%;
    opacity: 0.15;
}

/* Ring 2: 5px larger on each side */
.agent-pill-ring--2 {
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    opacity: 0.10;
}

/* Ring 3: 10px larger on each side */
.agent-pill-ring--3 {
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    opacity: 0.05;
}

/* ── Text ── */
.agent-title {
    width: 100%;
    font-size: 24px;
    font-weight: 400;
    text-align: center;
    margin: 0 0 10px;
    line-height: 120%;
    letter-spacing: -0.025em;
}

.agent-text {
    width: 100%;
    font-size: 16px;
    text-align: center;
    opacity: 0.85;
    margin: 0 0 29px; /* Increased by 15px as requested */
    line-height: 150%;
    letter-spacing: -0.02em;
    font-weight: 400;
}

/* ── Bottom Actions (Toggle Pill) ── */
agent-options[disabled] {
    opacity: 0.5;
    pointer-events: none;
}

.agent-actions {
    margin-top: 25px;
    width: 100%;
}

.agent-actions-pill {
    position: relative;
    display: flex;
    width: 100%;
    height: 54px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 100%);
    border: none;
    border-radius: 50px;
    padding: 4px;
    box-sizing: border-box;
}

.agent-actions-pill::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 1px; /* border thickness */
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.5) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.5) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}



.agent-pill-bg {
    position: absolute;
    top: 4px;
    left: 4px;
    bottom: 4px;
    background: #fff;
    border-radius: 50px;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 0;
}

.agent-action-btn {
    flex: 1;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    background: transparent;
    border: none;
    font-family: inherit;
    color: #fff;
    transition: color 0.3s ease;
    padding: 0;
    line-height: 150%;
    letter-spacing: -0.02em;
}

.agent-action-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: currentColor;
    transition: stroke 0.3s ease;
}

/* Active state colors: Purple on white bg */
.agent-action-btn.active {
    color: var(--agent-accent-color);
}

.agent-action-btn:hover {
    opacity: 1; /* override previous hover opacity */
}

.agent-error-message {
    color: #ff6b6b;
    text-align: center;
    padding: 20px;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

@keyframes agent-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.agent-icon-btn.loading svg {
    width: 54px;
    height: 54px;
    animation: agent-spin 1.5s linear infinite;
}

@media screen and (max-width: 768px) {
    .agent-action-btn {
        font-size: 14px;
    }
}



