:root {
    --click-blue: #0099d9;
    --click-blue-deep: #007bb5;
    --click-blue-soft: #e6f5fc;
    --click-ink: #0b2748;
    --click-slate: #5f7386;
    --click-cloud: #f4f8fb;
    --click-line: rgba(11, 39, 72, 0.12);
    --click-white: #ffffff;
    --click-success: #198754;
    --click-warning: #f59f00;
    --click-danger: #dc3545;
    --click-shadow: 0 24px 60px rgba(11, 39, 72, 0.12);
    --click-radius-lg: 28px;
    --click-radius-md: 20px;
    --click-radius-sm: 14px;
}

body {
    font-family: "DM Sans", sans-serif;
    color: var(--click-ink);
    background:
        radial-gradient(circle at top left, rgba(0, 153, 217, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(0, 123, 181, 0.14), transparent 26%),
        linear-gradient(180deg, #f8fcff 0%, #eef5f8 100%);
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
    font-family: "Sora", sans-serif;
}

a {
    color: inherit;
}

.brand-logo {
    height: 34px;
    width: auto;
}

.brand-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.auth-shell {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.auth-shell::before,
.auth-shell::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
}

.auth-shell::before {
    width: 26rem;
    height: 26rem;
    top: -10rem;
    left: -7rem;
    background: rgba(0, 153, 217, 0.18);
}

.auth-shell::after {
    width: 24rem;
    height: 24rem;
    right: -7rem;
    bottom: -8rem;
    background: rgba(0, 123, 181, 0.12);
}

.auth-stage {
    position: relative;
    z-index: 1;
}

.auth-panel {
    background:
        linear-gradient(140deg, rgba(0, 123, 181, 0.96) 0%, rgba(0, 153, 217, 0.92) 55%, rgba(5, 41, 87, 0.94) 100%);
    color: var(--click-white);
    border-radius: var(--click-radius-lg);
    padding: 2rem;
    box-shadow: var(--click-shadow);
    position: relative;
    overflow: hidden;
}

.auth-panel::before {
    content: "";
    position: absolute;
    inset: auto auto -5rem -4rem;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.auth-panel::after {
    content: "";
    position: absolute;
    top: -4rem;
    right: -4rem;
    width: 13rem;
    height: 13rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
}

.auth-metric,
.traffic-card,
.detail-card,
.filter-card,
.traffic-table-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(14px);
    box-shadow: var(--click-shadow);
}

.auth-metric {
    border-radius: var(--click-radius-md);
    padding: 1rem 1.15rem;
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.7);
}

.auth-metric-label {
    color: rgba(11, 39, 72, 0.68);
    font-size: 0.82rem;
}

.auth-metric-value {
    color: var(--click-ink);
}

.glass-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: var(--click-radius-lg);
    padding: 2rem;
    box-shadow: var(--click-shadow);
    backdrop-filter: blur(16px);
}

.form-control,
.form-select {
    border-radius: 0.95rem;
    min-height: 3.25rem;
    border-color: rgba(11, 39, 72, 0.12);
    padding-inline: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(0, 153, 217, 0.45);
    box-shadow: 0 0 0 0.25rem rgba(0, 153, 217, 0.14);
}

.btn-click {
    min-height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.9rem 1.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    border: none;
    background: linear-gradient(135deg, var(--click-blue-deep), var(--click-blue));
    color: #fff;
    box-shadow: 0 16px 30px rgba(0, 123, 181, 0.22);
}

.btn-click:hover,
.btn-click:focus {
    color: #fff;
    background: linear-gradient(135deg, #006a9f, var(--click-blue));
}

.btn-ghost {
    min-height: 3.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.9rem 1.5rem;
    line-height: 1;
    border: 1px solid rgba(11, 39, 72, 0.14);
    color: var(--click-ink);
    background: rgba(255, 255, 255, 0.8);
}

.btn-click i,
.btn-ghost i {
    line-height: 1;
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: var(--click-white);
    border-color: rgba(0, 153, 217, 0.3);
    color: var(--click-blue-deep);
}

.hero-graphic {
    min-height: 17rem;
    border-radius: var(--click-radius-md);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    position: relative;
    overflow: hidden;
}

.hero-graphic::before {
    content: "";
    position: absolute;
    inset: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.signal-dot,
.signal-line {
    position: absolute;
}

.signal-dot {
    width: 0.9rem;
    height: 0.9rem;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 0.6rem rgba(255, 255, 255, 0.12);
}

.signal-line {
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.95));
    transform-origin: left center;
}

.message-pill {
    position: absolute;
    background: rgba(255, 255, 255, 0.92);
    color: var(--click-ink);
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.topbar {
    padding-block: 1.25rem;
}

.topbar-card {
    border-radius: 999px;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 35px rgba(11, 39, 72, 0.08);
}

.traffic-hero {
    border-radius: 32px;
    padding: 2rem;
    background:
        radial-gradient(circle at right top, rgba(255, 255, 255, 0.26), transparent 30%),
        linear-gradient(135deg, #052957 0%, #007bb5 48%, #0099d9 100%);
    color: #fff;
    box-shadow: var(--click-shadow);
}

.traffic-card,
.detail-card,
.filter-card,
.traffic-table-card {
    border-radius: var(--click-radius-md);
}

.traffic-card {
    padding: 1.2rem;
    height: 100%;
}

.traffic-card .icon-wrap {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 153, 217, 0.16), rgba(0, 123, 181, 0.22));
    color: var(--click-blue-deep);
}

.filter-card,
.detail-card,
.traffic-table-card {
    padding: 1.35rem;
}

.compose-card,
.preview-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--click-radius-md);
    box-shadow: var(--click-shadow);
    backdrop-filter: blur(14px);
}

.compose-card {
    padding: 1.5rem;
}

.preview-card {
    padding: 1.35rem;
}

.section-kicker {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--click-blue-deep);
}

.option-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(11, 39, 72, 0.12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.86);
    color: var(--click-ink);
    font-weight: 500;
}

.option-chip.active {
    border-color: rgba(0, 153, 217, 0.3);
    background: rgba(230, 245, 252, 0.96);
    color: var(--click-blue-deep);
}

.recipient-box {
    min-height: 8rem;
    padding: 1rem;
    border: 1px solid rgba(11, 39, 72, 0.12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
}

.recipient-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0.55rem 0.55rem 0;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: var(--click-blue-soft);
    color: var(--click-blue-deep);
    font-size: 0.84rem;
    font-weight: 700;
}

.char-progress {
    height: 0.55rem;
    background: rgba(11, 39, 72, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.char-progress span {
    display: block;
    height: 100%;
    width: 34%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--click-blue), var(--click-blue-deep));
}

.preview-phone {
    max-width: 19rem;
    margin: 0 auto;
    border-radius: 2rem;
    padding: 1rem;
    background: linear-gradient(180deg, #0d2645 0%, #112f54 100%);
    box-shadow: 0 24px 50px rgba(11, 39, 72, 0.28);
}

.preview-screen {
    border-radius: 1.5rem;
    padding: 1.25rem 1rem;
    background:
        radial-gradient(circle at top right, rgba(0, 153, 217, 0.24), transparent 24%),
        linear-gradient(180deg, #eef8ff 0%, #dcecf8 100%);
    min-height: 24rem;
}

.sms-bubble-out,
.sms-bubble-in {
    max-width: 85%;
    padding: 0.8rem 0.95rem;
    border-radius: 1.15rem;
    font-size: 0.92rem;
    line-height: 1.45;
}

.sms-bubble-out {
    margin-left: auto;
    background: linear-gradient(135deg, var(--click-blue-deep), var(--click-blue));
    color: #fff;
    border-bottom-right-radius: 0.45rem;
}

.sms-bubble-in {
    background: rgba(255, 255, 255, 0.88);
    color: var(--click-ink);
    border-bottom-left-radius: 0.45rem;
}

.summary-list {
    display: grid;
    gap: 0.9rem;
}

.summary-item {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(11, 39, 72, 0.08);
}

.summary-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.table thead th {
    color: var(--click-slate);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    border-bottom-width: 1px;
    border-color: rgba(11, 39, 72, 0.08);
    white-space: nowrap;
}

.table tbody td {
    vertical-align: middle;
    padding-block: 1rem;
    border-color: rgba(11, 39, 72, 0.06);
}

.recipient-cell {
    min-width: 15rem;
}

.status-badge,
.channel-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.4rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-delivered {
    background: rgba(25, 135, 84, 0.12);
    color: var(--click-success);
}

.status-pending {
    background: rgba(245, 159, 0, 0.14);
    color: #9a6700;
}

.status-failed {
    background: rgba(220, 53, 69, 0.1);
    color: var(--click-danger);
}

.channel-badge {
    background: var(--click-blue-soft);
    color: var(--click-blue-deep);
}

.mini-chart {
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(11, 39, 72, 0.08);
    overflow: hidden;
}

.mini-chart span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--click-blue), var(--click-blue-deep));
}

.timeline-item + .timeline-item {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(11, 39, 72, 0.08);
}

.muted-label {
    color: var(--click-slate);
    font-size: 0.84rem;
}

@media (max-width: 991.98px) {
    .auth-panel,
    .glass-card,
    .traffic-hero {
        padding: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .auth-shell {
        padding-block: 1.5rem;
    }

    .topbar-card {
        border-radius: 1.25rem;
    }

    .traffic-hero {
        border-radius: 24px;
    }
}
