:root {
    --sidebar-width: 280px;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.18);
    --text-soft: rgba(255, 255, 255, 0.72);
    --accent: #f59e0b;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 12%, rgba(59, 130, 246, 0.42), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(245, 158, 11, 0.16), transparent 30%),
        linear-gradient(135deg, #06152f 0%, #07111f 48%, #020617 100%);
}

a {
    text-decoration: none;
}

.login-page {
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-wrapper {
    width: min(440px, 100%);
}

.login-card,
.welcome-card,
.admin-navbar {
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.login-card {
    padding: 32px;
    border-radius: 16px;
}

.login-brand,
.sidebar-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-weight: 950;
    letter-spacing: 0;
}

.login-brand span span,
.sidebar-logo span span {
    color: var(--accent);
}

.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 2px solid var(--accent);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    font-size: 13px;
    font-weight: 950;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.22);
}

.section-kicker {
    margin: 0;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-title {
    margin: 0;
    font-size: 34px;
    font-weight: 950;
}

.login-subtitle {
    margin: 8px 0 0;
    color: var(--text-soft);
}

.form-label {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

.glass-input .input-group-text,
.glass-input .form-control {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.glass-input .input-group-text {
    color: var(--accent);
}

.glass-input .form-control:focus {
    border-color: rgba(245, 158, 11, 0.72);
    box-shadow: 0 0 0 0.25rem rgba(245, 158, 11, 0.18);
}

.admin-layout {
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1030;
    width: var(--sidebar-width);
    padding: 28px 20px;
    background: rgba(0, 0, 0, 0.78);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 18px 0 50px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform 0.25s ease;
}

.sidebar-logo {
    margin-bottom: 36px;
}

.sidebar-menu {
    display: grid;
    gap: 10px;
}

.sidebar-link {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    transform: translateX(6px);
    border-color: rgba(245, 158, 11, 0.35);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(255, 255, 255, 0.08));
    color: #ffffff;
}

.sidebar-link i {
    width: 22px;
    color: var(--accent);
}

.admin-main {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.admin-navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    min-height: 76px;
    align-items: center;
    padding: 0 28px;
    border-width: 0 0 1px;
    border-radius: 0;
}

.sidebar-toggle {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: var(--accent);
}

.user-name {
    color: #ffffff;
    font-weight: 800;
}

.content-area {
    padding: 42px 32px;
}

.dashboard-heading {
    margin-bottom: 26px;
}

.dashboard-heading.compact-heading {
    margin-bottom: 22px;
}

.dashboard-heading h1 {
    margin: 6px 0 0;
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 950;
    letter-spacing: 0;
}

.compact-heading h1 {
    font-size: clamp(32px, 4vw, 52px);
}

.welcome-card {
    display: flex;
    max-width: 760px;
    align-items: center;
    gap: 18px;
    padding: 28px;
    border-radius: 16px;
}

.welcome-icon {
    display: grid;
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    place-items: center;
    border-radius: 16px;
    background: rgba(34, 197, 94, 0.16);
    color: #22c55e;
    font-size: 28px;
}

.welcome-card h2 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 900;
}

.welcome-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 18px;
}

.admin-panel {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.12);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
    margin-bottom: 18px;
}

.metric-card-admin {
    display: flex;
    min-height: 92px;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    padding: 18px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.12);
}

.metric-card-admin span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
}

.metric-card-admin strong {
    display: block;
    margin-top: 6px;
    font-size: 30px;
    line-height: 1;
}

.dashboard-stat-panel {
    padding: 22px;
    overflow: hidden;
}

.stat-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.stat-heading-row .status-pill {
    flex: 0 0 auto;
}

.stat-box-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.stat-box-grid div {
    position: relative;
    overflow: hidden;
    min-height: 92px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    padding: 18px;
}

.stat-box-grid div.is-processing {
    border-color: rgba(245, 158, 11, 0.42);
    background:
        linear-gradient(110deg, rgba(245, 158, 11, 0), rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0)) #fffaf0;
    background-size: 220% 100%;
    animation: processingShimmer 1.4s ease-in-out infinite;
}

.stat-box-grid span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.stat-box-grid strong {
    display: block;
    margin-top: 8px;
    color: #111827;
    font-size: 34px;
    line-height: 1;
}

.process-indicator {
    position: absolute;
    right: 16px;
    bottom: 14px;
    display: none;
    align-items: center;
    gap: 4px;
}

.is-processing .process-indicator {
    display: inline-flex;
}

.process-indicator i {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
    animation: processingDots 0.9s ease-in-out infinite;
}

.process-indicator i:nth-child(2) {
    animation-delay: 0.14s;
}

.process-indicator i:nth-child(3) {
    animation-delay: 0.28s;
}

.campaign-caption {
    margin: 18px 0 0;
    color: #64748b;
    font-weight: 800;
}

.campaign-caption a {
    color: #475569;
    text-decoration: underline;
    text-decoration-color: rgba(245, 158, 11, 0.65);
    text-underline-offset: 3px;
}

.campaign-caption a:hover {
    color: #92400e;
}

.campaign-progress-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    padding: 14px;
}

.campaign-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #111827;
    font-size: 13px;
    font-weight: 950;
}

.campaign-progress-head span {
    color: #92400e;
}

.campaign-progress-bar {
    overflow: hidden;
    height: 10px;
    margin-top: 10px;
    border-radius: 999px;
    background: #e5e7eb;
}

.campaign-progress-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f59e0b, #22c55e);
    transition: width 0.35s ease;
}

.campaign-status-message {
    margin: 12px 0 0;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.campaign-last-check {
    margin: 4px 0 0;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
}

.campaign-reset-form {
    margin: 12px 0 0;
}

.campaign-reset-form .btn {
    border: 1px solid #fed7aa;
    color: #92400e;
}

.dashboard-stat-panel h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
}

.admin-panel h2 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
}

.admin-panel p {
    color: #64748b;
}

.embed-panel {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 26px;
    align-items: center;
    margin-bottom: 20px;
    padding: 22px;
}

.embed-panel p {
    margin: 6px 0 0;
}

.embed-panel pre {
    min-height: 74px;
    margin: 0;
    overflow: auto;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f8fafc;
    color: #1f2937;
    padding: 16px;
    white-space: pre-wrap;
}

.popup-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
    gap: 20px;
    align-items: start;
}

.popup-form,
.popup-preview-wrap,
.subscriber-panel {
    padding: 22px;
}

.popup-form-grid {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.upload-drop {
    position: relative;
    display: flex;
    min-height: 176px;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    border: 1px dashed #f59e0b;
    border-radius: 8px;
    background: #fff7ed;
    color: #111827;
    cursor: pointer;
}

.upload-drop span,
.field-label span {
    color: #334155;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.upload-drop strong {
    font-size: 18px;
    line-height: 1.2;
}

.upload-drop small {
    color: #92400e;
}

.upload-drop input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.form-fields,
.field-label {
    display: grid;
    gap: 8px;
}

.field-label {
    margin: 0;
}

.field-label input,
.field-label textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    padding: 12px;
    outline: none;
}

.field-label textarea {
    min-height: 112px;
    resize: vertical;
}

.field-label input:focus,
.field-label textarea:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.16);
}

.button-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.popup-preview-card {
    width: min(360px, 100%);
    margin: 18px auto 0;
    overflow: hidden;
    border-radius: 8px;
    background: #111111;
    color: #ffffff;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.popup-preview-card img,
.preview-image-empty {
    display: block;
    width: 100%;
    min-height: 225px;
    max-height: 360px;
    object-fit: contain;
    background: #1f2937;
}

.preview-image-empty {
    display: grid;
    aspect-ratio: 16 / 10;
    min-height: 0;
    place-items: center;
    color: #cbd5e1;
    font-weight: 800;
}

.popup-preview-body {
    padding: 18px;
    text-align: center;
}

.popup-preview-body h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.25;
}

.popup-preview-body p {
    margin: 0 0 18px;
    color: #e5e7eb;
    font-size: 14px;
    line-height: 1.45;
}

.preview-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.preview-actions button {
    min-height: 46px;
    border-radius: 8px;
    font-weight: 950;
}

.preview-actions button:first-child {
    border: 0;
    background: #f59e0b;
    color: #111827;
}

.preview-actions button:last-child {
    border: 1px solid #f59e0b;
    background: transparent;
    color: #f59e0b;
}

.subscriber-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
    color: #111827;
}

.user-create-panel {
    display: grid;
    grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
    gap: 24px;
    align-items: center;
    padding: 22px;
}

.user-create-panel p {
    margin: 6px 0 0;
}

.user-create-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.user-create-form .btn {
    min-height: 46px;
    white-space: nowrap;
}

.user-table {
    min-width: 1120px;
}

.user-table td > strong {
    display: block;
}

.user-table td > span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.user-table code {
    color: #334155;
    font-size: 13px;
    white-space: nowrap;
}

.user-password-control {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.user-table input,
.user-table select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    padding: 0 12px;
    outline: none;
}

.user-table input:focus,
.user-table select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.16);
}

.user-password-control .btn {
    min-height: 42px;
}

.trash-button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.subscriber-table th,
.subscriber-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
    white-space: nowrap;
}

.subscriber-table th {
    color: #475569;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.subscriber-table tbody tr:hover {
    background: #f8fafc;
}

.status-pill {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 950;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-processing {
    position: relative;
    background: #ffedd5;
    color: #9a3412;
    animation: statusPulse 1.2s ease-in-out infinite;
}

.status-inactive {
    background: #fee2e2;
    color: #991b1b;
}

@keyframes processingShimmer {
    0% {
        background-position: 180% 0;
    }
    100% {
        background-position: -80% 0;
    }
}

@keyframes processingDots {
    0%,
    80%,
    100% {
        opacity: 0.35;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

@keyframes statusPulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.28);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
    }
}

.origin-pill {
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    border-radius: 8px;
    background: #eef2ff;
    color: #3730a3;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.push-builder {
    display: grid;
    gap: 18px;
}

.push-preview-panel,
.push-editor-card {
    padding: 22px;
}

.push-panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.push-step {
    display: inline-grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    background: #0b0f14;
    color: #f59e0b;
    font-size: 12px;
    font-weight: 950;
}

.push-panel-title h2,
.push-editor-card h2 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 950;
}

.push-panel-title p {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.template-row {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1fr) auto;
    gap: 12px;
    align-items: end;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fbfdff;
    padding: 14px;
}

.field-label select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    padding: 12px;
    outline: none;
}

.field-label select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.16);
}

.template-actions {
    display: flex;
    gap: 8px;
}

.template-actions .btn {
    min-height: 44px;
    white-space: nowrap;
}

.live-preview-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0 10px;
    color: #111827;
}

.preview-mode {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #f8fafc;
}

.preview-mode button {
    min-height: 34px;
    border: 0;
    background: transparent;
    color: #64748b;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 900;
}

.preview-mode button.active {
    background: #111827;
    color: #ffffff;
}

.notification-preview {
    overflow: hidden;
    border-radius: 8px;
    padding: 18px;
    transition: background 0.2s ease, color 0.2s ease;
}

.notification-preview.dark {
    background:
        radial-gradient(circle at 88% 28%, rgba(245, 158, 11, 0.26), transparent 32%),
        linear-gradient(135deg, #101010, #151515 58%, #231604);
    color: #ffffff;
}

.notification-preview.light {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
}

.notification-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-icon {
    display: grid;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f59e0b;
    background-position: center;
    background-size: cover;
    color: #111827;
    font-weight: 950;
}

.notification-head span {
    display: block;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 800;
}

.notification-preview.light .notification-head span {
    color: #64748b;
}

.notification-head h3 {
    margin: 3px 0 2px;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.2;
}

.notification-head p {
    margin: 0;
    color: #f1f5f9;
    font-size: 13px;
    font-weight: 800;
}

.notification-preview.light .notification-head p {
    color: #334155;
}

.notification-banner {
    display: grid;
    min-height: 152px;
    place-items: center;
    gap: 8px;
    margin-top: 18px;
    border: 1px dashed rgba(245, 158, 11, 0.78);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(255, 255, 255, 0.04)),
        rgba(245, 158, 11, 0.08);
    background-position: center;
    background-size: cover;
    color: #f59e0b;
    text-align: center;
}

.notification-banner.has-image {
    border-color: rgba(255, 255, 255, 0.2);
}

.notification-banner span {
    font-size: 30px;
    font-weight: 950;
}

.notification-banner small {
    font-weight: 950;
}

.notification-banner.has-image span,
.notification-banner.has-image small {
    display: none;
}

.notification-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 800;
}

.notification-preview.light .notification-foot {
    color: #64748b;
}

.push-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
    gap: 18px;
    align-items: start;
}

.char-counter {
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
    text-align: right;
}

.media-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.upload-drop-compact {
    min-height: 140px;
    align-items: center;
    text-align: center;
}

.upload-drop-compact strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.target-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    padding: 16px;
}

.target-heading {
    display: grid;
    gap: 3px;
    margin-bottom: 12px;
}

.target-heading strong {
    color: #111827;
    font-size: 16px;
    font-weight: 950;
}

.target-heading span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.push-submit-status {
    display: none;
    margin: 12px 0 0;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 8px;
    background: #fff7ed;
    color: #92400e;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 900;
}

.push-submit-status.is-visible {
    display: block;
}

.btn.is-loading {
    cursor: wait;
}

.target-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.target-options label {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 10px;
    margin: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    padding: 0 12px;
    cursor: pointer;
}

.target-options input {
    accent-color: #f59e0b;
}

.target-options strong {
    font-size: 14px;
}

.target-segmented {
    gap: 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.target-segmented label {
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.target-segmented label:has(input:checked),
.target-segmented label.is-selected {
    background: #111827;
    color: #ffffff;
}

.target-segmented input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.target-segmented i {
    color: #f59e0b;
}

.target-segmented strong {
    font-size: 12px;
    text-transform: uppercase;
}

.delivery-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.delivery-progress span {
    display: grid;
    gap: 4px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    padding: 12px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.delivery-progress b {
    color: #111827;
    font-size: 22px;
    line-height: 1;
}

.inline-delete {
    margin: 0;
}

.trash-button {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: #fee2e2;
    color: #dc2626;
}

.empty-table {
    color: #64748b;
    text-align: center;
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .embed-panel,
    .popup-grid,
    .push-editor-grid,
    .user-create-panel,
    .user-create-form,
    .user-password-control,
    .template-row {
        grid-template-columns: 1fr;
    }

    .template-actions {
        justify-content: flex-start;
    }

    .metric-grid,
    .stat-box-grid,
    .delivery-progress {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .login-card {
        padding: 24px;
    }

    .admin-navbar {
        padding: 0 18px;
    }

    .navbar-user {
        gap: 8px;
    }

    .user-name {
        max-width: 112px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .content-area {
        padding: 30px 18px;
    }

    .welcome-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .popup-form-grid,
    .button-fields,
    .media-upload-grid,
    .metric-grid,
    .stat-box-grid,
    .delivery-progress {
        grid-template-columns: 1fr;
    }

    .live-preview-title,
    .notification-foot {
        align-items: flex-start;
        flex-direction: column;
    }

    .template-actions {
        flex-direction: column;
    }

    .upload-drop {
        min-height: 150px;
    }
}
