/* Learnify custom styles — complements Tailwind CDN */

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#sidebar.open {
    transform: translateX(0);
}

#sidebar-overlay.open {
    display: block;
}

input:focus,
button:focus,
a:focus {
    outline: none;
}

@media (max-width: 1023px) {
    #sidebar {
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
    }
}

/* SaaS dashboard sidebar — grouped navigation */
.saas-sidebar-nav {
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.saas-sidebar-group {
    margin-bottom: 0.35rem;
}

.saas-sidebar-group-label {
    list-style: none;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem 0.75rem 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.saas-sidebar-group-label::-webkit-details-marker {
    display: none;
}

.saas-sidebar-group-label::after {
    content: "▾";
    float: right;
    font-size: 0.65rem;
    opacity: 0.7;
    transition: transform 0.15s ease;
}

.saas-sidebar-group:not([open]) .saas-sidebar-group-label::after {
    transform: rotate(-90deg);
}

.saas-sidebar-group[open] > .saas-sidebar-group-label,
.saas-sidebar-group:has(.saas-sidebar-link--active) > .saas-sidebar-group-label {
    color: rgba(255, 255, 255, 0.85);
}

.saas-sidebar-group-items {
    list-style: none;
    margin: 0;
    padding: 0 0 0.25rem;
}

.saas-sidebar-group-items--flat {
    padding-bottom: 0.5rem;
}

.saas-sidebar-link {
    color: rgba(255, 255, 255, 0.82);
}

.saas-sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.saas-sidebar-link--active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.25);
}

/* Admin + help pages — MDM portal UI (scoped above Tailwind preflight) */
main.saas-main .card,
.teacher-help-page .card {
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    padding: 1rem;
}

@media (min-width: 768px) {
    main.saas-main .card,
    .teacher-help-page .card {
        padding: 1.5rem;
    }
}

main.saas-main .input-field,
.teacher-help-page .input-field {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    background: #fff;
    color: #0f172a;
}

main.saas-main input[type="file"].input-field {
    padding: 0.5rem;
    font-size: 0.875rem;
}

main.saas-main .input-field:focus,
.teacher-help-page .input-field:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

main.saas-main .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

main.saas-main .table-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

main.saas-main .table-actions.justify-end {
    justify-content: flex-end;
}

main.saas-main .table-action-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

main.saas-main .table-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    background: transparent;
    color: #475569;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

main.saas-main .table-action-btn:hover {
    background: #f1f5f9;
}

main.saas-main .table-action-btn--delete { color: #dc2626; }
main.saas-main .table-action-btn--delete:hover { background: #fef2f2; border-color: #fecaca; }
main.saas-main .table-action-btn--edit { color: #4f46e5; }
main.saas-main .table-action-btn--edit:hover { background: #eef2ff; border-color: #c7d2fe; }
main.saas-main .table-action-btn--hide,
main.saas-main .table-action-btn--show,
main.saas-main .table-action-btn--deactivate { color: #b45309; }
main.saas-main .table-action-btn--hide:hover,
main.saas-main .table-action-btn--show:hover,
main.saas-main .table-action-btn--deactivate:hover { background: #fffbeb; border-color: #fde68a; }
main.saas-main .table-action-btn--activate { color: #15803d; }
main.saas-main .table-action-btn--activate:hover { background: #f0fdf4; border-color: #bbf7d0; }
main.saas-main .table-action-btn--copy { color: #0369a1; }
main.saas-main .table-action-btn--copy:hover { background: #e0f2fe; border-color: #7dd3fc; }
main.saas-main .table-action-btn--copied {
    background: #dcfce7 !important;
    border-color: #86efac !important;
    color: #15803d !important;
}

main.saas-main .copy-login-wrap {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}

main.saas-main .copy-login-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    z-index: 30;
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
    pointer-events: none;
    padding: 0.35rem 0.65rem;
    border-radius: 0.5rem;
    background: #15803d;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.35);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

main.saas-main .copy-login-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #15803d;
}

main.saas-main .copy-login-wrap.is-copied .copy-login-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

main.saas-main .copy-login-wrap.is-copied .table-action-btn--copy {
    background: #dcfce7 !important;
    border-color: #86efac !important;
    color: #15803d !important;
}

.copy-login-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    z-index: 99999;
    transform: translateX(-50%) translateY(12px);
    opacity: 0;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.1rem;
    border-radius: 0.75rem;
    background: #15803d;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(21, 128, 61, 0.35);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.copy-login-toast::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
}

.copy-login-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

main.saas-main .status-badge,
.teacher-help-page .status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

main.saas-main .status-badge--active,
main.saas-main .status-badge--enabled,
.teacher-help-page .status-badge--enabled {
    background: #dcfce7;
    color: #15803d;
}

main.saas-main .status-badge--inactive,
main.saas-main .status-badge--hidden,
main.saas-main .status-badge--disabled,
.teacher-help-page .status-badge--hidden {
    background: #f1f5f9;
    color: #64748b;
}

/* Teacher dashboard promotion banners — MDM portal styles */
.teacher-promo-banner {
    margin-bottom: 1.5rem;
}

.teacher-promo-banner:not(.teacher-promo-carousel) {
    display: grid;
    gap: 1rem;
}

.teacher-promo-carousel {
    position: relative;
}

.teacher-promo-carousel-shell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.teacher-promo-carousel-viewport {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    border-radius: 1rem;
}

.teacher-promo-carousel-track {
    position: relative;
    width: 100%;
}

.teacher-promo-carousel .teacher-promo-card.teacher-promo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.teacher-promo-carousel .teacher-promo-card.teacher-promo-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.teacher-promo-carousel .teacher-promo-card.teacher-promo-slide.is-measuring {
    position: static;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 0;
}

.teacher-promo-carousel-dot.is-active {
    width: 1.35rem;
    background: var(--promo-dot-active, #059669);
}

.teacher-promo-carousel-btn {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.teacher-promo-carousel-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: scale(1.04);
}

.teacher-promo-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.teacher-promo-carousel-dot {
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
}

.teacher-promo-card {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    color: #e2e8f0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.teacher-promo-card--ocean {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 52%, #0c4a6e 100%);
    border: 1px solid rgba(125, 211, 252, 0.18);
}

.teacher-promo-card--ocean .teacher-promo-badge {
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(125, 211, 252, 0.35);
    color: #bae6fd;
}

.teacher-promo-card--forest {
    background: linear-gradient(135deg, #052e16 0%, #065f46 52%, #047857 100%);
    border: 1px solid rgba(110, 231, 183, 0.22);
}

.teacher-promo-card--forest .teacher-promo-badge {
    background: rgba(52, 211, 153, 0.18);
    border-color: rgba(110, 231, 183, 0.35);
    color: #a7f3d0;
}

.teacher-promo-card--violet {
    background: linear-gradient(135deg, #2e1065 0%, #5b21b6 52%, #6d28d9 100%);
    border: 1px solid rgba(196, 181, 253, 0.22);
}

.teacher-promo-card--violet .teacher-promo-badge {
    background: rgba(167, 139, 250, 0.2);
    border-color: rgba(196, 181, 253, 0.35);
    color: #ddd6fe;
}

.teacher-promo-card--sunset {
    background: linear-gradient(135deg, #7c2d12 0%, #c2410c 52%, #ea580c 100%);
    border: 1px solid rgba(253, 186, 116, 0.22);
}

.teacher-promo-card--sunset .teacher-promo-badge {
    background: rgba(251, 146, 60, 0.2);
    border-color: rgba(253, 186, 116, 0.35);
    color: #fed7aa;
}

.teacher-promo-card--amber {
    background: linear-gradient(135deg, #78350f 0%, #b45309 52%, #d97706 100%);
    border: 1px solid rgba(252, 211, 77, 0.22);
}

.teacher-promo-card--amber .teacher-promo-badge {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(252, 211, 77, 0.35);
    color: #fde68a;
}

.teacher-promo-card--rose {
    background: linear-gradient(135deg, #881337 0%, #be123c 52%, #e11d48 100%);
    border: 1px solid rgba(253, 164, 175, 0.22);
}

.teacher-promo-card--rose .teacher-promo-badge {
    background: rgba(244, 63, 94, 0.2);
    border-color: rgba(253, 164, 175, 0.35);
    color: #fecdd3;
}

.teacher-promo-card-body {
    min-width: 0;
    flex: 1;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 100%;
}

.teacher-promo-badge {
    display: inline-block;
    width: auto;
    margin-bottom: 0.5rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.teacher-promo-title {
    margin: 0 0 0.45rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.teacher-promo-desc {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #cbd5e1;
    max-width: 38rem;
}

.teacher-promo-cta {
    display: inline-flex;
    width: auto;
    align-self: flex-start;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.teacher-promo-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.teacher-promo-visual {
    flex-shrink: 0;
    align-self: center;
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.teacher-promo-image {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

@media (max-width: 639px) {
    .teacher-promo-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .teacher-promo-visual {
        align-self: flex-end;
    }

    .teacher-promo-carousel-shell {
        gap: 0.5rem;
    }

    .teacher-promo-carousel-btn {
        width: 2rem;
        height: 2rem;
        font-size: 1.1rem;
    }
}

/* Teacher Help page — MDM portal layout */
.teacher-help-page {
    display: block;
}

.teacher-help-layout {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .teacher-help-layout {
        grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
    }
}

.teacher-help-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.teacher-help-sidebar {
    min-width: 0;
}

@media (min-width: 1024px) {
    .teacher-help-contact {
        position: sticky;
        top: 5rem;
    }
}

.teacher-help-tutorial {
    display: grid;
    gap: 1rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .teacher-help-tutorial {
        grid-template-columns: minmax(11rem, 16rem) minmax(0, 1fr);
        align-items: start;
    }
}

.teacher-help-tutorial-body {
    min-width: 0;
}

.teacher-help-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0.625rem;
    overflow: hidden;
    background: #0f172a;
}

.teacher-help-video-iframe,
.teacher-help-video-player {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.teacher-help-video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 55%, #064e3b 100%);
    color: #ecfdf5;
    text-align: center;
    padding: 1rem;
}

.teacher-help-video-play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #fff;
}

.teacher-help-video-play svg {
    width: 1.35rem;
    height: 1.35rem;
    margin-left: 0.15rem;
}

.teacher-help-video-soon {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #a7f3d0;
}

.teacher-help-contact {
    border: 1px solid #bbf7d0;
    background: linear-gradient(180deg, #ecfdf5 0%, #fff 40%);
    box-shadow: 0 10px 25px -12px rgba(5, 150, 105, 0.35);
}

.teacher-help-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    background: #059669;
    color: #fff;
    margin-bottom: 0.75rem;
}

.teacher-help-contact-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.teacher-help-contact-title {
    margin: 0 0 0.25rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
}

.teacher-help-contact-lead {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.45;
}

.teacher-help-contact-list {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.teacher-help-contact-row dt {
    margin: 0 0 0.15rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}

.teacher-help-contact-row dd {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.4;
    word-break: break-word;
}

.teacher-help-contact-row a {
    color: #047857;
    text-decoration: none;
}

.teacher-help-contact-row a:hover {
    text-decoration: underline;
}

.teacher-help-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1rem;
    padding: 0.7rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: #25d366;
    text-decoration: none;
    box-shadow: 0 4px 14px -4px rgba(37, 211, 102, 0.55);
    transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.teacher-help-whatsapp-btn:hover {
    background: #20bd5a;
    box-shadow: 0 6px 18px -4px rgba(37, 211, 102, 0.65);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.teacher-help-whatsapp-btn__icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.teacher-help-intro-title {
    margin: 0 0 0.35rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
}

.teacher-help-intro-text {
    margin: 0;
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.55;
}

.teacher-help-section-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.teacher-help-tutorial-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.teacher-help-tutorial-summary {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

.teacher-help-steps {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.6;
}

.teacher-help-steps li + li {
    margin-top: 0.35rem;
}

.teacher-help-faq-item {
    padding: 0;
}

.teacher-help-faq-question {
    padding: 1rem 1.1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    list-style: none;
}

.teacher-help-faq-question::-webkit-details-marker {
    display: none;
}

.teacher-help-faq-question::after {
    content: '+';
    float: right;
    font-weight: 400;
    color: #64748b;
}

.teacher-help-faq-item[open] .teacher-help-faq-question::after {
    content: '−';
}

.teacher-help-faq-answer {
    margin: 0;
    padding: 0.75rem 1.1rem 1rem;
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
    border-top: 1px solid #f1f5f9;
}

/* Coordinator share editor — WhatsApp preview (matches MDM portal) */
.coord-share-editor {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .coord-share-editor {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.coord-share-editor__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.coord-share-editor__preview-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin: 0 0 0.75rem;
}

.wa-share-preview {
    background: linear-gradient(180deg, #e5ddd5 0%, #d9d0c7 100%);
    border-radius: 1rem;
    padding: 0.75rem;
    min-height: 280px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.wa-share-preview__header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.65rem 0.75rem;
    margin: -0.25rem -0.25rem 0.5rem;
    background: #075e54;
    border-radius: 0.65rem 0.65rem 0 0;
    color: #fff;
}

.wa-share-preview__avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wa-share-preview__title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

.wa-share-preview__subtitle {
    margin: 0.1rem 0 0;
    font-size: 0.7rem;
    opacity: 0.85;
}

.wa-share-preview__chat {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 0.25rem 0.25rem;
}

.wa-share-bubble {
    position: relative;
    max-width: 100%;
    background: #dcf8c6;
    border-radius: 0.5rem 0.5rem 0 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.wa-share-bubble::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: 0;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-left-color: #dcf8c6;
    border-bottom: 0;
}

.wa-share-bubble__img-wrap {
    line-height: 0;
}

.wa-share-bubble__img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
}

.wa-share-bubble__text {
    margin: 0;
    padding: 0.5rem 0.65rem 0.25rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #111827;
    white-space: pre-wrap;
    word-break: break-word;
}

.wa-share-bubble__meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    padding: 0 0.5rem 0.35rem;
    font-size: 0.65rem;
    color: #667781;
}

.wa-share-bubble__ticks {
    color: #53bdeb;
    font-size: 0.7rem;
    letter-spacing: -0.12em;
}

/* Admin payments — manual activation row + pending highlight */
.admin-manual-activate-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
}

.admin-manual-activate-field {
    flex: 1 1 8rem;
    min-width: 0;
}

.admin-manual-activate-field--customer {
    flex: 2 1 12rem;
}

.admin-manual-activate-field--plan {
    flex: 2 1 12rem;
}

.admin-manual-activate-field--amount {
    flex: 0 1 7rem;
    min-width: 6rem;
}

.admin-manual-activate-field--notes {
    flex: 1.5 1 10rem;
}

.admin-manual-activate-field--submit {
    flex: 0 0 auto;
    min-width: 6.5rem;
}

.payment-row--pending {
    background: linear-gradient(90deg, #fffbeb 0%, #fff7ed 100%);
}

.payment-row--pending:hover {
    background: linear-gradient(90deg, #fef3c7 0%, #ffedd5 100%);
}

.payment-id-cell {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.payment-id-cell__text {
    flex: 1 1 auto;
}

.payment-id-copy {
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    padding: 0.25rem 0.375rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.payment-id-copy:hover {
    color: #334155;
    border-color: #cbd5e1;
    background: #f8fafc;
}

.payment-id-copy--done {
    color: #047857;
    border-color: #6ee7b7;
    background: #ecfdf5;
}

.payment-id-copy__icon {
    width: 0.875rem;
    height: 0.875rem;
}

.payment-id-copy__label {
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 0.625rem;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.01em;
}
