:root {
    --auh-blue: #01529c;
    --auh-sky: #11aae2;
    --auh-green: #008b53;
    --auh-text: #17324d;
    --auh-muted: #667085;
    --auh-bg: #f6fbff;
}

body.auh-dbc-page {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(17, 170, 226, .18), transparent 34%),
        radial-gradient(circle at bottom left, rgba(0, 139, 83, .12), transparent 36%),
        linear-gradient(135deg, #f7fbff, #eef7fb);
    font-family: Arial, Tahoma, sans-serif;
    color: var(--auh-text);
}

.auh-dbc-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 24px 14px;
    box-sizing: border-box;
}

.auh-dbc-standalone-card {
    min-height: 100vh;
    align-items: center;
}

.auh-dbc-card {
    width: min(460px, 100%);
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: #ffffff;
    box-shadow: 0 26px 84px rgba(1, 82, 156, .18);
    border: 1px solid rgba(1, 82, 156, .12);
}

.auh-dbc-gradient-top,
.auh-dbc-gradient-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 7px;
    background: linear-gradient(90deg, var(--auh-green), var(--auh-blue), var(--auh-sky));
    z-index: 4;
}
.auh-dbc-gradient-top { top: 0; }
.auh-dbc-gradient-bottom { bottom: 0; }

.auh-dbc-top-circles {
    position: absolute;
    left: 0;
    top: 0;
    width: 250px;
    height: 205px;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}
.auh-dbc-top-circles svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.auh-dbc-brand {
    padding: 72px 36px 8px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.auh-dbc-main-logo {
    width: 230px;
    max-width: 78%;
    height: auto;
    display: inline-block;
    object-fit: contain;
    background: transparent !important;
}

.auh-dbc-profile {
    position: relative;
    z-index: 2;
    padding: 20px 30px 10px;
    text-align: center;
}

.auh-dbc-profile h1,
.auh-dbc-name {
    margin: 0;
    color: var(--auh-blue);
    font-size: clamp(24px, 5.6vw, 34px);
    line-height: 1.08;
    letter-spacing: -.6px;
    font-weight: 800;
    font-family: inherit;
    text-align: center;
    white-space: nowrap !important;
    overflow: visible;
}

.auh-dbc-name-line {
    display: inline-flex !important;
    align-items: baseline !important;
    justify-content: center !important;
    gap: .28em !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    max-width: 100%;
    font: inherit !important;
    color: inherit !important;
    letter-spacing: inherit !important;
    line-height: inherit !important;
    vertical-align: baseline !important;
}

.auh-dbc-prefix,
.auh-dbc-full-name,
.auh-dbc-name-line * {
    display: inline !important;
    font: inherit !important;
    color: inherit !important;
    letter-spacing: inherit !important;
    line-height: inherit !important;
    font-weight: inherit !important;
    white-space: nowrap !important;
    vertical-align: baseline !important;
}

.auh-dbc-ar-name {
    margin-top: 8px;
    color: var(--auh-blue);
    font-size: 22px;
    font-weight: 700;
}

.auh-dbc-profile h2 {
    margin: 12px 0 0;
    color: var(--auh-sky);
    font-size: 20px;
    line-height: 1.28;
    font-weight: 500;
}

.auh-dbc-department {
    margin: 14px 0 0;
    color: var(--auh-green);
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
}

.auh-dbc-separator {
    width: 260px;
    max-width: 70%;
    height: 5px;
    border-radius: 999px;
    margin: 22px auto 0;
    background: var(--auh-sky);
}

.auh-dbc-actions {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    padding: 26px 28px 18px;
}

.auh-dbc-action {
    appearance: none;
    border: 1px solid rgba(1, 82, 156, .42);
    background: #f8fbff;
    color: var(--auh-blue);
    border-radius: 18px;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    box-sizing: border-box;
    padding: 0 16px;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
    font-family: inherit;
}

.auh-dbc-action:hover,
.auh-dbc-action:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(1, 82, 156, .12);
    background: #ffffff;
    outline: none;
}

.auh-dbc-primary {
    background: var(--auh-blue);
    border-color: var(--auh-blue);
    color: #ffffff;
}
.auh-dbc-primary:hover,
.auh-dbc-primary:focus-visible {
    background: #014985;
}

.auh-dbc-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    color: currentColor;
}

.auh-dbc-info {
    position: relative;
    z-index: 2;
    margin: 10px 28px 0;
    padding: 18px 20px;
    border: 1px solid rgba(1, 82, 156, .35);
    border-radius: 22px;
    background: #fbfdff;
}

.auh-dbc-info div {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.35;
}

.auh-dbc-info strong {
    color: var(--auh-green);
    font-weight: 800;
}

.auh-dbc-info span {
    overflow-wrap: anywhere;
}

.auh-dbc-socials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 24px 0;
}

.auh-dbc-socials a {
    color: var(--auh-blue);
    background: rgba(17, 170, 226, .10);
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.auh-dbc-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 24px 24px 34px;
}

.auh-dbc-qr {
    width: 168px;
    height: 168px;
    margin: 0 auto 10px;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(1, 82, 156, .10);
    border: 1px solid #dcecf6;
}

.auh-dbc-qr img {
    width: 100%;
    height: 100%;
    display: block;
}

.auh-dbc-footer p {
    color: var(--auh-muted);
    font-size: 12px;
    margin: 0;
}

.auh-card-inactive {
    margin: 30px auto;
    max-width: 420px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    color: #444;
}

@media (max-width: 420px) {
    .auh-dbc-wrap { padding: 14px 10px; }
    .auh-dbc-card { border-radius: 28px; }
    .auh-dbc-brand { padding-top: 58px; }
    .auh-dbc-main-logo { width: 200px; }
    .auh-dbc-profile h1, .auh-dbc-name { font-size: clamp(20px, 6.5vw, 30px); }
    .auh-dbc-actions { padding-left: 18px; padding-right: 18px; gap: 10px; }
    .auh-dbc-action { min-height: 54px; font-size: 14px; padding: 0 12px; gap: 9px; }
    .auh-dbc-icon { width: 26px; height: 26px; flex-basis: 26px; }
    .auh-dbc-info { margin-left: 18px; margin-right: 18px; }
}

@media (max-width: 350px) {
    .auh-dbc-actions { grid-template-columns: 1fr; }
    .auh-dbc-info div { grid-template-columns: 1fr; gap: 2px; }
}
