/* ===== RDAKTOR UI-KIT ===== */
:root {
    /* Brand */
    --rdk-primary: #e2580b;
    --rdk-primary-hover: #c74a07;
    --rdk-primary-light: #fdf3ec;
    --rdk-accent: #f59e0b;
    --rdk-accent-hover: #d97706;

    /* Status */
    --rdk-success: #10b981;
    --rdk-success-light: #d1fae5;
    --rdk-danger: #ef4444;
    --rdk-danger-light: #fee2e2;
    --rdk-warning: #f59e0b;
    --rdk-warning-light: #fef3c7;
    --rdk-info: #3b82f6;
    --rdk-info-light: #dbeafe;

    /* Backgrounds */
    --rdk-bg: #f9fafb;
    --rdk-bg-secondary: #f3f4f6;
    --rdk-bg-card: #ffffff;
    --rdk-bg-sidebar: #111827;
    --rdk-bg-sidebar-hover: #1f2937;
    --rdk-page-bg: #f9fafb;

    /* Text */
    --rdk-text: #111827;
    --rdk-text-secondary: #4b5563;
    --rdk-text-muted: #9ca3af;
    --rdk-text-inverse: #ffffff;

    /* Borders */
    --rdk-border: #e5e7eb;
    --rdk-border-focus: #e2580b;

    /* Layout */
    --rdk-radius-sm: 4px;
    --rdk-radius: 8px;
    --rdk-radius-lg: 10px;
    --rdk-radius-xl: 14px;
    --rdk-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --rdk-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --rdk-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08);
    --rdk-shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.1);

    /* Spacing */
    --rdk-space-xs: 4px;
    --rdk-space-sm: 8px;
    --rdk-space-md: 16px;
    --rdk-space-lg: 24px;
    --rdk-space-xl: 32px;
    --rdk-space-2xl: 48px;

    /* Transitions */
    --rdk-transition: 180ms ease;
    --rdk-transition-slow: 300ms ease;
}

/* ===== PAGE LAYOUT (home) ===== */
.rdk-page-bg {
    background: var(--rdk-page-bg);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated gradient mesh behind content */
.rdk-page-bg::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 15% 10%, rgba(99, 102, 241, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 85% 30%, rgba(168, 85, 247, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 50% 80%, rgba(59, 130, 246, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 300px 300px at 70% 60%, rgba(245, 158, 11, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: rdk-bg-mesh-drift 20s ease-in-out infinite alternate;
}

@keyframes rdk-bg-mesh-drift {
    0% {
        background:
            radial-gradient(ellipse 600px 400px at 15% 10%, rgba(99, 102, 241, 0.07) 0%, transparent 70%),
            radial-gradient(ellipse 500px 500px at 85% 30%, rgba(168, 85, 247, 0.05) 0%, transparent 70%),
            radial-gradient(ellipse 400px 300px at 50% 80%, rgba(59, 130, 246, 0.04) 0%, transparent 70%),
            radial-gradient(ellipse 300px 300px at 70% 60%, rgba(245, 158, 11, 0.03) 0%, transparent 70%);
    }

    100% {
        background:
            radial-gradient(ellipse 600px 400px at 35% 25%, rgba(99, 102, 241, 0.06) 0%, transparent 70%),
            radial-gradient(ellipse 500px 500px at 65% 15%, rgba(168, 85, 247, 0.06) 0%, transparent 70%),
            radial-gradient(ellipse 400px 300px at 30% 70%, rgba(59, 130, 246, 0.05) 0%, transparent 70%),
            radial-gradient(ellipse 300px 300px at 80% 45%, rgba(245, 158, 11, 0.04) 0%, transparent 70%);
    }
}

/* Dot grid pattern overlay */
.rdk-page-bg::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* Ensure main content is above background effects */
.rdk-page-bg>.mx-auto {
    position: relative;
    z-index: 1;
}

#welcomeHeader,
#uploadSection,
#myProjectsSection {
    width: 100%;
}

#welcomeHeader {
    padding: 0;
}

#welcomeHeader .rdk-hero,
#welcomeHeader .rdk-trust,
#welcomeHeader .rdk-home-section,
#uploadSection .rdk-home-section,
#bottomCta {
    width: 100%;
    box-sizing: border-box;
}

body.rdk-page-bg:has(#welcomeHeader:not(.hidden)) {
    padding-top: 92px !important;
}

body.rdk-page-bg:has(#editorSection:not(.hidden)) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ===== FIXED PAYMENT HEADER ===== */
.rdk-fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 45;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.rdk-fixed-header-inner {
    width: min(1152px, 100%);
    min-height: 54px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.rdk-header-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: #111827;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.rdk-header-brand-lockup {
    display: flex;
    flex: 0 0 auto;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.rdk-header-brand-logo {
    width: 124px;
    height: 32px;
    display: block;
    flex: 0 0 auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.rdk-header-brand .rdk-header-brand-subtitle {
    display: block;
    margin: -1px 0 0 3px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.rdk-header-account span,
.rdk-header-account small {
    display: block;
}

.rdk-header-account {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 2px;
    text-align: center;
}

.rdk-header-account span {
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rdk-header-account.is-access-active span {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
}

.rdk-header-account.is-access-active span::before {
    content: "";
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.rdk-header-account small {
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rdk-header-faq {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--rdk-transition), color var(--rdk-transition), transform var(--rdk-transition);
}

.rdk-header-faq:hover {
    background: #f1f5f9;
    color: #0f172a;
    transform: translateY(-1px);
}

.rdk-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.rdk-header-demo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 5px 13px;
    border: 1px solid #86efac;
    border-radius: 8px;
    color: #166534;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    box-shadow: 0 7px 18px rgba(22, 163, 74, 0.16);
    text-decoration: none;
    white-space: nowrap;
    transition: transform var(--rdk-transition), box-shadow var(--rdk-transition), background var(--rdk-transition);
}

.rdk-header-demo:hover {
    color: #14532d;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.24);
    transform: translateY(-1px);
}

.rdk-header-demo-label {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.1;
}

.rdk-header-demo-label small {
    color: #4d7c0f;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.rdk-header-crm,
.rdk-header-pay-btn,
.rdk-header-logout {
    min-height: 42px;
    border-radius: 8px;
    border: none;
    padding: 0 16px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    transition: transform var(--rdk-transition), box-shadow var(--rdk-transition), background var(--rdk-transition), opacity var(--rdk-transition);
    white-space: nowrap;
}

.rdk-header-crm {
    background: #e2e8f0;
    color: #64748b;
    cursor: not-allowed;
}

.rdk-header-crm.is-active {
    position: relative;
    padding-left: 34px;
    background: linear-gradient(135deg, #0f766e, #2563eb);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.rdk-header-crm.is-active::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #86efac;
    box-shadow: 0 0 0 4px rgba(134, 239, 172, 0.2);
    transform: translateY(-50%);
}

.rdk-header-crm.is-active:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.34);
}

.rdk-header-pay-btn {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(234, 88, 12, 0.28);
}

.rdk-header-pay-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(234, 88, 12, 0.34);
}

.rdk-header-pay-btn:disabled {
    background: #cbd5e1;
    color: #475569;
    cursor: default;
    box-shadow: none;
}

.rdk-header-pay-btn.is-access-active:disabled {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    border: 1px solid #86efac;
    box-shadow: 0 10px 24px rgba(22, 101, 52, 0.12);
}

.rdk-header-pay-btn.is-hidden {
    display: none;
}

.rdk-header-logout {
    background: #ffffff;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.rdk-header-logout:hover {
    background: #fef2f2;
}

/* ===== PROMO BAR ===== */
.rdk-promo-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 9px 20px;
    background: var(--rdk-bg-sidebar);
    color: var(--rdk-text-inverse);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--rdk-radius);
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.rdk-promo-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rdk-primary), var(--rdk-accent), var(--rdk-primary), transparent);
    background-size: 200% 100%;
    animation: rdk-promo-border 3s linear infinite;
}

@keyframes rdk-promo-border {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.rdk-promo-bar a {
    color: var(--rdk-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

.rdk-promo-bar a:hover {
    color: var(--rdk-accent-hover);
}

.rdk-promo-bar-shop {
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    background: #fff7ed;
    color: #7c2d12;
    border: 1px solid #fed7aa;
    box-shadow: 0 12px 32px rgba(124, 45, 18, 0.12);
}

.rdk-promo-bar-shop::after {
    display: none;
}

.rdk-promo-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.rdk-promo-copy strong {
    color: #9a3412;
    font-size: 18px;
    line-height: 1.2;
}

.rdk-promo-copy span {
    color: #9a3412;
    font-size: 14px;
    line-height: 1.4;
}

.rdk-promo-entry {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rdk-promo-input {
    width: min(220px, 40vw);
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    background: #fff;
    color: #431407;
    font: inherit;
    text-transform: uppercase;
}

.rdk-promo-input:focus {
    outline: 2px solid #fb923c;
    outline-offset: 1px;
}

.rdk-promo-cta,
.rdk-access-offer-banner button,
.rdk-access-offer-primary {
    border: none;
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(234, 88, 12, 0.28);
}

.rdk-promo-cta {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 10px;
    font-size: 14px;
}

.rdk-access-offer-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.62);
}

.rdk-access-offer-dialog {
    position: relative;
    width: min(560px, 100%);
    padding: 34px;
    border-radius: 18px;
    background: #fff;
    color: #111827;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.35);
}

.rdk-access-offer-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #fff;
    color: #4b5563;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.rdk-access-offer-kicker,
.rdk-access-offer-banner-kicker {
    color: #c2410c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rdk-access-offer-dialog h2 {
    margin: 10px 0 12px;
    color: #111827;
    font-size: 30px;
    line-height: 1.12;
    letter-spacing: 0;
}

.rdk-access-offer-dialog p {
    margin: 0;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.55;
}

.rdk-access-offer-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 22px 0;
    padding: 16px 18px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.rdk-access-offer-price span {
    color: #9a3412;
    font-size: 34px;
    font-weight: 900;
}

.rdk-access-offer-price small {
    color: #9a3412;
    font-size: 14px;
    font-weight: 700;
}

.rdk-access-offer-primary {
    width: 100%;
    min-height: 50px;
    border-radius: 12px;
    font-size: 16px;
}

.rdk-checkout-student-entry {
    display: block;
    width: 100%;
    min-height: 42px;
    margin-top: 8px;
    border: 0;
    background: transparent;
    color: #4338ca;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.rdk-checkout-student-entry:hover {
    color: #312e81;
}

.rdk-access-offer-note {
    margin-top: 14px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.45;
}

.rdk-checkout-dialog {
    width: min(500px, 100%);
    max-height: calc(100vh - 24px);
    padding: 30px;
    overflow-y: auto;
}

.rdk-checkout-dialog h2 {
    margin-bottom: 8px;
}

.rdk-checkout-price {
    margin: 20px 0 12px;
}

.rdk-checkout-saving {
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    background: #f0fdf4;
    color: #166534;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}

.rdk-checkout-confetti {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: none;
    overflow: hidden;
    pointer-events: none;
}

.rdk-access-offer-modal.is-promo-applied {
    background: rgba(8, 11, 29, 0.72);
}

.rdk-access-offer-modal.is-promo-applied .rdk-checkout-confetti {
    display: block;
}

.rdk-checkout-confetti i {
    position: absolute;
    width: 11px;
    height: 24px;
    border-radius: 4px;
    opacity: 0;
    animation: rdk-checkout-confetti-burst 700ms cubic-bezier(0.22, 0.8, 0.28, 1) forwards;
}

.rdk-checkout-confetti i:nth-child(1) { left: 11%; top: 13%; background: #ffb727; transform: rotate(24deg); }
.rdk-checkout-confetti i:nth-child(2) { left: 19%; top: 76%; width: 17px; height: 17px; border-radius: 50%; background: #f55a88; animation-delay: 80ms; }
.rdk-checkout-confetti i:nth-child(3) { left: 25%; top: 24%; background: #6ee7c8; transform: rotate(64deg); animation-delay: 130ms; }
.rdk-checkout-confetti i:nth-child(4) { left: 29%; top: 70%; width: 18px; height: 18px; background: #ffd059; transform: rotate(45deg); animation-delay: 50ms; }
.rdk-checkout-confetti i:nth-child(5) { left: 69%; top: 15%; width: 17px; height: 17px; border-radius: 50%; background: #a993ff; animation-delay: 110ms; }
.rdk-checkout-confetti i:nth-child(6) { left: 77%; top: 25%; background: #ffce49; transform: rotate(112deg); animation-delay: 30ms; }
.rdk-checkout-confetti i:nth-child(7) { left: 79%; top: 71%; width: 18px; height: 18px; background: #ffb028; transform: rotate(45deg); animation-delay: 150ms; }
.rdk-checkout-confetti i:nth-child(8) { left: 88%; top: 56%; background: #56d6be; transform: rotate(34deg); animation-delay: 90ms; }
.rdk-checkout-confetti i:nth-child(9) { left: 8%; top: 49%; width: 17px; height: 17px; border-radius: 50%; background: #9f8cff; animation-delay: 140ms; }
.rdk-checkout-confetti i:nth-child(10) { left: 91%; top: 18%; background: #ef5d86; transform: rotate(80deg); animation-delay: 60ms; }

.rdk-access-offer-modal > .rdk-checkout-dialog {
    z-index: 1;
}

.rdk-checkout-dialog.is-promo-applied {
    display: flex;
    flex-direction: column;
    width: min(536px, 100%);
    padding: 30px 34px 26px;
    border: 2px solid #ffb236;
    border-radius: 28px;
    background:
        radial-gradient(circle at 88% 7%, rgba(255, 213, 126, 0.31), transparent 22%),
        linear-gradient(180deg, #fffdf8 0%, #fff 58%, #fff8f0 100%);
    box-shadow: 0 28px 90px rgba(2, 4, 24, 0.52), 0 0 0 8px rgba(255, 178, 54, 0.08);
    text-align: center;
    animation: rdk-checkout-promo-pop 320ms cubic-bezier(0.22, 0.8, 0.28, 1);
}

.rdk-checkout-dialog.is-promo-applied .rdk-access-offer-kicker {
    align-self: center;
    margin: 0 0 12px;
    padding: 8px 13px;
    border: 1px solid #ffc665;
    border-radius: 999px;
    background: #fff3d9;
    color: #9a3b08;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.07em;
}

.rdk-checkout-dialog.is-promo-applied h2 {
    margin: 0 0 6px;
    color: #202438;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.rdk-checkout-dialog.is-promo-applied .rdk-checkout-description {
    color: #646b7d;
    font-size: 16px;
}

.rdk-checkout-dialog.is-promo-applied .rdk-checkout-price {
    position: relative;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
    margin: 18px 0 0;
    padding: 20px 18px 18px;
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    background: linear-gradient(135deg, #fb4c15 0%, #f66921 48%, #eb2e72 100%);
    box-shadow: 0 14px 34px rgba(238, 71, 36, 0.27);
    color: #fff;
}

.rdk-checkout-dialog.is-promo-applied .rdk-checkout-price::before,
.rdk-checkout-dialog.is-promo-applied .rdk-checkout-price::after {
    content: '';
    position: absolute;
    width: 125px;
    height: 125px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.rdk-checkout-dialog.is-promo-applied .rdk-checkout-price::before {
    left: -54px;
    top: -67px;
}

.rdk-checkout-dialog.is-promo-applied .rdk-checkout-price::after {
    right: -52px;
    bottom: -74px;
}

.rdk-checkout-dialog.is-promo-applied .rdk-checkout-price span {
    position: relative;
    z-index: 1;
    grid-column: 1;
    grid-row: 1;
    color: #fff;
    font-size: 76px;
    font-weight: 950;
    line-height: 0.95;
    letter-spacing: -0.075em;
}

.rdk-checkout-dialog.is-promo-applied .rdk-checkout-price small {
    display: contents;
}

.rdk-checkout-dialog.is-promo-applied .rdk-checkout-price strong {
    position: relative;
    z-index: 1;
    grid-column: 2;
    grid-row: 1;
    color: #fff;
    font-size: 28px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
}

.rdk-checkout-dialog.is-promo-applied .rdk-checkout-price em {
    position: relative;
    z-index: 1;
    grid-column: 1 / 3;
    grid-row: 2;
    margin-top: 3px;
    color: #fff;
    font-size: 16px;
    font-style: normal;
    font-weight: 750;
}

.rdk-checkout-dialog.is-promo-applied .rdk-checkout-price b {
    position: relative;
    z-index: 1;
    grid-column: 1 / 3;
    grid-row: 3;
    justify-self: center;
    margin-top: 14px;
    padding: 9px 17px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 19px;
    font-weight: 950;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.rdk-checkout-dialog.is-promo-applied .rdk-checkout-saving {
    margin: 16px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #484f62;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.rdk-checkout-dialog.is-promo-applied .rdk-checkout-saving strong {
    color: #22273a;
    font-weight: 800;
}

.rdk-checkout-dialog.is-promo-applied .rdk-access-offer-primary {
    min-height: 56px;
    margin-top: 16px;
    border-radius: 15px;
    background: linear-gradient(90deg, #f54d12, #e9346d);
    box-shadow: 0 13px 26px rgba(235, 64, 67, 0.25);
    font-size: 17px;
    font-weight: 900;
    text-transform: uppercase;
}

.rdk-checkout-dialog.is-promo-applied .rdk-access-offer-note {
    margin-top: 13px;
    color: #808696;
    font-size: 12px;
}

.rdk-checkout-dialog.is-promo-applied .rdk-checkout-promo {
    order: 10;
    margin: 12px 0 0;
    padding-top: 0;
    border-top: 0;
}

.rdk-checkout-dialog.is-promo-applied .rdk-checkout-promo-toggle {
    color: #6d55dc;
    font-size: 13px;
}

@keyframes rdk-checkout-promo-pop {
    from { opacity: 0.65; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes rdk-checkout-confetti-burst {
    0% { opacity: 0; translate: 0 -18px; scale: 0.65; }
    45% { opacity: 1; }
    100% { opacity: 1; translate: 0 10px; scale: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .rdk-checkout-dialog.is-promo-applied,
    .rdk-checkout-confetti i {
        animation: none;
    }

    .rdk-checkout-confetti i {
        opacity: 1;
    }

    .rdk-payment-status-spinner {
        animation: none;
    }
}

.rdk-checkout-promo {
    margin: 18px 0;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.rdk-checkout-promo-toggle {
    padding: 0;
    border: 0;
    background: transparent;
    color: #4f46e5;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.rdk-checkout-promo-entry {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.rdk-checkout-promo-entry[hidden] {
    display: none;
}

.rdk-checkout-promo-entry .rdk-promo-input {
    flex: 1 1 auto;
    min-width: 0;
    border-color: #d1d5db;
    color: #111827;
}

.rdk-checkout-promo-entry .rdk-promo-cta {
    box-shadow: none;
}

.rdk-checkout-promo-message,
.rdk-checkout-error {
    min-height: 18px;
    margin-top: 8px;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.rdk-checkout-promo-message.is-success {
    color: #15803d;
}

.rdk-checkout-error:empty,
.rdk-checkout-promo-message:empty {
    min-height: 0;
    margin-top: 0;
}

.rdk-access-offer-banner {
    max-width: 1280px;
    margin: 0 auto 22px;
    padding: 22px 24px;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    box-shadow: 0 16px 40px rgba(124, 45, 18, 0.12);
}

.rdk-access-offer-banner-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.rdk-access-offer-banner-title {
    margin-top: 4px;
    color: #9a3412;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 900;
}

.rdk-access-offer-banner-text {
    margin-top: 6px;
    color: #7c2d12;
    font-size: 14px;
    line-height: 1.45;
}

.rdk-access-offer-banner button {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 12px;
    font-size: 15px;
}

.rdk-telegram-handoff-fallback {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    background: #eef2ff;
    text-align: left;
}

.rdk-telegram-handoff-fallback p {
    margin: 0 0 10px;
    color: #3730a3;
    font-size: 13px;
    line-height: 1.45;
}

.rdk-telegram-handoff-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rdk-telegram-handoff-actions a,
.rdk-telegram-handoff-actions button {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.rdk-telegram-handoff-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4f46e5;
    color: #fff;
    text-decoration: none;
}

.rdk-telegram-handoff-actions button {
    border: 1px solid #c7d2fe;
    background: #fff;
    color: #3730a3;
}

.rdk-payment-handoff-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.62);
}

.rdk-payment-handoff-dialog {
    width: min(460px, 100%);
    padding: 28px;
    border-radius: 18px;
    background: #fff;
    color: #111827;
    text-align: center;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.35);
}

.rdk-payment-handoff-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
    border-radius: 18px;
    background: #fff7ed;
    font-size: 28px;
}

.rdk-payment-handoff-dialog h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 24px;
    line-height: 1.2;
}

.rdk-payment-handoff-dialog p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
}

.rdk-payment-handoff-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(234, 88, 12, 0.28);
}

.rdk-payment-status-dialog {
    width: min(440px, 100%);
}

.rdk-payment-status-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #fed7aa;
    border-top-color: #ea580c;
    border-radius: 50%;
    animation: rdk-payment-status-spin 0.8s linear infinite;
}

.rdk-payment-status-action {
    width: 100%;
    min-height: 48px;
    margin-top: 20px;
    padding: 12px 18px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(234, 88, 12, 0.24);
}

.rdk-payment-status-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(234, 88, 12, 0.3);
}

@keyframes rdk-payment-status-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
    body.rdk-page-bg:has(#welcomeHeader:not(.hidden)) {
        padding-top: 118px !important;
    }

    .rdk-fixed-header {
        padding: 7px 10px;
    }

    .rdk-fixed-header-inner {
        flex-wrap: wrap;
        gap: 7px 8px;
        min-height: 0;
    }

    .rdk-header-brand {
        flex: 0 0 auto;
        min-height: 38px;
        gap: 8px;
    }

    .rdk-header-brand-logo {
        width: 116px;
        height: 30px;
    }

    .rdk-header-brand .rdk-header-brand-subtitle,
    .rdk-header-account small {
        font-size: 10px;
    }

    .rdk-header-account {
        flex: 1 1 120px;
        text-align: right;
    }

    .rdk-header-account span {
        font-size: 12px;
    }

    .rdk-header-faq {
        min-height: 36px;
        padding: 0 9px;
        font-size: 12px;
    }

    .rdk-header-demo {
        min-height: 36px;
        padding: 4px 10px;
    }

    .rdk-header-demo-label {
        font-size: 11px;
    }

    .rdk-header-demo-label small {
        font-size: 8px;
    }

    .rdk-header-actions {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) auto;
        gap: 7px;
    }

    .rdk-header-crm,
    .rdk-header-pay-btn,
    .rdk-header-logout {
        min-height: 36px;
        padding: 0 10px;
        font-size: 12px;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .rdk-promo-bar-shop,
    .rdk-access-offer-banner-main {
        align-items: stretch;
        flex-direction: column;
    }

    .rdk-promo-cta,
    .rdk-access-offer-banner button {
        width: 100%;
    }

    .rdk-promo-entry {
        width: 100%;
        flex-direction: column;
    }

    .rdk-promo-input {
        width: 100%;
    }

    .rdk-access-offer-dialog {
        padding: 28px 22px 24px;
    }

    .rdk-access-offer-dialog h2 {
        font-size: 25px;
    }

    .rdk-checkout-dialog.is-promo-applied {
        padding: 26px 20px 22px;
        border-radius: 22px;
    }

    .rdk-checkout-dialog.is-promo-applied .rdk-access-offer-kicker {
        max-width: calc(100% - 32px);
        font-size: 10px;
        letter-spacing: 0.04em;
    }

    .rdk-checkout-dialog.is-promo-applied h2 {
        font-size: 30px;
    }

    .rdk-checkout-dialog.is-promo-applied .rdk-checkout-price {
        padding: 18px 14px 17px;
    }

    .rdk-checkout-dialog.is-promo-applied .rdk-checkout-price span {
        font-size: 64px;
    }

    .rdk-checkout-dialog.is-promo-applied .rdk-checkout-price strong {
        font-size: 24px;
    }

    .rdk-checkout-dialog.is-promo-applied .rdk-checkout-price b {
        font-size: 17px;
    }

    .rdk-checkout-confetti i:nth-child(3),
    .rdk-checkout-confetti i:nth-child(4),
    .rdk-checkout-confetti i:nth-child(5),
    .rdk-checkout-confetti i:nth-child(7) {
        display: none;
    }

    .rdk-telegram-handoff-actions {
        flex-direction: column;
    }

    .rdk-telegram-handoff-actions a,
    .rdk-telegram-handoff-actions button {
        width: 100%;
    }
}

html[data-crm-public-disabled='true'] .btn-crm-panel:disabled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

html[data-crm-public-disabled='true'] .btn-crm-panel:disabled::after {
    content: 'в розробці';
    display: inline-block;
    margin-left: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0.9;
}

/* ===== HERO ===== */
.rdk-hero {
    padding: 64px 48px 56px;
    background: linear-gradient(145deg, #111827 0%, #1e1b4b 60%, #312e81 100%);
    background-size: 200% 200%;
    animation: rdk-hero-gradient 12s ease infinite;
    border: none;
    border-radius: var(--rdk-radius-xl);
    box-shadow: 0 8px 32px rgba(17, 24, 39, 0.25);
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes rdk-hero-gradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.rdk-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(79, 70, 229, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

/* Animated noise grain overlay */
.rdk-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
    opacity: 0.5;
    pointer-events: none;
    mix-blend-mode: overlay;
    z-index: 3;
}

.rdk-hero > :not(.rdk-hero-particles):not(.rdk-hero-orb) {
    position: relative;
    z-index: 4;
}

.rdk-hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.52;
}

.rdk-hero-particles canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Floating orbs */
.rdk-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    will-change: transform;
    z-index: 0;
}

.rdk-hero-orb--1 {
    width: 300px;
    height: 300px;
    background: rgba(99, 102, 241, 0.2);
    top: -80px;
    left: -60px;
    animation: rdk-orb-float-1 8s ease-in-out infinite;
}

.rdk-hero-orb--2 {
    width: 200px;
    height: 200px;
    background: rgba(168, 85, 247, 0.15);
    bottom: -40px;
    right: -40px;
    animation: rdk-orb-float-2 10s ease-in-out infinite;
}

.rdk-hero-orb--3 {
    width: 150px;
    height: 150px;
    background: rgba(59, 130, 246, 0.12);
    top: 40%;
    left: 60%;
    animation: rdk-orb-float-3 7s ease-in-out infinite;
}

@keyframes rdk-orb-float-1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, 20px) scale(1.1);
    }

    66% {
        transform: translate(-15px, 35px) scale(0.95);
    }
}

@keyframes rdk-orb-float-2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-25px, -15px) scale(1.08);
    }

    66% {
        transform: translate(20px, -30px) scale(0.92);
    }
}

@keyframes rdk-orb-float-3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-20px, 20px) scale(1.15);
    }
}

.rdk-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.rdk-hero-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    animation: rdk-badge-shine 4s ease-in-out infinite;
}

@keyframes rdk-badge-shine {

    0%,
    70%,
    100% {
        left: -100%;
    }

    80% {
        left: 200%;
    }
}

.rdk-hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    color: #ffffff;
    margin: 0 0 16px;
    letter-spacing: -0.03em;
}

.rdk-hero h1 .rdk-hero-copy-desktop > span,
.rdk-hero h1 .rdk-hero-copy-mobile > span {
    background: linear-gradient(90deg, #a5b4fc 0%, #c4b5fd 25%, #f0abfc 50%, #a5b4fc 75%, #818cf8 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rdk-text-shimmer 6s ease-in-out infinite;
}

@keyframes rdk-text-shimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.rdk-hero-subtitle {
    font-size: clamp(15px, 1.8vw, 18px);
    color: rgba(255, 255, 255, 0.65);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.rdk-hero-copy-mobile,
.rdk-mobile-product-proof,
.rdk-mobile-hero-actions {
    display: none;
}

.rdk-hero-copy-desktop {
    display: inline;
}

.rdk-hero-offer {
    display: block;
    margin-top: 12px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.rdk-workspace-home [data-public-marketing],
.rdk-hero--workspace .rdk-hero-offer,
.rdk-hero--workspace .rdk-hero-steps {
    display: none !important;
}

.rdk-hero.rdk-hero--workspace {
    padding: 34px 42px 36px;
    background: linear-gradient(135deg, #0f172a 0%, #172554 58%, #14532d 135%);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.2);
}

.rdk-hero--workspace .rdk-hero-badge {
    margin-bottom: 16px;
    border-color: rgba(134, 239, 172, 0.3);
    background: rgba(22, 163, 74, 0.18);
    color: #dcfce7;
    text-transform: none;
}

.rdk-hero--workspace h1 {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(28px, 4vw, 42px);
}

.rdk-hero--workspace .rdk-hero-subtitle {
    max-width: 680px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.76);
}

.rdk-hero--workspace .rdk-hero-cta {
    background: #fff;
    color: #14532d;
}

.rdk-hero--workspace .rdk-hero-cta svg {
    stroke: currentColor;
}

.rdk-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    background: #ffffff;
    border: none;
    border-radius: var(--rdk-radius);
    cursor: pointer;
    transition: background var(--rdk-transition), transform var(--rdk-transition), box-shadow var(--rdk-transition);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), 0 0 20px rgba(255, 255, 255, 0.1);
    letter-spacing: -0.01em;
    position: relative;
    animation: rdk-cta-glow 3s ease-in-out infinite;
}

@keyframes rdk-cta-glow {

    0%,
    100% {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), 0 0 20px rgba(255, 255, 255, 0.08);
    }

    50% {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), 0 0 40px rgba(165, 180, 252, 0.3), 0 0 80px rgba(99, 102, 241, 0.15);
    }
}

.rdk-hero-cta:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.rdk-hero-cta svg {
    stroke: #111827;
}

/* Secondary hero CTA */
.rdk-hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 13px 24px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--rdk-radius);
    cursor: pointer;
    transition: all var(--rdk-transition);
    text-decoration: none;
}

.rdk-hero-cta-secondary:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 20px rgba(165, 180, 252, 0.1);
    transform: translateY(-1px);
}

[data-student-login-entry][hidden] {
    display: none !important;
}

/* Supporting steps */
.rdk-hero-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 44px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rdk-hero-step {
    text-align: center;
    padding: 10px 6px;
    position: relative;
    transition: transform 0.3s ease;
}

.rdk-hero-step:hover {
    transform: translateY(-3px);
}

.rdk-hero-step-num {
    width: 28px;
    height: 28px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    font-size: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
}

.rdk-hero-step:hover .rdk-hero-step-num {
    background: rgba(99, 102, 241, 0.35);
    border-color: rgba(165, 180, 252, 0.4);
    transform: scale(1.15);
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.3);
}

.rdk-hero-step:hover .rdk-hero-step-text {
    color: rgba(255, 255, 255, 0.75);
}

.rdk-hero-step-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

@media (max-width: 640px) {
    .rdk-hero {
        padding: 32px 16px 28px;
        border-radius: 16px;
    }

    .rdk-hero-badge {
        max-width: 100%;
        margin-bottom: 18px;
        white-space: normal;
        justify-content: center;
        text-align: center;
        line-height: 1.25;
    }

    .rdk-hero h1 {
        font-size: 30px;
        line-height: 1.12;
    }

    .rdk-hero-subtitle {
        margin-bottom: 26px;
        font-size: 14px;
        line-height: 1.55;
    }

    .rdk-hero > div[style*="display:flex"] {
        align-items: stretch !important;
        flex-direction: column;
    }

    .rdk-hero-cta,
    .rdk-hero-cta-secondary {
        width: 100%;
        justify-content: center;
        min-height: 46px;
    }

    .rdk-hero-orb {
        filter: blur(44px);
    }

    .rdk-hero-orb--1 {
        width: 210px;
        height: 210px;
    }

    .rdk-hero-orb--2 {
        width: 160px;
        height: 160px;
    }

    .rdk-hero-steps {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 30px;
        padding-top: 22px;
    }

    .rdk-hero-step {
        padding: 8px 4px;
    }

    .rdk-hero.rdk-hero--workspace {
        padding: 26px 18px 28px;
    }

    .rdk-hero--workspace h1 {
        font-size: 28px;
    }
}

/* ===== TRUST BLOCK ===== */
.rdk-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 16px 24px;
    margin-top: 8px;
}

.rdk-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--rdk-text-muted);
}

.rdk-trust-item a {
    color: var(--rdk-text-secondary);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--rdk-transition);
}

.rdk-trust-item a:hover {
    color: var(--rdk-primary);
}

.rdk-trust-separator {
    width: 1px;
    height: 14px;
    background: var(--rdk-border);
}

@media (max-width: 640px) {
    .rdk-trust {
        gap: 10px 14px;
    }

    .rdk-trust-separator {
        display: none;
    }
}

/* ===== HOME CONTENT BLOCKS ===== */
.rdk-home-section {
    margin: 28px 0 0;
}

.rdk-home-section--compact {
    margin-top: 18px;
}

.rdk-home-section-head {
    max-width: 720px;
    margin: 0 auto 20px;
    text-align: center;
}

.rdk-home-section-head--left {
    margin-left: 0;
    text-align: left;
}

.rdk-home-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #ecfeff;
    color: #0f766e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rdk-home-section h2 {
    margin: 0;
    color: var(--rdk-text);
    font-size: 24px;
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: 0;
}

.rdk-home-section-head p {
    margin: 9px auto 0;
    color: var(--rdk-text-secondary);
    font-size: 14px;
    line-height: 1.55;
}

.rdk-home-section-head--left p {
    margin-left: 0;
}

.rdk-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.rdk-feature-card,
.rdk-launch-card,
.rdk-faq-list details {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.rdk-feature-card {
    padding: 18px;
    text-align: left;
}

.rdk-feature-card span,
.rdk-launch-card-label {
    display: inline-flex;
    margin-bottom: 10px;
    color: #0369a1;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rdk-feature-card h3,
.rdk-launch-card h3 {
    margin: 0 0 8px;
    color: var(--rdk-text);
    font-size: 16px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0;
}

.rdk-feature-card p,
.rdk-launch-card p,
.rdk-faq-list p {
    margin: 0;
    color: var(--rdk-text-secondary);
    font-size: 13px;
    line-height: 1.55;
}

.rdk-launch-section {
    margin-top: 34px;
    padding: 26px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.rdk-launch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.rdk-launch-card {
    padding: 22px;
}

.rdk-launch-card--accent {
    border-color: rgba(20, 184, 166, 0.35);
    background: linear-gradient(180deg, #f0fdfa, #ffffff);
}

.rdk-faq-section {
    margin: 30px 0 0;
}

.rdk-faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.rdk-faq-list details {
    padding: 0;
    overflow: hidden;
}

.rdk-faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 58px;
    padding: 16px 18px;
    color: var(--rdk-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    cursor: pointer;
    list-style: none;
}

.rdk-faq-list summary::-webkit-details-marker {
    display: none;
}

.rdk-faq-list summary::after {
    content: '+';
    flex: 0 0 auto;
    color: #0f766e;
    font-size: 20px;
    font-weight: 700;
}

.rdk-faq-list details[open] summary::after {
    content: '-';
}

.rdk-faq-list details p {
    padding: 0 18px 18px;
}

@media (max-width: 900px) {
    .rdk-feature-grid,
    .rdk-launch-grid,
    .rdk-faq-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .rdk-home-section h2 {
        font-size: 21px;
    }

    .rdk-home-section {
        margin-top: 22px;
    }

    .rdk-feature-grid,
    .rdk-launch-grid,
    .rdk-faq-list {
        gap: 10px;
    }

    .rdk-feature-card,
    .rdk-launch-card {
        padding: 16px;
    }

    .rdk-launch-section {
        padding: 18px;
        border-radius: 12px;
    }
}

@media (max-width: 420px) {
    body.rdk-page-bg:has(#welcomeHeader:not(.hidden)) {
        padding-top: 154px !important;
    }

    .rdk-header-account {
        order: 4;
        flex: 0 0 100%;
        text-align: left;
    }

    .rdk-header-actions {
        grid-template-columns: 1fr;
    }

    .rdk-header-crm,
    .rdk-header-pay-btn,
    .rdk-header-logout {
        width: 100%;
    }

    .rdk-hero h1 {
        font-size: 27px;
    }

    .rdk-hero-steps {
        grid-template-columns: 1fr;
    }
}

/* ===== MOBILE SALES JOURNEY + DESKTOP EDITOR HANDOFF ===== */
body.rdk-mobile-handoff-open {
    overflow: hidden;
}

.rdk-mobile-editor-handoff {
    position: fixed;
    inset: 0;
    z-index: 10080;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 18px 12px max(18px, env(safe-area-inset-bottom));
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
}

.rdk-mobile-editor-handoff-card {
    position: relative;
    width: min(100%, 460px);
    padding: 28px 22px 24px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 26px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.42);
    text-align: center;
}

.rdk-mobile-editor-handoff-close {
    position: absolute;
    top: 12px;
    right: 14px;
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font: inherit;
    font-size: 25px;
    cursor: pointer;
}

.rdk-mobile-editor-handoff-icon {
    display: flex;
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #eef2ff, #fae8ff);
    font-size: 29px;
}

.rdk-mobile-editor-handoff-kicker {
    margin: 0 0 7px;
    color: #4f46e5;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rdk-mobile-editor-handoff-card h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.rdk-mobile-editor-handoff-copy {
    margin: 14px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.58;
}

.rdk-mobile-editor-handoff-actions {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.rdk-mobile-editor-handoff-primary,
.rdk-mobile-editor-handoff-secondary {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 14px;
    font: inherit;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.rdk-mobile-editor-handoff-primary {
    border: 0;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.28);
}

.rdk-mobile-editor-handoff-secondary {
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #3730a3;
}

.rdk-mobile-editor-handoff-link {
    padding: 7px 10px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rdk-mobile-editor-handoff-status {
    min-height: 18px;
    margin: 11px 0 0;
    color: #15803d;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 640px) {
    body.rdk-page-bg:has(#welcomeHeader:not(.hidden)) {
        padding-top: 76px !important;
    }

    .rdk-fixed-header {
        padding: 8px 10px;
    }

    .rdk-fixed-header-inner {
        display: grid;
        grid-template-columns: minmax(86px, 1fr) auto auto;
        grid-template-areas: "brand demo actions";
        gap: 7px;
    }

    .rdk-header-account,
    .rdk-header-faq,
    .rdk-header-logout {
        display: none !important;
    }

    .rdk-header-brand-logo {
        width: 102px;
        height: 27px;
    }

    .rdk-header-brand .rdk-header-brand-subtitle {
        display: none;
    }

    .rdk-header-demo {
        min-height: 40px;
        padding: 5px 9px;
    }

    .rdk-header-demo-label {
        font-size: 10px;
    }

    .rdk-header-actions {
        justify-content: flex-end;
    }

    .rdk-header-crm,
    .rdk-header-pay-btn {
        min-height: 40px;
        max-width: 116px;
        padding: 0 10px;
        font-size: 10px;
    }

    .rdk-hero {
        padding: 25px 14px 22px;
    }

    .rdk-hero-copy-desktop {
        display: none;
    }

    .rdk-hero-copy-mobile {
        display: inline;
    }

    .rdk-hero h1 {
        font-size: clamp(27px, 8vw, 33px);
        line-height: 1.08;
    }

    .rdk-hero-subtitle {
        max-width: 340px;
        margin-bottom: 18px;
        font-size: 13px;
        line-height: 1.5;
    }

    .rdk-hero-offer {
        margin-top: 10px;
        font-size: 13px;
    }

    .rdk-mobile-product-proof {
        display: grid;
        width: min(100%, 350px);
        min-height: 188px;
        margin: 0 auto 16px;
        grid-template-columns: 0.86fr 1.14fr;
        gap: 8px;
        padding: 8px;
        border: 1px solid rgba(255, 255, 255, 0.17);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: 0 18px 40px rgba(2, 6, 23, 0.24);
        backdrop-filter: blur(8px);
        overflow: hidden;
    }

    .rdk-mobile-product-proof-frame {
        overflow: hidden;
        border-radius: 14px;
        background: #ffffff;
    }

    .rdk-mobile-product-proof-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
    }

    .rdk-mobile-product-proof-crm {
        display: flex;
        min-width: 0;
        flex-direction: column;
        gap: 7px;
        justify-content: center;
        padding: 12px 9px;
        border-radius: 14px;
        background: #ffffff;
        color: #0f172a;
        text-align: left;
    }

    .rdk-mobile-product-proof-crm > span {
        color: #64748b;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .rdk-mobile-product-proof-crm strong {
        display: block;
        padding: 9px;
        border: 1px solid #e2e8f0;
        border-radius: 9px;
        background: #f8fafc;
        font-size: 12px;
        white-space: nowrap;
    }

    .rdk-mobile-product-proof-crm small {
        color: #15803d;
        font-size: 10px;
        font-weight: 800;
    }

    .rdk-mobile-hero-actions {
        display: grid;
        width: min(100%, 350px);
        gap: 9px;
        margin: 0 auto;
    }

    .rdk-mobile-hero-demo,
    .rdk-mobile-hero-pay,
    .rdk-mobile-hero-student {
        display: flex;
        min-height: 50px;
        align-items: center;
        justify-content: center;
        border-radius: 13px;
        font: inherit;
        font-size: 15px;
        font-weight: 850;
        text-decoration: none;
    }

    .rdk-mobile-hero-demo {
        background: linear-gradient(135deg, #f97316, #ea580c);
        color: #ffffff;
        box-shadow: 0 13px 28px rgba(234, 88, 12, 0.28);
    }

    .rdk-mobile-hero-pay {
        border: 1px solid rgba(255, 255, 255, 0.32);
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
        cursor: pointer;
    }

    .rdk-mobile-hero-student {
        border: 1px solid rgba(134, 239, 172, 0.7);
        background: rgba(22, 163, 74, 0.18);
        color: #ffffff;
        cursor: pointer;
    }

    .rdk-mobile-hero-actions p {
        margin: 1px 0 0;
        color: rgba(255, 255, 255, 0.62);
        font-size: 11px;
        text-align: center;
    }

    .rdk-hero:not(.rdk-hero--workspace) .rdk-desktop-hero-actions,
    .rdk-hero:not(.rdk-hero--workspace) .rdk-hero-steps {
        display: none !important;
    }
}

/* ===== FAQ / HELP PAGE ===== */
.rdk-faq-page {
    min-height: 100vh;
    padding: 22px 16px 48px;
    color: var(--rdk-text);
}

.rdk-help-header,
.rdk-help-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.rdk-help-header {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 64px;
    padding: 10px 14px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(14px);
    position: relative;
    z-index: 2;
}

.rdk-help-header .rdk-header-brand {
    text-decoration: none;
}

.rdk-help-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.rdk-help-nav a,
.rdk-help-login {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.rdk-help-nav a:hover,
.rdk-help-nav a[aria-current='page'] {
    background: #eef2ff;
    color: #3730a3;
}

.rdk-help-login {
    background: #111827;
    color: #ffffff;
}

.rdk-help-shell {
    position: relative;
    z-index: 1;
    padding-top: 22px;
}

.rdk-help-hero {
    padding: 38px;
    border-radius: 16px;
    background: linear-gradient(145deg, #111827 0%, #1e1b4b 62%, #0f766e 100%);
    color: #ffffff;
    box-shadow: 0 20px 54px rgba(17, 24, 39, 0.22);
}

.rdk-help-hero h1 {
    max-width: 760px;
    margin: 8px 0 12px;
    font-size: clamp(32px, 4.8vw, 56px);
    line-height: 1.04;
    font-weight: 850;
    letter-spacing: 0;
}

.rdk-help-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
    line-height: 1.65;
}

.rdk-help-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    max-width: 820px;
    margin-top: 26px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

.rdk-help-search input {
    min-height: 48px;
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    color: #0f172a;
    font: inherit;
    font-weight: 700;
    outline: none;
}

.rdk-help-search button,
.rdk-faq-admin-bar button,
.rdk-help-card-actions button,
.rdk-help-modal-actions button {
    min-height: 42px;
    border: none;
    border-radius: 8px;
    padding: 0 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}

.rdk-help-search button {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.rdk-faq-admin-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.16);
    color: #d1fae5;
    font-size: 13px;
    font-weight: 750;
}

.rdk-faq-admin-bar button,
.rdk-help-modal-actions button[type='submit'] {
    background: #10b981;
    color: #ffffff;
}

.rdk-help-layout {
    display: block;
    margin-top: 20px;
}

.rdk-help-layout--single .rdk-help-results {
    max-width: 900px;
    margin: 0 auto;
}

.rdk-help-card,
.rdk-help-empty,
.rdk-help-modal-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.rdk-help-results-meta {
    margin-bottom: 10px;
    color: #64748b;
    font-size: 13px;
    font-weight: 750;
}

.rdk-help-articles {
    display: grid;
    gap: 12px;
}

.rdk-help-card {
    padding: 20px;
}

.rdk-help-card-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.rdk-help-type,
.rdk-help-category,
.rdk-help-draft,
.rdk-help-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
}

.rdk-help-type {
    background: #ecfeff;
    color: #0f766e;
}

.rdk-help-category {
    background: #f1f5f9;
    color: #475569;
}

.rdk-help-draft {
    background: #fef3c7;
    color: #92400e;
}

.rdk-help-card h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.22;
    font-weight: 850;
}

.rdk-help-card p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.65;
}

.rdk-help-video-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 14px;
    padding: 0 14px;
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

.rdk-help-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.rdk-help-tags span {
    background: #f8fafc;
    color: #64748b;
}

.rdk-help-card-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.rdk-help-card-actions button {
    background: #eef2ff;
    color: #3730a3;
}

.rdk-help-empty {
    padding: 28px;
    text-align: center;
}

.rdk-help-empty h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 850;
}

.rdk-help-empty p {
    margin: 0;
    color: #64748b;
}

.rdk-help-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
}

.rdk-help-modal.hidden,
.rdk-faq-admin-bar.hidden,
.rdk-help-empty.hidden,
.rdk-help-danger.hidden {
    display: none !important;
}

.rdk-help-modal-card {
    width: min(760px, 100%);
    max-height: min(760px, calc(100vh - 32px));
    overflow: auto;
    padding: 20px;
}

.rdk-help-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.rdk-help-modal-head h2 {
    margin: 5px 0 0;
    font-size: 24px;
    font-weight: 850;
}

.rdk-help-modal-head button {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 8px;
    background: #f1f5f9;
    color: #334155;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.rdk-help-modal-card label {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.rdk-help-modal-card label span {
    color: #475569;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.rdk-help-modal-card input,
.rdk-help-modal-card select,
.rdk-help-modal-card textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    color: #0f172a;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.rdk-help-modal-card textarea {
    resize: vertical;
}

.rdk-help-modal-card input:focus,
.rdk-help-modal-card select:focus,
.rdk-help-modal-card textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}

.rdk-help-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rdk-help-check {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 8px !important;
}

.rdk-help-check input {
    width: 18px;
    height: 18px;
}

.rdk-help-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.rdk-help-modal-actions button {
    background: #e2e8f0;
    color: #0f172a;
}

.rdk-help-modal-actions .rdk-help-danger {
    margin-right: auto;
    background: #fee2e2;
    color: #b91c1c;
}

@media (max-width: 820px) {
    .rdk-help-header {
        flex-wrap: wrap;
    }

    .rdk-help-nav {
        order: 3;
        width: 100%;
        margin-left: 0;
    }

}

@media (max-width: 640px) {
    .rdk-faq-page {
        padding: 10px 10px 30px;
    }

    .rdk-help-hero {
        padding: 28px 18px;
    }

    .rdk-help-search,
    .rdk-help-form-grid {
        grid-template-columns: 1fr;
    }

    .rdk-faq-admin-bar,
    .rdk-help-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ===== SECTION HEADER ===== */
.rdk-section-header {
    text-align: center;
    margin-bottom: 28px;
}

.rdk-section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--rdk-text);
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}

.rdk-section-header p {
    font-size: 14px;
    color: var(--rdk-text-muted);
    margin: 0;
}

/* ===== BOTTOM CTA ===== */
.rdk-bottom-cta {
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(145deg, #111827 0%, #1e1b4b 60%, #312e81 100%);
    background-size: 200% 200%;
    animation: rdk-hero-gradient 12s ease infinite;
    border: none;
    border-radius: var(--rdk-radius-xl);
    box-shadow: 0 8px 32px rgba(17, 24, 39, 0.2);
    position: relative;
    overflow: hidden;
}

.rdk-bottom-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    pointer-events: none;
    animation: rdk-cta-radial-pulse 4s ease-in-out infinite;
}

@keyframes rdk-cta-radial-pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.rdk-bottom-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
    opacity: 0.4;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.rdk-bottom-cta h3 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    position: relative;
    letter-spacing: -0.02em;
}

.rdk-bottom-cta p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 24px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.rdk-bottom-cta .rdk-hero-cta {
    font-size: 14px;
    padding: 11px 26px;
    position: relative;
}

/* ===== BUTTONS ===== */
.rdk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--rdk-radius);
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--rdk-transition);
    font-family: inherit;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.rdk-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rdk-btn-primary {
    background: var(--rdk-primary);
    color: var(--rdk-text-inverse);
}

.rdk-btn-primary:hover:not(:disabled) {
    background: var(--rdk-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.rdk-btn-secondary {
    background: var(--rdk-bg-secondary);
    color: var(--rdk-text);
    border: 1px solid var(--rdk-border);
}

.rdk-btn-secondary:hover:not(:disabled) {
    background: var(--rdk-border);
}

.rdk-btn-danger {
    background: var(--rdk-danger);
    color: var(--rdk-text-inverse);
}

.rdk-btn-danger:hover:not(:disabled) {
    background: #dc2626;
}

.rdk-btn-ghost {
    background: transparent;
    color: var(--rdk-text-secondary);
}

.rdk-btn-ghost:hover:not(:disabled) {
    background: var(--rdk-bg-secondary);
    color: var(--rdk-text);
}

.rdk-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.rdk-btn-lg {
    padding: 13px 28px;
    font-size: 15px;
}

.rdk-btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--rdk-radius-sm);
}

/* ===== CARDS ===== */
.rdk-card {
    background: var(--rdk-bg-card);
    border: 1px solid var(--rdk-border);
    border-radius: var(--rdk-radius-lg);
    padding: var(--rdk-space-lg);
    box-shadow: var(--rdk-shadow-sm);
    transition: box-shadow 0.4s ease, transform 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.rdk-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(79, 70, 229, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.rdk-card:hover::before {
    opacity: 1;
}

.rdk-card:hover {
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.08), 0 0 0 1px rgba(79, 70, 229, 0.1);
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, 0.2);
}

.rdk-card>* {
    position: relative;
    z-index: 1;
}

.rdk-card-interactive:hover {
    box-shadow: var(--rdk-shadow-lg), 0 0 0 1px rgba(79, 70, 229, 0.2);
    border-color: var(--rdk-primary);
}

/* ===== INPUTS ===== */
.rdk-input,
.rdk-select,
.rdk-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--rdk-border);
    border-radius: var(--rdk-radius);
    font-size: 14px;
    font-family: inherit;
    background: var(--rdk-bg-card);
    color: var(--rdk-text);
    outline: none;
    transition: border-color var(--rdk-transition), box-shadow var(--rdk-transition);
}

.rdk-input:focus,
.rdk-select:focus,
.rdk-textarea:focus {
    border-color: var(--rdk-border-focus);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.rdk-input::placeholder {
    color: var(--rdk-text-muted);
}

.rdk-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--rdk-text-secondary);
    margin-bottom: 6px;
}

/* ===== MODALS ===== */
.rdk-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--rdk-transition);
    backdrop-filter: blur(4px);
}

.rdk-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.rdk-modal {
    background: var(--rdk-bg-card);
    border-radius: var(--rdk-radius-xl);
    padding: var(--rdk-space-xl);
    max-width: 560px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--rdk-shadow-xl);
    transform: scale(0.95) translateY(10px);
    transition: transform var(--rdk-transition-slow);
}

.rdk-modal-overlay.active .rdk-modal {
    transform: scale(1) translateY(0);
}

.rdk-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--rdk-space-lg);
}

.rdk-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--rdk-text);
}

.rdk-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--rdk-bg-secondary);
    color: var(--rdk-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all var(--rdk-transition);
}

.rdk-modal-close:hover {
    background: var(--rdk-danger-light);
    color: var(--rdk-danger);
}

/* ===== TOAST NOTIFICATIONS ===== */
.rdk-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.rdk-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--rdk-radius);
    background: var(--rdk-bg-card);
    border: 1px solid var(--rdk-border);
    box-shadow: var(--rdk-shadow-lg);
    font-size: 14px;
    color: var(--rdk-text);
    min-width: 300px;
    max-width: 420px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rdk-toast.show {
    transform: translateX(0);
}

.rdk-toast-success {
    border-left: 4px solid var(--rdk-success);
}

.rdk-toast-error {
    border-left: 4px solid var(--rdk-danger);
}

.rdk-toast-warning {
    border-left: 4px solid var(--rdk-warning);
}

.rdk-toast-info {
    border-left: 4px solid var(--rdk-info);
}

.rdk-toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.rdk-toast-message {
    flex: 1;
}

.rdk-toast-close {
    background: none;
    border: none;
    color: var(--rdk-text-muted);
    cursor: pointer;
    padding: 2px;
    font-size: 16px;
}

/* ===== BADGES ===== */
.rdk-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.rdk-badge-free {
    background: #ecfdf5;
    color: #059669;
}

.rdk-badge-premium {
    background: #fef3c7;
    color: #92400e;
}

.rdk-badge-status {
    background: var(--rdk-primary-light);
    color: var(--rdk-primary);
}

/* ===== EMPTY STATES ===== */
.rdk-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--rdk-space-2xl);
    text-align: center;
}

.rdk-empty-state-icon {
    font-size: 48px;
    margin-bottom: var(--rdk-space-md);
    opacity: 0.6;
}

.rdk-empty-state-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--rdk-text);
    margin-bottom: var(--rdk-space-sm);
}

.rdk-empty-state-text {
    font-size: 14px;
    color: var(--rdk-text-muted);
    max-width: 320px;
    margin-bottom: var(--rdk-space-lg);
}

/* ===== TABLES ===== */
.rdk-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--rdk-border);
    border-radius: var(--rdk-radius-lg);
}

.rdk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.rdk-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: var(--rdk-text-secondary);
    background: var(--rdk-bg-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rdk-table td {
    padding: 12px 16px;
    border-top: 1px solid var(--rdk-border);
    color: var(--rdk-text);
}

.rdk-table tr:hover td {
    background: var(--rdk-bg);
}

/* ===== TOOLBAR ===== */
.rdk-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--rdk-bg-card);
    border-bottom: 1px solid var(--rdk-border);
}

.rdk-toolbar-separator {
    width: 1px;
    height: 24px;
    background: var(--rdk-border);
    margin: 0 4px;
}

.rdk-toolbar-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== TABS ===== */
.rdk-tabs {
    display: flex;
    gap: 2px;
    background: var(--rdk-bg-secondary);
    padding: 3px;
    border-radius: var(--rdk-radius);
    border: 1px solid var(--rdk-border);
}

.rdk-tab {
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rdk-text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--rdk-transition);
}

.rdk-tab:hover {
    color: var(--rdk-text-secondary);
}

.rdk-tab.active {
    background: var(--rdk-bg-card);
    color: var(--rdk-text);
    box-shadow: var(--rdk-shadow-sm);
}

/* ===== BREADCRUMB ===== */
.rdk-breadcrumb {
    padding: 8px 12px;
    font-size: 12px;
    color: var(--rdk-text-muted);
    border-bottom: 1px solid var(--rdk-border);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.rdk-breadcrumb-item {
    color: var(--rdk-text-secondary);
    cursor: pointer;
}

.rdk-breadcrumb-item:hover {
    color: var(--rdk-primary);
}

.rdk-breadcrumb-sep {
    color: var(--rdk-text-muted);
}

.rdk-breadcrumb-current {
    color: var(--rdk-primary);
    font-weight: 600;
}

/* ===== BLOCK ACTIONS (floating in iframe) ===== */
.rdk-block-actions {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    background: var(--rdk-bg-card);
    border: 1px solid var(--rdk-border);
    border-radius: var(--rdk-radius);
    padding: 4px;
    box-shadow: var(--rdk-shadow-lg);
    z-index: 99998;
}

.rdk-block-actions .rdk-btn-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--rdk-radius-sm);
    color: var(--rdk-text);
    transition: all var(--rdk-transition);
}

.rdk-block-actions .rdk-btn-icon:hover {
    background: var(--rdk-bg-secondary);
}

.rdk-block-actions .rdk-btn-icon.danger:hover {
    background: var(--rdk-danger-light);
    color: var(--rdk-danger);
}

/* ===== BLOCK GRID (insert block modal) ===== */
.rdk-block-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 4px;
}

.rdk-block-item {
    background: var(--rdk-bg-card);
    border: 1px solid var(--rdk-border);
    border-radius: var(--rdk-radius);
    padding: 12px;
    cursor: pointer;
    transition: all var(--rdk-transition);
    text-align: center;
}

.rdk-block-item:hover {
    border-color: var(--rdk-primary);
    box-shadow: var(--rdk-shadow);
    transform: translateY(-2px);
}

.rdk-block-item.selected {
    border-color: var(--rdk-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: var(--rdk-primary-light);
}

.rdk-block-item-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.rdk-block-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--rdk-text);
}

.rdk-block-item-desc {
    font-size: 11px;
    color: var(--rdk-text-muted);
    margin-top: 4px;
}

.rdk-insert-theme-label {
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rdk-text-muted);
}

.rdk-insert-theme-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--rdk-border);
    border-radius: var(--rdk-radius);
    background: #e2e8f0;
}

.rdk-insert-theme-btn {
    min-height: 34px;
    border: 0;
    border-radius: calc(var(--rdk-radius) - 2px);
    background: transparent;
    color: var(--rdk-text-muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--rdk-transition), color var(--rdk-transition), box-shadow var(--rdk-transition);
}

.rdk-insert-theme-btn.active {
    background: #ffffff;
    color: var(--rdk-text);
    box-shadow: var(--rdk-shadow-sm);
}

.rdk-insert-theme-btn[data-insert-block-theme="dark"].active {
    background: #0f172a;
    color: #f8fafc;
}

#insertBlockPreviewContainer.rdk-insert-preview-dark {
    background: #020617 !important;
}

/* ===== UNSAVED CHANGES INDICATOR ===== */
.has-changes {
    position: relative;
}

.has-changes::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: var(--rdk-warning);
    border-radius: 50%;
    border: 2px solid var(--rdk-bg-card);
}

/* ===== ADMIN PANEL ===== */
.admin-nav-btn {
    justify-content: flex-start;
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    border-radius: var(--rdk-radius);
    font-size: 14px;
}

.admin-nav-btn.active {
    background: var(--rdk-primary-light);
    color: var(--rdk-primary);
    font-weight: 600;
}

.admin-content {
    display: none;
}

.admin-content.active {
    display: block;
}

.admin-stat-card {
    background: var(--rdk-bg-card);
    border: 1px solid var(--rdk-border);
    border-radius: var(--rdk-radius-lg);
    padding: 20px;
}

.admin-stat-card .stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--rdk-text);
}

.admin-stat-card .stat-label {
    font-size: 13px;
    color: var(--rdk-text-muted);
    margin-top: 4px;
}

.rdk-badge-danger {
    background: var(--rdk-danger-light);
    color: #dc2626;
}

.rdk-badge-info {
    background: var(--rdk-info-light);
    color: #2563eb;
}

/* Analytics chart */
.analytics-bar {
    background: var(--rdk-primary);
    border-radius: 4px 4px 0 0;
    min-width: 20px;
    flex: 1;
    transition: height 0.3s ease;
    position: relative;
    cursor: pointer;
}

.analytics-bar:hover {
    background: var(--rdk-primary-hover);
}

.analytics-bar-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: var(--rdk-text-muted);
    white-space: nowrap;
}

.analytics-bar-value {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 700;
    color: var(--rdk-text);
}

.analytics-metric-card {
    background: var(--rdk-bg-card);
    border: 1px solid var(--rdk-border);
    border-radius: var(--rdk-radius-lg);
    padding: 20px;
    text-align: center;
}

.analytics-metric-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--rdk-primary);
}

.analytics-metric-label {
    font-size: 13px;
    color: var(--rdk-text-muted);
    margin-top: 4px;
}

/* ===== END RDAKTOR UI-KIT ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a90e2;
    --secondary-color: #7b68ee;
    --success-color: #2ecc71;
    --info-color: #3498db;
    --danger-color: #e74c3c;
    --dark-bg: #2c3e50;
    --light-bg: #ecf0f1;
    --border-color: #bdc3c7;
    --text-color: #2c3e50;
    --shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.18);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--rdk-page-bg);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-color);
}

.container {
    max-width: 1600px;
    margin: 0 auto;
}

header {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 2.5em;
}

header p {
    color: #7f8c8d;
    font-size: 1.1em;
}

.section {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

/* Upload Section */
.upload-area {
    border: 3px dashed var(--border-color);
    border-radius: 10px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary-color);
    background: #f8f9fa;
    transform: scale(1.02);
}

.upload-area svg {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.upload-area h3 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.upload-area p {
    color: #95a5a6;
    margin: 10px 0;
}

.file-info {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-top: 20px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #357abd;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #27ae60;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-info {
    background: var(--info-color);
    color: white;
}

.btn-info:hover {
    background: #2980b9;
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--light-bg);
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Toolbar */
.toolbar {
    background: linear-gradient(180deg, #2f3e52 0%, #253649 100%);
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.toolbar-right {
    display: flex;
    gap: 10px;
}

/* Editor Layout */
.editor-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 20px;
    min-height: 600px;
}

/* Control Panel */
.control-panel {
    background: #f8f9fb;
    border-radius: 16px;
    position: sticky;
    top: 10px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    box-shadow: var(--shadow-md);
    padding: 20px;
}

/* Fullscreen editor overrides */
#editorSection .control-panel {
    position: relative;
    top: auto;
    max-height: none;
    height: 100vh;
    padding: 16px;
}

.panel-header {
    background: var(--dark-bg);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
}

.panel-header h3 {
    margin: 0;
    font-size: 1.2em;
}

.tool-section {
    padding: 20px;
    background: white;
    border-radius: 14px;
    box-shadow: var(--shadow);
    margin-top: 18px;
}

.tool-section h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.hint {
    font-size: 0.9em;
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 10px;
}

.tool-list {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.tool-list li {
    padding: 6px 0;
    color: var(--text-color);
    border-bottom: 1px solid rgba(189, 195, 199, 0.3);
}

.tool-list li:last-child {
    border-bottom: none;
}

.tool-panel {
    background: #f4f6fb;
    border-radius: 10px;
    padding: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.panel-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.panel-actions .btn {
    flex-shrink: 0;
}

.file-hint {
    font-size: 0.9em;
    color: #52606d;
    display: block;
    margin-top: 8px;
}

.insert-hint {
    color: #e74c3c;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px 0;
}

.file-list {
    background: #f4f6fb;
    border-radius: 10px;
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid rgba(189, 195, 199, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

#textEditArea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1em;
    margin-top: 10px;
    resize: vertical;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1em;
    margin-top: 5px;
}

input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1em;
    margin-top: 5px;
}

/* Video Options */
.video-options {
    margin: 15px 0;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.video-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: normal;
}

.video-options input[type="radio"] {
    width: auto;
    margin: 0;
}

.video-options input[type="text"] {
    margin-top: 10px;
}

/* Preview Panel */
.preview-panel {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
}

.preview-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.page-select {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1em;
    cursor: pointer;
}

.preview-container {
    flex: 1;
    background: #eef2f7;
    border: 2px solid var(--border-color);
    margin: 10px;
    border-radius: 8px;
    overflow: auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

#previewFrame {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 600px;
}

.preview-viewport {
    width: 1200px;
    /* default desktop */
    margin: 0 auto;
    background: white;
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #dde3ea;
}

/* Segmented device controls */
.segmented {
    display: inline-flex;
    background: #e5e7eb;
    border-radius: 8px;
    padding: 2px;
}

.segmented .seg-btn {
    border: none;
    background: transparent;
    padding: 5px 11px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    transition: color 0.15s;
    white-space: nowrap;
}

.segmented .seg-btn:hover {
    color: #1e293b;
}

.segmented .seg-btn.active {
    background: white;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .10);
    font-weight: 600;
}

/* Smooth custom scrollbars */
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

*::-webkit-scrollbar-track {
    background: #f1f5f9;
}

/* File List */
#fileList {
    background: white;
    border-radius: 6px;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.file-item {
    padding: 8px 12px;
    margin-bottom: 5px;
    background: var(--light-bg);
    border-radius: 4px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-item::before {
    content: "📄";
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: var(--dark-bg);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.btn-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    background: var(--light-bg);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.field-list {
    background: var(--light-bg);
    border-radius: 6px;
    padding: 15px;
    margin-top: 10px;
}

.field-item {
    padding: 10px;
    background: white;
    border-radius: 4px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.field-item:last-child {
    margin-bottom: 0;
}

/* Preview editing highlights */
.editing-highlight {
    outline: 2px dashed var(--primary-color) !important;
    cursor: pointer !important;
}

.editing-highlight:hover {
    outline-color: var(--secondary-color) !important;
    background: rgba(74, 144, 226, 0.1) !important;
}

/* Insert mode highlights */
.insert-mode-active {
    cursor: crosshair !important;
}

.insert-mode-active * {
    cursor: crosshair !important;
}

.insert-hover {
    outline: 3px dashed var(--success-color) !important;
    outline-offset: 3px;
    background: rgba(46, 204, 113, 0.15) !important;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2),
        0 0 20px rgba(46, 204, 113, 0.3) !important;
    animation: insertPulse 2s infinite;
}

@keyframes insertPulse {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2),
            0 0 20px rgba(46, 204, 113, 0.3);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(46, 204, 113, 0.3),
            0 0 30px rgba(46, 204, 113, 0.5);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .editor-layout {
        grid-template-columns: 1fr;
    }

    .control-panel {
        order: 2;
    }

    .preview-panel {
        order: 1;
        min-height: 500px;
    }
}

@media (max-width: 640px) {
    #insertBlockLeftPanel {
        width: 100% !important;
        min-width: 0 !important;
    }

    #insertBlockModal [style*="flex:1"] {
        display: none !important;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    .toolbar {
        flex-direction: column;
        gap: 10px;
    }

    .toolbar-right {
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success message */
.success-message {
    background: var(--success-color);
    color: white;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Pulse animation for insertion marker */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 15px 5px rgba(46, 204, 113, 0.3);
    }
}

/* Floating style popup for text editing */
.style-popup {
    position: absolute;
    z-index: 2000;
    width: 360px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 12px 12px 16px;
}

.style-popup.hidden {
    display: none !important;
}

.style-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.style-popup-header .btn-icon {
    border: none;
    font-size: 16px;
}

.style-popup-body label {
    margin: 6px 0 2px;
}

.style-popup-body select,
.style-popup-body input[type="number"],
.style-popup-body input[type="color"] {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #fff;
}

.style-popup-body textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #fff;
    resize: vertical;
}

.style-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}
}

/* Text block format buttons (B / I / U) */
.fmt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #374151;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    user-select: none;
    line-height: 1;
}

.fmt-btn:hover {
    background: #f1f5f9;
}

.fmt-btn[data-active="true"] {
    background: var(--rdk-primary);
    color: #fff;
    border-color: var(--rdk-primary);
}

/* ===== MOBILE HOME LAYOUT ===== */
@media (max-width: 640px) {
    body.rdk-page-bg:has(#welcomeHeader:not(.hidden)) {
        padding-top: 76px !important;
    }

    .rdk-fixed-header {
        padding: 8px 10px;
    }

    .rdk-fixed-header-inner {
        display: grid;
        grid-template-columns: minmax(86px, 1fr) auto auto;
        grid-template-areas: "brand demo actions";
        align-items: center;
        gap: 8px;
        min-height: 0;
    }

    .rdk-header-brand {
        grid-area: brand;
        order: 0;
        min-width: 0;
        min-height: 36px;
    }

    .rdk-header-brand-logo {
        width: 108px;
        height: 28px;
    }

    .rdk-header-brand .rdk-header-brand-subtitle {
        display: none;
    }

    .rdk-header-account,
    .rdk-header-faq {
        display: none !important;
    }

    .rdk-header-demo {
        grid-area: demo;
        min-height: 40px;
        padding: 5px 9px;
        gap: 4px;
    }

    .rdk-header-demo svg {
        width: 13px;
        height: 13px;
    }

    .rdk-header-demo-label {
        font-size: 10px;
    }

    .rdk-header-demo-label small {
        display: none;
    }

    .rdk-header-actions {
        grid-area: actions;
        order: 0;
        width: auto;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
    }

    .rdk-header-crm[disabled]:not(.is-active) {
        display: none;
    }

    .rdk-header-crm,
    .rdk-header-pay-btn {
        min-height: 40px;
        min-width: 0;
        padding: 0 10px;
        font-size: 10px;
    }

    .rdk-header-logout {
        display: none !important;
    }

    .rdk-header-pay-btn {
        max-width: 118px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .rdk-header-logout {
        max-width: 58px;
    }

    .rdk-hero {
        padding: 28px 16px 24px;
    }

    .rdk-hero h1 {
        font-size: 27px;
        line-height: 1.1;
    }

    .rdk-hero-subtitle {
        max-width: 310px;
        margin-bottom: 20px;
        font-size: 13px;
        line-height: 1.5;
    }

    .rdk-hero-steps {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 22px;
        padding-top: 18px;
    }

    .rdk-hero-step {
        padding: 6px 2px;
    }

    .rdk-hero-step-text {
        font-size: 10px;
    }
}

@media (max-width: 420px) {
    body.rdk-page-bg:has(#welcomeHeader:not(.hidden)) {
        padding-top: 76px !important;
    }

    .rdk-header-account {
        flex: initial;
    }

    .rdk-header-actions {
        grid-template-columns: none;
    }

    .rdk-header-crm.is-active {
        padding-right: 7px;
        padding-left: 7px;
        font-size: 9px;
    }

    .rdk-hero-steps {
        grid-template-columns: 1fr 1fr;
    }

    .rdk-hero--workspace h1 {
        font-size: 26px;
    }
}

/* ===== Home page (guest), 2026-11: calm light layout, real product shots, line icons ===== */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/brand/fonts/manrope-cyrillic-700-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/brand/fonts/manrope-latin-700-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --home-ink: #16181d;
    --home-ink-2: #4a505c;
    --home-muted: #6b7280;
    --home-line: #e6e2d9;
    --home-paper: #fbfaf7;
    --home-tint: #f3f0ea;
    --home-accent: #e2580b;
    --home-accent-hover: #c74a07;
    --home-heading: 'Manrope', 'Inter', system-ui, sans-serif;
}

.rdk-i {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rdk-header-account.is-guest {
    visibility: hidden;
}

[data-public-marketing][hidden],
[data-student-login-entry][hidden] {
    display: none !important;
}

@media (max-width: 1100px) {
    .rdk-header-link {
        display: none !important;
    }
}

/* Hero: light paper card instead of the dark gradient, no particles / orbs / shine. */
.rdk-hero--split:not(.rdk-hero--workspace) {
    padding: 56px 48px 48px;
    border: 1px solid var(--home-line);
    border-radius: 20px;
    background: var(--home-paper);
    box-shadow: none;
    animation: none;
    text-align: left;
}

.rdk-hero--split:not(.rdk-hero--workspace)::before,
.rdk-hero--split:not(.rdk-hero--workspace)::after,
.rdk-hero--split:not(.rdk-hero--workspace) .rdk-hero-particles,
.rdk-hero--split:not(.rdk-hero--workspace) .rdk-hero-orb,
.rdk-hero--split:not(.rdk-hero--workspace) .rdk-hero-steps,
.rdk-hero--split:not(.rdk-hero--workspace) .rdk-hero-badge::after {
    display: none !important;
}

.rdk-hero--split:not(.rdk-hero--workspace) .rdk-hero-badge {
    margin-bottom: 18px;
    padding: 0;
    border: 0;
    background: none;
    backdrop-filter: none;
    color: var(--home-accent);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.rdk-hero--split:not(.rdk-hero--workspace) h1 {
    max-width: 640px;
    margin: 0 0 18px;
    color: var(--home-ink);
    font-family: var(--home-heading);
    font-size: clamp(32px, 2.9vw, 40px);
    font-weight: 700;
    line-height: 1.12;
    text-wrap: balance;
    letter-spacing: -0.025em;
}

.rdk-hero--split:not(.rdk-hero--workspace) h1 .rdk-hero-copy-desktop > span,
.rdk-hero--split:not(.rdk-hero--workspace) h1 .rdk-hero-copy-mobile > span {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--home-ink-2);
    animation: none;
}

.rdk-hero--split:not(.rdk-hero--workspace) .rdk-hero-subtitle {
    max-width: 560px;
    margin: 0 0 28px;
    color: var(--home-ink-2);
    font-size: 17px;
    line-height: 1.6;
}

.rdk-hero--split:not(.rdk-hero--workspace) .rdk-hero-offer {
    margin-top: 14px;
    color: var(--home-ink);
    font-size: 15px;
    font-weight: 700;
}

.rdk-desktop-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.rdk-hero--split:not(.rdk-hero--workspace) .rdk-desktop-hero-actions {
    justify-content: flex-start;
}

.rdk-hero--split:not(.rdk-hero--workspace) .rdk-hero-cta,
.rdk-price .rdk-hero-cta {
    gap: 10px;
    padding: 14px 24px;
    border-radius: 10px;
    background: var(--home-accent);
    box-shadow: none;
    color: #ffffff;
    font-size: 15px;
    animation: none;
}

.rdk-hero--split:not(.rdk-hero--workspace) .rdk-hero-cta:hover,
.rdk-price .rdk-hero-cta:hover {
    background: var(--home-accent-hover);
    transform: none;
    box-shadow: none;
}

.rdk-hero--split:not(.rdk-hero--workspace) .rdk-hero-cta-secondary {
    padding: 13px 20px;
    border: 1px solid #d6d1c6;
    border-radius: 10px;
    background: #ffffff;
    color: var(--home-ink);
    font-weight: 600;
}

.rdk-hero--split:not(.rdk-hero--workspace) .rdk-hero-cta-secondary:hover {
    border-color: #b9b3a6;
    background: #ffffff;
    box-shadow: none;
    color: var(--home-ink);
    transform: none;
}

.rdk-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 26px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--home-line);
    list-style: none;
}

.rdk-hero-trust li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--home-ink-2);
    font-size: 14px;
}

.rdk-hero-trust .rdk-i {
    color: var(--home-ink);
}

.rdk-hero-visual {
    display: none;
    margin: 0;
}

@media (min-width: 1024px) {
    .rdk-hero--split:not(.rdk-hero--workspace) {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        column-gap: 40px;
        align-items: center;
    }

    .rdk-hero--split:not(.rdk-hero--workspace) .rdk-hero-visual {
        display: block;
        position: relative;
        min-height: 440px;
    }
}

.rdk-shot-window {
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(22, 24, 29, 0.06), 0 12px 32px rgba(22, 24, 29, 0.08);
}

.rdk-shot-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--home-line);
    background: var(--home-tint);
}

.rdk-shot-bar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d6d1c6;
}

.rdk-shot-bar em {
    margin-left: 8px;
    color: var(--home-muted);
    font-size: 12px;
    font-style: normal;
}

.rdk-shot-window img {
    display: block;
    width: 100%;
    height: auto;
}

.rdk-shot-phone {
    position: absolute;
    right: -26px;
    top: 215px;
    width: 132px;
    overflow: hidden;
    border: 6px solid var(--home-ink);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(22, 24, 29, 0.22);
    aspect-ratio: 9 / 18.5;
}

.rdk-shot-phone img {
    display: block;
    width: 100%;
    height: auto;
}

.rdk-hero-visual figcaption {
    max-width: calc(100% - 170px);
    margin-top: 14px;
    color: var(--home-muted);
    font-size: 13px;
}

/* Sections */
.rdk-home-section h2 {
    font-family: var(--home-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

#howItWorks .rdk-home-kicker,
#features .rdk-home-kicker,
.rdk-price .rdk-home-kicker {
    margin-bottom: 6px;
    padding: 0;
    border-radius: 0;
    background: none;
    color: var(--home-accent);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

#howItWorks .rdk-home-section-head,
#features .rdk-home-section-head {
    margin-bottom: 24px;
}

#howItWorks h2,
#features h2 {
    font-size: clamp(24px, 2.6vw, 32px);
}

.rdk-howto {
    margin-top: 56px;
}

.rdk-howto-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rdk-howto-steps li {
    padding-top: 18px;
    border-top: 2px solid var(--home-ink);
}

.rdk-howto-num {
    display: block;
    margin-bottom: 10px;
    color: var(--home-muted);
    font-family: var(--home-heading);
    font-size: 15px;
    font-weight: 700;
}

.rdk-howto-steps h3 {
    margin: 0 0 6px;
    color: var(--home-ink);
    font-family: var(--home-heading);
    font-size: 19px;
    font-weight: 700;
}

.rdk-howto-steps p {
    margin: 0;
    color: var(--home-ink-2);
    font-size: 15px;
    line-height: 1.55;
}

#features {
    margin-top: 56px;
}

#features .rdk-feature-grid {
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: 16px;
    background: var(--home-line);
}

#features .rdk-feature-card {
    padding: 24px;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

#features .rdk-feature-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 14px;
    color: var(--home-accent);
}

#features .rdk-feature-card h3 {
    margin-bottom: 6px;
    font-family: var(--home-heading);
    font-size: 17px;
    font-weight: 700;
}

#features .rdk-feature-card p {
    color: var(--home-ink-2);
    font-size: 14px;
}

.rdk-price {
    margin-top: 56px;
}

.rdk-price-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 36px;
    border: 1px solid var(--home-line);
    border-radius: 20px;
    background: var(--home-paper);
}

.rdk-price-main {
    text-align: left;
}

.rdk-home-section.rdk-price h2 {
    margin: 4px 0 10px;
    color: var(--home-ink);
    font-size: clamp(36px, 4vw, 48px);
}

.rdk-price h2 small {
    color: var(--home-muted);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0;
}

.rdk-price-main p {
    max-width: 440px;
    margin: 0 0 22px;
    color: var(--home-ink-2);
    font-size: 15px;
    line-height: 1.55;
}

.rdk-price-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.rdk-price-demo {
    padding: 8px 2px;
    border: 0;
    background: none;
    color: var(--home-ink);
    font-size: 15px;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #c9c3b6;
    text-underline-offset: 4px;
    cursor: pointer;
}

.rdk-price-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 24px;
    border: 1px solid var(--home-line);
    border-radius: 14px;
    background: #ffffff;
    list-style: none;
}

.rdk-price-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--home-ink);
    font-size: 15px;
}

.rdk-price-list .rdk-i {
    color: #15803d;
}

/* Guests get the price card instead of the old bottom banners (logged-in users still see their status there). */
body.rdk-guest-home #subscriptionBanner,
body.rdk-guest-home #aiCabinet {
    display: none !important;
}

@media (max-width: 767px) {
    .rdk-price-card {
        grid-template-columns: 1fr;
        padding: 24px 18px;
    }
}

@media (max-width: 640px) {
    .rdk-hero--split:not(.rdk-hero--workspace) {
        padding: 26px 16px 22px;
        text-align: center;
    }

    .rdk-hero--split:not(.rdk-hero--workspace) .rdk-hero-badge {
        margin-bottom: 12px;
        font-size: 13px;
    }

    .rdk-hero--split:not(.rdk-hero--workspace) h1 {
        font-size: clamp(26px, 7.6vw, 32px);
    }

    .rdk-hero--split:not(.rdk-hero--workspace) .rdk-hero-subtitle {
        margin: 0 auto 18px;
        font-size: 14px;
    }

    .rdk-hero--split:not(.rdk-hero--workspace) .rdk-mobile-product-proof {
        border: 1px solid var(--home-line);
        background: var(--home-tint);
        box-shadow: none;
        backdrop-filter: none;
    }

    .rdk-hero--split:not(.rdk-hero--workspace) .rdk-mobile-hero-demo {
        border: 1px solid #d6d1c6;
        background: #ffffff;
        box-shadow: none;
        color: var(--home-ink);
    }

    .rdk-hero--split:not(.rdk-hero--workspace) .rdk-mobile-hero-pay {
        border: 0;
        background: var(--home-accent);
        color: #ffffff;
    }

    .rdk-hero--split:not(.rdk-hero--workspace) .rdk-mobile-hero-student {
        gap: 8px;
        border: 1px solid var(--home-line);
        background: #ffffff;
        color: var(--home-ink-2);
    }

    .rdk-hero--split:not(.rdk-hero--workspace) .rdk-mobile-hero-actions p {
        color: var(--home-muted);
    }

    .rdk-hero-trust {
        justify-content: center;
        gap: 8px 16px;
        margin-top: 18px;
        padding-top: 14px;
    }

    .rdk-hero-trust li {
        font-size: 13px;
    }

    .rdk-howto,
    #features,
    .rdk-price {
        margin-top: 36px;
    }

    .rdk-howto-steps {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    #features .rdk-feature-grid {
        grid-template-columns: 1fr;
    }

    #features .rdk-feature-card {
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr);
        column-gap: 14px;
        padding: 16px;
    }

    #features .rdk-feature-icon {
        grid-row: span 2;
        margin: 2px 0 0;
    }
}

/* Guest home: one clean white page; sections are not boxed by the header background. */
body.rdk-guest-home.rdk-page-bg {
    background: #ffffff;
}

body.rdk-guest-home.rdk-page-bg::before,
body.rdk-guest-home.rdk-page-bg::after {
    display: none;
}

body.rdk-guest-home #welcomeHeader {
    background: transparent;
}

.rdk-howto-steps li {
    text-align: left;
}

/* ===== Home page v3 (2026-11): clearer offer, product screenshots in every block ===== */
@media (min-width: 1024px) {
    .rdk-hero--split:not(.rdk-hero--workspace) .rdk-hero-visual {
        min-height: 0;
        padding-bottom: 120px;
    }
}

.rdk-hero--split:not(.rdk-hero--workspace) .rdk-hero-badge {
    max-width: 520px;
    line-height: 1.45;
}

.rdk-shot-float {
    position: absolute;
    left: -36px;
    bottom: 0;
    width: 74%;
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(22, 24, 29, 0.16);
}

.rdk-shot-float-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--home-line);
    color: var(--home-ink);
    font-size: 13px;
    font-weight: 700;
}

.rdk-shot-float-head .rdk-i {
    width: 16px;
    height: 16px;
    color: var(--home-accent);
}

.rdk-shot-float img {
    display: block;
    width: 100%;
    height: auto;
}

/* Steps with screenshots */
.rdk-howto-steps li {
    padding-top: 0;
    border-top: 0;
}

.rdk-howto-shot {
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: 12px;
    background: var(--home-tint);
    aspect-ratio: 16 / 10;
}

.rdk-howto-shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
}

/* Showcase rows: screenshot + benefits */
.rdk-showcase {
    display: grid;
    gap: 72px;
    margin-top: 72px;
}

.rdk-showcase-row {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px;
    align-items: center;
}

.rdk-showcase-row--reverse .rdk-showcase-media {
    order: 2;
}

.rdk-showcase-media {
    position: relative;
}

.rdk-showcase-media > img,
.rdk-showcase-desktop {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--home-line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(22, 24, 29, 0.05), 0 14px 34px rgba(22, 24, 29, 0.08);
}

.rdk-showcase-media--site {
    padding: 0 36px 40px 0;
}

.rdk-showcase-phone {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 26%;
    border: 5px solid var(--home-ink);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(22, 24, 29, 0.22);
    aspect-ratio: 9 / 18;
    object-fit: cover;
    object-position: top;
}

.rdk-showcase-text .rdk-home-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--home-accent);
    font-size: 14px;
    font-weight: 700;
}

.rdk-home-section .rdk-showcase-text h2 {
    margin: 0 0 12px;
    color: var(--home-ink);
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.2;
}

.rdk-showcase-text p {
    margin: 0 0 18px;
    color: var(--home-ink-2);
    font-size: 16px;
    line-height: 1.6;
}

.rdk-showcase-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rdk-showcase-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--home-ink);
    font-size: 15px;
    line-height: 1.45;
}

.rdk-showcase-list .rdk-i {
    margin-top: 2px;
    color: #15803d;
}

/* FAQ */
.rdk-home-faq {
    margin-top: 64px;
}

.rdk-home-faq .rdk-home-kicker {
    margin-bottom: 6px;
    padding: 0;
    background: none;
    color: var(--home-accent);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.rdk-home-faq-list {
    border-top: 1px solid var(--home-line);
}

.rdk-home-faq-list details {
    border-bottom: 1px solid var(--home-line);
}

.rdk-home-faq-list summary {
    padding: 18px 0;
    color: var(--home-ink);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.rdk-home-faq-list details p {
    max-width: 720px;
    margin: -6px 0 18px;
    color: var(--home-ink-2);
    font-size: 15px;
    line-height: 1.6;
}

.rdk-home-faq-more {
    margin: 16px 0 0;
    color: var(--home-ink-2);
    font-size: 14px;
}

.rdk-home-faq-more a {
    color: var(--home-ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 1023px) {
    .rdk-showcase-row,
    .rdk-showcase-row--reverse {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .rdk-showcase-row--reverse .rdk-showcase-media {
        order: 0;
    }
}

@media (max-width: 640px) {
    .rdk-showcase {
        gap: 44px;
        margin-top: 44px;
    }

    .rdk-showcase-media--site {
        padding: 0 18px 28px 0;
    }

    .rdk-showcase-phone {
        border-width: 4px;
        border-radius: 14px;
    }

    .rdk-showcase-text p {
        font-size: 15px;
    }

    .rdk-home-faq {
        margin-top: 44px;
    }
}

#welcomeHeader .rdk-home-section {
    text-align: left;
}

.rdk-showcase-media > .rdk-showcase-phone {
    width: 26%;
    height: auto;
    border: 5px solid var(--home-ink);
    border-radius: 20px;
}

.rdk-showcase-text .rdk-home-kicker {
    padding: 0;
    border-radius: 0;
    background: none;
    letter-spacing: 0;
    text-transform: none;
}

@media (min-width: 1024px) {
    .rdk-showcase-row {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    }
}

@media (max-width: 640px) {
    .rdk-showcase-media > .rdk-showcase-phone {
        border-width: 4px;
        border-radius: 14px;
    }
}

@media (min-width: 1024px) {
    .rdk-showcase-row--reverse {
        grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    }
}

/* No shadow frame around the guest home column (it drew a grey stripe along every section). */
body.rdk-guest-home #welcomeHeader {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.rdk-price-compare {
    width: 100%;
    max-width: 460px;
    margin: 0 0 22px;
    border-collapse: collapse;
    font-size: 14px;
}

.rdk-price-compare td {
    padding: 8px 0;
    border-bottom: 1px solid var(--home-line);
    color: var(--home-ink-2);
}

.rdk-price-compare td:last-child {
    text-align: right;
    color: var(--home-ink);
    white-space: nowrap;
}

.rdk-price-compare-total td {
    border-bottom: 0;
    color: var(--home-ink);
    font-weight: 700;
}

.rdk-price-compare-total td:last-child {
    color: var(--home-accent);
}

/* ===== Signed-in cabinet + AI site panel, 2026-11: same calm look as the guest home page ===== */
.rdk-hero.rdk-hero--workspace {
    border: 1px solid var(--home-line);
    border-radius: 20px;
    background: var(--home-paper);
    box-shadow: none;
    animation: none;
}

.rdk-hero--workspace::before,
.rdk-hero--workspace::after,
.rdk-hero--workspace .rdk-hero-particles,
.rdk-hero--workspace .rdk-hero-orb,
.rdk-hero--workspace .rdk-hero-badge::after {
    display: none !important;
}

.rdk-hero--workspace .rdk-hero-badge {
    padding: 0;
    border: 0;
    background: none;
    backdrop-filter: none;
    color: var(--home-accent);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
}

.rdk-hero--workspace h1 {
    color: var(--home-ink);
    font-family: var(--home-heading);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.rdk-hero--workspace h1 span {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: inherit;
    animation: none;
}

.rdk-hero--workspace .rdk-hero-subtitle {
    color: var(--home-ink-2);
}

.rdk-hero--workspace .rdk-hero-cta {
    border-radius: 10px;
    background: var(--home-accent);
    box-shadow: none;
    color: #ffffff;
    animation: none;
}

.rdk-hero--workspace .rdk-hero-cta:hover {
    background: var(--home-accent-hover);
    box-shadow: none;
    transform: none;
}

#aiCabinet h2,
#aiCabinet h3,
#aiSitePanel h2,
#aiSitePanel h3 {
    font-family: var(--home-heading);
    letter-spacing: -0.015em;
}

#aiCabinet .rdk-btn,
#aiSitePanel .rdk-btn {
    border-radius: 10px;
}

#aiCabinet .rdk-btn-primary,
#aiSitePanel .rdk-btn-primary {
    background: var(--home-accent);
    color: #ffffff;
}

#aiCabinet .rdk-btn-primary:hover:not(:disabled),
#aiSitePanel .rdk-btn-primary:hover:not(:disabled) {
    background: var(--home-accent-hover);
    box-shadow: none;
    transform: none;
}

#aiCabinet .rdk-btn-secondary,
#aiSitePanel .rdk-btn-secondary {
    border: 1px solid #d6d1c6;
    background: #ffffff;
    color: var(--home-ink);
}

#aiCabinet .rdk-btn-secondary:hover:not(:disabled),
#aiSitePanel .rdk-btn-secondary:hover:not(:disabled) {
    border-color: #b9b3a6;
    background: #ffffff;
}

#aiCabinet :focus-visible,
#aiSitePanel :focus-visible {
    outline: 2px solid var(--home-accent);
    outline-offset: 2px;
}

/* ===== One button language everywhere (header, cabinet, panel), 2026-11-15 =====
   Primary = flat orange, secondary = white with a warm border, as on the home page hero.
   Colors/borders only: sizes stay with the responsive header rules above. */
.rdk-btn-primary:hover:not(:disabled) {
    box-shadow: none;
    transform: none;
}

.rdk-header-faq {
    color: var(--home-ink-2);
    font-weight: 700;
}

.rdk-header-faq:hover {
    background: var(--home-tint);
    color: var(--home-ink);
    transform: none;
}

.rdk-header-demo,
.rdk-header-crm,
.rdk-header-crm.is-active,
.rdk-header-logout,
.rdk-header-pay-btn,
.rdk-header-pay-btn.is-access-active:disabled {
    border-radius: 10px;
    box-shadow: none;
}

.rdk-header-demo,
.rdk-header-crm.is-active,
.rdk-header-logout {
    border: 1px solid #d6d1c6;
    background: #ffffff;
    color: var(--home-ink);
    font-weight: 700;
}

.rdk-header-demo:hover,
.rdk-header-crm.is-active:hover,
.rdk-header-logout:hover {
    border-color: #b9b3a6;
    background: #ffffff;
    color: var(--home-ink);
    box-shadow: none;
    transform: none;
}

.rdk-header-demo svg {
    color: var(--home-accent);
}

.rdk-header-demo-label small {
    color: var(--home-muted);
}

.rdk-header-crm {
    border: 1px solid var(--home-line);
    background: var(--home-tint);
    color: var(--home-muted);
}

.rdk-header-crm.is-active::before {
    background: #22c55e;
    box-shadow: none;
}

.rdk-header-pay-btn {
    background: var(--home-accent);
    color: #ffffff;
}

.rdk-header-pay-btn:hover:not(:disabled) {
    background: var(--home-accent-hover);
    box-shadow: none;
    transform: none;
}

.rdk-header-pay-btn:disabled,
.rdk-header-pay-btn.is-access-active:disabled {
    border: 1px solid var(--home-line);
    background: var(--home-tint);
    color: var(--home-ink-2);
}

@media (max-width: 640px) {
    .rdk-header-crm.is-active {
        padding-left: 24px;
    }

    .rdk-header-crm.is-active::before {
        left: 10px;
        width: 7px;
        height: 7px;
    }
}

/* The AI panel header is a plain bar: the old global `header {}` card rule must not pad or center it. */
#aiSitePanel > header {
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
}

/* ===== Checkout popup, 2026-11-15: offer first, home page look (promo RD499 design untouched) ===== */
.rdk-checkout-dialog:not(.is-promo-applied) {
    border-radius: 20px;
}

.rdk-checkout-dialog:not(.is-promo-applied) .rdk-access-offer-kicker {
    color: var(--home-accent);
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
}

.rdk-checkout-dialog:not(.is-promo-applied) h2 {
    margin-right: 36px;
    color: var(--home-ink);
    font-family: var(--home-heading);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.rdk-checkout-dialog:not(.is-promo-applied) .rdk-checkout-description {
    color: var(--home-ink-2);
    font-size: 15px;
}

.rdk-checkout-dialog:not(.is-promo-applied) .rdk-checkout-price {
    flex-wrap: wrap;
    margin: 18px 0 14px;
    border-color: var(--home-line);
    background: var(--home-paper);
}

.rdk-checkout-dialog:not(.is-promo-applied) .rdk-checkout-price span {
    color: var(--home-ink);
    font-family: var(--home-heading);
    font-weight: 700;
}

.rdk-checkout-dialog:not(.is-promo-applied) .rdk-checkout-price small {
    color: var(--home-ink-2);
    font-weight: 600;
}

.rdk-checkout-benefits {
    display: grid;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.rdk-checkout-benefits[hidden],
.rdk-checkout-quota[hidden] {
    display: none;
}

.rdk-checkout-benefits li {
    position: relative;
    padding-left: 26px;
    color: var(--home-ink);
    font-size: 14px;
    line-height: 1.45;
}

.rdk-checkout-benefits li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 4px;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--home-accent);
    border-bottom: 2px solid var(--home-accent);
    transform: rotate(-45deg);
}

.rdk-checkout-quota {
    margin: 0 0 18px;
    color: var(--home-ink-2);
    font-size: 13px;
}

.rdk-checkout-quota summary {
    color: var(--home-ink-2);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.rdk-checkout-quota p {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.rdk-access-offer-primary,
.rdk-promo-cta {
    background: var(--home-accent);
    box-shadow: none;
}

.rdk-access-offer-primary {
    border-radius: 10px;
}

.rdk-access-offer-primary:hover,
.rdk-promo-cta:hover {
    background: var(--home-accent-hover);
}

.rdk-checkout-dialog:not(.is-promo-applied) .rdk-checkout-promo {
    margin: 14px 0 0;
    padding-top: 0;
    border-top: 0;
    text-align: center;
}

.rdk-checkout-promo-toggle,
.rdk-checkout-student-entry {
    color: var(--home-ink-2);
}

.rdk-checkout-promo-toggle {
    font-weight: 600;
}

.rdk-checkout-student-entry:hover {
    color: var(--home-ink);
}

.rdk-checkout-dialog:not(.is-promo-applied) .rdk-access-offer-note {
    text-align: center;
}

/* ===== Site footer, 2026-11-15: same paper/ink look as the home page ===== */
.rdk-site-footer {
    width: min(1152px, calc(100% - 40px));
    margin: 48px auto 0;
    padding: 32px 0 96px;
    border-top: 1px solid var(--home-line);
    color: var(--home-ink-2);
    font-size: 14px;
}

.rdk-site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px 40px;
}

.rdk-site-footer-brand p {
    max-width: 340px;
    margin: 10px 0 0;
    line-height: 1.5;
}

.rdk-site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.rdk-site-footer a {
    color: var(--home-ink);
    font-weight: 600;
    text-decoration: none;
}

.rdk-site-footer a:hover {
    color: var(--home-accent);
}

.rdk-site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--home-line);
    color: var(--home-muted);
    font-size: 13px;
}

/* Short screens (laptops, 600-760px tall): keep the whole offer and both entries visible without scrolling. */
@media (max-height: 760px) {
    .rdk-checkout-dialog:not(.is-promo-applied) {
        padding: 22px 26px;
    }

    .rdk-checkout-dialog:not(.is-promo-applied) h2 {
        margin: 6px 36px 6px 0;
        font-size: 22px;
    }

    .rdk-checkout-dialog:not(.is-promo-applied) .rdk-checkout-description {
        display: none;
    }

    .rdk-checkout-dialog:not(.is-promo-applied) .rdk-checkout-price {
        margin: 12px 0 10px;
        padding: 10px 14px;
    }

    .rdk-checkout-dialog:not(.is-promo-applied) .rdk-checkout-price span {
        font-size: 28px;
    }

    .rdk-checkout-benefits {
        gap: 4px;
        margin-bottom: 8px;
    }

    .rdk-checkout-benefits li {
        font-size: 13px;
    }

    .rdk-checkout-quota {
        margin-bottom: 12px;
    }

    .rdk-checkout-dialog:not(.is-promo-applied) .rdk-checkout-promo {
        margin-top: 8px;
    }

    .rdk-checkout-dialog:not(.is-promo-applied) .rdk-checkout-student-entry {
        min-height: 32px;
        margin-top: 2px;
    }

    .rdk-checkout-dialog:not(.is-promo-applied) .rdk-access-offer-note {
        margin-top: 6px;
    }
}

/* Home promo video (shown to guests before they buy): landscape on desktop, vertical on phones. */
.rdk-promo-video {
    margin-top: 48px;
}

.rdk-promo-video-frame {
    position: relative;
    margin-top: 20px;
    border-radius: 24px;
    overflow: hidden;
    background: #1c1917;
    box-shadow: 0 24px 60px rgba(28, 25, 23, .18);
}

.rdk-promo-video-frame video {
    display: block;
    width: 100%;
    height: auto;
}

.rdk-promo-video-frame--h {
    aspect-ratio: 16 / 9;
}

.rdk-promo-video-frame--v {
    display: none;
    aspect-ratio: 9 / 16;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.rdk-promo-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 88px;
    height: 88px;
    margin: -44px 0 0 -44px;
    border: 0;
    border-radius: 999px;
    background: var(--rdk-primary);
    color: #fff;
    font-size: 34px;
    line-height: 88px;
    padding-left: 6px;
    cursor: pointer;
    box-shadow: 0 16px 40px rgba(226, 88, 11, .45);
}

.rdk-promo-video-play:hover {
    background: #c74a07;
}

@media (max-width: 767px) {
    .rdk-promo-video {
        margin-top: 32px;
    }

    .rdk-promo-video-frame--h {
        display: none;
    }

    .rdk-promo-video-frame--v {
        display: block;
    }
}

/* «Порівняй самі»: separate services (red) vs Lid-CRM (green) under the price card (no competitor names). */
.rdk-compare {
    --cmp-bad: #c62828;
    --cmp-bad-bg: #fdecea;
    --cmp-good: #1b7a3d;
    --cmp-good-bg: #e7f6ec;
    margin-top: 28px;
    padding: 32px 36px;
    border: 1px solid var(--home-line);
    border-radius: 20px;
    background: var(--home-paper);
}

.rdk-compare-title {
    margin: 0 0 18px;
    color: var(--home-ink);
    font-family: 'Manrope', 'Inter', system-ui, sans-serif;
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.rdk-compare-grid {
    display: grid;
    gap: 0;
}

.rdk-compare-row {
    display: grid;
    grid-template-columns: minmax(150px, .8fr) 1fr 1fr;
    column-gap: 10px;
    align-items: stretch;
    color: var(--home-ink-2);
    font-size: 15px;
    line-height: 1.45;
}

.rdk-compare-row > * {
    padding: 13px 14px;
    border-top: 1px solid var(--home-line);
}

.rdk-compare-row [role="rowheader"] {
    padding-left: 0;
    color: var(--home-ink);
    font-weight: 700;
}

.rdk-compare-usual {
    background: var(--cmp-bad-bg);
    color: var(--cmp-bad);
}

.rdk-compare-ours {
    background: var(--cmp-good-bg);
    color: var(--cmp-good);
    font-weight: 700;
}

.rdk-compare-row:not(.rdk-compare-head):not(.rdk-compare-total) .rdk-compare-usual::before {
    content: '✗ ';
    font-weight: 800;
}

.rdk-compare-row:not(.rdk-compare-head):not(.rdk-compare-total) .rdk-compare-ours::before {
    content: '✓ ';
    font-weight: 800;
}

.rdk-compare-head > * {
    border-top: 0;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.rdk-compare-head .rdk-compare-usual {
    border-radius: 14px 14px 0 0;
    background: var(--cmp-bad);
    color: #fff;
}

.rdk-compare-head .rdk-compare-ours {
    border-radius: 14px 14px 0 0;
    background: var(--cmp-good);
    color: #fff;
}

.rdk-compare-total > * {
    font-size: 18px;
    font-weight: 800;
}

.rdk-compare-total .rdk-compare-usual {
    border-radius: 0 0 14px 14px;
    font-size: 22px;
}

.rdk-compare-total .rdk-compare-ours {
    border-radius: 0 0 14px 14px;
    font-size: 26px;
}

.rdk-compare-actions {
    margin-top: 22px;
}

@media (max-width: 767px) {
    .rdk-compare {
        padding: 22px 14px;
    }

    .rdk-compare-row {
        grid-template-columns: 1fr 1fr;
        column-gap: 6px;
        font-size: 14px;
    }

    .rdk-compare-row > * {
        padding: 10px;
    }

    .rdk-compare-row [role="rowheader"] {
        grid-column: 1 / -1;
        padding: 14px 0 6px;
    }

    .rdk-compare-head [role="columnheader"]:first-child {
        display: none;
    }

    .rdk-compare-total .rdk-compare-ours {
        font-size: 19px;
    }

    .rdk-compare-total > * {
        white-space: nowrap;
    }

    .rdk-compare-total .rdk-compare-usual {
        font-size: 15px;
    }

    .rdk-compare-actions .rdk-hero-cta {
        width: 100%;
        justify-content: center;
    }
}

.rdk-checkout-compare {
    margin: 6px 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f4f1ea;
    font-size: 13.5px;
    line-height: 1.45;
}

.rdk-checkout-compare-bad,
.rdk-price-vs-bad {
    color: #c62828;
}

.rdk-checkout-compare-good,
.rdk-price-vs-good {
    color: #1b7a3d;
    font-weight: 800;
}

.rdk-price-vs {
    display: inline-block;
    margin: 0 0 14px;
    padding: 10px 16px;
    border: 1px solid #e7e0d6;
    border-radius: 14px;
    background: #fff;
    color: #57534e;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
}

.rdk-price-vs:hover {
    background: #faf7f2;
}

/* AI cabinet: progress while a product page is analysed (js/ai-landing.js importUrlWithProgress). */
.rdk-import-progress {
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid #f3d9c6;
    border-radius: 14px;
    background: #fff;
}

.rdk-import-progress-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.rdk-import-progress-step {
    color: #1c1917;
    font-weight: 700;
}

.rdk-import-progress-secs {
    flex: none;
    color: #78716c;
    font-variant-numeric: tabular-nums;
}

.rdk-import-progress-track {
    position: relative;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #f4ede6;
}

.rdk-import-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff8a3d, #e2580b);
    background-size: 200% 100%;
    transition: width .2s linear;
    animation: rdk-import-shine 1.4s linear infinite;
}

.rdk-import-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -2px;
    animation: rdk-import-spin .8s linear infinite;
}

@keyframes rdk-import-shine {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}

@keyframes rdk-import-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .rdk-import-progress-fill,
    .rdk-import-spinner {
        animation: none;
    }
}

/* Signed-in reload: the server adds html.rdk-boot-authed (sendEditorShell in server.js), so the guest home is never
   painted before editor-core.js knows the access; the class is removed right after the header and hero are updated. */
html.rdk-boot-authed [data-public-marketing],
html.rdk-boot-authed #uploadSection,
html.rdk-boot-authed #rdkHeaderPaymentBtn {
    display: none !important;
}

html.rdk-boot-authed #heroBlock {
    visibility: hidden;
}
