/* =========================================================
   RDWEBDEV ADMIN UI - FINAL STABLE VERSION
   Mobile First • Modern • Clean • Anti Overlap
========================================================= */

:root {
    --rd-bg: #f8fafc;
    --rd-bg-soft: #eef2ff;
    --rd-surface: #ffffff;
    --rd-surface-soft: rgba(255, 255, 255, 0.88);

    --rd-dark: #050816;
    --rd-dark-2: #0f172a;
    --rd-text: #0f172a;
    --rd-muted: #64748b;
    --rd-muted-2: #94a3b8;
    --rd-border: rgba(148, 163, 184, 0.22);

    --rd-blue: #2563eb;
    --rd-sky: #0ea5e9;
    --rd-purple: #7c3aed;
    --rd-green: #22c55e;
    --rd-yellow: #f59e0b;
    --rd-red: #ef4444;

    --rd-gradient-primary: linear-gradient(135deg, #2563eb, #0ea5e9);
    --rd-gradient-brand: linear-gradient(135deg, #2563eb, #0ea5e9, #7c3aed);
    --rd-gradient-dark: linear-gradient(135deg, #050816, #0f172a 58%, #172554);

    --rd-radius-sm: 14px;
    --rd-radius: 20px;
    --rd-radius-lg: 28px;
    --rd-radius-xl: 34px;

    --rd-shadow-sm: 0 10px 28px rgba(15, 23, 42, 0.07);
    --rd-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
    --rd-shadow-dark: 0 30px 90px rgba(2, 6, 23, 0.28);

    --rd-sidebar-width: 292px;
    --rd-topbar-height: 78px;
    --rd-bottom-nav: 74px;
    --rd-transition: 260ms ease;
}

/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body.rd-admin,
body.rd-auth-body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--rd-text);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 28rem),
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.10), transparent 28rem),
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.65;
}

body.rd-sidebar-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
strong,
a,
td,
th,
label {
    overflow-wrap: break-word;
    word-break: normal;
}

::selection {
    color: #ffffff;
    background: var(--rd-blue);
}

/* =========================================================
   AUTH / LOGIN PAGE
========================================================= */

.rd-auth-body {
    display: grid;
    place-items: center;
    padding: 24px;
}

.rd-auth-shell {
    width: min(1040px, 100%);
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.rd-auth-hero,
.rd-auth-card {
    min-width: 0;
    overflow: hidden;
    border-radius: var(--rd-radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: var(--rd-shadow);
}

.rd-auth-hero {
    position: relative;
    padding: 28px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.26), transparent 18rem),
        radial-gradient(circle at bottom left, rgba(124, 58, 237, 0.24), transparent 18rem),
        var(--rd-gradient-dark);
}

.rd-auth-hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -90px auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.rd-auth-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.rd-brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 18px;
    color: #ffffff;
    background: var(--rd-gradient-brand);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.28);
    font-weight: 950;
    letter-spacing: -0.06em;
}

.rd-brand-text {
    display: grid;
    min-width: 0;
}

.rd-brand-text strong {
    overflow: hidden;
    color: inherit;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rd-brand-text small {
    overflow: hidden;
    max-width: 180px;
    margin-top: 3px;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rd-auth-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 38px 0 0;
    color: #ffffff;
    font-size: clamp(2rem, 7vw, 3.7rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.rd-auth-hero p {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 18px 0 0;
    color: #cbd5e1;
    line-height: 1.8;
}

.rd-auth-points {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.rd-auth-point {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.rd-auth-point i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 13px;
    color: #ffffff;
    background: rgba(14, 165, 233, 0.22);
}

.rd-auth-point strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.35;
}

.rd-auth-point span {
    display: block;
    margin-top: 3px;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.55;
}

.rd-auth-card {
    padding: 22px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
}

.rd-auth-card h2 {
    margin: 0;
    color: #08111f;
    font-size: 28px;
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.rd-auth-card p {
    margin: 10px 0 0;
    color: var(--rd-muted);
    font-size: 14px;
    line-height: 1.7;
}

.rd-auth-form {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.rd-auth-foot {
    margin-top: 18px;
    color: var(--rd-muted);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

/* =========================================================
   ALERT / TOAST
========================================================= */

.rd-toast-zone {
    position: fixed;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 9999;
    display: grid;
    gap: 10px;
    pointer-events: none;
}

.rd-alert {
    pointer-events: auto;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 32px;
    gap: 12px;
    align-items: start;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    box-shadow: var(--rd-shadow);
    animation: rdToastIn 360ms ease both;
}

.rd-alert-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #ffffff;
    background: var(--rd-gradient-primary);
}

.rd-alert-success .rd-alert-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.rd-alert-danger .rd-alert-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.rd-alert strong {
    display: block;
    margin-bottom: 3px;
    color: #0f172a;
    font-size: 14px;
}

.rd-alert span,
.rd-alert li {
    color: var(--rd-muted);
    font-size: 13px;
    line-height: 1.55;
}

.rd-alert ul {
    margin: 0;
    padding-left: 18px;
}

.rd-alert-close {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 11px;
    color: #64748b;
    background: rgba(15, 23, 42, 0.06);
}

/* =========================================================
   ADMIN SHELL
========================================================= */

.rd-admin-shell {
    min-height: 100vh;
}

.rd-admin-backdrop {
    position: fixed;
    inset: 0;
    z-index: 180;
    opacity: 0;
    pointer-events: none;
    background: rgba(2, 6, 23, 0.48);
    backdrop-filter: blur(4px);
    transition: var(--rd-transition);
}

.rd-admin-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
}

.rd-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 200;
    width: min(var(--rd-sidebar-width), calc(100vw - 24px));
    overflow-y: auto;
    padding: 16px;
    color: #cbd5e1;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 20rem),
        radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.18), transparent 20rem),
        #050816;
    box-shadow: var(--rd-shadow-dark);
    transform: translateX(-104%);
    transition: transform var(--rd-transition);
}

.rd-sidebar.is-active {
    transform: translateX(0);
}

.rd-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.rd-sidebar-close {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 15px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.rd-user-mini {
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.rd-user-mini-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.rd-avatar {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 16px;
    color: #ffffff;
    background: var(--rd-gradient-brand);
    font-weight: 950;
}

.rd-user-mini strong {
    display: block;
    overflow: hidden;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rd-user-mini span {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 12px;
}

.rd-nav-section {
    margin-top: 22px;
}

.rd-nav-title {
    margin: 0 0 9px;
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rd-nav {
    display: grid;
    gap: 6px;
}

.rd-nav-link,
.rd-nav-button {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 0;
    border-radius: 16px;
    color: #cbd5e1;
    background: transparent;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 850;
    text-align: left;
    transition:
        background var(--rd-transition),
        color var(--rd-transition),
        transform var(--rd-transition);
}

.rd-nav-link:hover,
.rd-nav-button:hover,
.rd-nav-link.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    transform: translateX(2px);
}

.rd-nav-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.rd-main {
    min-width: 0;
    padding-bottom: calc(var(--rd-bottom-nav) + 22px);
}

.rd-topbar {
    position: sticky;
    top: 0;
    z-index: 80;
    min-height: var(--rd-topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(248, 250, 252, 0.88);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.rd-topbar-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rd-menu-btn {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--rd-border);
    border-radius: 16px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.90);
    box-shadow: var(--rd-shadow-sm);
}

.rd-page-title {
    min-width: 0;
}

.rd-page-title h1 {
    overflow: hidden;
    margin: 0;
    color: #08111f;
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rd-page-title p {
    overflow: hidden;
    margin: 4px 0 0;
    color: var(--rd-muted);
    font-size: 12px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rd-topbar-actions {
    display: none;
}

.rd-page {
    width: min(1180px, calc(100% - 28px));
    margin-inline: auto;
    padding: 18px 0 0;
}

/* =========================================================
   BOTTOM NAV MOBILE
========================================================= */

.rd-bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 120;
    height: var(--rd-bottom-nav);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(22px);
    box-shadow: var(--rd-shadow);
}

.rd-bottom-link,
.rd-bottom-button {
    min-width: 0;
    display: grid;
    place-items: center;
    gap: 3px;
    border: 0;
    border-radius: 18px;
    color: #64748b;
    background: transparent;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.1;
    transition:
        background var(--rd-transition),
        color var(--rd-transition);
}

.rd-bottom-link i,
.rd-bottom-button i {
    font-size: 16px;
}

.rd-bottom-link span,
.rd-bottom-button span {
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rd-bottom-link.is-active,
.rd-bottom-link:hover,
.rd-bottom-button:hover {
    color: #075985;
    background: rgba(14, 165, 233, 0.10);
}

/* =========================================================
   CARDS / HERO / GRID
========================================================= */

.rd-hero-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: var(--rd-radius-xl);
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.28), transparent 18rem),
        radial-gradient(circle at bottom left, rgba(124, 58, 237, 0.24), transparent 18rem),
        var(--rd-gradient-dark);
    box-shadow: var(--rd-shadow-dark);
}

.rd-hero-card::after {
    content: "";
    position: absolute;
    inset: auto -80px -90px auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.rd-hero-content {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.rd-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(255, 255, 255, 0.10);
    font-size: 12px;
    font-weight: 900;
}

.rd-hero-card h2 {
    max-width: 760px;
    margin: 18px 0 0;
    color: #ffffff;
    font-size: clamp(2rem, 7vw, 3.55rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.rd-hero-card p {
    max-width: 700px;
    margin: 16px 0 0;
    color: #cbd5e1;
    line-height: 1.8;
}

.rd-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
}

.rd-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
}

.rd-card {
    min-width: 0;
    padding: 18px;
    border-radius: var(--rd-radius-lg);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(18px);
    box-shadow: var(--rd-shadow-sm);
}

.rd-card-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.rd-card-title {
    min-width: 0;
}

.rd-card-title h2 {
    margin: 0;
    color: #08111f;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.rd-card-title p {
    margin: 6px 0 0;
    color: var(--rd-muted);
    font-size: 13px;
    line-height: 1.65;
}

.rd-action-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.rd-action-title {
    min-width: 0;
}

.rd-action-title strong {
    display: block;
    color: #08111f;
    font-size: 18px;
    line-height: 1.3;
}

.rd-action-title span {
    display: block;
    margin-top: 3px;
    color: var(--rd-muted);
    font-size: 13px;
}

/* =========================================================
   BUTTONS
========================================================= */

.rd-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 16px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.2;
    text-align: center;
    transition:
        transform var(--rd-transition),
        box-shadow var(--rd-transition),
        background var(--rd-transition),
        color var(--rd-transition);
}

.rd-btn:hover {
    transform: translateY(-2px);
}

.rd-btn-primary {
    color: #ffffff;
    background: var(--rd-gradient-primary);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.24);
}

.rd-btn-light {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.rd-btn-danger {
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 16px 34px rgba(239, 68, 68, 0.20);
}

.rd-btn-sm {
    min-height: 38px;
    padding-inline: 12px;
    border-radius: 14px;
    font-size: 12px;
}

.rd-btn-block {
    width: 100%;
}

button:disabled,
.rd-btn:disabled {
    cursor: not-allowed;
    opacity: 0.78;
}

/* =========================================================
   FORMS
========================================================= */

.rd-form {
    min-width: 0;
}

.rd-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.rd-form-group {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.rd-form-full {
    grid-column: 1 / -1;
}

.rd-label {
    color: #0f172a;
    font-size: 13px;
    font-weight: 950;
}

.rd-input,
.rd-select,
.rd-textarea {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 17px;
    outline: none;
    color: var(--rd-text);
    background: rgba(255, 255, 255, 0.96);
    padding: 0 14px;
    font-size: 14px;
    transition:
        border-color var(--rd-transition),
        box-shadow var(--rd-transition),
        background var(--rd-transition);
}

.rd-textarea {
    min-height: 132px;
    padding: 14px;
    resize: vertical;
    line-height: 1.75;
}

.rd-input:focus,
.rd-select:focus,
.rd-textarea:focus {
    border-color: rgba(37, 99, 235, 0.68);
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}

.rd-help {
    color: var(--rd-muted);
    font-size: 12px;
    line-height: 1.55;
}

.rd-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #334155;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.55;
}

.rd-check input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 2px;
    accent-color: var(--rd-blue);
}

.rd-form-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
}

.rd-setting-sticky-actions {
    position: sticky;
    bottom: calc(var(--rd-bottom-nav) + 14px);
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(22px);
    box-shadow: var(--rd-shadow);
}

/* =========================================================
   STATS / MODULE / TIMELINE
========================================================= */

.rd-stat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 16px;
}

.rd-stat-card {
    min-width: 0;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: var(--rd-shadow-sm);
}

.rd-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rd-stat-label {
    color: var(--rd-muted);
    font-size: 13px;
    font-weight: 850;
}

.rd-stat-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 17px;
    color: #ffffff;
    background: var(--rd-gradient-primary);
}

.rd-stat-value {
    display: block;
    margin-top: 18px;
    color: #08111f;
    font-size: 36px;
    line-height: 1;
    letter-spacing: -0.045em;
}

.rd-stat-note {
    display: block;
    margin-top: 8px;
    color: var(--rd-muted);
    font-size: 13px;
    line-height: 1.5;
}

.rd-module-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.rd-module-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.16);
    transition:
        transform var(--rd-transition),
        box-shadow var(--rd-transition),
        background var(--rd-transition);
}

.rd-module-card:hover {
    transform: translateY(-3px);
    background: #ffffff;
    box-shadow: var(--rd-shadow-sm);
}

.rd-module-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    color: #ffffff;
    background: var(--rd-gradient-primary);
}

.rd-module-card strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.35;
}

.rd-module-card span {
    display: block;
    margin-top: 4px;
    color: var(--rd-muted);
    font-size: 12px;
    line-height: 1.55;
}

.rd-timeline {
    display: grid;
    gap: 12px;
}

.rd-timeline-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.rd-timeline-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    background: var(--rd-gradient-dark);
    font-size: 12px;
    font-weight: 950;
}

.rd-timeline-content strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.35;
}

.rd-timeline-content span {
    display: block;
    margin-top: 4px;
    color: var(--rd-muted);
    font-size: 13px;
    line-height: 1.6;
}

/* =========================================================
   BADGES
========================================================= */

.rd-badge {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
}

.rd-badge-active {
    color: #166534;
    background: rgba(34, 197, 94, 0.12);
}

.rd-badge-inactive {
    color: #991b1b;
    background: rgba(239, 68, 68, 0.12);
}

.rd-badge-read {
    color: #075985;
    background: rgba(14, 165, 233, 0.10);
}

.rd-badge-featured {
    color: #7c2d12;
    background: rgba(245, 158, 11, 0.16);
}

/* =========================================================
   TABLE / LIST
========================================================= */

.rd-desktop-table {
    display: none;
}

.rd-mobile-list {
    display: grid;
    gap: 12px;
}

.rd-list-card {
    min-width: 0;
    padding: 14px;
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.rd-list-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.rd-list-title {
    min-width: 0;
}

.rd-list-title strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.35;
}

.rd-list-title span {
    display: block;
    margin-top: 5px;
    color: var(--rd-muted);
    font-size: 13px;
    line-height: 1.6;
}

.rd-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.rd-list-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 14px;
}

.rd-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.rd-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.74);
}

.rd-table th,
.rd-table td {
    padding: 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

.rd-table th {
    color: #334155;
    background: rgba(248, 250, 252, 0.92);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rd-table td strong {
    display: block;
    color: #0f172a;
    line-height: 1.35;
}

.rd-desc {
    display: block;
    margin-top: 5px;
    color: var(--rd-muted);
    font-size: 12px;
    line-height: 1.55;
}

.rd-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rd-empty {
    padding: 24px;
    border-radius: 20px;
    text-align: center;
    color: var(--rd-muted);
    background: rgba(248, 250, 252, 0.88);
    border: 1px dashed rgba(148, 163, 184, 0.28);
}

/* =========================================================
   IMAGE / PROJECT / UPLOAD
========================================================= */

.rd-project-thumb {
    width: 100%;
    overflow: hidden;
    margin-bottom: 14px;
    border-radius: 18px;
    background: #e2e8f0;
    aspect-ratio: 16 / 10;
}

.rd-project-thumb img,
.rd-table-thumb img,
.rd-upload-preview img,
.rd-gallery-admin-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rd-project-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #64748b;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 10rem),
        linear-gradient(135deg, #e2e8f0, #f8fafc);
    font-size: 28px;
}

.rd-table-thumb {
    width: 92px;
    height: 66px;
    overflow: hidden;
    border-radius: 14px;
    background: #e2e8f0;
}

.rd-table-thumb span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #64748b;
}

.rd-upload-preview {
    width: min(360px, 100%);
    overflow: hidden;
    margin-bottom: 12px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #f1f5f9;
    aspect-ratio: 16 / 10;
}

.rd-gallery-admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.rd-gallery-admin-item {
    overflow: hidden;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.88);
}

.rd-gallery-admin-item img {
    overflow: hidden;
    height: 170px;
    border-radius: 16px;
    margin-bottom: 10px;
}

/* =========================================================
   WEBSITE SETTING
========================================================= */

.rd-setting-preview {
    display: grid;
    place-items: center;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 12rem),
        #f8fafc;
}

.rd-setting-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rd-setting-preview-logo {
    width: min(320px, 100%);
    height: 130px;
    padding: 18px;
}

.rd-setting-preview-favicon {
    width: 96px;
    height: 96px;
    padding: 18px;
}

.rd-setting-preview-og {
    width: min(480px, 100%);
    aspect-ratio: 1200 / 630;
}

.rd-setting-preview-og img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   SYSTEM CHECK
========================================================= */

.rd-system-summary {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.rd-system-summary div {
    min-width: 0;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.rd-system-summary strong {
    display: block;
    color: #ffffff;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.rd-system-summary span {
    display: block;
    margin-top: 6px;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 800;
}

.rd-system-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.rd-system-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 13px;
    padding: 15px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(248, 250, 252, 0.88);
}

.rd-system-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
}

.rd-system-success .rd-system-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.rd-system-warning .rd-system-icon {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.rd-system-danger .rd-system-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.rd-system-item h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.3;
}

.rd-system-item p {
    margin: 5px 0 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.6;
}

.rd-system-item span {
    display: block;
    margin-top: 7px;
    color: var(--rd-muted);
    font-size: 12px;
    line-height: 1.55;
}

.rd-test-list {
    display: grid;
    gap: 12px;
}

.rd-test-list div {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.88);
}

.rd-test-list i {
    margin-top: 3px;
    color: #22c55e;
}

.rd-test-list span {
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 750;
}

/* =========================================================
   BLOG ADMIN
========================================================= */

.rd-blog-editor {
    min-height: 320px;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.8;
}

/* =========================================================
   TESTIMONIAL ADMIN
========================================================= */

.rd-testimonial-admin-head,
.rd-testimonial-table-client {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.rd-testimonial-avatar {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rd-blue), var(--rd-purple));
    font-size: 18px;
    font-weight: 950;
}

.rd-testimonial-avatar-sm {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    font-size: 15px;
}

.rd-testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rd-testimonial-admin-head strong {
    display: block;
    color: var(--rd-text);
    font-size: 15px;
    line-height: 1.35;
}

.rd-testimonial-admin-head span {
    display: block;
    margin-top: 4px;
    color: var(--rd-muted);
    font-size: 13px;
    line-height: 1.45;
}

.rd-testimonial-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 12px;
    color: #cbd5e1;
}

.rd-testimonial-rating i {
    font-size: 13px;
}

.rd-testimonial-rating i.is-active {
    color: #f59e0b;
}

.rd-testimonial-admin-review {
    margin: 12px 0 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.7;
}

.rd-testimonial-upload-preview {
    display: grid;
    place-items: center;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #f8fafc;
}

.rd-testimonial-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rd-testimonial-upload-avatar {
    width: 130px;
    height: 130px;
    border-radius: 34px;
}

.rd-testimonial-upload-logo {
    width: min(260px, 100%);
    height: 130px;
    padding: 18px;
    border-radius: 24px;
}

.rd-testimonial-upload-logo img {
    object-fit: contain;
}

/* =========================================================
   ANIMATION
========================================================= */

@keyframes rdToastIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (min-width: 480px) {
    .rd-form-actions,
    .rd-setting-sticky-actions,
    .rd-list-actions,
    .rd-hero-actions {
        display: flex;
        flex-wrap: wrap;
    }

    .rd-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rd-gallery-admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 640px) {
    .rd-toast-zone {
        left: auto;
        width: min(430px, calc(100vw - 36px));
    }

    .rd-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rd-card-head,
    .rd-action-bar {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .rd-system-summary {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .rd-system-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rd-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .rd-auth-shell {
        grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.72fr);
        align-items: stretch;
    }

    .rd-auth-card {
        padding: 28px;
    }

    .rd-auth-hero {
        padding: 34px;
    }

    .rd-stat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    body.rd-admin {
        background:
            radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 30rem),
            radial-gradient(circle at top right, rgba(124, 58, 237, 0.08), transparent 30rem),
            #f8fafc;
    }

    .rd-admin-shell {
        display: grid;
        grid-template-columns: var(--rd-sidebar-width) minmax(0, 1fr);
    }

    .rd-admin-backdrop,
    .rd-sidebar-close,
    .rd-bottom-nav {
        display: none;
    }

    .rd-sidebar {
        position: sticky;
        top: 0;
        width: var(--rd-sidebar-width);
        height: 100vh;
        transform: none;
        box-shadow: none;
    }

    .rd-main {
        min-width: 0;
        padding-bottom: 32px;
    }

    .rd-topbar {
        padding-inline: 24px;
    }

    .rd-menu-btn {
        display: none;
    }

    .rd-topbar-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .rd-page {
        width: min(1180px, calc(100% - 48px));
        padding-top: 24px;
    }

    .rd-card {
        padding: 22px;
    }

    .rd-desktop-table {
        display: block;
    }

    .rd-mobile-list {
        display: none;
    }

    .rd-grid-2 {
        grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
    }

    .rd-gallery-admin-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .rd-setting-sticky-actions {
        bottom: 18px;
    }
}

@media (max-width: 420px) {
    .rd-auth-body {
        padding: 14px;
    }

    .rd-auth-hero,
    .rd-auth-card {
        border-radius: 26px;
    }

    .rd-page {
        width: min(1180px, calc(100% - 22px));
    }

    .rd-card,
    .rd-hero-card {
        padding: 16px;
        border-radius: 24px;
    }

    .rd-page-title h1 {
        max-width: 190px;
    }

    .rd-page-title p {
        max-width: 210px;
    }

    .rd-hero-card h2 {
        font-size: 1.95rem;
        line-height: 1.14;
    }

    .rd-bottom-nav {
        left: 8px;
        right: 8px;
        bottom: 8px;
    }

    .rd-bottom-link,
    .rd-bottom-button {
        font-size: 10px;
    }

    .rd-form-grid {
        gap: 12px;
    }

    .rd-blog-editor {
        min-height: 260px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }
}

/* =========================================================
   ADMIN JS STATE SUPPORT
========================================================= */

.rd-form-group.is-focused .rd-label {
    color: var(--rd-blue);
}

.rd-js-preview-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
}

.rd-js-preview {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.20);
}

.rd-js-preview img {
    width: 72px;
    height: 56px;
    object-fit: cover;
    border-radius: 14px;
    background: #e2e8f0;
}

.rd-js-preview-meta {
    min-width: 0;
}

.rd-js-preview-meta strong {
    display: block;
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rd-js-preview-meta span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.rd-js-preview-more {
    padding: 12px;
    border-radius: 16px;
    color: #075985;
    background: rgba(14, 165, 233, 0.10);
    font-size: 13px;
    font-weight: 850;
    text-align: center;
}

.rd-table-wrap.has-scroll {
    position: relative;
}

.rd-table-wrap.has-scroll::after {
    content: "Geser tabel →";
    position: sticky;
    right: 10px;
    bottom: 10px;
    float: right;
    display: inline-flex;
    margin: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #075985;
    background: rgba(224, 242, 254, 0.92);
    font-size: 12px;
    font-weight: 900;
    box-shadow: var(--rd-shadow-sm);
}

.rd-table-wrap.is-end::after {
    display: none;
}

@media (min-width: 520px) {
    .rd-js-preview-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .rd-js-preview-wrap {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =========================================================
   LOGIN PAGE FINISHING FIX
========================================================= */

.rd-auth-card-head {
    min-width: 0;
}

.rd-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    margin-bottom: 16px;
    border-radius: 999px;
    color: #075985;
    background: rgba(14, 165, 233, 0.10);
    font-size: 12px;
    font-weight: 950;
}

.rd-input-icon-wrap {
    position: relative;
    min-width: 0;
}

.rd-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: #64748b;
    transform: translateY(-50%);
    pointer-events: none;
}

.rd-input-with-icon {
    padding-left: 46px;
}

.rd-input-with-action {
    padding-right: 50px;
}

.rd-input-action {
    position: absolute;
    right: 8px;
    top: 50%;
    z-index: 3;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 13px;
    color: #64748b;
    background: rgba(15, 23, 42, 0.06);
    transform: translateY(-50%);
    transition: 260ms ease;
}

.rd-input-action:hover {
    color: #075985;
    background: rgba(14, 165, 233, 0.10);
}

.rd-auth-options {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-top: 2px;
}

.rd-auth-options a {
    color: #075985;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.55;
}

.rd-auth-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 4px;
}

@media (max-width: 520px) {
    .rd-auth-options {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .rd-auth-hero h1 {
        font-size: 2rem;
        line-height: 1.14;
    }

    .rd-auth-card h2 {
        font-size: 1.75rem;
    }
}

/* =========================================================
   BRAND PROFILE PREVIEW
========================================================= */

.rd-brand-preview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.rd-brand-preview-card {
    min-width: 0;
    padding: 18px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.10), transparent 12rem),
        rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.rd-brand-preview-card span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    color: #075985;
    background: rgba(14, 165, 233, 0.10);
    font-size: 12px;
    font-weight: 900;
}

.rd-brand-preview-card strong {
    display: block;
    margin-top: 14px;
    color: #08111f;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.rd-brand-preview-card p {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.75;
}

@media (min-width: 760px) {
    .rd-brand-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   SERVICE ADMIN FINISHING
========================================================= */

.rd-service-admin-head {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.rd-service-admin-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 18px;
    color: #ffffff;
    background: var(--rd-gradient-primary);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.20);
    font-size: 20px;
}

.rd-table .rd-service-admin-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 18px;
}

/* =========================================================
   SERVICE FORM FINISHING
========================================================= */

.rd-service-preview-card {
    min-width: 0;
    padding: 20px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.10), transparent 12rem),
        rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.rd-service-preview-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    color: #ffffff;
    background: var(--rd-gradient-primary);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.20);
    font-size: 22px;
}

.rd-service-preview-card h3 {
    margin: 18px 0 0;
    color: #08111f;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.rd-service-preview-card p {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.75;
}

.rd-icon-reference-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.rd-icon-reference-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-areas:
        "icon title"
        "icon code";
    gap: 2px 12px;
    align-items: center;
    width: 100%;
    min-height: 70px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    color: #0f172a;
    background: rgba(248, 250, 252, 0.92);
    text-align: left;
    transition:
        transform var(--rd-transition),
        box-shadow var(--rd-transition),
        background var(--rd-transition);
}

.rd-icon-reference-item:hover {
    transform: translateY(-3px);
    background: #ffffff;
    box-shadow: var(--rd-shadow-sm);
}

.rd-icon-reference-item i {
    grid-area: icon;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    background: var(--rd-gradient-primary);
    font-size: 18px;
}

.rd-icon-reference-item span {
    grid-area: title;
    color: #0f172a;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.3;
}

.rd-icon-reference-item small {
    grid-area: code;
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .rd-icon-reference-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .rd-icon-reference-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =========================================================
   PROJECT ADMIN FINISHING
========================================================= */

.rd-project-admin-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.rd-project-admin-info div {
    min-width: 0;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.rd-project-admin-info span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rd-project-admin-info strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.35;
}

.rd-project-admin-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.rd-list-card .rd-project-admin-stack {
    margin-top: 12px;
}

.rd-project-admin-stack span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    color: #075985;
    background: rgba(14, 165, 233, 0.10);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
}

.rd-table-thumb-project {
    width: 104px;
    height: 76px;
}

@media (max-width: 420px) {
    .rd-project-admin-info {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   PROJECT FORM FINISHING
========================================================= */

.rd-project-editor {
    min-height: 260px;
    line-height: 1.85;
}

.rd-project-preview-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.rd-project-preview-image {
    height: 210px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.22), transparent 12rem),
        var(--rd-gradient-dark);
}

.rd-project-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rd-project-preview-image > div {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    gap: 8px;
    color: #cbd5e1;
}

.rd-project-preview-image i {
    color: #bae6fd;
    font-size: 42px;
}

.rd-project-preview-image span {
    font-size: 13px;
    font-weight: 850;
}

.rd-project-preview-body {
    padding: 18px;
}

.rd-project-preview-body > span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    color: #075985;
    background: rgba(14, 165, 233, 0.10);
    font-size: 12px;
    font-weight: 900;
}

.rd-project-preview-body h3 {
    margin: 14px 0 0;
    color: #08111f;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.rd-project-preview-body p {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.75;
}

@media (max-width: 420px) {
    .rd-project-preview-image {
        height: 180px;
    }

    .rd-project-editor {
        min-height: 220px;
    }
}

/* =========================================================
   BLOG CATEGORY ADMIN FINISHING
========================================================= */

.rd-blog-category-admin-head {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.rd-blog-category-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.20);
    font-size: 20px;
}

.rd-table .rd-blog-category-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 18px;
}

.rd-admin-code {
    display: inline-flex;
    max-width: 220px;
    min-height: 30px;
    align-items: center;
    overflow: hidden;
    padding: 0 10px;
    border-radius: 999px;
    color: #334155;
    background: rgba(15, 23, 42, 0.06);
    font-size: 12px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================================
   BLOG CATEGORY FORM FINISHING
========================================================= */

.rd-category-preview-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 12rem),
        rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.rd-category-preview-icon {
    min-height: 150px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.22), transparent 12rem),
        var(--rd-gradient-dark);
    font-size: 48px;
}

.rd-category-preview-content {
    padding: 18px;
}

.rd-category-preview-content > span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    color: #075985;
    background: rgba(14, 165, 233, 0.10);
    font-size: 12px;
    font-weight: 900;
}

.rd-category-preview-content h3 {
    margin: 14px 0 0;
    color: #08111f;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.rd-category-preview-content p {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.75;
}

.rd-category-reference-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.rd-category-reference-item {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    color: #0f172a;
    background: rgba(248, 250, 252, 0.92);
    text-align: left;
    transition:
        transform var(--rd-transition),
        box-shadow var(--rd-transition),
        background var(--rd-transition);
}

.rd-category-reference-item:hover {
    transform: translateY(-3px);
    background: #ffffff;
    box-shadow: var(--rd-shadow-sm);
}

.rd-category-reference-item i {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    color: #ffffff;
    background: var(--rd-gradient-primary);
    font-size: 18px;
}

.rd-category-reference-item strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.35;
}

.rd-category-reference-item span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}

@media (min-width: 640px) {
    .rd-category-reference-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   BLOG POST ADMIN FINISHING
========================================================= */

.rd-blog-admin-thumb {
    width: 100%;
    overflow: hidden;
    margin-bottom: 14px;
    border-radius: 18px;
    background: #e2e8f0;
    aspect-ratio: 16 / 10;
}

.rd-blog-admin-thumb img,
.rd-table-thumb-blog img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rd-blog-admin-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #64748b;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 10rem),
        linear-gradient(135deg, #e2e8f0, #f8fafc);
    font-size: 32px;
}

.rd-table-thumb-blog {
    width: 104px;
    height: 76px;
}

.rd-blog-admin-seo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
}

.rd-blog-admin-seo div {
    min-width: 0;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.rd-blog-admin-seo span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rd-blog-admin-seo strong {
    display: block;
    overflow: hidden;
    margin-top: 4px;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rd-blog-seo-check {
    display: grid;
    gap: 7px;
}

.rd-blog-seo-check span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: max-content;
    max-width: 100%;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
}

.rd-blog-seo-check span.is-ok {
    color: #166534;
    background: rgba(34, 197, 94, 0.12);
}

.rd-blog-seo-check span.is-warning {
    color: #7c2d12;
    background: rgba(245, 158, 11, 0.16);
}

.rd-admin-pagination {
    margin-top: 18px;
}

.rd-admin-pagination nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rd-admin-pagination a,
.rd-admin-pagination span {
    min-width: 40px;
    min-height: 40px;
    display: grid;
    place-items: center;
    padding: 0 12px;
    border-radius: 14px;
    color: #334155;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 13px;
    font-weight: 850;
}

.rd-admin-pagination .active span,
.rd-admin-pagination span[aria-current="page"] {
    color: #ffffff;
    background: var(--rd-gradient-primary);
}

@media (min-width: 520px) {
    .rd-blog-admin-seo {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =========================================================
   BLOG POST FORM FINISHING
========================================================= */

.rd-blog-preview-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.rd-blog-preview-image {
    height: 210px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.22), transparent 12rem),
        var(--rd-gradient-dark);
}

.rd-blog-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rd-blog-preview-image > div {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    gap: 8px;
    color: #cbd5e1;
}

.rd-blog-preview-image i {
    color: #bae6fd;
    font-size: 42px;
}

.rd-blog-preview-image span {
    font-size: 13px;
    font-weight: 850;
}

.rd-blog-preview-body {
    padding: 18px;
}

.rd-blog-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rd-blog-preview-meta span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    color: #075985;
    background: rgba(14, 165, 233, 0.10);
    font-size: 12px;
    font-weight: 900;
}

.rd-blog-preview-body h3 {
    margin: 14px 0 0;
    color: #08111f;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.rd-blog-preview-body p {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.75;
}

@media (max-width: 420px) {
    .rd-blog-preview-image {
        height: 180px;
    }

    .rd-blog-editor {
        min-height: 260px;
    }
}

/* =========================================================
   TESTIMONIAL INDEX FINISHING
========================================================= */

.rd-testimonial-admin-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.rd-testimonial-admin-info div {
    min-width: 0;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.rd-testimonial-admin-info span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rd-testimonial-admin-info strong {
    display: block;
    overflow: hidden;
    margin-top: 4px;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rd-testimonial-media-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.rd-testimonial-media-list .rd-badge {
    gap: 6px;
}

@media (max-width: 420px) {
    .rd-testimonial-admin-info {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   TESTIMONIAL FORM FINISHING
========================================================= */

.rd-testimonial-editor {
    min-height: 190px;
}

.rd-testimonial-preview-card {
    min-width: 0;
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.10), transparent 12rem),
        rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.rd-testimonial-preview-card::after {
    content: "“";
    position: absolute;
    top: -8px;
    right: 16px;
    color: rgba(14, 165, 233, 0.12);
    font-family: Georgia, serif;
    font-size: 96px;
    line-height: 1;
    pointer-events: none;
}

.rd-testimonial-preview-head {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.rd-testimonial-preview-avatar {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 20px;
    color: #ffffff;
    background: var(--rd-gradient-brand);
    font-size: 20px;
    font-weight: 950;
}

.rd-testimonial-preview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rd-testimonial-preview-head h3 {
    margin: 0;
    color: #08111f;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.rd-testimonial-preview-head span {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 750;
}

.rd-testimonial-preview-rating {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 4px;
    margin-top: 18px;
    color: #cbd5e1;
}

.rd-testimonial-preview-rating i {
    font-size: 14px;
}

.rd-testimonial-preview-rating i.is-active {
    color: #f59e0b;
}

.rd-testimonial-preview-card p {
    position: relative;
    z-index: 1;
    margin: 16px 0 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.8;
}

.rd-testimonial-preview-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.rd-testimonial-preview-bottom strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.35;
}

.rd-testimonial-preview-bottom span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 800;
}

.rd-testimonial-preview-check {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 14px;
    color: #16a34a;
    background: rgba(34, 197, 94, 0.12);
}

@media (max-width: 420px) {
    .rd-testimonial-preview-head {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 12px;
    }

    .rd-testimonial-preview-avatar {
        width: 52px;
        height: 52px;
        border-radius: 18px;
    }

    .rd-testimonial-preview-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   TECHNOLOGY ADMIN FINISHING
========================================================= */

.rd-technology-admin-head {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.rd-technology-admin-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.20);
    font-size: 22px;
}

.rd-table .rd-technology-admin-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 18px;
}

/* =========================================================
   TECHNOLOGY FORM FINISHING
========================================================= */

.rd-technology-preview-card {
    min-width: 0;
    padding: 22px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 12rem),
        rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.rd-technology-preview-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    color: #ffffff;
    background: var(--rd-gradient-primary);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.20);
    font-size: 34px;
}

.rd-technology-preview-card h3 {
    margin: 18px 0 0;
    color: #08111f;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.rd-technology-preview-card p {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.75;
}

.rd-tech-reference-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.rd-tech-reference-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-areas:
        "icon title"
        "icon code";
    gap: 2px 12px;
    align-items: center;
    width: 100%;
    min-height: 76px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    color: #0f172a;
    background: rgba(248, 250, 252, 0.92);
    text-align: left;
    transition:
        transform var(--rd-transition),
        box-shadow var(--rd-transition),
        background var(--rd-transition);
}

.rd-tech-reference-item:hover {
    transform: translateY(-3px);
    background: #ffffff;
    box-shadow: var(--rd-shadow-sm);
}

.rd-tech-reference-item i {
    grid-area: icon;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    background: var(--rd-gradient-primary);
    font-size: 24px;
}

.rd-tech-reference-item span {
    grid-area: title;
    color: #0f172a;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.3;
}

.rd-tech-reference-item small {
    grid-area: code;
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .rd-tech-reference-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .rd-tech-reference-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =========================================================
   WORKFLOW ADMIN FINISHING
========================================================= */

.rd-workflow-admin-head {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.rd-workflow-admin-number {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 18px;
    color: #ffffff;
    background: var(--rd-gradient-primary);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.20);
    font-size: 15px;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.rd-table .rd-workflow-admin-number {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 14px;
}

/* =========================================================
   WORKFLOW FORM FINISHING
========================================================= */

.rd-workflow-editor {
    min-height: 190px;
}

.rd-workflow-preview-card {
    min-width: 0;
    padding: 22px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 12rem),
        rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.rd-workflow-preview-number {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    color: #ffffff;
    background: var(--rd-gradient-primary);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.20);
    font-size: 16px;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.rd-workflow-preview-card h3 {
    margin: 18px 0 0;
    color: #08111f;
    font-size: 23px;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.rd-workflow-preview-card p {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.75;
}

.rd-workflow-reference-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.rd-workflow-reference-item {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    color: #0f172a;
    background: rgba(248, 250, 252, 0.92);
    text-align: left;
    transition:
        transform var(--rd-transition),
        box-shadow var(--rd-transition),
        background var(--rd-transition);
}

.rd-workflow-reference-item:hover {
    transform: translateY(-3px);
    background: #ffffff;
    box-shadow: var(--rd-shadow-sm);
}

.rd-workflow-reference-item > span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    background: var(--rd-gradient-primary);
    font-size: 14px;
    font-weight: 950;
}

.rd-workflow-reference-item strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.35;
}

.rd-workflow-reference-item small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}

@media (min-width: 640px) {
    .rd-workflow-reference-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   CONTACT MESSAGE ADMIN FINISHING
========================================================= */

.rd-message-unread-card,
.rd-message-unread-row {
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.10), transparent 12rem),
        rgba(255, 251, 235, 0.72);
}

.rd-message-admin-head,
.rd-message-table-customer {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.rd-message-admin-avatar {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.20);
    font-size: 18px;
    font-weight: 950;
}

.rd-message-admin-avatar-sm {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    font-size: 15px;
}

.rd-message-admin-preview {
    margin: 14px 0 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.75;
}

.rd-message-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
}

.rd-message-contact-grid div {
    min-width: 0;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.rd-message-contact-grid span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rd-message-contact-grid strong {
    display: block;
    overflow: hidden;
    margin-top: 4px;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 520px) {
    .rd-message-contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   CONTACT MESSAGE DETAIL FINISHING
========================================================= */

.rd-message-detail-box {
    position: relative;
    min-width: 0;
    padding: 22px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.10), transparent 12rem),
        rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.rd-message-detail-quote {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 18px;
    color: #ffffff;
    background: var(--rd-gradient-primary);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.20);
}

.rd-message-detail-content {
    color: #334155;
    font-size: 15px;
    line-height: 1.9;
}

.rd-message-detail-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
}

.rd-message-detail-actions form,
.rd-message-detail-actions .rd-btn {
    width: 100%;
}

.rd-message-detail-actions form .rd-btn {
    width: 100%;
}

.rd-message-detail-customer {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 12rem),
        rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.rd-message-detail-avatar {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    font-size: 20px;
    font-weight: 950;
}

.rd-message-detail-customer strong {
    display: block;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.3;
}

.rd-message-detail-customer span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 800;
}

.rd-message-detail-info {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.rd-message-detail-info div {
    min-width: 0;
    padding: 13px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.rd-message-detail-info span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rd-message-detail-info strong {
    display: block;
    overflow: hidden;
    margin-top: 5px;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rd-message-detail-info a {
    color: #075985;
}

.rd-message-followup-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.rd-message-followup-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.rd-message-followup-item i {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #16a34a;
    background: rgba(34, 197, 94, 0.12);
}

.rd-message-followup-item strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.35;
}

.rd-message-followup-item span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

@media (min-width: 520px) {
    .rd-message-detail-actions {
        display: flex;
        flex-wrap: wrap;
    }

    .rd-message-detail-actions form,
    .rd-message-detail-actions .rd-btn {
        width: auto;
    }

    .rd-message-detail-actions form .rd-btn {
        width: auto;
    }
}

@media (min-width: 760px) {
    .rd-message-followup-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   SYSTEM CHECK PAGE FINISHING
========================================================= */

.rd-config-list {
    display: grid;
    gap: 10px;
}

.rd-config-list div {
    min-width: 0;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 13px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.rd-config-list span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.45;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rd-config-list strong {
    overflow: hidden;
    max-width: 58%;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.45;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rd-command-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.rd-command-card {
    min-width: 0;
    padding: 16px;
    border-radius: 20px;
    background: #0f172a;
    box-shadow: var(--rd-shadow-sm);
}

.rd-command-card span {
    display: block;
    color: #93c5fd;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.rd-command-card code {
    display: block;
    overflow-x: auto;
    margin-top: 10px;
    padding: 12px;
    border-radius: 14px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
}

.rd-command-card p {
    margin: 10px 0 0;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
}

@media (min-width: 760px) {
    .rd-command-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .rd-config-list div {
        display: grid;
        gap: 5px;
    }

    .rd-config-list strong {
        max-width: 100%;
        text-align: left;
    }
}

/* =========================================================
   ADMIN JS FINAL PATCH
   Sinkronisasi dengan public/assets/js/rdwebdev-admin.js
========================================================= */

.rd-alert.is-hiding {
    animation: rdToastOut 260ms ease both;
}

@keyframes rdToastOut {
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
}

.rd-js-counter {
    display: block;
    margin-top: 6px;
}

.rd-admin-js-ready .rd-card,
.rd-admin-js-ready .rd-hero-card,
.rd-admin-js-ready .rd-list-card {
    will-change: transform;
}

[data-tab-content] {
    display: none;
}

[data-tab-content].is-active {
    display: block;
}

[data-tab-target].is-active {
    color: #ffffff;
    background: var(--rd-gradient-primary);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.20);
}

.rd-input[type="file"],
input[type="file"].rd-input {
    padding: 12px;
    height: auto;
    min-height: 50px;
}

.rd-input[type="file"]::file-selector-button,
input[type="file"].rd-input::file-selector-button {
    min-height: 34px;
    margin-right: 12px;
    padding: 0 12px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: var(--rd-gradient-primary);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.rd-table-actions form,
.rd-list-actions form {
    min-width: 0;
}

.rd-table-actions form .rd-btn,
.rd-list-actions form .rd-btn {
    width: 100%;
}

@media (min-width: 520px) {
    .rd-list-actions form .rd-btn {
        width: auto;
    }
}