/* ============================================
   FULL HOMEPAGE REDESIGNS — A / B / C
   Completely separate visual systems
   ============================================ */

.rd-page *,
.rd-page *::before,
.rd-page *::after {
    box-sizing: border-box;
}

.rd-page {
    margin: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.rd-page a {
    color: inherit;
}

.rd-wrap {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.rd-search-wrap {
    position: relative;
    z-index: 40;
}

.rd-search-dropdown {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    z-index: 50;
}

.rd-search-dropdown.active {
    display: block;
}

.rd-search-dropdown a {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    color: #0f172a;
    font-size: 0.92rem;
}

.rd-search-dropdown a:hover {
    background: #f8fafc;
}

.rd-search-dropdown small {
    color: #94a3b8;
}

.rd-switch {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 1000;
    display: flex;
    gap: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 6px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.rd-switch a {
    text-decoration: none;
    font: 700 0.75rem/1 Inter, system-ui, sans-serif;
    color: #64748b;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
}

.rd-switch a.on {
    background: #0f172a;
    color: #fff;
}

/* ---------------- Design A: Paper Editorial ---------------- */
.rd-a {
    font-family: Georgia, "Times New Roman", serif;
    color: #171717;
    background: #f4efe6;
}

.rd-a .rd-sans {
    font-family: "Segoe UI", Inter, system-ui, sans-serif;
}

.rd-a-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(244, 239, 230, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #ddd2c2;
}

.rd-a-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.rd-a-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    font-family: "Segoe UI", Inter, system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.rd-a-brand img {
    height: 36px;
    width: auto;
}

.rd-a-links {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Inter, system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
}

.rd-a-links a {
    text-decoration: none;
    color: #444;
}

.rd-a-links a:hover {
    color: #c2410c;
}

.rd-a-hero {
    padding: 4.5rem 0 3rem;
    border-bottom: 1px solid #ddd2c2;
}

.rd-a-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: end;
}

.rd-a-kicker {
    font-family: "Segoe UI", Inter, system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c2410c;
    margin: 0 0 1rem;
}

.rd-a-hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    font-weight: 500;
    margin: 0 0 1rem;
}

.rd-a-hero h1 em {
    font-style: italic;
    color: #9a3412;
}

.rd-a-lead {
    font-family: "Segoe UI", Inter, system-ui, sans-serif;
    font-size: 1.05rem;
    color: #525252;
    line-height: 1.7;
    max-width: 34rem;
    margin: 0 0 1.5rem;
}

.rd-a-search {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: #fffdf8;
    border: 1px solid #d6cbb8;
    border-radius: 999px;
    padding: 0.85rem 1.1rem;
    max-width: 520px;
}

.rd-a-search input {
    border: 0;
    outline: 0;
    width: 100%;
    background: transparent;
    font: 500 1rem/1.4 "Segoe UI", Inter, system-ui, sans-serif;
    color: #171717;
}

.rd-a-side {
    background: #171717;
    color: #f4efe6;
    border-radius: 28px;
    padding: 1.6rem;
}

.rd-a-side h3 {
    margin: 0 0 1rem;
    font-size: 1.15rem;
}

.rd-a-side ol {
    margin: 0;
    padding-left: 1.1rem;
    font-family: "Segoe UI", Inter, system-ui, sans-serif;
    display: grid;
    gap: 0.7rem;
}

.rd-a-side a {
    color: #fdba74;
    text-decoration: none;
}

.rd-a-section {
    padding: 3.5rem 0;
    border-bottom: 1px solid #ddd2c2;
}

.rd-a-section h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin: 0 0 0.5rem;
    letter-spacing: -0.03em;
}

.rd-a-section .rd-sub {
    font-family: "Segoe UI", Inter, system-ui, sans-serif;
    color: #666;
    margin: 0 0 2rem;
}

.rd-a-cat {
    margin-bottom: 2.2rem;
}

.rd-a-cat h3 {
    font-family: "Segoe UI", Inter, system-ui, sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9a3412;
    margin: 0 0 0.9rem;
}

.rd-a-list {
    display: grid;
    gap: 0.65rem;
}

.rd-a-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 1rem;
    align-items: center;
    background: #fffdf8;
    border: 1px solid #e5dccb;
    border-radius: 18px;
    padding: 0.75rem;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rd-a-item:hover {
    transform: translateY(-2px);
    border-color: #c2410c;
}

.rd-a-item img {
    width: 72px;
    height: 56px;
    object-fit: cover;
    border-radius: 12px;
    background: #eee;
}

.rd-a-item strong {
    display: block;
    font-family: "Segoe UI", Inter, system-ui, sans-serif;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.rd-a-item span {
    font-family: "Segoe UI", Inter, system-ui, sans-serif;
    font-size: 0.86rem;
    color: #737373;
}

.rd-a-item em {
    font-family: "Segoe UI", Inter, system-ui, sans-serif;
    font-style: normal;
    font-size: 0.8rem;
    font-weight: 700;
    color: #c2410c;
    white-space: nowrap;
}

.rd-a-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.rd-a-feature {
    background: #fffdf8;
    border: 1px solid #e5dccb;
    border-radius: 18px;
    padding: 1.2rem;
}

.rd-a-feature h3 {
    font-family: "Segoe UI", Inter, system-ui, sans-serif;
    font-size: 1rem;
    margin: 0 0 0.4rem;
}

.rd-a-feature p {
    font-family: "Segoe UI", Inter, system-ui, sans-serif;
    margin: 0;
    color: #666;
    font-size: 0.92rem;
    line-height: 1.6;
}

.rd-a-faq details {
    background: #fffdf8;
    border: 1px solid #e5dccb;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    margin-bottom: 0.65rem;
    font-family: "Segoe UI", Inter, system-ui, sans-serif;
}

.rd-a-faq summary {
    cursor: pointer;
    font-weight: 700;
}

.rd-a-faq p {
    margin: 0.7rem 0 0;
    color: #666;
    line-height: 1.65;
}

.rd-a-footer {
    padding: 2.5rem 0 5rem;
    font-family: "Segoe UI", Inter, system-ui, sans-serif;
    color: #666;
}

.rd-a-footer a {
    color: #9a3412;
    margin-right: 1rem;
    text-decoration: none;
    font-weight: 600;
}

/* ---------------- Design B: Soft Marketplace ---------------- */
.rd-b {
    font-family: "Segoe UI", Inter, system-ui, sans-serif;
    color: #1e293b;
    background: linear-gradient(180deg, #ecfeff 0%, #fdf4ff 40%, #fff7ed 100%);
}

.rd-b-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.rd-b-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
}

.rd-b-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    font-weight: 800;
}

.rd-b-brand img {
    height: 36px;
}

.rd-b-cta-nav {
    background: #0ea5e9;
    color: #fff;
    text-decoration: none;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
}

.rd-b-hero {
    padding: 3.5rem 0 2rem;
    text-align: center;
}

.rd-b-pill {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    background: #fff;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0284c7;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.12);
    margin-bottom: 1rem;
}

.rd-b-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin: 0 0 0.8rem;
}

.rd-b-hero h1 span {
    background: linear-gradient(90deg, #0ea5e9, #d946ef);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rd-b-hero p {
    max-width: 560px;
    margin: 0 auto 1.4rem;
    color: #64748b;
    line-height: 1.7;
}

.rd-b-search {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: #fff;
    border-radius: 18px;
    padding: 1rem 1.15rem;
    box-shadow: 0 18px 40px rgba(14, 165, 233, 0.12);
}

.rd-b-search input {
    border: 0;
    outline: 0;
    width: 100%;
    font: 500 1rem/1.4 inherit;
    background: transparent;
}

.rd-b-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.4rem;
}

.rd-b-stats span {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
}

.rd-b-section {
    padding: 2.5rem 0 3.5rem;
}

.rd-b-section h2 {
    text-align: center;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    letter-spacing: -0.03em;
    margin: 0 0 0.4rem;
}

.rd-b-section .rd-sub {
    text-align: center;
    color: #64748b;
    margin: 0 auto 1.8rem;
    max-width: 560px;
}

.rd-b-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.rd-b-tabs button {
    border: 0;
    background: #fff;
    color: #475569;
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
    font: 700 0.82rem/1 inherit;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.rd-b-tabs button.on {
    background: #0f172a;
    color: #fff;
}

.rd-b-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.rd-b-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease;
}

.rd-b-card:hover {
    transform: translateY(-4px);
}

.rd-b-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    background: #e2e8f0;
}

.rd-b-card-body {
    padding: 1rem 1.05rem 1.15rem;
}

.rd-b-card strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.rd-b-card span {
    display: block;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.rd-b-card i {
    font-style: normal;
    font-size: 0.82rem;
    font-weight: 800;
    color: #0ea5e9;
}

.rd-b-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
}

.rd-b-feature {
    background: #fff;
    border-radius: 20px;
    padding: 1.2rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.rd-b-feature h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

.rd-b-feature p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

.rd-b-faq details {
    background: #fff;
    border-radius: 16px;
    padding: 1rem 1.1rem;
    margin-bottom: 0.6rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.rd-b-faq summary {
    cursor: pointer;
    font-weight: 700;
}

.rd-b-faq p {
    margin: 0.7rem 0 0;
    color: #64748b;
    line-height: 1.65;
}

.rd-b-footer {
    padding: 2rem 0 5rem;
    text-align: center;
    color: #64748b;
}

.rd-b-footer a {
    color: #0284c7;
    margin: 0 0.55rem;
    text-decoration: none;
    font-weight: 700;
}

/* ---------------- Design C: Dark Neon Studio (v2) ---------------- */
.rd-c {
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    color: #e2e8f0;
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(34, 211, 238, 0.08), transparent 55%),
        radial-gradient(900px 420px at 90% 0%, rgba(163, 230, 53, 0.1), transparent 50%),
        #070b14;
    position: relative;
    overflow-x: hidden;
}

.rd-c::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

.rd-c > *:not(.rd-c-glow) {
    position: relative;
    z-index: 1;
}

/* Hero must sit above following sections so the search dropdown is not covered. */
.rd-c > .rd-c-hero {
    z-index: 40;
}

.rd-c > header.rd-c-hero {
    z-index: 40;
}

.rd-c-glow {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.rd-c-glow-a {
    top: -80px;
    left: -80px;
    background: rgba(34, 211, 238, 0.35);
}

.rd-c-glow-b {
    top: 20%;
    right: -120px;
    background: rgba(163, 230, 53, 0.28);
}

.rd-c-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 11, 20, 0.78);
    border-bottom: 1px solid rgba(51, 65, 85, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.rd-c-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    gap: 1rem;
}

.rd-c-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.rd-c-brand img {
    height: 34px;
    filter: brightness(1.05);
}

.rd-c-brand em {
    font-style: normal;
    color: #a3e635;
    font-weight: 700;
}

.rd-c-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #94a3b8;
}

.rd-c-links a {
    text-decoration: none;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.rd-c-links a:hover {
    color: #f8fafc;
    background: rgba(148, 163, 184, 0.1);
}

.rd-c-nav-cta {
    background: linear-gradient(135deg, #a3e635, #67e8f9) !important;
    color: #052e16 !important;
    font-weight: 800 !important;
    margin-left: 0.35rem;
}

.rd-c-nav-cta:hover {
    filter: brightness(1.05);
}

.rd-c-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #334155;
    background: #0f172a;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.rd-c-menu-btn span {
    display: block;
    width: 16px;
    height: 2px;
    background: #e2e8f0;
    border-radius: 2px;
    transition: transform 0.2s ease;
}

.rd-c-menu-btn.open span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.rd-c-menu-btn.open span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

.rd-c-mobile {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0 0 1rem;
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.rd-c-mobile.open {
    display: flex;
}

.rd-c-mobile a {
    text-decoration: none;
    color: #e2e8f0;
    background: #0f172a;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-weight: 600;
}

.rd-c-hero {
    padding: 3.5rem 0 2.75rem;
    position: relative;
}

.rd-c-hero-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.9fr;
    gap: 1.75rem;
    align-items: stretch;
}

.rd-c-hero-copy {
    display: grid;
    gap: 1.15rem;
    align-content: start;
    padding: 0.4rem 0;
}

.rd-c-badge {
    display: inline-flex;
    width: fit-content;
    gap: 0.55rem;
    align-items: center;
    border: 1px solid rgba(163, 230, 53, 0.35);
    background: rgba(15, 23, 42, 0.85);
    color: #d9f99d;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 0 0 1px rgba(163, 230, 53, 0.08), 0 10px 30px rgba(163, 230, 53, 0.08);
}

.rd-c-badge i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a3e635;
    box-shadow: 0 0 0 0 rgba(163, 230, 53, 0.7);
    animation: rdCPulse 1.8s infinite;
}

@keyframes rdCPulse {
    0% { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0.55); }
    70% { box-shadow: 0 0 0 10px rgba(163, 230, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0); }
}

.rd-c-hero h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5.2vw, 3.9rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.rd-c-hero h1 span {
    background: linear-gradient(110deg, #67e8f9 0%, #a3e635 55%, #fde047 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rd-c-hero-copy > p {
    margin: 0;
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 540px;
}

.rd-c-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.7rem;
    max-width: 640px;
    align-items: start;
}

.rd-c-bar .rd-search-wrap,
.rd-c-bar .hero-search {
    margin: 0 !important;
    max-width: none !important;
    width: 100%;
}

.rd-c-search {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 0 1rem;
    height: 52px;
    min-height: 52px;
    box-sizing: border-box;
    color: #94a3b8;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rd-c-search:focus-within {
    border-color: #67e8f9;
    box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.12);
    color: #67e8f9;
}

body.studio-theme .rd-c-search input,
body.studio-theme .rd-c-search input.search-input,
.rd-c-search input,
.rd-c-search .search-input {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    width: 100%;
    background: transparent !important;
    color: #f8fafc !important;
    font: 500 1rem/1.4 inherit;
    padding: 0 !important;
    border-radius: 0 !important;
    height: auto !important;
    min-height: 0 !important;
}

body.studio-theme .rd-c-search input::placeholder,
.rd-c-search input::placeholder {
    color: #64748b !important;
}

.rd-c-go {
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #a3e635, #84cc16);
    color: #052e16;
    font: 800 0.86rem/1 Inter, sans-serif;
    padding: 0 1.1rem;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    align-self: start;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(163, 230, 53, 0.22);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.rd-c-go:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.rd-c-meta {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
}

.rd-c-meta span {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #1f2937;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
}

.rd-c-meta b {
    color: #e2e8f0;
}

.rd-c-hero-panel {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(11, 18, 32, 0.98));
    border: 1px solid #243044;
    border-radius: 24px;
    padding: 1.1rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.rd-c-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
    padding: 0 0.2rem;
}

.rd-c-panel-head span {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #cbd5e1;
}

.rd-c-panel-head em {
    font-style: normal;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.rd-c-popular {
    display: grid;
    gap: 0.45rem;
}

.rd-c-popular a {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: center;
    text-decoration: none;
    padding: 0.75rem 0.8rem;
    border-radius: 14px;
    border: 1px solid transparent;
    background: rgba(15, 23, 42, 0.65);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.rd-c-popular a:hover {
    border-color: rgba(103, 232, 249, 0.45);
    background: rgba(15, 23, 42, 0.95);
    transform: translateX(3px);
}

.rd-c-pop-num {
    font-size: 0.72rem;
    font-weight: 800;
    color: #67e8f9;
    background: rgba(103, 232, 249, 0.1);
    border-radius: 8px;
    padding: 0.35rem 0.45rem;
}

.rd-c-pop-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.18rem;
}

.rd-c-popular strong {
    font-size: 0.92rem;
    font-weight: 700;
}

.rd-c-pop-copy small {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 600;
}

.rd-c-pop-go {
    color: #a3e635;
    font-weight: 800;
}

.rd-c-section {
    padding: 3.2rem 0;
    border-top: 1px solid rgba(30, 41, 59, 0.9);
}

.rd-c-section-alt {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.35), transparent);
}

.rd-c-section-head {
    margin-bottom: 1.4rem;
}

.rd-c-eyebrow {
    margin: 0 0 0.45rem;
    color: #a3e635;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rd-c-section h2 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    letter-spacing: -0.03em;
    font-weight: 800;
}

.rd-c-section .rd-sub {
    margin: 0;
    color: #94a3b8;
    max-width: 520px;
    line-height: 1.6;
}

.rd-c-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    position: sticky;
    top: 68px;
    z-index: 20;
    padding: 0.55rem 0;
    background: linear-gradient(180deg, rgba(7, 11, 20, 0.96), rgba(7, 11, 20, 0.88));
    backdrop-filter: blur(10px);
}

.rd-c-chips a {
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    color: #cbd5e1;
    background: #0f172a;
    border: 1px solid #243044;
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.rd-c-chips a:hover {
    border-color: #67e8f9;
    color: #67e8f9;
    background: rgba(103, 232, 249, 0.06);
}

.rd-c-cat-block {
    margin-bottom: 2rem;
    scroll-margin-top: 130px;
}

.rd-c-cat-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 0.9rem;
    color: #d9f99d;
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
}

.rd-c-cat-title small {
    font-size: 0.72rem;
    letter-spacing: 0;
    text-transform: none;
    color: #64748b;
    font-weight: 600;
    background: #0f172a;
    border: 1px solid #1f2937;
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
}

.rd-c-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}

.rd-c-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #121a2b, #0b1220);
    border: 1px solid #1f2937;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.rd-c-card:hover {
    border-color: rgba(103, 232, 249, 0.55);
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(103, 232, 249, 0.08);
}

.rd-c-card-media {
    position: relative;
    overflow: hidden;
}

.rd-c-card img {
    width: 100%;
    height: 118px;
    object-fit: cover;
    display: block;
    background: #1e293b;
    transition: transform 0.35s ease;
}

.rd-c-card:hover img {
    transform: scale(1.05);
}

.rd-c-card-tag {
    position: absolute;
    left: 0.65rem;
    bottom: 0.65rem;
    font-size: 0.68rem;
    font-weight: 800;
    color: #052e16;
    background: #a3e635;
    border-radius: 999px;
    padding: 0.22rem 0.5rem;
}

.rd-c-card-body {
    display: grid;
    gap: 0.35rem;
    padding: 0.9rem 0.95rem 1rem;
}

.rd-c-card strong {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.rd-c-card-body > span {
    color: #94a3b8;
    font-size: 0.78rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.25em;
}

.rd-c-card em {
    font-style: normal;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: #67e8f9;
}

.rd-c-card:hover em {
    color: #a3e635;
}

.rd-c-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.rd-c-feature {
    border: 1px solid #243044;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.9), rgba(11, 18, 32, 0.95));
    border-radius: 18px;
    padding: 1.2rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.rd-c-feature:hover {
    border-color: rgba(163, 230, 53, 0.45);
    transform: translateY(-2px);
}

.rd-c-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(163, 230, 53, 0.1);
    border: 1px solid rgba(163, 230, 53, 0.2);
    margin-bottom: 0.85rem;
    font-size: 1.1rem;
}

.rd-c-feature h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    color: #f1f5f9;
    font-weight: 800;
}

.rd-c-feature p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
}

.rd-c-faq-wrap {
    max-width: 800px;
}

.rd-c-faq details {
    border: 1px solid #243044;
    background: rgba(15, 23, 42, 0.85);
    border-radius: 16px;
    padding: 1rem 1.15rem;
    margin-bottom: 0.6rem;
    transition: border-color 0.2s ease;
}

.rd-c-faq details[open] {
    border-color: rgba(103, 232, 249, 0.35);
}

.rd-c-faq summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.rd-c-faq summary::-webkit-details-marker {
    display: none;
}

.rd-c-faq summary::after {
    content: '+';
    float: right;
    color: #67e8f9;
    font-weight: 800;
}

.rd-c-faq details[open] summary::after {
    content: '–';
}

.rd-c-faq p {
    margin: 0.75rem 0 0;
    color: #94a3b8;
    line-height: 1.65;
}

.rd-c-footer {
    padding: 2.5rem 0 5.5rem;
    border-top: 1px solid #1e293b;
    color: #64748b;
    background: rgba(0, 0, 0, 0.25);
}

.rd-c-footer-inner {
    display: grid;
    gap: 1rem;
}

.rd-c-footer strong {
    display: block;
    color: #f1f5f9;
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.rd-c-footer p {
    margin: 0;
}

.rd-c-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.1rem;
}

.rd-c-footer a {
    color: #a3e635;
    text-decoration: none;
    font-weight: 700;
}

.rd-c-footer a:hover {
    color: #67e8f9;
}

.rd-c-copy {
    font-size: 0.85rem;
    margin-top: 0.4rem !important;
}

.rd-c .rd-switch {
    background: #0f172a;
    border-color: #334155;
}

.rd-c .rd-switch a {
    color: #94a3b8;
}

.rd-c .rd-switch a.on {
    background: #a3e635;
    color: #052e16;
}

.rd-c .rd-search-dropdown {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 16px;
    z-index: 100;
    max-height: min(360px, 55vh);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}

.rd-c .rd-search-wrap,
.rd-c .hero-search {
    z-index: 50;
}

.rd-c .rd-search-dropdown a {
    color: #e2e8f0;
    border-bottom-color: #1e293b;
}

.rd-c .rd-search-dropdown a:hover {
    background: #111827;
}

.rd-c .rd-search-dropdown .search-item-category {
    color: #e2e8f0;
    background: #1e293b;
    border: 1px solid #475569;
}

@media (max-width: 980px) {
    .rd-c-hero-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .rd-a-hero-grid,
    .rd-a-features,
    .rd-b-features,
    .rd-c-features {
        grid-template-columns: 1fr;
    }

    .rd-b-grid {
        grid-template-columns: 1fr 1fr;
    }

    .rd-c-grid {
        grid-template-columns: 1fr 1fr;
    }

    .rd-a-links,
    .rd-c-links {
        display: none;
    }

    .rd-c-menu-btn {
        display: inline-flex;
    }

    .rd-a-item {
        grid-template-columns: 64px 1fr;
    }

    .rd-a-item em {
        display: none;
    }

    .rd-c-bar {
        grid-template-columns: 1fr;
    }

    .rd-c-go {
        height: 48px;
        min-height: 48px;
        max-height: 48px;
        padding: 0 1.1rem;
        width: 100%;
    }
}

@media (max-width: 560px) {
    .rd-b-grid,
    .rd-c-grid {
        grid-template-columns: 1fr;
    }

    .rd-c-chips {
        top: 62px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.7rem;
    }

    .rd-c-chips a {
        flex: 0 0 auto;
    }
}

/* ---------------- Design C Tool Page UI ---------------- */
.rd-c-preview-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    background: rgba(163, 230, 53, 0.1);
    border-bottom: 1px solid rgba(163, 230, 53, 0.25);
    font-size: 0.8rem;
    font-weight: 700;
    color: #d9f99d;
}

.rd-c-preview-banner a {
    color: #67e8f9;
    text-decoration: none;
}

.rd-c-preview-banner a:hover {
    text-decoration: underline;
}

.rd-ct-hero {
    padding: 2rem 0 1.5rem;
}

.rd-ct-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 1.1rem;
}

.rd-ct-crumb a {
    color: #94a3b8;
    text-decoration: none;
}

.rd-ct-crumb a:hover {
    color: #67e8f9;
}

.rd-ct-crumb strong {
    color: #e2e8f0;
}

.rd-ct-hero-row {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 1.5rem;
    align-items: end;
}

.rd-ct-hero h1 {
    margin: 0.7rem 0 0.55rem;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.04em;
    font-weight: 800;
    line-height: 1.08;
}

.rd-ct-hero h1 span {
    background: linear-gradient(110deg, #67e8f9, #a3e635);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rd-ct-hero p {
    margin: 0;
    color: #94a3b8;
    line-height: 1.65;
    max-width: 520px;
}

.rd-ct-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
}

.rd-ct-steps div {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid #243044;
    border-radius: 14px;
    padding: 0.75rem;
    display: grid;
    gap: 0.25rem;
}

.rd-ct-steps b {
    color: #a3e635;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.rd-ct-steps span {
    font-size: 0.86rem;
    font-weight: 700;
    color: #e2e8f0;
}

.rd-ct-workspace {
    padding: 0.5rem 0 2.5rem;
}

.rd-ct-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: stretch;
}

.rd-ct-panel {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(11, 18, 32, 0.98));
    border: 1px solid #243044;
    border-radius: 22px;
    padding: 1.1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-height: 520px;
}

.rd-ct-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.rd-ct-panel-head strong {
    font-size: 0.95rem;
    font-weight: 800;
}

.rd-ct-panel-head em {
    font-style: normal;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.rd-ct-upload {
    flex: 1;
    border: 1.5px dashed #334155;
    border-radius: 18px;
    background:
        linear-gradient(45deg, rgba(148, 163, 184, 0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(148, 163, 184, 0.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(148, 163, 184, 0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(148, 163, 184, 0.05) 75%),
        #0b1220;
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    min-height: 280px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rd-ct-upload:hover,
.rd-ct-upload.is-drag {
    border-color: #67e8f9;
    box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.1);
}

.rd-ct-upload-empty {
    height: 100%;
    min-height: 280px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 0.45rem;
    text-align: center;
    padding: 1.5rem;
    color: #94a3b8;
}

.rd-ct-upload-empty strong {
    color: #f1f5f9;
    font-size: 1rem;
}

.rd-ct-upload-empty span {
    font-size: 0.84rem;
}

.rd-ct-upload-preview {
    position: absolute;
    inset: 0;
}

.rd-ct-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.rd-ct-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    cursor: pointer;
    border: 1px solid #334155;
    font-size: 0.85rem;
}

.rd-ct-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.86rem;
    color: #cbd5e1;
    cursor: default;
}

.rd-ct-option input {
    accent-color: #a3e635;
}

.rd-ct-run {
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #a3e635, #84cc16);
    color: #052e16;
    font: 800 0.95rem/1 Inter, sans-serif;
    padding: 1rem 1.2rem;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(163, 230, 53, 0.22);
}

.rd-ct-run:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.rd-ct-note {
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.45;
}

.rd-ct-canvas {
    flex: 1;
    min-height: 340px;
    border-radius: 18px;
    border: 1px solid #1f2937;
    background:
        linear-gradient(45deg, #111827 25%, transparent 25%),
        linear-gradient(-45deg, #111827 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #111827 75%),
        linear-gradient(-45deg, transparent 75%, #111827 75%),
        #0b1220;
    background-size: 24px 24px;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
}

.rd-ct-placeholder {
    display: grid;
    justify-items: center;
    gap: 0.4rem;
    text-align: center;
    color: #64748b;
    padding: 1.5rem;
}

.rd-ct-placeholder strong {
    color: #cbd5e1;
}

.rd-ct-placeholder span {
    font-size: 0.84rem;
}

.rd-ct-canvas img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rd-ct-actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0.65rem;
}

.rd-ct-secondary,
.rd-ct-primary {
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font: 700 0.9rem/1 Inter, sans-serif;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.rd-ct-secondary {
    border: 1px solid #334155;
    background: #0f172a;
    color: #e2e8f0;
}

.rd-ct-primary {
    border: 0;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #fff;
}

.rd-ct-howto {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.rd-ct-howto article {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid #243044;
    border-radius: 18px;
    padding: 1.15rem;
}

.rd-ct-howto b {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(163, 230, 53, 0.12);
    color: #a3e635;
    margin-bottom: 0.7rem;
    font-size: 0.8rem;
}

.rd-ct-howto strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.rd-ct-howto p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .rd-ct-hero-row,
    .rd-ct-layout,
    .rd-ct-howto {
        grid-template-columns: 1fr;
    }

    .rd-ct-panel {
        min-height: 0;
    }

    .rd-ct-upload,
    .rd-ct-upload-empty {
        min-height: 220px;
    }

    .rd-ct-canvas {
        min-height: 260px;
    }
}
