/* Resume.io style landing page */
.rio-nav {
    background: #111111 !important;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: 64px;
}

.rio-nav .navbar-brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-dark) !important;
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin-right: 1rem;
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .site-brand-md .site-brand-icon { height: 30px; }
    .site-brand-md .site-brand-name { font-size: 1.05rem; }
}

.rio-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.925rem;
    padding: 0.5rem 0.85rem !important;
}

.rio-nav .nav-link:hover {
    color: var(--primary) !important;
}

.rio-nav .btn-sign-in {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.925rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
}

.rio-nav .btn-sign-in:hover {
    color: var(--primary) !important;
}

.rio-nav .btn-cta {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.nav-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-dark) !important;
    padding: 0.35rem 0.75rem 0.35rem 0.35rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-user-btn:hover,
.nav-user-btn:focus,
.nav-user-btn.show {
    background: rgba(var(--primary-rgb), 0.08);
    border-color: rgba(var(--primary-rgb), 0.35);
    color: var(--text-dark) !important;
}

.nav-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.rio-nav-dropdown {
    min-width: 200px !important;
    padding: 0.5rem !important;
}

.rio-nav .dropdown-menu {
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    padding: 1rem;
    min-width: 280px;
    background: #000000;
}

.rio-nav .dropdown-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.rio-nav .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.rio-nav .dropdown-item:hover {
    background: rgba(var(--primary-rgb), 0.06);
    color: var(--primary);
}

.rio-mega-menu {
    min-width: 520px !important;
    padding: 1.25rem !important;
}

.rio-mega-menu .mega-col h6 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.rio-mega-menu .mega-link {
    display: block;
    padding: 0.4rem 0;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.rio-mega-menu .mega-link:hover {
    color: var(--primary);
}

.rio-mega-menu .mega-link small {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
}

/* Hero */
.rio-hero {
    position: relative;
    background: var(--hero-gradient);
    padding: 4.5rem 0 4rem;
    overflow: hidden;
}

.rio-hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.rio-hero-glow::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    top: -200px;
    left: -100px;
    border-radius: 50%;
    filter: blur(100px);
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.2) 0%, transparent 70%);
}

.rio-hero-glow::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -50px;
    border-radius: 50%;
    filter: blur(100px);
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.12) 0%, transparent 70%);
}

.rio-hero .container {
    position: relative;
    z-index: 1;
}

.rio-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .rio-hero-grid {
        grid-template-columns: 1fr 380px;
        gap: 3rem;
    }
}

.rio-hero-copy {
    text-align: center;
}

@media (min-width: 992px) {
    .rio-hero-copy {
        text-align: left;
    }
}

.rio-hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.rio-hero h1 {
    font-size: clamp(2rem, 4.5vw, 2.85rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.rio-hero .hero-rotate {
    color: var(--primary-light);
    display: inline-block;
    text-shadow: var(--accent-glow);
}

#heroRotateWord {
    transition: opacity 0.3s ease;
}

.rio-hero .hero-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 460px;
    margin: 0 auto 1.75rem;
    line-height: 1.6;
}

@media (min-width: 992px) {
    .rio-hero .hero-sub {
        margin-left: 0;
        margin-right: 0;
    }
}

.rio-hero .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .rio-hero .hero-actions {
        justify-content: flex-start;
    }
}

.rio-hero .hero-actions .btn-cta {
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

.rio-hero .hero-actions .btn-outline-cta {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
}

/* Trust bar */
.rio-hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.25rem;
}

@media (min-width: 992px) {
    .rio-hero-trust {
        justify-content: flex-start;
    }
}

.rio-hero-trust-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

@media (min-width: 992px) {
    .rio-hero-trust-item {
        text-align: left;
    }
}

.rio-hero-trust-item strong {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
}

.rio-stars-inline {
    color: var(--success);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.rio-hero-trust-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
    flex-shrink: 0;
}

.rio-hero-trust-item.rio-hero-live {
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
}

.rio-hero-trust-item.rio-hero-live strong {
    color: var(--primary-light);
    font-size: 0.9rem;
}

.rio-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-light);
    box-shadow: 0 0 6px rgba(var(--primary-rgb), 0.7);
    animation: liveDotPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes liveDotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Hero visual — single resume preview */
.rio-hero-visual {
    position: relative;
    display: none;
    justify-content: center;
    align-items: center;
}

@media (min-width: 992px) {
    .rio-hero-visual {
        display: flex;
    }
}

.rio-hero-visual-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.25) 0%, transparent 70%);
    filter: blur(40px);
}

.rio-hero-visual-card {
    position: relative;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 210 / 297;
    background: #fff;
    border-radius: 10px;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    overflow: hidden;
    animation: heroCardFloat 5s ease-in-out infinite;
}

.rio-hero-visual-card--tpl1 {
    max-width: 320px;
    border: 1px solid #d1d5db;
}

.rio-hero-visual-card--tpl1 .tpl1-mini-resume {
    height: 100%;
    font-size: 7px;
    line-height: 1.4;
    color: #111827;
}

.tprev--classic .tpl1-role,
.tprev--classic .tpl1-heading { color: var(--tprev-accent); }
.tprev--classic .tpl1-contact-band { background: var(--tprev-accent); }
.tprev--classic .tpl1-exp-meta { color: var(--tprev-accent); }

/* Template 1 (ResumesX Classic) mini preview */
.tpl1-mini-resume {
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
    overflow: hidden;
}

.tpl1-top {
    padding: 10% 9% 5%;
}

.tpl1-name {
    font-size: 2.4em;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #050505;
    line-height: 1.05;
}

.tpl1-role {
    font-size: 1.35em;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--primary);
    margin-top: 0.45em;
}

.tpl1-summary {
    font-size: 1.15em;
    color: #111827;
    margin-top: 1.1em;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tpl1-contact-band {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em 1em;
    background: var(--primary);
    color: #fff;
    padding: 0.65em 8%;
    font-size: 1.05em;
    line-height: 1.35;
}

.tpl1-content {
    padding: 7% 9% 8%;
    flex: 1;
}

.tpl1-heading {
    font-size: 1.3em;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--primary);
    margin: 0 0 0.55em;
    padding-bottom: 0.35em;
    border-bottom: 1.5px dotted #c9cdd3;
}

.tpl1-content > .tpl1-heading:not(:first-child) {
    margin-top: 1em;
}

.tpl1-skills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.2em 1.2em;
    margin-bottom: 0.4em;
}

.tpl1-skills span {
    font-size: 1.1em;
    color: #111827;
}

.tpl1-exp-title {
    font-size: 1.2em;
    font-weight: 900;
    color: #111827;
    margin-bottom: 0.15em;
}

.tpl1-exp-meta {
    font-size: 1.05em;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.35em;
}

.tpl1-exp-meta span {
    color: #111827;
    font-style: italic;
    font-weight: 400;
    margin-left: 0.4em;
}

.tpl1-bullets {
    margin: 0;
    padding-left: 1.3em;
    font-size: 1.05em;
    color: #111827;
}

.tpl1-bullets li {
    margin-bottom: 0.2em;
}

.tpl1-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    margin-top: 0.8em;
}

.tpl1-plain {
    font-size: 1.1em;
    color: #111827;
}

.rio-carousel-preview .tprev,
.rio-carousel-preview .tpl1-mini-resume {
    font-size: 5.5px;
    height: 100%;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.rio-hero-visual-card--tpl1 .tprev,
.rio-hero-visual-card--tpl1 .tpl1-mini-resume {
    height: 100%;
    font-size: 7.5px;
}

@keyframes heroCardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.rio-hero-visual-badge {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.rio-hero-visual-badge i {
    color: var(--primary-light);
}

/* Template carousel */
.rio-template-carousel {
    padding: 2.5rem 0 3rem;
    background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.rio-carousel-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.rio-carousel-header h2 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    color: var(--text-dark);
    margin: 0.5rem 0 0;
}

.rio-carousel-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0.75rem auto 0;
    line-height: 1.5;
}

.rio-carousel-track-wrap {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.rio-carousel-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    padding: 0.5rem 0 1rem;
    animation: carouselScroll 40s linear infinite;
}

.rio-carousel-track:hover {
    animation-play-state: paused;
}

@keyframes carouselScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.rio-carousel-card {
    display: block;
    width: 195px;
    flex-shrink: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.rio-carousel-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(var(--primary-rgb), 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 20px rgba(var(--primary-rgb), 0.1);
    color: inherit;
}

.rio-carousel-preview {
    height: 220px;
    background: #0a0a0a;
    padding: 0.75rem;
    overflow: hidden;
}

.rio-hero-visual-card--tpl1 .tprev {
    height: 100%;
    font-size: 7.5px;
}

.rio-carousel-info {
    padding: 0.85rem 1rem 1rem;
}

.rio-carousel-style {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-light);
    margin-bottom: 0.2rem;
}

.rio-carousel-info strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.15rem;
}

.rio-carousel-info small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.rio-stat-item {
    text-align: center;
}

.rio-stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-light);
}

.rio-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.rio-stars {
    color: var(--success);
    font-size: 1rem;
    letter-spacing: 2px;
}

/* SEO intro */
.rio-seo-intro {
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.04) 0%, #0a0a0a 40%, #000 100%);
    padding: 3.5rem 0 4rem;
    border-bottom: 1px solid var(--border);
}

.rio-seo-intro-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 2.75rem;
}

.rio-section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 0.85rem;
}

.rio-seo-intro-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 1rem;
}

.rio-seo-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0;
}

.rio-seo-highlights {
    margin-bottom: 2rem;
}

.rio-seo-card {
    height: 100%;
    padding: 1.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.rio-seo-card:hover {
    background: rgba(var(--primary-rgb), 0.04);
    border-color: rgba(var(--primary-rgb), 0.25);
    transform: translateY(-2px);
}

.rio-seo-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 1.15rem;
}

.rio-seo-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.65rem;
}

.rio-seo-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

.rio-seo-card p strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.rio-seo-footnote {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    text-align: center;
    font-size: 0.925rem;
    line-height: 1.7;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.rio-seo-footnote strong {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* Benefits strip */
.rio-benefits {
    background: #000000;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}

.rio-benefit-card {
    text-align: center;
    padding: 1.5rem 1rem;
}

.rio-benefit-icon {
    width: 56px;
    height: 56px;
    background: rgba(var(--primary-rgb), 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.rio-benefit-card h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.rio-benefit-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* Tools section */
.rio-tools {
    padding: 4rem 0;
    background: #000000;
}

.rio-tools h2 {
    text-align: center;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.rio-tool-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.rio-tool-tab {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.rio-tool-tab:hover,
.rio-tool-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.rio-tool-panel {
    display: none;
}

.rio-tool-panel.active {
    display: block;
}

.rio-tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.rio-tool-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid var(--border);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.rio-tool-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.rio-tool-card h4 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.rio-tool-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Companies strip */
.rio-companies {
    padding: 3rem 0;
    background: #000000;
    text-align: center;
}

.rio-companies--premium {
    padding: 2rem 0 2.5rem;
    background: #000;
    border-bottom: 1px solid var(--border);
}

.rio-companies p,
.rio-companies-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.rio-company-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.rio-company-marquee-track {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    width: max-content;
    animation: companyMarquee 35s linear infinite;
}

@keyframes companyMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.rio-company-logo {
    font-weight: 700;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: -0.02em;
    white-space: nowrap;
    transition: color 0.2s;
}

.rio-company-marquee:hover .rio-company-marquee-track {
    animation-play-state: paused;
}

.rio-company-marquee:hover .rio-company-logo:hover {
    color: rgba(var(--primary-rgb), 0.8);
}

.rio-company-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem 3rem;
    opacity: 0.6;
}

.rio-company-logos span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-muted);
    letter-spacing: -0.02em;
}

/* Coaching CTA */
.rio-coaching {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
    padding: 3rem 0;
    text-align: center;
}

.rio-coaching h3 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.rio-coaching p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.rio-coaching .btn-light {
    border-radius: 50px;
    font-weight: 600;
    padding: 0.65rem 1.75rem;
    background: var(--cta-gradient);
    color: #fff;
    border: none;
}

/* Templates section */
.rio-templates {
    padding: 4rem 0;
    background: #000000;
}

.rio-templates h2,
.rio-ai-features h2,
.rio-examples h2,
.rio-testimonials h2,
.rio-blog h2,
.rio-faq h2,
.rio-tools h2 {
    text-align: center;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.rio-tools h2,
.rio-ai-features h2,
.rio-faq h2 {
    margin-bottom: 2rem;
}

.rio-templates .section-sub {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.rio-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.rio-template-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.rio-template-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(var(--primary-rgb), 0.2);
    border-color: rgba(var(--primary-rgb), 0.35);
}

.rio-template-preview {
    height: 260px;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
    padding: 1rem;
}

.rio-template-preview .mini-resume {
    background: #ffffff;
    height: 100%;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    font-size: 6px;
}

.rio-template-preview .actual-template-mini {
    --tpl-accent: var(--primary);
    position: relative;
    display: grid;
    grid-template-columns: 34% 1fr;
    grid-template-rows: 24% 1fr;
    color: #1f2937;
}

.actual-template-mini .mini-sidebar {
    grid-row: 1 / span 2;
    padding: 10px 8px;
    background: var(--tpl-accent);
}

.actual-template-mini .mini-header {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--tpl-accent);
}

.actual-template-mini .mini-body {
    padding: 12px 12px 10px;
}

.actual-template-mini .mini-side-body {
    display: none;
    padding: 12px 10px;
    background: #f8fafc;
    border-left: 1px solid #e5e7eb;
}

.actual-template-mini .mini-avatar {
    width: 28px;
    height: 28px;
    margin: 0 auto 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35em;
    font-weight: 800;
    color: var(--tpl-accent);
    line-height: 1;
}

.actual-template-mini .mini-header .mini-avatar {
    margin: 0;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    font-size: 1.25em;
}

.actual-template-mini .mini-name,
.actual-template-mini .mini-contact,
.actual-template-mini .mini-role,
.actual-template-mini .mini-section-title,
.actual-template-mini .mini-line,
.actual-template-mini .mini-bullet,
.actual-template-mini .mini-pill,
.actual-template-mini .mini-exp-role,
.actual-template-mini .mini-exp-company {
    display: block;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.actual-template-mini .mini-name {
    font-size: 1.65em;
    font-weight: 800;
    color: #fff;
    margin-bottom: 3px;
    text-align: center;
}

.actual-template-mini .mini-role {
    font-size: 1.25em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2px;
}

.actual-template-mini .mini-contact {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2px;
    text-align: center;
}

.actual-template-mini .mini-contact.short {
    font-size: 1em;
}

.actual-template-mini .mini-section-title {
    font-size: 1.2em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tpl-accent);
    margin: 8px 0 4px;
    padding-bottom: 2px;
    border-bottom: 1px solid #e2e8f0;
}

.actual-template-mini .mini-sidebar .mini-section-title {
    color: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.25);
    margin-top: 10px;
    text-align: left;
}

.actual-template-mini .mini-exp-role {
    font-size: 1.2em;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1px;
}

.actual-template-mini .mini-exp-company {
    font-size: 1.05em;
    color: var(--tpl-accent);
    margin-bottom: 4px;
    font-weight: 600;
}

.actual-template-mini .mini-line {
    font-size: 1.05em;
    color: #4b5563;
    margin-bottom: 3px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.actual-template-mini .mini-line.short {
    -webkit-line-clamp: 1;
}

.actual-template-mini .mini-line.medium {
    -webkit-line-clamp: 1;
}

.actual-template-mini .mini-bullet {
    font-size: 1.05em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2px;
    text-align: left;
}

.actual-template-mini .mini-bullet.short {
    font-size: 1em;
}

.actual-template-mini .mini-pill {
    display: inline-block;
    width: auto;
    height: auto;
    font-size: 1em;
    font-weight: 600;
    color: #334155;
    background: #e2e8f0;
    padding: 2px 5px;
    border-radius: 3px;
    margin: 0 3px 3px 0;
}

.actual-template-mini .mini-pill.short {
    background: #dbeafe;
    color: #1e40af;
}

.actual-template-mini .mini-header .mini-name {
    color: #fff;
    text-align: left;
    margin-bottom: 1px;
}

.actual-template-mini .mini-header .mini-role {
    color: rgba(255, 255, 255, 0.92);
    text-align: left;
}

.actual-template-mini .mini-header .mini-contact {
    color: rgba(255, 255, 255, 0.78);
    text-align: left;
    font-size: 1em;
}

.template-preview-centered-header,
.template-preview-navy-single-column,
.template-preview-stockholm-essential,
.template-preview-london-classic,
.template-preview-singapore-minimalist,
.template-preview-dark-blue-bar,
.template-preview-photo-right-header,
.template-preview-magenta-accent,
.template-preview-orange-accent,
.template-preview-dark-green-header,
.template-preview-dublin-professional,
.template-preview-helsinki-prime-ats,
.template-preview-new-york-corporate,
.template-preview-tokyo-modern {
    display: block;
}

.template-preview-centered-header .mini-sidebar,
.template-preview-navy-single-column .mini-sidebar,
.template-preview-stockholm-essential .mini-sidebar,
.template-preview-london-classic .mini-sidebar,
.template-preview-singapore-minimalist .mini-sidebar,
.template-preview-dark-blue-bar .mini-sidebar,
.template-preview-photo-right-header .mini-sidebar,
.template-preview-magenta-accent .mini-sidebar,
.template-preview-orange-accent .mini-sidebar,
.template-preview-dark-green-header .mini-sidebar,
.template-preview-dublin-professional .mini-sidebar,
.template-preview-helsinki-prime-ats .mini-sidebar,
.template-preview-new-york-corporate .mini-sidebar,
.template-preview-tokyo-modern .mini-sidebar {
    display: none;
}

.template-preview-centered-header .mini-header,
.template-preview-navy-single-column .mini-header,
.template-preview-stockholm-essential .mini-header,
.template-preview-london-classic .mini-header,
.template-preview-singapore-minimalist .mini-header,
.template-preview-dark-blue-bar .mini-header,
.template-preview-photo-right-header .mini-header,
.template-preview-magenta-accent .mini-header,
.template-preview-orange-accent .mini-header,
.template-preview-dark-green-header .mini-header,
.template-preview-dublin-professional .mini-header,
.template-preview-helsinki-prime-ats .mini-header,
.template-preview-new-york-corporate .mini-header,
.template-preview-tokyo-modern .mini-header {
    display: flex;
}

.template-preview-centered-header .mini-header {
    justify-content: center;
    text-align: center;
}

.template-preview-centered-header .mini-header .mini-avatar {
    display: none;
}

.template-preview-centered-header .mini-head-content {
    width: 70%;
}

.template-preview-centered-header .mini-name,
.template-preview-centered-header .mini-contact {
    margin-left: auto;
    margin-right: auto;
}

.template-preview-photo-right-header .mini-header {
    flex-direction: row-reverse;
}

.template-preview-purple-two-column,
.template-preview-brussels-two-column {
    grid-template-columns: 1fr 34%;
}

.template-preview-purple-two-column .mini-sidebar,
.template-preview-brussels-two-column .mini-sidebar {
    display: none;
}

.template-preview-purple-two-column .mini-header,
.template-preview-brussels-two-column .mini-header {
    grid-column: 1 / -1;
    display: flex;
}

.template-preview-purple-two-column .mini-side-body,
.template-preview-brussels-two-column .mini-side-body {
    display: block;
}

.template-preview-tan-classic,
.template-preview-london-classic,
.template-preview-singapore-minimalist {
    border: 10px solid #f8fafc;
}

.template-preview-tan-classic .mini-sidebar {
    background: #d6b98c;
}

.template-preview-dark-blue-bar,
.template-preview-new-york-corporate {
    --tpl-accent: #1e3a5f;
}

.template-preview-magenta-accent {
    --tpl-accent: #be185d;
}

.template-preview-purple-two-column {
    --tpl-accent: #6d28d9;
}

.template-preview-tan-classic {
    --tpl-accent: #a16207;
}

.template-preview-navy-single-column {
    --tpl-accent: #0f172a;
}

.template-preview-orange-accent {
    --tpl-accent: #ea580c;
}

.template-preview-dark-green-header {
    --tpl-accent: #166534;
}

.template-preview-london-classic {
    --tpl-accent: #374151;
}

.template-preview-tokyo-modern {
    --tpl-accent: #0ea5e9;
}

.template-preview-singapore-minimalist {
    --tpl-accent: #64748b;
}

/* Green sidebar — light sidebar with dark text */
.template-preview-green-sidebar .mini-sidebar {
    background: #f0fdf4;
    border-right: 1px solid #bbf7d0;
}

.template-preview-green-sidebar .mini-sidebar .mini-name {
    color: #111827;
}

.template-preview-green-sidebar .mini-sidebar .mini-contact,
.template-preview-green-sidebar .mini-sidebar .mini-bullet {
    color: #4b5563;
}

.template-preview-green-sidebar .mini-sidebar .mini-section-title {
    color: var(--tpl-accent);
    border-bottom-color: #bbf7d0;
}

.template-preview-green-sidebar .mini-sidebar .mini-avatar {
    background: var(--tpl-accent);
    color: #fff;
}

.template-preview-centered-header .mini-role {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.rio-template-info {
    padding: 1rem;
}

.rio-template-info .template-style {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rio-template-info h5 {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0.25rem 0;
    color: var(--text-dark);
}

.rio-template-info .user-count {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.rio-template-info .btn-use-template {
    width: 100%;
    font-size: 0.85rem;
    padding: 0.45rem;
    border-radius: 8px;
}

/* AI Features */
.rio-ai-features {
    padding: 4rem 0;
    background: #000000;
}

.rio-ai-features h2 {
    text-align: center;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

.rio-ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.rio-ai-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.rio-ai-card:hover {
    border-color: rgba(var(--primary-rgb), 0.35);
}

.rio-ai-badge {
    display: inline-block;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.rio-ai-card h4 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.rio-ai-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Examples */
.rio-examples {
    padding: 4rem 0;
    background: #000000;
}

.rio-examples h2 {
    text-align: center;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.rio-examples .section-sub {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.rio-example-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.rio-example-scroll::-webkit-scrollbar {
    height: 6px;
}

.rio-example-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.rio-example-card {
    flex: 0 0 180px;
    scroll-snap-align: start;
    text-align: center;
}

.rio-example-card .example-thumb {
    height: 220px;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.7;
}

.rio-example-card h6 {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.rio-example-card small {
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* Testimonials */
.rio-testimonials {
    padding: 4rem 0;
    background: #000000;
}

.rio-testimonials h2 {
    text-align: center;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.rio-trust-badge {
    text-align: center;
    margin-bottom: 2rem;
}

.rio-trust-badge .rio-stars {
    font-size: 1.25rem;
}

.rio-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.rio-testimonial-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.rio-testimonial-card .rio-stars {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.rio-testimonial-card h6 {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.rio-testimonial-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.rio-testimonial-card .author {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Blog */
.rio-blog {
    padding: 4rem 0;
    background: #000000;
}

.rio-blog h2 {
    text-align: center;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.rio-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.rio-blog-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
    background: var(--surface);
}

.rio-blog-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(var(--primary-rgb), 0.3);
}

a.rio-blog-card.blog-card-link:hover h5,
a.rio-blog-card.blog-card-link:hover h2,
a.rio-blog-card.blog-card-link:hover h3 {
    color: var(--primary);
}

.rio-blog-card .blog-thumb {
    height: 160px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
}

.rio-blog-card .blog-body {
    padding: 1.25rem;
}

.rio-blog-card .blog-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
}

.rio-blog-card h5 {
    font-weight: 700;
    font-size: 1rem;
    margin: 0.5rem 0;
    color: var(--text-dark);
}

/* FAQ */
.rio-faq {
    padding: 4rem 0;
    background: #000000;
}

.rio-faq h2 {
    text-align: center;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.rio-faq .accordion-item {
    border: 1px solid var(--border);
    border-radius: 12px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.rio-faq .accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    color: var(--text-dark);
}

.rio-faq .accordion-button:not(.collapsed) {
    background: var(--bg-light);
    color: var(--primary-light);
    box-shadow: none;
}

.rio-faq .accordion-body {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    padding: 0 1.5rem 1.25rem;
}

/* Final CTA */
.rio-final-cta {
    padding: 4rem 0;
    background: var(--hero-gradient);
    text-align: center;
}

.rio-final-cta h2 {
    font-weight: 800;
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.rio-final-cta p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Footer */
.rio-footer {
    background: #000000;
    color: #fff;
    padding: 3.5rem 0 2rem;
    border-top: 1px solid var(--border);
}

.rio-footer h6 {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: #fff;
}

.rio-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rio-footer ul li {
    margin-bottom: 0.5rem;
}

.rio-footer ul a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.875rem;
}

.rio-footer ul a:hover {
    color: #fff;
}

.rio-footer .footer-brand {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.rio-footer .footer-brand .logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
}

.rio-footer .footer-brand .logo-icon::after {
    content: '';
    width: 14px;
    height: 18px;
    background: #000000;
    border-radius: 2px;
    display: block;
    margin: 7px auto;
}

.rio-footer .social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.rio-footer .social-links a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
}

.rio-footer .social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.rio-footer .copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Per-template mini preview layouts */
.tprev {
    --tprev-accent: #10b981;
    height: 100%;
    background: #fff;
    text-align: left;
    color: #111827;
    line-height: 1.35;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tprev-heading {
    font-size: 1.25em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tprev-accent);
    margin: 0.7em 0 0.35em;
    padding-bottom: 0.2em;
    border-bottom: 1px solid #e2e8f0;
}

.tprev-heading--dark { color: #202020; border-bottom-color: #202020; }

.tprev-name {
    font-size: 1.85em;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.tprev-name--dark { color: #111827; }
.tprev-name--corp { color: var(--tprev-accent); font-weight: 500; font-size: 1.5em; }

.tprev-role {
    font-size: 1.2em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    margin-top: 0.2em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tprev-role--muted { color: #666; font-size: 1.05em; text-transform: none; }
.tprev-role--accent { color: var(--tprev-accent); text-transform: none; }
.tprev-role--corp { color: #66788a; text-transform: none; font-weight: 400; }

.tprev-contact-sm {
    font-size: 1.05em;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.35em;
}

.tprev-contact-sm--dark { color: #555; }
.tprev-contact-sm--corp { color: #7b8a99; text-align: right; line-height: 1.5; }

.tprev-text {
    font-size: 1.05em;
    color: #4b5563;
    margin: 0 0 0.25em;
    line-height: 1.4;
}

.tprev-exp-title {
    font-size: 1.15em;
    font-weight: 700;
    color: #111827;
}

.tprev-exp-meta {
    font-size: 1.05em;
    color: var(--tprev-accent);
    font-weight: 600;
    margin-bottom: 0.25em;
}

.tprev-exp-meta span {
    color: #111827;
    font-style: italic;
    font-weight: 400;
}

.tprev-bullets {
    margin: 0.15em 0 0.4em;
    padding-left: 1.2em;
    font-size: 1em;
    color: #374151;
}

.tprev-bullets li { margin-bottom: 0.15em; }

.tprev-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25em 0.5em;
    margin-bottom: 0.35em;
}

.tprev-skills span { font-size: 1.05em; color: #475569; }

.tprev-pill,
.tprev-tag {
    display: inline-block;
    font-size: 0.95em;
    font-weight: 600;
    background: #e2e8f0;
    color: #334155;
    padding: 0.15em 0.45em;
    border-radius: 3px;
    margin: 0 0.2em 0.2em 0;
}

.tprev-side-item {
    font-size: 1.05em;
    color: #444;
    margin-bottom: 0.15em;
}

.tprev-side-bar {
    font-size: 1em;
    color: #444;
    border-bottom: 2px solid #d8d8d8;
    padding-bottom: 0.2em;
    margin-bottom: 0.35em;
}

.tprev-photo {
    width: 2.8em;
    height: 2.8em;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--tprev-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1em;
    flex-shrink: 0;
}

.tprev-photo--sq { border-radius: 4px; }
.tprev-photo--lg {
    width: 3.2em;
    height: 3.2em;
    margin-bottom: 0.6em;
    background: #f2f5f8;
    border: 2px solid #e2e8f0;
    color: var(--tprev-accent);
}

.tprev-card {
    font-size: 1em;
    color: #5f6b76;
    background: rgba(241, 245, 249, 0.9);
    border-radius: 6px;
    padding: 0.5em;
    line-height: 1.4;
}

.tprev-intro {
    font-size: 1.05em;
    color: #435466;
    background: rgba(235, 244, 250, 0.7);
    border-radius: 8px;
    padding: 0.5em;
    margin: 0.5em 0;
    line-height: 1.45;
}

.tprev--header-band .tprev-hdr { background: var(--tprev-accent); padding: 8% 7%; }
.tprev--center .tprev-hdr { text-align: center; }
.tprev--center .tprev-name,
.tprev--center .tprev-role,
.tprev--center .tprev-contact-sm { text-align: center; }
.tprev--header-band .tprev-body,
.tprev-body { padding: 6% 7% 7%; flex: 1; }

.tprev--header-photo .tprev-hdr--photo {
    background: var(--tprev-accent);
    padding: 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5em;
}

.tprev--header-photo .tprev-body { padding: 6% 7%; flex: 1; }

.tprev--sidebar-left { flex-direction: row; }
.tprev--sidebar-left .tprev-side {
    width: 32%;
    background: #f4f6f8;
    border-right: 3px solid var(--tprev-accent);
    padding: 7% 5%;
}
.tprev--sidebar-left .tprev-side .tprev-name { color: #111; font-size: 1.45em; }
.tprev--sidebar-left .tprev-side .tprev-role { color: var(--tprev-accent); font-size: 1em; margin-bottom: 0.5em; }
.tprev--sidebar-left .tprev-main { flex: 1; padding: 6% 6%; }

.tprev--split-sidebar { display: block; }
.tprev--split-sidebar .tprev-mast { padding: 7% 7% 4%; border-bottom: 1px solid #242424; }
.tprev--split-sidebar .tprev-split { display: grid; grid-template-columns: 28% 1fr; }
.tprev--split-sidebar .tprev-side--light { padding: 5%; border-right: 1px solid #d8d8d8; }
.tprev--split-sidebar .tprev-main { padding: 5% 6%; }

.tprev--split-columns .tprev-hdr--bar { background: var(--tprev-accent); padding: 6% 7%; }
.tprev--split-columns .tprev-split { display: grid; grid-template-columns: 1fr 34%; flex: 1; }
.tprev--split-columns .tprev-main { padding: 5% 6%; }
.tprev--split-columns .tprev-side--right { background: #f8fafc; border-left: 1px solid #e5e7eb; padding: 5%; }
.tprev--split-columns .tprev-side--boxed { background: rgba(240, 240, 240, 0.88); border-radius: 5px; margin: 4%; padding: 5%; }

.tprev--single-clean .tprev-topbar { padding: 7% 7% 4%; border-bottom: 3px solid var(--tprev-accent); }
.tprev--frame { border: 8px solid #f8fafc; }
.tprev--single-clean .tprev-body { padding: 5% 7%; flex: 1; }

.tprev--dark-split .tprev-hdr--split-top {
    display: grid;
    grid-template-columns: 32% 1fr;
    gap: 0.6em;
    padding: 6% 6% 4%;
    border-bottom: 1px solid #e5e7eb;
}
.tprev--dark-split .tprev-split { display: grid; grid-template-columns: 1fr 34%; flex: 1; }
.tprev--dark-split .tprev-main { padding: 5% 6%; }
.tprev--dark-split .tprev-side--right { padding: 5%; background: #f1f5f9; }

.tprev--corporate { padding: 7%; }
.tprev--corporate .tprev-corp-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5em;
    margin-bottom: 0.5em;
}

.tprev--modern-head .tprev-modern-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 7% 7% 4%;
    border-bottom: 3px solid var(--tprev-accent);
}
.tprev--modern-head .tprev-body { padding: 5% 7%; flex: 1; }

.tprev--executive .tprev-exec-hero { background: var(--tprev-accent); padding: 8% 7%; color: #fff; }
.tprev--executive .tprev-exec-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em 0.8em;
    margin-top: 0.6em;
    padding-top: 0.5em;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1em;
    color: rgba(255, 255, 255, 0.88);
}
.tprev--executive .tprev-exec-body {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 0.5em;
    padding: 5% 6%;
    flex: 1;
}

.tprev--modern-portfolio {
    display: grid;
    grid-template-columns: 5px 1fr;
    height: 100%;
}
.tprev--modern-portfolio .tprev-port-accent { background: var(--tprev-accent); }
.tprev--modern-portfolio .tprev-port-inner { padding: 6% 6% 5%; overflow: hidden; }
.tprev--modern-portfolio .tprev-port-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3em 0.6em;
    font-size: 1em;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e6edf5;
    border-radius: 8px;
    padding: 0.4em 0.5em;
    margin: 0.5em 0;
}
.tprev--modern-portfolio .tprev-port-split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 0.5em; }

.tprev--ats-compact .tprev-ats-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.4em;
    padding: 6% 6% 4%;
    border-bottom: 3px solid var(--tprev-accent);
}
.tprev--ats-compact .tprev-ats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5em;
    padding: 5% 6%;
    flex: 1;
}

.tprev--geometric-sidebar {
    flex-direction: row;
    background: linear-gradient(115deg, rgba(100, 116, 139, 0.06) 0 23%, transparent 23%);
}
.tprev--geometric-sidebar .tprev-geo-side {
    width: 30%;
    padding: 8% 5%;
    border-right: 1px solid #d7dde5;
    background: rgba(248, 250, 252, 0.85);
}
.tprev--geometric-sidebar .tprev-geo-main { flex: 1; padding: 6% 6%; }
.tprev--geometric-sidebar .tprev-geo-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4em;
    margin-bottom: 0.5em;
}

.tprev--classic { display: block; }

@media (max-width: 991px) {
    .rio-mega-menu {
        min-width: auto !important;
    }

    .rio-hero {
        padding: 2.5rem 0 2.5rem;
    }

    .rio-hero-trust-divider {
        display: none;
    }

    .rio-hero-trust {
        gap: 0.75rem 1.5rem;
    }

    .rio-template-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .rio-hero-visual-card,
    .rio-live-dot,
    .rio-carousel-track,
    .rio-company-marquee-track {
        animation: none !important;
    }
}

/* Top Up / Pricing page */
.topup-page .topup-title {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-dark, #f3f4f6);
    margin-bottom: 0.4rem;
}

.topup-page .topup-subtitle {
    color: var(--text-muted, #9ca3af);
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.topup-credits-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
    font-size: 0.92rem;
}

.topup-panel {
    background: var(--surface, #111);
    border: 1px solid var(--border, #2a2a2a);
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    height: auto;
}

.topup-panel--accent {
    border-color: rgba(16, 185, 129, 0.45);
}

.topup-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.topup-panel-head h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark, #f3f4f6);
}

.topup-balance {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--theme-color, #10b981);
}

.topup-panel-note {
    color: var(--text-muted, #9ca3af);
    font-size: 0.88rem;
    margin-bottom: 1rem;
    line-height: 1.45;
}

.topup-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted, #9ca3af);
    margin-bottom: 0.4rem;
}

.topup-amount-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: stretch;
}

.topup-input-wrap {
    display: flex;
    align-items: center;
    flex: 1 1 8rem;
    min-width: 0;
    background: var(--bg-light, #0b0f14);
    border: 1px solid var(--border, #374151);
    border-radius: 10px;
    overflow: hidden;
}

.topup-currency {
    padding: 0.65rem 0.75rem;
    color: var(--text-muted, #9ca3af);
    font-weight: 600;
    border-right: 1px solid var(--border, #374151);
}

.topup-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--text-dark, #f3f4f6);
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    font-weight: 600;
}

.topup-input:focus {
    outline: none;
}

.topup-input-wrap:focus-within {
    border-color: var(--theme-color, #10b981);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.topup-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.topup-preview {
    margin-top: 0.55rem;
    font-size: 0.85rem;
    color: #6ee7b7;
}

.topup-panel-foot {
    margin-top: 0.9rem;
    font-size: 0.8rem;
    color: var(--text-muted, #9ca3af);
}

.topup-panel-foot a {
    color: var(--theme-color, #10b981);
}

.topup-plans-row {
    padding-top: 0.75rem;
}

/* Pricing plans page */
.rio-pricing-card {
    background: var(--theme-surface, #111);
    border: 1px solid var(--theme-border, #2a2a2a);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    height: auto;
    min-height: 100%;
    position: relative;
    transition: border-color 0.2s, transform 0.2s;
}

.topup-plans-row .rio-pricing-card {
    height: 100%;
}

.rio-pricing-card:hover {
    border-color: var(--theme-color, #10b981);
    transform: translateY(-4px);
}

.rio-pricing-card.popular {
    border-color: var(--theme-color, #10b981);
    box-shadow: 0 0 0 1px var(--theme-color, #10b981);
}

.rio-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--theme-color, #10b981);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
    z-index: 2;
}

.rio-pricing-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.rio-pricing-amount {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--theme-color, #10b981);
    margin-bottom: 0.25rem;
}

.rio-pricing-credits {
    color: var(--theme-text-muted, #9ca3af);
    font-weight: 600;
    margin-bottom: 1rem;
}

.rio-pricing-desc {
    color: var(--theme-text-muted, #9ca3af);
    font-size: 0.95rem;
    min-height: 3rem;
}

.rio-pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 1.5rem;
}

.rio-pricing-features li {
    padding: 0.35rem 0;
    color: var(--theme-text-muted, #9ca3af);
    font-size: 0.92rem;
}

.rio-pricing-features li i {
    color: var(--theme-color, #10b981);
    margin-right: 0.5rem;
}

/* Checkout page */
.checkout-app {
    background: var(--theme-bg, #000);
}

.checkout-page {
    max-width: 1100px;
}

.checkout-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.checkout-back-link {
    color: var(--theme-text-muted, #9ca3af);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.checkout-back-link:hover {
    color: var(--theme-color, #10b981);
}

.checkout-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--theme-color, #10b981);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.22);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
}

.checkout-grid {
    align-items: stretch;
}

.checkout-card {
    background: linear-gradient(160deg, #141414 0%, #101010 100%);
    border: 1px solid var(--theme-border, #2a2a2a);
    border-radius: 20px;
    padding: 1.75rem 2rem;
    height: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.checkout-payment-card {
    border-color: rgba(16, 185, 129, 0.18);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(16, 185, 129, 0.06);
}

.checkout-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--theme-color, #10b981);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.checkout-plan-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.85rem;
    line-height: 1.2;
}

.checkout-price-block {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.checkout-price {
    font-size: 2.1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.checkout-price-block .checkout-price {
    color: var(--theme-color, #10b981);
}

.checkout-credits-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    font-size: 0.82rem;
    font-weight: 600;
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--theme-border, #2a2a2a);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
}

.checkout-credits-badge i {
    color: var(--theme-color, #10b981);
}

.checkout-desc {
    color: var(--theme-text-muted, #9ca3af);
    font-size: 0.88rem;
    margin-bottom: 1.15rem;
    line-height: 1.55;
}

.checkout-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.35rem;
}

.checkout-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    color: #d1d5db;
    font-size: 0.88rem;
}

.checkout-features li i {
    color: var(--theme-color, #10b981);
    font-size: 0.95rem;
}

.checkout-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--theme-border, #2a2a2a);
    font-size: 0.95rem;
    color: var(--theme-text-muted, #9ca3af);
}

.checkout-total strong {
    font-size: 1.25rem;
    color: var(--theme-color, #10b981);
}

.checkout-payment-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.35rem;
}

.checkout-payment-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--theme-color, #10b981);
    font-size: 1.35rem;
    flex-shrink: 0;
}

.checkout-payment-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
    letter-spacing: -0.02em;
}

.checkout-payment-sub {
    color: var(--theme-text-muted, #9ca3af);
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.5;
}

.checkout-pay-shell {
    background: #f8f9fb;
    border-radius: 16px;
    padding: 1.35rem 1.5rem 1.5rem;
    border: 1px solid #e5e7eb;
    transition: padding 0.25s ease;
}

.checkout-pay-shell.is-expanded {
    padding: 1.5rem 1.75rem 1.75rem;
}

.checkout-pay-shell-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.checkout-pay-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 0.2rem;
}

.checkout-pay-amount {
    font-size: 1.65rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

.checkout-card-brands {
    display: flex;
    gap: 0.4rem;
}

.checkout-card-brands span {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #4b5563;
    background: #fff;
    border: 1px solid #d1d5db;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
}

.checkout-paypal-zone {
    width: 100%;
    min-height: 110px;
}

.checkout-paypal-zone > div {
    width: 100% !important;
    max-width: 100% !important;
}

.checkout-pay-shell.is-expanded .checkout-paypal-zone {
    min-height: 420px;
}

.checkout-paypal-zone iframe {
    width: 100% !important;
    max-width: 100% !important;
}

.checkout-stripe-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 6px;
    background: #635bff;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.checkout-stripe-btn:hover:not(:disabled) {
    background: #5851ea;
}

.checkout-stripe-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.checkout-ziina-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 6px;
    background: #0f766e;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.checkout-ziina-btn:hover:not(:disabled) {
    background: #0d9488;
}

.checkout-ziina-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.checkout-pay-divider {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0.35rem 0 1rem;
    color: #9ca3af;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.checkout-pay-divider::before,
.checkout-pay-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.checkout-pay-loading,
.checkout-processing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 2rem 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.checkout-spinner {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-top-color: var(--theme-color, #10b981);
    border-radius: 50%;
    animation: checkout-spin 0.7s linear infinite;
    flex-shrink: 0;
}

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

.checkout-pay-error {
    margin: 0;
    padding: 1rem;
    text-align: center;
    color: #dc2626;
    font-size: 0.88rem;
    background: #fef2f2;
    border-radius: 10px;
}

.checkout-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--theme-border, #2a2a2a);
}

.checkout-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--theme-text-muted, #9ca3af);
}

.checkout-trust-row i {
    color: var(--theme-color, #10b981);
}

.checkout-auto-renew {
    padding: 0.85rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    color: #111827;
}

.checkout-auto-renew input {
    margin-top: 0.2rem;
    accent-color: var(--theme-color, #10b981);
}

.checkout-auto-renew strong {
    display: block;
    font-size: 0.92rem;
    color: #111827;
}

.checkout-auto-renew small {
    line-height: 1.4;
    margin-top: 0.2rem;
    color: #6b7280 !important;
}

.checkout-saved-zone {
    padding: 1rem;
    border: 1px solid var(--theme-border, #2a2a2a);
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.06);
}

@media (max-width: 991.98px) {
    .checkout-card {
        padding: 1.35rem 1.25rem;
    }

    .checkout-pay-shell {
        padding: 1.15rem 1.15rem 1.25rem;
    }

    .checkout-plan-name {
        font-size: 1.3rem;
    }

    .checkout-price {
        font-size: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .checkout-pay-shell-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkout-trust-row {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Billing — McDonald’s-style add card */
.billing-card-chip {
    width: 44px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f2937, #111827);
    border: 1px solid #374151;
    color: var(--theme-color, #10b981);
    font-size: 1.15rem;
}

.billing-brand-row {
    display: flex;
    gap: 0.35rem;
}

.billing-brand-row span {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9ca3af;
    border: 1px solid #374151;
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
}

.billing-add-card .billing-field-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #d1d5db;
    margin-bottom: 0.4rem;
}

.billing-add-card .billing-field {
    background: #0b0f14;
    border: 1px solid #374151;
    border-radius: 10px;
    padding: 0.85rem 0.95rem;
    min-height: 48px;
}

.billing-add-card .billing-field.StripeElement--focus {
    border-color: var(--theme-color, #10b981);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.billing-provider-tile {
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.03);
}

.billing-gateway-option {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border: 1px solid #374151;
    border-radius: 10px;
    background: #0b0f14;
    cursor: pointer;
    color: #e5e7eb;
    margin: 0;
}

.billing-gateway-option input {
    accent-color: var(--theme-color, #10b981);
}

.billing-gateway-option span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}
