:root {
    --adt-grad-start: #112b64;
    --adt-grad-end: #e91e63;
    --adt-accent: #e91e63;
    --adt-text-dark: #101828;
    --adt-text-muted: #99a1af;
    --adt-text-grey: #4a5565;
    --adt-verified: #00a63e;
    --adt-cta-line: #00a63e;
    --adt-cta-chat: #112b64;
    --adt-band-bg: #e8f0fe;
    --adt-card-border: rgba(123, 123, 233, 0.2);
}

/* ---------- Page wrapper ---------- */
.adt-page {
    background: #fff;
}

/* ---------- Banner ---------- */
.adt-banner {
    background: linear-gradient(to bottom, var(--adt-grad-start) 35%, var(--adt-grad-end) 100%);
    padding: 67px 16px 10px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.adt-banner__row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.adt-banner__avatar {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    border: 1.333px solid #fff;
    box-shadow: 0 10px 7.5px rgba(0, 0, 0, 0.10), 0 4px 3px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adt-banner__avatar img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

.adt-banner__info {
    flex: 1 1 auto;
    min-width: 0;
}

.adt-banner__name-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.adt-banner__name {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #fff;
    margin: 0;
}

.adt-banner__verified {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #fff;
    color: var(--adt-verified);
    font-size: 13px;
    line-height: 13px;
    padding: 3px 8px 3px 3px;
    border-radius: 14px;
}

.adt-banner__verified i {
    font-size: 11px;
}

.adt-banner__location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    line-height: 16px;
    color: #e6efff;
    margin: 2px 0 0;
}

.adt-banner__location i {
    font-size: 11px;
    color: #e6efff;
}

.adt-banner__joined {
    font-style: italic;
    font-weight: 200;
    font-size: 10px;
    color: #ffe6c7;
    margin: 2px 0 0;
}

/* ---------- Stats pill ---------- */
.adt-stats {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    padding: 10px;
    color: #fff;
    transition: all 0.3s ease;
}

.adt-stats__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 10px;
}

.adt-stats__cell:last-child {
    padding-right: 0;
}

.adt-stats__num {
    font-size: 20px;
    line-height: 20px;
    font-weight: 700;
    color: var(--adt-grad-start);
}

.adt-stats__lbl {
    font-size: 10px;
    line-height: 1.2;
    color: #ffffff;
    text-transform: uppercase;
    margin-top: 2px;
    padding-top: 10px;
}

.adt-stats__divider {
    width: 1px;
    height: 40px;
    background: var(--adt-card-border);
}

/* ---------- CTA band ---------- */
.adt-cta-band {
    background: var(--adt-band-bg);
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.adt-cta-row {
    display: flex;
    gap: 14px;
    width: 100%;
}

.adt-btn {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: filter 0.15s ease;
}

.adt-btn:hover,
.adt-btn:focus {
    color: #fff;
    text-decoration: none;
    filter: brightness(1.05);
}

.adt-btn--line {
    background: var(--adt-cta-line);
}

.adt-btn--chat {
    background: var(--adt-cta-chat);
}

/* When only one CTA is rendered (e.g. agency has no LINE handle),
   keep it at the same ~half-row width as the paired layout, left-aligned. */
.adt-cta-row .adt-btn:only-child {
    flex: 0 0 auto;
    width: calc(50% - 7px);
    margin: 0;
    margin-right: auto;
}

.adt-btn i {
    font-size: 18px;
}

/* ---------- About card ---------- */
.adt-about {
    position: relative;
    background: #fff;
    border: 1px solid var(--adt-card-border);
    border-radius: 12px;
    padding: 10px 36px 10px 11px;
    width: 100%;
}

.adt-about__toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.adt-about__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--adt-text-grey);
    margin: 0 0 2px;
}

.adt-about__desc {
    font-size: 12px;
    color: var(--adt-text-muted);
    margin: 0;
    line-height: 1.4;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adt-about__toggle:checked ~ .adt-about__desc {
    -webkit-line-clamp: unset;
    display: block;
    white-space: pre-wrap;
}

.adt-about--fits {
    padding-right: 11px;
}

.adt-about--fits .adt-about__desc {
    -webkit-line-clamp: unset;
    display: block;
    white-space: pre-wrap;
}

.adt-about--fits .adt-about__info {
    display: none;
}

.adt-about__info {
    position: absolute;
    top: 8px;
    right: 10px;
    color: var(--adt-text-muted);
    font-size: 16px;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    transition: transform 0.2s ease, color 0.15s ease;
}

.adt-about__info:hover {
    color: var(--adt-accent);
}

.adt-about__toggle:checked ~ .adt-about__info {
    transform: rotate(180deg);
    color: var(--adt-accent);
}

.adt-about__toggle:focus-visible ~ .adt-about__info {
    outline: 2px solid var(--adt-accent);
    outline-offset: 2px;
    border-radius: 50%;
}

/* ---------- Section title ---------- */
.adt-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin: 10px 0 0;
}

.adt-section-title::before {
    content: '';
    flex: 0 0 4px;
    width: 4px;
    height: 25px;
    background: var(--adt-accent);
    border-radius: 2px;
}

.adt-section-title__text {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    line-height: 28px;
}

.adt-section-title__text b {
    font-weight: 700;
}

/* ---------- Models block ---------- */
.adt-models {
    padding: 0 16px 10px;
}

/* ---------- Homework section ---------- */
.adt-homework {
    padding: 16px;
}

.adt-homework--empty {
    background: #fafafa;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    text-align: center;
}

.adt-homework__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--adt-text-dark);
    margin: 0 0 8px;
}

.adt-homework__placeholder {
    font-size: 13px;
    color: var(--adt-text-muted);
    margin: 0;
}

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
    /* Banner: full-bleed gradient, inner content centered */
    .adt-banner {
        padding: 80px 24px 18px;
    }

    .adt-banner > .adt-banner__row,
    .adt-banner > .adt-stats {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

    .adt-banner__name {
        font-size: 22px;
        line-height: 28px;
    }

    .adt-stats__num {
        font-size: 24px;
    }

    .adt-stats__lbl {
        font-size: 11px;
    }

    /* CTA band: full-bleed light-blue strip, inner content centered */
    .adt-cta-band {
        padding: 18px 24px;
        gap: 12px;
    }

    .adt-cta-band > .adt-cta-row,
    .adt-cta-band > .adt-about {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

    .adt-btn {
        height: 52px;
        font-size: 17px;
    }

    /* Body sections contained */
    .adt-section-title {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding: 20px 24px 8px;
    }

    .adt-section-title__text {
        font-size: 22px;
    }

    .adt-models {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 24px 24px;
    }

    .adt-homework {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding: 24px;
    }
}

@media (min-width: 1280px) {
    .adt-banner__name {
        font-size: 24px;
    }

    .adt-stats__num {
        font-size: 28px;
    }
}
