.rcad-user-widget {
    --rcad-uw-yellow: #f6a800;
    --rcad-uw-yellow-dark: #d88f00;
    --rcad-uw-blue: #071b46;
    --rcad-uw-blue-2: #113778;
    --rcad-uw-text: #162033;
    --rcad-uw-muted: #667085;
    --rcad-uw-line: #e6eaf0;
    --rcad-uw-green: #16a34a;
    --rcad-uw-green-soft: #eaf8ef;
    width: min(100%, 330px);
    margin: 18px auto;
    overflow: hidden;
    border: 1px solid var(--rcad-uw-line);
    border-radius: 22px;
    background: #fff;
    color: var(--rcad-uw-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rcad-user-widget,
.rcad-user-widget * {
    box-sizing: border-box;
}

.rcad-uw-header {
    padding: 18px;
    background: linear-gradient(135deg, var(--rcad-uw-blue), var(--rcad-uw-blue-2));
    color: #fff;
}

.rcad-uw-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rcad-uw-user {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.rcad-uw-avatar {
    width: 46px;
    height: 46px;
    padding: 2px;
    border-radius: 50%;
    background: var(--rcad-uw-yellow);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
}

.rcad-uw-avatar img {
    width: 100%;
    height: 100%;
    border: 2px solid #fff;
    border-radius: 50%;
    display: block;
    object-fit: cover;
}

.rcad-uw-avatar svg {
    width: 23px;
    height: 23px;
    stroke: var(--rcad-uw-blue);
}

.rcad-uw-welcome,
.rcad-uw-name,
.rcad-uw-status {
    display: block;
}

.rcad-uw-welcome {
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    line-height: 1.15;
}

.rcad-uw-name {
    max-width: 150px;
    overflow: hidden;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rcad-uw-status {
    position: relative;
    margin-top: 5px;
    padding-left: 12px;
    color: rgba(255, 255, 255, .82);
    font-size: 11px;
    line-height: 1.2;
}

.rcad-uw-status::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    transform: translateY(-50%);
}

.rcad-uw-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 13px;
    background: rgba(255, 255, 255, .13);
    color: #fff;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.rcad-uw-icon-btn svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
}

.rcad-uw-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--rcad-uw-yellow);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}

.rcad-uw-body {
    padding: 16px 18px 18px;
}

.rcad-uw-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 15px;
}

.rcad-uw-stats.has-forum {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rcad-uw-stat {
    min-width: 0;
    padding: 10px 8px;
    border: 1px solid var(--rcad-uw-line);
    border-radius: 15px;
    background: #fff;
    color: var(--rcad-uw-text);
    text-align: center;
    text-decoration: none;
}

.rcad-uw-stat:hover,
.rcad-uw-stat:focus-visible {
    background: #fff8e8;
}

.rcad-uw-stat-number,
.rcad-uw-stat-label {
    display: block;
}

.rcad-uw-stat-number {
    color: var(--rcad-uw-blue);
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
}

.rcad-uw-stat-label {
    margin-top: 5px;
    color: var(--rcad-uw-muted);
    font-size: 10.5px;
    line-height: 1.2;
}

.rcad-uw-storage {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: -3px 0 14px;
    color: var(--rcad-uw-muted);
    font-size: 11px;
    line-height: 1.2;
}

.rcad-uw-storage > span {
    font-weight: 800;
}

.rcad-uw-storage a {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #fff8e8;
    color: var(--rcad-uw-blue);
    font-weight: 800;
    text-decoration: none;
}

.rcad-uw-storage a:hover,
.rcad-uw-storage a:focus-visible {
    background: #fff1c7;
}

.rcad-uw-main-btn {
    width: 100%;
    margin: 0 0 15px;
    padding: 15px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--rcad-uw-yellow), var(--rcad-uw-yellow-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    text-align: left;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
}

.rcad-uw-main-btn:hover,
.rcad-uw-main-btn:focus-visible {
    color: #fff;
    filter: brightness(.98);
}

.rcad-uw-main-title,
.rcad-uw-main-sub {
    display: block;
}

.rcad-uw-main-title {
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.15;
}

.rcad-uw-main-sub {
    margin-top: 5px;
    color: rgba(255, 255, 255, .9);
    font-size: 12px;
    line-height: 1.25;
}

.rcad-uw-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.rcad-uw-arrow svg {
    width: 18px;
    height: 18px;
    stroke: var(--rcad-uw-yellow-dark);
}

.rcad-uw-share-box {
    padding: 14px;
    border: 1px solid var(--rcad-uw-line);
    border-radius: 18px;
    background: #fafafa;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rcad-uw-share-icon {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: var(--rcad-uw-green-soft);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.rcad-uw-share-icon svg {
    width: 19px;
    height: 19px;
    stroke: var(--rcad-uw-green);
}

.rcad-uw-share-title,
.rcad-uw-share-text {
    display: block;
}

.rcad-uw-share-title {
    margin-bottom: 3px;
    color: var(--rcad-uw-blue);
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.2;
}

.rcad-uw-share-text {
    color: var(--rcad-uw-muted);
    font-size: 12px;
    line-height: 1.35;
}

.rcad-uw-share-text a,
.rcad-uw-inline-action {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--rcad-uw-yellow-dark);
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.rcad-uw-share-text a:hover,
.rcad-uw-share-text a:focus-visible,
.rcad-uw-inline-action:hover,
.rcad-uw-inline-action:focus-visible {
    text-decoration: underline;
}

.rcad-uw-social-box {
    margin-top: 13px;
    padding: 12px;
    border: 1px solid var(--rcad-uw-line);
    border-radius: 16px;
    background: #fff;
}

.rcad-uw-social-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 0 10px;
}

.rcad-uw-social-title,
.rcad-uw-social-sub {
    display: block;
}

.rcad-uw-social-title {
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.rcad-uw-social-sub {
    margin-top: 2px;
    color: var(--rcad-uw-muted);
    font-size: 11.5px;
    line-height: 1.25;
}

.rcad-uw-social-chip {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border: 1px solid #fcd34d;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 10.5px;
    font-weight: 800;
    white-space: nowrap;
}

.rcad-user-widget .rcad-uw-social-menu {
    position: static;
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.rcad-uw-social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.rcad-uw-social-btn {
    display: grid;
    height: 39px;
    place-items: center;
    border: 1px solid #d9dde4;
    border-radius: 9px;
    background: #f8f6f1;
    color: #667085;
    cursor: pointer;
}

.rcad-uw-social-btn:hover,
.rcad-uw-social-btn:focus-visible {
    background: #fff8e8;
    border-color: #f3c04d;
}

.rcad-uw-social-btn svg {
    width: 20px;
    height: 20px;
}

.rcad-uw-social-btn.is-whatsapp { color: #16a34a; }
.rcad-uw-social-btn.is-facebook { color: #1877f2; }
.rcad-uw-social-btn.is-x { color: #111827; }
.rcad-uw-social-btn.is-telegram { color: #2aabee; }
.rcad-uw-social-btn.is-linkedin { color: #0a66c2; }
.rcad-uw-social-btn.is-pinterest { color: #e60023; }
.rcad-uw-social-btn.is-email { color: #ea4335; }
.rcad-uw-social-btn.is-copy { color: #667085; }

.rcad-uw-social-box .rcad-share-toast {
    margin: 8px 12px;
}

.rcad-uw-social-note {
    margin: 13px 2px 0;
    color: var(--rcad-uw-muted);
    font-size: 11.5px;
    line-height: 1.35;
    text-align: center;
}

@media (max-width: 300px) {
    .rcad-uw-body,
    .rcad-uw-header {
        padding-left: 14px;
        padding-right: 14px;
    }

    .rcad-uw-name {
        max-width: 120px;
    }
}
