/* ================================================== */
/* SKORE AI – MASTER STYLESHEET v2                    */
/* Theme: Coral (#E8655A) + Black + White             */
/* Style: iOS-inspired, Apple-clean, Minimal          */
/* Font: Inter                                        */
/* ================================================== */

/* ======================== */
/* CSS VARIABLES            */
/* ======================== */
:root {
    --coral-50: #FEF2F0;
    --coral-100: #FDE5E1;
    --coral-200: #FBCCC5;
    --coral-300: #F5A89D;
    --coral-400: #F0877A;
    --coral-500: #E8655A;
    --coral-600: #D4493D;
    --coral-700: #B5352A;
    --coral-800: #932C23;
    --coral-900: #7A2820;

    --black: #000000;
    --gray-950: #0A0A0A;
    --gray-900: #171717;
    --gray-800: #262626;
    --gray-700: #404040;
    --gray-600: #525252;
    --gray-500: #737373;
    --gray-400: #A3A3A3;
    --gray-300: #D4D4D4;
    --gray-200: #E5E5E5;
    --gray-100: #F5F5F5;
    --gray-50: #FAFAFA;
    --white: #FFFFFF;

    --primary: var(--coral-500);
    --primary-hover: var(--coral-600);
    --primary-light: var(--coral-100);
    --primary-lighter: var(--coral-50);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-500);
    --text-tertiary: var(--gray-400);
    --bg: var(--white);
    --bg-secondary: var(--gray-50);
    --bg-card: var(--white);
    --border: #EBEBEB;
    --border-light: #F3F3F3;

    --success: #34C759;
    --success-bg: #F0FDF4;
    --warning: #FF9F0A;
    --warning-bg: #FFFBEB;
    --danger: #FF3B30;
    --danger-bg: #FEF2F2;
    --info: #007AFF;
    --info-bg: #EFF6FF;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.14);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04), 0 0 1px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.06);
    --shadow-primary: 0 4px 20px rgba(232, 101, 90, 0.2);
    --shadow-primary-lg: 0 8px 36px rgba(232, 101, 90, 0.28);

    --r-xs: 8px;
    --r-sm: 12px;
    --r-md: 16px;
    --r-lg: 20px;
    --r-xl: 24px;
    --r-2xl: 28px;
    --r-3xl: 32px;
    --r-full: 9999px;

    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-fast: 150ms;
    --t-base: 250ms;
    --t-slow: 400ms;
}

/* ======================== */
/* RESET                    */
/* ======================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg);
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--t-fast) var(--ease);
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: inherit;
    background: none;
    transition: all var(--t-base) var(--ease);
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
}

img {
    max-width: 100%;
    display: block;
}

ul,
ol {
    list-style-position: inside;
}

::selection {
    background: var(--coral-200);
    color: var(--gray-900);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: var(--r-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ======================== */
/* CONTAINERS               */
/* ======================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-md {
    max-width: 800px;
}

.container-sm {
    max-width: 640px;
}

/* ======================== */
/* iOS CARD                 */
/* ======================== */
.ios-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-card);
    transition: all var(--t-base) var(--ease);
    position: relative;
    overflow: hidden;
}

.ios-card:hover {
    box-shadow: var(--shadow-card-hover);
}

/* ======================== */
/* FLOATING ORBS            */
/* ======================== */
.floating-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.03;
    animation: orbFloat 25s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -10%;
    left: -5%;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--coral-300);
    top: 30%;
    right: -10%;
    animation-delay: -6s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--gray-900);
    bottom: 10%;
    left: 20%;
    animation-delay: -12s;
}

.orb-4 {
    width: 300px;
    height: 300px;
    background: var(--coral-400);
    top: 60%;
    left: 60%;
    animation-delay: -18s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(40px, -30px) scale(1.04);
    }

    50% {
        transform: translate(-20px, 40px) scale(0.96);
    }

    75% {
        transform: translate(30px, 20px) scale(1.02);
    }
}

/* ======================== */
/* FLOATING EMOJIS          */
/* ======================== */
.floating-emojis {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.fl-emoji {
    position: absolute;
    font-size: 22px;
    opacity: 0.06;
    animation: emojiDrift 22s ease-in-out infinite;
    will-change: transform;
}

.fl-1 {
    top: 6%;
    left: 4%;
    animation-delay: 0s;
    font-size: 26px;
}

.fl-2 {
    top: 14%;
    right: 6%;
    animation-delay: -1.5s;
}

.fl-3 {
    top: 28%;
    left: 10%;
    animation-delay: -3s;
    font-size: 18px;
}

.fl-4 {
    top: 42%;
    right: 12%;
    animation-delay: -5s;
    font-size: 28px;
}

.fl-5 {
    top: 55%;
    left: 3%;
    animation-delay: -7s;
}

.fl-6 {
    top: 68%;
    right: 4%;
    animation-delay: -9s;
    font-size: 24px;
}

.fl-7 {
    top: 78%;
    left: 18%;
    animation-delay: -11s;
    font-size: 20px;
}

.fl-8 {
    top: 18%;
    left: 38%;
    animation-delay: -13s;
}

.fl-9 {
    top: 50%;
    left: 55%;
    animation-delay: -15s;
    font-size: 18px;
}

.fl-10 {
    top: 88%;
    right: 22%;
    animation-delay: -17s;
}

.fl-11 {
    top: 8%;
    left: 65%;
    animation-delay: -2s;
    font-size: 18px;
}

.fl-12 {
    top: 36%;
    left: 80%;
    animation-delay: -6s;
}

@keyframes emojiDrift {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(25px, -18px) rotate(8deg);
    }

    50% {
        transform: translate(-15px, 12px) rotate(-4deg);
    }

    75% {
        transform: translate(12px, 22px) rotate(6deg);
    }
}

/* ======================== */
/* LOADING SCREEN           */
/* ======================== */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo-wrap {
    margin: 0 auto 16px;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

.loader-brand {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.loader-brand span {
    color: var(--primary);
    font-weight: 700;
    margin-left: 2px;
}

.loader-bar-track {
    width: 180px;
    height: 4px;
    background: var(--gray-100);
    border-radius: var(--r-full);
    margin: 0 auto 14px;
    overflow: hidden;
}

.loader-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--primary);
    border-radius: var(--r-full);
    animation: loaderBarGrow 1.8s ease-in-out forwards;
}

@keyframes loaderBarGrow {
    0% {
        width: 0;
    }

    45% {
        width: 40%;
    }

    60% {
        width: 75%;
    }

    90% {
        width: 95%;
    }

    100% {
        width: 100%;
    }
}

.loader-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ======================== */
/* NAVBAR                   */
/* ======================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 68px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    z-index: 1000;
    transition: all var(--t-base) var(--ease);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    cursor: pointer;
}

.nav-logo-svg {
    border-radius: var(--r-sm);
}

.brand-name {
    font-size: 19px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.5px;
}

.brand-ai-badge {
    padding: 2px 7px;
    background: var(--primary);
    color: var(--white);
    font-size: 10px;
    font-weight: 800;
    border-radius: var(--r-xs);
    letter-spacing: 0.5px;
}

/* Nav Pills */
.nav-pills {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    background: var(--gray-100);
    border-radius: var(--r-full);
    position: relative;
}

.nav-pill-bg {
    position: absolute;
    height: calc(100% - 8px);
    top: 4px;
    left: 4px;
    background: var(--white);
    border-radius: var(--r-full);
    box-shadow: var(--shadow-sm);
    transition: all var(--t-slow) var(--ease-bounce);
    z-index: 0;
    pointer-events: none;
}

.nav-pill {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--r-full);
    white-space: nowrap;
    transition: color var(--t-fast) var(--ease);
}

.nav-pill:hover {
    color: var(--text-primary);
}

.nav-pill.active {
    color: var(--gray-900);
}

.pill-icon {
    font-size: 14px;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-size: 12px;
    font-weight: 700;
}

.chip-emoji {
    font-size: 13px;
}

.chip-value {
    font-size: 12px;
}

.nav-avatar-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.nav-avatar-btn:hover {
    border-color: var(--primary);
    background: var(--coral-50);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gray-900);
    border-radius: 1px;
    transition: all var(--t-fast) var(--ease);
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    z-index: 999;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
}

.mobile-menu.open {
    display: block;
}

.mobile-menu-inner {
    padding: 16px 24px 24px;
    display: flex;
    flex-direction: column;
}

.mm-link {
    padding: 14px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
}

.mm-link:last-child {
    border-bottom: none;
}

.mm-link:hover {
    color: var(--primary);
}

.mm-small {
    font-size: 13px;
    color: var(--text-secondary);
}

.mm-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

/* ======================== */
/* GLOBAL BACK BUTTON       */
/* ======================== */
.back-btn {
    position: fixed;
    top: 78px;
    left: 24px;
    z-index: 990;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--t-base) var(--ease);
    animation: backBtnIn 0.3s var(--ease);
}

.back-btn:hover {
    background: var(--gray-50);
    box-shadow: var(--shadow-lg);
    transform: translateX(-2px);
}

.back-arrow {
    font-size: 16px;
    font-weight: 800;
}

@keyframes backBtnIn {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ======================== */
/* PAGE SYSTEM              */
/* ======================== */
.page {
    display: none;
    min-height: 100vh;
    padding-top: 68px;
    position: relative;
    z-index: 1;
}

.page.active {
    display: block;
    animation: pageEnter 0.4s var(--ease);
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.padded-section {
    padding: 48px 0 80px;
}

/* ======================== */
/* HERO SECTION             */
/* ======================== */
.hero-section {
    padding: 80px 0 48px;
    position: relative;
    overflow: hidden;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-left {
    position: relative;
    z-index: 2;
}

.hero-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.hero-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--coral-50);
    border: 1px solid var(--coral-200);
    border-radius: var(--r-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--coral-700);
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.6);
    }
}

.hero-version-badge {
    padding: 4px 10px;
    background: var(--gray-900);
    color: var(--white);
    border-radius: var(--r-full);
    font-size: 10px;
    font-weight: 700;
}

.hero-title {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -2.5px;
    color: var(--gray-900);
    margin-bottom: 18px;
}

.hero-accent {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-accent::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--coral-200);
    border-radius: var(--r-full);
    z-index: -1;
    opacity: 0.6;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 480px;
}

.hero-cta-row {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    background: var(--gray-900);
    color: var(--white);
    border-radius: var(--r-md);
    font-size: 15px;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.btn-hero-primary:hover {
    background: var(--black);
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.btn-hero-primary:active {
    transform: translateY(0);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    background: var(--white);
    color: var(--text-primary);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    font-size: 15px;
    font-weight: 700;
}

.btn-hero-secondary:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 16px;
}

.btn-arrow-right {
    font-size: 16px;
    transition: transform var(--t-fast) var(--ease);
}

.btn-hero-primary:hover .btn-arrow-right {
    transform: translateX(3px);
}

/* Hero Mini Stats */
.hero-mini-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hms-item {
    display: flex;
    flex-direction: column;
}

.hms-num {
    font-size: 26px;
    font-weight: 900;
    color: var(--gray-900);
    letter-spacing: -1px;
    line-height: 1.1;
}

.hms-suffix {
    font-size: 26px;
    font-weight: 900;
    color: var(--primary);
}

.hms-label {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-top: 2px;
}

.hms-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* Hero Right - Illustration */
.hero-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

.hero-illustration {
    position: relative;
    width: 100%;
    height: 420px;
}

/* Central Logo Card */
.hero-logo-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-2xl);
    padding: 28px 36px;
    box-shadow: var(--shadow-xl);
    animation: heroLogoFloat 6s ease-in-out infinite;
}

@keyframes heroLogoFloat {

    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-8px);
    }
}

.hero-logo-svg {
    margin: 0 auto 10px;
    border-radius: var(--r-lg);
}

.hll-title {
    display: block;
    font-size: 18px;
    font-weight: 900;
    color: var(--gray-900);
    letter-spacing: -0.5px;
}

.hll-sub {
    display: block;
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 600;
    margin-top: 2px;
}

/* Decorative Circles */
.hero-deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--coral-200);
    opacity: 0.3;
    animation: decoSpin 20s linear infinite;
}

.hdc-1 {
    width: 280px;
    height: 280px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-style: dashed;
}

.hdc-2 {
    width: 360px;
    height: 360px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: var(--gray-200);
    opacity: 0.2;
    animation-direction: reverse;
    animation-duration: 30s;
}

.hdc-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: var(--coral-300);
    opacity: 0.15;
    animation-duration: 15s;
}

@keyframes decoSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Hero Floating Cards */
.hero-float {
    position: absolute;
    z-index: 6;
    animation: heroCardFloat 6s ease-in-out infinite;
}

.hf-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    min-width: 140px;
}

.hf-icon {
    font-size: 24px;
}

.hf-value {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.hf-label {
    display: block;
    font-size: 10px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.hero-float-1 {
    top: 20px;
    left: 0;
    animation-delay: 0s;
}

.hero-float-2 {
    top: 60px;
    right: -10px;
    animation-delay: -1.5s;
}

.hero-float-3 {
    bottom: 80px;
    left: 10px;
    animation-delay: -3s;
}

.hero-float-4 {
    bottom: 20px;
    right: 20px;
    animation-delay: -4.5s;
}

@keyframes heroCardFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ======================== */
/* TRUSTED BAR              */
/* ======================== */
.trusted-bar {
    padding: 32px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.trusted-label {
    display: block;
    text-align: center;
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
}

.trusted-scroll {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.trusted-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-400);
    white-space: nowrap;
}

/* ======================== */
/* SECTION HEADERS          */
/* ======================== */
.section-header-ios {
    margin-bottom: 32px;
}

.section-header-ios.center {
    text-align: center;
}

.shi-left {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.shi-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.section-header-ios h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-header-ios p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.5;
}

.section-header-ios.center h2 {
    margin-bottom: 8px;
}

/* ======================== */
/* AI FAB + PANEL           */
/* ======================== */
.ai-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 998;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    background: var(--gray-900);
    color: var(--white);
    border-radius: var(--r-full);
    font-size: 14px;
    font-weight: 700;
    box-shadow: var(--shadow-xl);
}

.ai-fab:hover {
    background: var(--black);
    box-shadow: var(--shadow-2xl);
    transform: translateY(-3px);
}

.ai-fab-icon {
    font-size: 18px;
}

.ai-suggestion-panel {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 340px;
    max-height: 480px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-2xl);
    z-index: 998;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: panelSlideUp 0.3s var(--ease);
}

.ai-suggestion-panel.open {
    display: flex;
}

@keyframes panelSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    font-weight: 700;
}

.ai-panel-header button {
    font-size: 16px;
    color: var(--text-tertiary);
    padding: 4px;
}

.ai-panel-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.ai-panel-loading {
    text-align: center;
    padding: 20px;
}

.ai-typing-indicator {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-bottom: 10px;
}

.ai-typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: typingBounce 1.4s ease-in-out infinite;
}

.ai-typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.ai-suggestion-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.ai-suggestion-item:last-child {
    border-bottom: none;
}

.ai-suggestion-item strong {
    display: block;
    color: var(--text-primary);
    font-size: 13px;
    margin-bottom: 3px;
}

.ai-suggestion-item p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* AI Inline Button */
.ai-inline-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 10px;
    background: var(--coral-50);
    border: 1px solid var(--coral-200);
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 700;
    color: var(--coral-700);
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
    margin-left: 6px;
    vertical-align: middle;
}

.ai-inline-btn:hover {
    background: var(--coral-100);
    box-shadow: var(--shadow-primary);
    transform: translateY(-1px);
}

/* ======================== */
/* TOOLS GRID               */
/* ======================== */
.tools-section {
    padding: 64px 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tool-hero-card {
    grid-column: span 3;
    padding: 32px;
    background: var(--gray-900);
    color: var(--white);
    cursor: pointer;
    border: none;
}

.tool-hero-card:hover {
    background: var(--black);
    box-shadow: var(--shadow-2xl);
    transform: translateY(-3px);
}

.thc-glow {
    position: absolute;
    top: -40%;
    right: -15%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(232, 101, 90, 0.12), transparent 70%);
    pointer-events: none;
}

.thc-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 800;
}

.thc-content {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 16px;
}

.thc-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: var(--r-lg);
    background: rgba(232, 101, 90, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.thc-info h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.thc-info p {
    font-size: 13px;
    color: var(--gray-400);
    line-height: 1.5;
}

.thc-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.thc-chips span {
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-300);
}

.thc-action {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--coral-300);
}

.arrow-r {
    transition: transform var(--t-fast) var(--ease);
}

.tool-hero-card:hover .arrow-r {
    transform: translateX(4px);
}

/* Tool Cards */
.tool-card {
    padding: 24px;
    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tc-icon {
    font-size: 28px;
    margin-bottom: 14px;
    width: 48px;
    height: 48px;
    background: var(--gray-50);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tc-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.tc-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
}

.tc-action {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.tc-action span {
    transition: transform var(--t-fast) var(--ease);
}

.tool-card:hover .tc-action span {
    transform: translateX(3px);
}

.tc-new-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 10px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--r-full);
    font-size: 10px;
    font-weight: 800;
}

.tool-card-ai {
    background: var(--coral-50);
    border-color: var(--coral-200);
}

.tool-card-ai:hover {
    box-shadow: var(--shadow-primary);
}

/* ======================== */
/* ATS HOME                 */
/* ======================== */
.ats-home-section {
    padding: 64px 0;
    background: var(--bg-secondary);
}

.ats-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.ats-full-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.ats-upload-card {
    padding: 28px;
}

.ats-result-card {
    padding: 28px;
}

.ats-drop {
    text-align: center;
}

.ats-drop-emoji {
    font-size: 42px;
    display: block;
    margin-bottom: 10px;
}

.ats-drop h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.ats-drop p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.ats-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0;
}

.ats-divider::before,
.ats-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.ats-divider span {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 600;
}

/* ======================== */
/* BUTTONS                  */
/* ======================== */
.btn-ios-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--gray-900);
    color: var(--white);
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    width: 100%;
    transition: all var(--t-base) var(--ease);
}

.btn-ios-primary:hover {
    background: var(--black);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-ios-primary:active {
    transform: translateY(0);
}

.btn-ios-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.btn-accent {
    background: var(--primary) !important;
}

.btn-accent:hover {
    background: var(--primary-hover) !important;
    box-shadow: var(--shadow-primary) !important;
}

.btn-ios-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--white);
    color: var(--text-primary);
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 700;
}

.btn-ios-outline:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
}

/* ======================== */
/* FORM ELEMENTS            */
/* ======================== */
.ios-form-group {
    margin-bottom: 18px;
}

.ios-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.ios-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--white);
    color: var(--text-primary);
    font-size: 14px;
    transition: all var(--t-fast) var(--ease);
}

.ios-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(232, 101, 90, 0.08);
}

.ios-input::placeholder {
    color: var(--text-tertiary);
}

select.ios-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.ios-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--gray-50);
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
    transition: all var(--t-fast) var(--ease);
}

.ios-textarea:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(232, 101, 90, 0.08);
}

.ios-textarea.tall {
    min-height: 160px;
}

.ios-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.form-divider span {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 600;
    white-space: nowrap;
}

/* iOS Range */
.ios-range {
    width: 100%;
    height: 6px;
    border-radius: var(--r-full);
    background: var(--gray-200);
    appearance: none;
    cursor: pointer;
}

.ios-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-900);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
}

.ios-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    border-color: var(--primary);
}

.ios-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-900);
    box-shadow: var(--shadow-md);
}

/* ======================== */
/* RESUME BUILDER EXTRAS    */
/* ======================== */
.rb-roles-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    min-height: 8px;
}

.rb-role-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: var(--gray-900);
    color: var(--white);
    border-radius: var(--r-full);
    font-size: 12px;
    font-weight: 700;
}

.rb-role-chip .chip-remove {
    cursor: pointer;
    font-size: 14px;
    opacity: 0.7;
    margin-left: 2px;
}

.rb-role-chip .chip-remove:hover {
    opacity: 1;
}

.rb-custom-role-row,
.rb-custom-skill-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.rb-custom-role-row .ios-input,
.rb-custom-skill-row .ios-input {
    flex: 1;
}

.rb-custom-role-row .btn-ios-outline,
.rb-custom-skill-row .btn-ios-outline {
    flex-shrink: 0;
    width: auto;
}

/* Skill Suggestions */
.rb-skill-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
    padding: 12px;
    background: var(--coral-50);
    border: 1px solid var(--coral-200);
    border-radius: var(--r-sm);
}

.rb-skill-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 12px;
    background: var(--white);
    border: 1px solid var(--coral-200);
    border-radius: var(--r-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--coral-700);
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
}

.rb-skill-chip:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.rb-skill-chip.added {
    background: var(--gray-900);
    color: var(--white);
    border-color: var(--gray-900);
    cursor: default;
}

/* ======================== */
/* WIZARD                   */
/* ======================== */
.wizard-section {
    padding: 40px 0 80px;
}

.wizard-progress-bar-wrap {
    margin-bottom: 36px;
}

.wizard-pb-track {
    height: 4px;
    background: var(--gray-100);
    border-radius: var(--r-full);
    overflow: hidden;
    margin-bottom: 18px;
}

.wizard-pb-fill {
    height: 100%;
    background: var(--primary);
    border-radius: var(--r-full);
    transition: width 0.5s var(--ease);
}

.wizard-dots-row {
    display: flex;
    justify-content: space-between;
}

.wiz-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.wiz-dot span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    transition: all var(--t-base) var(--ease);
}

.wiz-dot.active span {
    background: var(--gray-900);
    color: var(--white);
}

.wiz-dot.completed span {
    background: var(--primary);
    color: var(--white);
}

.wiz-dot small {
    font-size: 10px;
    color: var(--text-tertiary);
    font-weight: 600;
}

.wiz-dot.active small {
    color: var(--text-primary);
}

.wiz-step {
    display: none;
    animation: wizStepIn 0.35s var(--ease);
}

.wiz-step.active {
    display: block;
}

@keyframes wizStepIn {
    from {
        opacity: 0;
        transform: translateX(16px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wiz-step-head {
    text-align: center;
    margin-bottom: 28px;
}

.wiz-emoji {
    font-size: 44px;
    display: block;
    margin-bottom: 10px;
}

.wiz-step-head h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.wiz-step-head p {
    font-size: 14px;
    color: var(--text-secondary);
}

.wiz-form {
    margin-bottom: 28px;
}

.wiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Resume Drop Zone */
.resume-drop-zone {
    padding: 40px;
    text-align: center;
    border: 2px dashed var(--border);
    cursor: pointer;
}

.resume-drop-zone:hover,
.resume-drop-zone.dragover {
    border-color: var(--primary);
    background: var(--coral-50);
}

.rdz-icon {
    font-size: 42px;
    margin-bottom: 10px;
    display: block;
}

.resume-drop-zone h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.resume-drop-zone p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.rdz-filename {
    margin-top: 12px;
    padding: 6px 14px;
    background: var(--coral-50);
    border-radius: var(--r-xs);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    display: inline-block;
}

/* Parsed Preview */
.parsed-preview {
    padding: 20px;
    background: var(--coral-50);
    border-color: var(--coral-200);
    margin-top: 20px;
}

.parsed-preview h4 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 14px;
}

.parsed-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.parsed-sec h5 {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.parsed-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.parsed-tag {
    padding: 3px 10px;
    background: var(--white);
    border: 1px solid var(--coral-200);
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 600;
    color: var(--coral-700);
}

.parsed-item {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 2px 0;
}

/* Roles Grid */
.roles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.role-card {
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: var(--r-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--t-fast) var(--ease);
}

.role-card:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
}

.role-card.selected {
    border-color: var(--primary);
    background: var(--coral-50);
}

.role-card.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.role-card-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.role-card-info h4 {
    font-size: 13px;
    font-weight: 700;
}

.role-card-info p {
    font-size: 10px;
    color: var(--text-tertiary);
}

.role-check {
    margin-left: auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
    transition: all var(--t-fast) var(--ease);
}

.role-card.selected .role-check {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.role-mismatch {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    background: var(--warning-bg);
    border-color: rgba(255, 159, 10, 0.3);
    margin-bottom: 14px;
}

.rm-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.role-mismatch strong {
    font-size: 12px;
    display: block;
    margin-bottom: 2px;
}

.role-mismatch p {
    font-size: 11px;
    color: var(--text-secondary);
}

.roles-count-bar {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Confidence */
.confidence-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.conf-item {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.conf-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    min-width: 180px;
    flex-shrink: 0;
}

.conf-slider-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.conf-val {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

/* Questions */
.ai-loading-box {
    text-align: center;
    padding: 36px;
}

.ai-loading-box p {
    font-size: 13px;
    color: var(--text-secondary);
}

.question-card {
    padding: 16px;
    background: var(--gray-50);
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    margin-bottom: 12px;
}

.q-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--r-full);
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 6px;
}

.q-badge-tech {
    background: var(--info-bg);
    color: var(--info);
}

.q-badge-behave {
    background: var(--success-bg);
    color: var(--success);
}

.q-badge-case {
    background: var(--coral-50);
    color: var(--coral-700);
}

.q-text {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.5;
}

.q-answer {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--r-xs);
    background: var(--white);
    font-size: 13px;
    resize: vertical;
    min-height: 50px;
    font-family: inherit;
}

.q-answer:focus {
    border-color: var(--primary);
    outline: none;
}

.q-optional {
    font-size: 10px;
    color: var(--text-tertiary);
    margin-top: 4px;
    font-style: italic;
}

/* Analysis Loading */
.analysis-loading-screen {
    text-align: center;
    padding: 60px 20px;
}

.als-ring {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
}

.als-ring-inner {
    width: 100%;
    height: 100%;
    border: 3px solid var(--gray-100);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.analysis-loading-screen h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 24px;
}

.als-steps {
    max-width: 280px;
    margin: 0 auto;
    text-align: left;
}

.als-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-tertiary);
    transition: all var(--t-base) var(--ease);
}

.als-item.active {
    color: var(--text-primary);
    font-weight: 700;
}

.als-item.completed {
    color: var(--success);
}

/* ======================== */
/* DASHBOARD                */
/* ======================== */
.dash-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 14px;
}

.dash-title {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -1px;
}

.dash-sub {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.dash-head-actions {
    display: flex;
    gap: 8px;
}

.dash-empty {
    text-align: center;
    padding: 60px 24px;
    border: 2px dashed var(--border);
}

.de-emoji {
    font-size: 44px;
    margin-bottom: 14px;
    display: block;
}

.dash-empty h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
}

.dash-empty p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.dash-status-card {
    padding: 24px 28px;
    background: var(--gray-900);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border: none;
}

.dsc-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dsc-emoji {
    font-size: 28px;
}

.dsc-text {
    font-size: 17px;
    font-weight: 800;
}

.dsc-right {
    text-align: right;
}

.dsc-score {
    display: block;
    font-size: 44px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -2px;
    line-height: 1;
}

.dsc-label {
    display: block;
    font-size: 11px;
    color: var(--gray-400);
    font-weight: 600;
    margin-top: 2px;
}

.dash-score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.dash-score-item {
    padding: 18px;
}

.dsi-icon {
    font-size: 22px;
    margin-bottom: 6px;
}

.dsi-label {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 3px;
}

.dsi-value {
    display: block;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -1px;
}

.dsi-bar {
    width: 100%;
    height: 4px;
    background: var(--gray-100);
    border-radius: var(--r-full);
    margin-top: 6px;
    overflow: hidden;
}

.dsi-bar-fill {
    height: 100%;
    border-radius: var(--r-full);
    transition: width 1.2s var(--ease);
}

.bar-coral {
    background: var(--primary);
}

.bar-orange {
    background: var(--primary);
}

.bar-black {
    background: var(--gray-900);
}

.bar-green {
    background: var(--success);
}

.bar-blue {
    background: var(--info);
}

.dash-charts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.dash-chart-card {
    padding: 20px;
}

.dash-chart-card h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}

.dash-chart-card canvas {
    max-height: 240px;
}

.dash-sec-title {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 14px;
    margin-top: 8px;
    letter-spacing: -0.3px;
}

.dash-role-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.dash-role-card {
    padding: 20px;
}

.drc-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.drc-icon {
    font-size: 24px;
}

.drc-name {
    font-size: 15px;
    font-weight: 800;
}

.drc-match {
    margin-left: auto;
    font-size: 18px;
    font-weight: 900;
    color: var(--primary);
}

.drc-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 12px;
    border-bottom: 1px solid var(--border-light);
}

.drc-row:last-of-type {
    border-bottom: none;
}

.drc-row-label {
    color: var(--text-secondary);
}

.drc-row-value {
    font-weight: 700;
}

.drc-missing {
    margin-top: 10px;
}

.drc-missing-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--danger);
    margin-bottom: 4px;
}

.drc-missing-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.drc-missing-tag {
    padding: 2px 8px;
    background: var(--danger-bg);
    color: var(--danger);
    border-radius: var(--r-full);
    font-size: 10px;
    font-weight: 600;
}

.dash-roadmap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.roadmap-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
}

.roadmap-card.completed {
    border-color: var(--success);
    background: var(--success-bg);
}

.roadmap-card.current {
    border-color: var(--primary);
    background: var(--coral-50);
}

.rm-badge {
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.roadmap-card.completed .rm-badge {
    background: var(--success);
    color: var(--white);
    font-size: 14px;
}

.roadmap-card.current .rm-badge {
    background: var(--primary);
    color: var(--white);
}

.rm-content {
    flex: 1;
}

.rm-title {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 2px;
}

.rm-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.rm-tasks {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.rm-task {
    padding: 2px 8px;
    background: var(--gray-50);
    border: 1px solid var(--border-light);
    border-radius: var(--r-full);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
}

.rm-duration {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.dash-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
}

.dash-action-card {
    padding: 20px;
}

.dash-action-card h4 {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 6px;
}

.dash-action-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.dash-action-wide {
    grid-column: span 2;
}

.week-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-light);
}

.week-item:last-child {
    border-bottom: none;
}

.week-day {
    padding: 3px 8px;
    background: var(--gray-100);
    border-radius: var(--r-xs);
    font-size: 10px;
    font-weight: 800;
    min-width: 36px;
    text-align: center;
}

.week-task {
    font-size: 12px;
}

.dash-arena-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.dash-arena-item {
    padding: 16px;
}

.dai-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.dai-icon {
    font-size: 20px;
}

.dai-name {
    font-size: 13px;
    font-weight: 700;
}

.dai-level {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
}

.dai-bar {
    height: 5px;
    background: var(--gray-100);
    border-radius: var(--r-full);
    overflow: hidden;
    margin-bottom: 4px;
}

.dai-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: var(--r-full);
    transition: width 0.5s var(--ease);
}

.dai-xp {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 600;
}

/* ======================== */
/* PRACTICE ARENA           */
/* ======================== */
.arena-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 14px;
}

.arena-title {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -1px;
}

.arena-sub {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.arena-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.arena-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: var(--gray-900);
    color: var(--white);
    border-radius: var(--r-full);
    font-size: 12px;
    font-weight: 700;
}

/* Streak Widget */
.streak-widget {
    padding: 20px;
    background: var(--gray-900);
    color: var(--white);
    margin-bottom: 24px;
    border: none;
}

.sw-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.sw-flame {
    font-size: 36px;
}

.sw-info {
    flex-shrink: 0;
}

.sw-days {
    display: block;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
}

.sw-label {
    display: block;
    font-size: 12px;
    color: var(--gray-400);
    font-weight: 600;
}

.sw-xp-bar {
    flex: 1;
}

.sw-xp-nums {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 4px;
}

.sw-xp-nums span:first-child {
    font-weight: 700;
}

.sw-xp-nums span:last-child {
    color: var(--gray-500);
}

.sw-bar-track {
    height: 8px;
    background: var(--gray-700);
    border-radius: var(--r-full);
    overflow: hidden;
}

.sw-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: var(--r-full);
    transition: width 1s var(--ease);
}

.sw-week {
    display: flex;
    justify-content: space-between;
}

.sw-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.sw-day-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.sw-day-circle.done {
    background: var(--primary);
}

.sw-day-name {
    font-size: 9px;
    color: var(--gray-500);
    font-weight: 600;
}

/* Arena Roles */
.arena-role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    max-width: 800px;
    margin: 0 auto;
}

.arena-role-card {
    padding: 22px;
    text-align: center;
    cursor: pointer;
    border: 2px solid var(--border);
    border-radius: var(--r-xl);
    background: var(--white);
    transition: all var(--t-base) var(--ease);
}

.arena-role-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
    transform: translateY(-4px);
}

.arc-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 10px;
}

.arc-name {
    display: block;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 3px;
}

.arc-level {
    display: block;
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 600;
}

.arc-level.has-progress {
    color: var(--primary);
}

/* Game Head */
.arena-game-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.agh-role {
    display: flex;
    align-items: center;
    gap: 6px;
}

.agh-icon {
    font-size: 22px;
}

.agh-name {
    font-size: 15px;
    font-weight: 800;
}

.agh-stats {
    display: flex;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
}

.agh-stats span {
    padding: 5px 12px;
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
}

/* Level Map */
.level-map {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 0;
    position: relative;
    margin-bottom: 28px;
}

.level-map::before {
    content: '';
    position: absolute;
    top: 50px;
    bottom: 50px;
    left: 50%;
    width: 3px;
    background: var(--gray-200);
    transform: translateX(-50%);
    z-index: 0;
}

.level-node {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all var(--t-base) var(--ease);
}

.level-node:hover {
    transform: scale(1.06);
}

.level-node:nth-child(even) {
    margin-left: 100px;
}

.level-node:nth-child(odd) {
    margin-right: 100px;
}

.level-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gray-100);
    border: 3px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: relative;
    transition: all var(--t-base) var(--ease);
}

.level-node.locked .level-circle {
    opacity: 0.4;
}

.level-node.unlocked .level-circle {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

.level-node.current .level-circle {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-primary-lg);
    color: var(--white);
    animation: lvlPulse 2s ease-in-out infinite;
}

.level-node.completed .level-circle {
    background: var(--gray-900);
    border-color: var(--gray-900);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

@keyframes lvlPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(232, 101, 90, 0.35);
    }

    50% {
        box-shadow: 0 0 0 14px rgba(232, 101, 90, 0);
    }
}

.level-lock-badge {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 20px;
    height: 20px;
    background: var(--gray-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
}

.level-name {
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    max-width: 90px;
}

.level-node.locked .level-name {
    color: var(--text-tertiary);
}

.level-sub {
    font-size: 9px;
    color: var(--text-tertiary);
    font-weight: 600;
}

.level-stars {
    display: flex;
    gap: 1px;
}

.level-star {
    font-size: 11px;
    color: var(--gray-300);
}

.level-star.on {
    color: var(--primary);
}

/* Challenge Box */
.challenge-box {
    max-width: 680px;
    margin: 0 auto 28px;
    padding: 28px;
}

.cb-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cb-type {
    padding: 3px 12px;
    background: var(--info-bg);
    color: var(--info);
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 700;
}

.cb-timer {
    font-size: 14px;
    font-weight: 800;
}

.cb-timer.warn {
    color: var(--danger);
}

.cb-question {
    margin-bottom: 20px;
}

.cb-question h3 {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 4px;
}

.cb-question p {
    font-size: 13px;
    color: var(--text-secondary);
}

.cb-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.cb-option {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--r-md);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--t-fast) var(--ease);
}

.cb-option:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
}

.cb-option.selected {
    border-color: var(--primary);
    background: var(--coral-50);
}

.cb-option.correct {
    border-color: var(--success);
    background: var(--success-bg);
}

.cb-option.wrong {
    border-color: var(--danger);
    background: var(--danger-bg);
}

.cb-opt-letter {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.cb-option.selected .cb-opt-letter {
    background: var(--primary);
    color: var(--white);
}

.cb-actions {
    display: flex;
    justify-content: space-between;
}

.cb-result {
    margin-top: 20px;
    padding: 20px;
    border-radius: var(--r-md);
    text-align: center;
}

.cb-result.res-correct {
    background: var(--success-bg);
    border: 1px solid rgba(52, 199, 89, 0.2);
}

.cb-result.res-wrong {
    background: var(--danger-bg);
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.res-emoji {
    font-size: 40px;
    margin-bottom: 6px;
}

.res-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.res-xp {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.res-explain {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

/* Arena Extras */
.arena-extras-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 28px;
}

.arena-extra {
    padding: 22px;
    text-align: center;
}

.ae-icon {
    font-size: 28px;
    margin-bottom: 10px;
    display: block;
}

.arena-extra h4 {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 4px;
}

.arena-extra p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.5;
}

/* Congrats */
.congrats-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s var(--ease);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.congrats-card {
    background: var(--white);
    border-radius: var(--r-2xl);
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 88%;
    box-shadow: var(--shadow-2xl);
    animation: congBounce 0.5s var(--ease-bounce);
}

@keyframes congBounce {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cg-trophy {
    font-size: 56px;
    margin-bottom: 12px;
}

.cg-title {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 6px;
}

.cg-sub {
    font-size: 14px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
}

.cg-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.cg-stat {
    text-align: center;
}

.cg-stat-emoji {
    font-size: 18px;
    display: block;
}

.cg-stat-num {
    font-size: 20px;
    font-weight: 900;
    display: block;
}

.cg-stat-label {
    font-size: 10px;
    color: var(--text-tertiary);
    display: block;
}

/* ======================== */
/* RESUME & PORTFOLIO BUILD */
/* ======================== */
.resume-tabs,
.portfolio-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rtab {
    padding: 8px 18px;
    background: var(--gray-100);
    color: var(--text-secondary);
    border-radius: var(--r-full);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
}

.rtab:hover {
    background: var(--gray-200);
    color: var(--text-primary);
}

.rtab.active {
    background: var(--gray-900);
    color: var(--white);
}

.resume-templates-grid,
.portfolio-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.template-card {
    padding: 20px;
    cursor: pointer;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: var(--r-xl);
    background: var(--white);
    transition: all var(--t-base) var(--ease);
    position: relative;
}

.template-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
    transform: translateY(-3px);
}

.template-card.premium-card {
    border-color: var(--coral-200);
}

.tpl-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 2px 8px;
    border-radius: var(--r-full);
    font-size: 9px;
    font-weight: 800;
}

.tpl-badge-free {
    background: var(--success-bg);
    color: var(--success);
}

.tpl-badge-premium {
    background: var(--coral-50);
    color: var(--coral-700);
}

.tpl-badge-company {
    background: var(--gray-100);
    color: var(--gray-600);
}

.tpl-preview {
    width: 100%;
    height: 160px;
    background: var(--gray-50);
    border-radius: var(--r-sm);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    overflow: hidden;
}

.tpl-name {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 2px;
}

.tpl-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Premium Lock overlay */
.tpl-premium-lock {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-xl);
    z-index: 2;
}

.tpl-lock-icon {
    font-size: 28px;
    margin-bottom: 4px;
}

.tpl-lock-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--coral-700);
}

/* Resume Editor */
.resume-editor-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.resume-form-side h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 16px;
}

.resume-preview-side {
    position: sticky;
    top: 84px;
}

.resume-preview-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.resume-preview-frame {
    min-height: 600px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 24px;
    font-size: 12px;
    line-height: 1.6;
    overflow: auto;
    box-shadow: var(--shadow-md);
}

/* ======================== */
/* HOW / FEATURES / TESTS   */
/* ======================== */
.how-section {
    padding: 64px 0;
}

.how-cards {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.how-card {
    padding: 24px;
    text-align: center;
    max-width: 240px;
}

.how-num {
    font-size: 40px;
    font-weight: 900;
    color: var(--coral-100);
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 12px;
}

.how-emoji {
    font-size: 34px;
    margin-bottom: 10px;
}

.how-card h3 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 6px;
}

.how-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.how-connector {
    display: flex;
    align-items: center;
    padding-top: 70px;
    width: 50px;
}

.hc-line {
    flex: 1;
    height: 2px;
    background: var(--border);
}

.hc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.features-section {
    padding: 64px 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.feature-card {
    padding: 24px;
    text-align: center;
}

.fc-emoji {
    font-size: 28px;
    margin-bottom: 12px;
    display: block;
}

.feature-card h4 {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 4px;
}

.feature-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.testimonials-section {
    padding: 64px 0;
}

.testimonial-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.testimonial-card {
    padding: 24px;
}

.tc-stars {
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.tc-quote {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 16px;
}

.tc-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tc-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-900);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.tc-author strong {
    display: block;
    font-size: 13px;
}

.tc-author span {
    font-size: 11px;
    color: var(--text-tertiary);
}

.cta-section {
    padding: 64px 0;
}

.cta-card-ios {
    background: var(--gray-900);
    border-radius: var(--r-2xl);
    padding: 52px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-emojis {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-e {
    position: absolute;
    font-size: 40px;
    opacity: 0.08;
    animation: emojiDrift 18s ease-in-out infinite;
}

.ce1 {
    top: 8%;
    left: 6%;
}

.ce2 {
    top: 12%;
    right: 8%;
    animation-delay: -4s;
}

.ce3 {
    bottom: 8%;
    left: 14%;
    animation-delay: -8s;
}

.ce4 {
    bottom: 15%;
    right: 10%;
    animation-delay: -12s;
}

.cta-card-ios h2 {
    font-size: 28px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
}

.cta-card-ios p {
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.cta-card-ios .btn-hero-primary {
    background: var(--primary);
    position: relative;
    z-index: 1;
}

.cta-card-ios .btn-hero-primary:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-primary-lg);
}

/* ======================== */
/* CONTACT                  */
/* ======================== */
.contact-card {
    padding: 28px;
}

.contact-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
}

.ci-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 14px;
    background: var(--gray-50);
    border-radius: var(--r-sm);
}

.ci-item span:first-child {
    font-size: 22px;
}

.ci-item strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
}

.ci-item p {
    font-size: 12px;
    color: var(--text-secondary);
}

.contact-note {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 10px;
    text-align: center;
}

/* ======================== */
/* PROFILE                  */
/* ======================== */
.profile-card-main {
    padding: 36px;
    text-align: center;
}

.pcm-avatar {
    font-size: 56px;
    margin-bottom: 10px;
}

.profile-card-main h2 {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 3px;
}

.profile-card-main p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.pcm-stats {
    display: flex;
    justify-content: center;
    gap: 28px;
}

.pcm-stat {
    text-align: center;
}

.pcm-val {
    display: block;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1px;
}

.pcm-label {
    display: block;
    font-size: 10px;
    color: var(--text-tertiary);
    font-weight: 600;
}

.profile-btns {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.profile-btns button {
    flex: 1;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.history-item:last-child {
    border-bottom: none;
}

.hi-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.hi-score {
    font-size: 17px;
    font-weight: 900;
    color: var(--primary);
}

/* ======================== */
/* LEGAL                    */
/* ======================== */
.legal-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.legal-text h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 28px;
    margin-bottom: 10px;
}

.legal-text p {
    margin-bottom: 10px;
}

.legal-text ul {
    margin-bottom: 10px;
    padding-left: 6px;
}

.legal-text li {
    margin-bottom: 5px;
}

.legal-text strong {
    color: var(--text-primary);
}

/* ======================== */
/* TOAST                    */
/* ======================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    background: var(--gray-900);
    color: var(--white);
    border-radius: var(--r-full);
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toastIn 0.3s var(--ease), toastOut 0.3s var(--ease) 2.7s forwards;
    white-space: nowrap;
}

.toast-icon {
    font-size: 16px;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* ======================== */
/* FOOTER                   */
/* ======================== */
.site-footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 56px 0 0;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
}

.fb-name {
    font-size: 17px;
    font-weight: 800;
}

.fb-badge {
    padding: 2px 7px;
    background: var(--primary);
    color: var(--white);
    font-size: 9px;
    font-weight: 800;
    border-radius: var(--r-xs);
}

.footer-brand-col p {
    font-size: 13px;
    color: var(--gray-400);
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.footer-socials a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    transition: background var(--t-fast) var(--ease);
}

.footer-socials a:hover {
    background: var(--primary);
}

.footer-links-col h4 {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-300);
    margin-bottom: 14px;
}

.footer-links-col a {
    display: block;
    font-size: 13px;
    color: var(--gray-400);
    padding: 3px 0;
}

.footer-links-col a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--gray-500);
}

.fb-links {
    display: flex;
    gap: 14px;
}

.fb-links a {
    font-size: 12px;
    color: var(--gray-500);
}

.fb-links a:hover {
    color: var(--white);
}

/* ======================== */
/* RESPONSIVE               */
/* ======================== */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-right {
        min-height: 320px;
    }

    .hero-title {
        font-size: 42px;
    }

    .tools-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tool-hero-card {
        grid-column: span 2;
    }

    .ats-layout,
    .ats-full-layout {
        grid-template-columns: 1fr;
    }

    .dash-charts {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .resume-editor-layout {
        grid-template-columns: 1fr;
    }

    .resume-preview-side {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-pills {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-chip {
        display: none;
    }

    .hero-title {
        font-size: 34px;
        letter-spacing: -1.5px;
    }

    .hero-desc {
        font-size: 14px;
    }

    .hero-right {
        display: none;
    }

    .hms-divider {
        display: none;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tool-hero-card {
        grid-column: span 1;
    }

    .thc-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .how-cards {
        flex-direction: column;
        align-items: center;
    }

    .how-connector {
        transform: rotate(90deg);
        width: 36px;
        height: 36px;
        padding-top: 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-row {
        grid-template-columns: 1fr;
    }

    .section-header-ios h2 {
        font-size: 22px;
    }

    .ios-form-row {
        grid-template-columns: 1fr;
    }

    .roles-grid {
        grid-template-columns: 1fr;
    }

    .parsed-grid {
        grid-template-columns: 1fr;
    }

    .conf-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .conf-label {
        min-width: auto;
    }

    .dash-charts {
        grid-template-columns: 1fr;
    }

    .dash-actions-grid {
        grid-template-columns: 1fr;
    }

    .dash-action-wide {
        grid-column: span 1;
    }

    .dash-status-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .dsc-right {
        text-align: center;
    }

    .dash-head {
        flex-direction: column;
    }

    .arena-extras-grid {
        grid-template-columns: 1fr;
    }

    .arena-role-grid {
        grid-template-columns: 1fr 1fr;
    }

    .level-node:nth-child(even),
    .level-node:nth-child(odd) {
        margin-left: 0;
        margin-right: 0;
    }

    .contact-info-row {
        grid-template-columns: 1fr;
    }

    .pcm-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .profile-btns {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-card-ios {
        padding: 36px 20px;
    }

    .ai-fab {
        padding: 12px 16px;
        font-size: 13px;
    }

    .ai-fab-text {
        display: none;
    }

    .ai-suggestion-panel {
        width: calc(100% - 48px);
        right: 24px;
    }

    .back-btn {
        top: 72px;
        left: 16px;
        padding: 6px 12px;
        font-size: 12px;
    }

    .resume-templates-grid,
    .portfolio-templates-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sw-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-cta-row {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .arena-role-grid {
        grid-template-columns: 1fr;
    }

    .arena-chips {
        width: 100%;
        justify-content: center;
    }

    .wizard-dots-row {
        gap: 2px;
    }

    .wiz-dot small {
        display: none;
    }

    .congrats-card {
        padding: 28px 20px;
    }

    .cg-stats {
        flex-direction: column;
        gap: 10px;
    }

    .resume-templates-grid,
    .portfolio-templates-grid {
        grid-template-columns: 1fr;
    }
}

/* ======================== */
/* PRINT                    */
/* ======================== */
@media print {

    .navbar,
    .site-footer,
    .floating-orbs,
    .floating-emojis,
    .toast-container,
    .ai-fab,
    .ai-suggestion-panel,
    .mobile-menu,
    .back-btn {
        display: none !important;
    }

    .page {
        padding-top: 0;
    }

    body {
        font-size: 12px;
    }
}

/* ========================================================================= */
/* RESUME BUILDER TEMPLATES */
/* ========================================================================= */
.resume-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.rtab {
    padding: 10px 20px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.rtab:hover {
    background: var(--bg-color);
}

.rtab.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.resume-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* ================================================== */
/* RESUME BUILDER PAGE                                */
/* ================================================== */

/* Two-panel layout */
.rb-container {
    display: flex;
    height: calc(100vh - 68px);
    overflow: hidden;
    background: var(--bg-secondary);
}

/* Left Sidebar */
.rb-sidebar {
    width: 420px;
    min-width: 380px;
    background: var(--white);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.rb-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
}
.rb-header h2 { font-size: 20px; font-weight: 800; }
.rb-header p  { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* Controls card */
.rb-controls {
    margin: 20px;
    padding: 18px;
    background: var(--gray-50);
    border-radius: var(--r-md);
    overflow: visible;
}

/* Color swatches */
.rb-colors {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.rb-color {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s var(--ease);
    box-shadow: var(--shadow-xs);
}
.rb-color:hover {
    transform: scale(1.15);
}
.rb-color.active {
    border-color: var(--gray-900);
    transform: scale(1.15);
    box-shadow: var(--shadow-sm);
}

/* Accordion sections */
.rb-accordion-group {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.rb-accordion {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
}
.rb-accordion-header {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-50);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}
.rb-accordion-header:hover {
    background: var(--gray-100);
}
.rb-chevron {
    font-size: 10px;
    transition: transform 0.3s var(--ease);
}
.rb-accordion.open .rb-chevron {
    transform: rotate(180deg);
}
.rb-accordion-body {
    padding: 16px;
    display: none;
    border-top: 1px solid var(--border-light);
}
.rb-accordion.open .rb-accordion-body {
    display: block;
}

/* AI enhance button */
.rb-ai-btn {
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
    padding: 5px 10px;
    background: var(--primary-lighter);
    border-radius: var(--r-sm);
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}
.rb-ai-btn:hover {
    background: var(--primary-light);
}

/* Right Preview Panel */
.rb-preview-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--gray-100);
    min-width: 0;
}
.rb-preview-toolbar {
    height: 56px;
    padding: 0 24px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.rb-preview-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* A4 Resume Sheet */
.resume-sheet {
    width: 21cm;
    min-height: 29.7cm;
    background: white;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10), 0 0 1px rgba(0,0,0,0.08);
    padding: 0;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    color: #333;
    border-radius: 4px;
}

/* ======================== */
/* RESUME TEMPLATE: MODERN  */
/* ======================== */
.template-modern {
    display: flex;
    font-family: 'Inter', sans-serif;
    min-height: 29.7cm;
}
.template-modern .mod-left {
    width: 32%;
    flex-shrink: 0;
    background: #1e293b;
    color: white;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 200px;
    overflow-wrap: break-word;
}
.template-modern .mod-right {
    flex: 1;
    padding: 30px 36px;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    overflow-wrap: break-word;
}
.template-modern .mod-photo-wrap {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 8px;
    border: 3px solid var(--resume-accent, #E8655A);
}
.template-modern .mod-photo { width: 100%; height: 100%; object-fit: cover; }
.template-modern .mod-name { 
    font-size: 16px; 
    font-weight: 900; 
    line-height: 1.25; 
    margin-bottom: 6px; 
    text-transform: uppercase; 
    letter-spacing: 0.3px;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}
.template-modern .mod-title { 
    font-size: clamp(10px, 1.5vw, 13px); 
    font-weight: 500; 
    color: var(--resume-accent, #E8655A); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    line-height: 1.4; 
}
.template-modern .mod-contact-item { font-size: 12.5px; margin-bottom: 7px; color: #cbd5e1; display: flex; align-items: center; gap: 8px; }
.template-modern .mod-section-title {
    font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px;
    border-bottom: 2px solid var(--resume-accent, #E8655A); padding-bottom: 6px; color: #1e293b;
}
.template-modern .mod-left .mod-section-title { color: white; border-bottom-color: rgba(255,255,255,0.15); }
.template-modern .mod-summary { font-size: 13px; line-height: 1.7; color: #475569; }
.template-modern .mod-item-title { font-weight: 700; font-size: 15px; color: #0f172a; margin-bottom: 2px; }
.template-modern .mod-item-sub { font-size: 13px; color: var(--resume-accent, #E8655A); font-weight: 600; margin-bottom: 4px; }
.template-modern .mod-item-date { font-size: 12px; color: #64748b; font-weight: 500; margin-bottom: 8px; }
.template-modern .mod-item-desc { font-size: 13px; line-height: 1.65; color: #475569; }
.template-modern .mod-skill-tag {
    display: inline-block; padding: 4px 10px; background: rgba(255,255,255,0.1);
    border-radius: 4px; font-size: 12px; margin: 0 6px 6px 0;
}

/* ======================== */
/* RESUME TEMPLATE: MINIMAL */
/* ======================== */
.template-minimal {
    padding: 50px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #111;
    min-height: 29.7cm;
}
.template-minimal .min-header { text-align: center; border-bottom: 1px solid #ddd; padding-bottom: 22px; margin-bottom: 30px; }
.template-minimal .min-name { font-size: 34px; font-weight: 300; letter-spacing: 3px; margin-bottom: 6px; text-transform: uppercase; }
.template-minimal .min-title { font-size: 15px; font-weight: 600; color: var(--resume-accent, #000); letter-spacing: 1.5px; margin-bottom: 16px; text-transform: uppercase; }
.template-minimal .min-contact { font-size: 13px; color: #555; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.template-minimal .min-section { margin-bottom: 24px; }
.template-minimal .min-section-title {
    font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--resume-accent, #000); margin-bottom: 14px; border-bottom: 1px solid #eee; padding-bottom: 6px;
}
.template-minimal .min-summary { font-size: 14px; line-height: 1.7; color: #333; }
.template-minimal .min-item { margin-bottom: 16px; }
.template-minimal .min-item-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.template-minimal .min-item-title { font-weight: 700; font-size: 15px; }
.template-minimal .min-item-date { font-size: 13px; color: #666; font-style: italic; }
.template-minimal .min-item-sub { font-size: 14px; font-weight: 500; margin-bottom: 5px; color: #444; }
.template-minimal .min-item-desc { font-size: 13px; line-height: 1.65; color: #444; }
.template-minimal .min-skills { font-size: 14px; line-height: 1.6; color: #333; }

/* ========================== */
/* RESUME TEMPLATE: CREATIVE  */
/* ========================== */
.template-creative {
    font-family: 'Inter', sans-serif;
    background: #fdfdfd;
    min-height: 29.7cm;
}
.template-creative .cre-header {
    background: var(--resume-accent, #E8655A);
    color: white;
    padding: 45px 50px;
    display: flex;
    align-items: center;
    gap: 36px;
}
.template-creative .cre-photo-wrap {
    width: 130px; height: 130px; border-radius: 18px; overflow: hidden;
    border: 4px solid white; box-shadow: 0 8px 24px rgba(0,0,0,0.1); flex-shrink: 0; background: white;
}
.template-creative .cre-photo { width: 100%; height: 100%; object-fit: cover; }
.template-creative .cre-name { font-size: 36px; font-weight: 900; margin-bottom: 4px; letter-spacing: -0.5px; }
.template-creative .cre-title { font-size: 17px; font-weight: 500; opacity: 0.9; }
.template-creative .cre-body { display: flex; padding: 36px 50px; gap: 36px; }
.template-creative .cre-left { flex: 0 0 35%; max-width: 35%; display: flex; flex-direction: column; gap: 28px; border-right: 1px solid #eee; padding-right: 28px; min-width: 0; overflow-wrap: break-word; word-break: break-word; }
.template-creative .cre-right { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 28px; overflow-wrap: break-word; word-break: break-word; }
.template-creative .cre-section-title {
    font-size: 16px; font-weight: 800; color: var(--resume-accent, #E8655A);
    text-transform: uppercase; margin-bottom: 14px; letter-spacing: 1px;
}
.template-creative .cre-contact-item { font-size: 13px; margin-bottom: 10px; color: #444; display: flex; align-items: center; gap: 10px; font-weight: 500; overflow-wrap: break-word; word-break: break-all; }
.template-creative .cre-contact-icon {
    width: 24px; height: 24px; background: #f0f0f0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 11px;
    color: var(--resume-accent, #E8655A); flex-shrink: 0;
}
.template-creative .cre-summary { font-size: 14px; line-height: 1.7; color: #555; overflow-wrap: break-word; }
.template-creative .cre-item { position: relative; padding-left: 20px; border-left: 2px solid #eee; margin-bottom: 22px; }
.template-creative .cre-item::before {
    content: ''; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px;
    border-radius: 50%; background: var(--resume-accent, #E8655A); border: 2px solid white;
}
.template-creative .cre-item-title { font-weight: 800; font-size: 15px; color: #222; margin-bottom: 3px; }
.template-creative .cre-item-sub { font-size: 14px; color: #666; font-weight: 600; margin-bottom: 3px; }
.template-creative .cre-item-date { font-size: 12px; color: var(--resume-accent, #E8655A); font-weight: 700; margin-bottom: 8px; }
.template-creative .cre-item-desc { font-size: 13.5px; line-height: 1.65; color: #555; }
.template-creative .cre-skill-bar { margin-bottom: 10px; }
.template-creative .cre-skill-name { font-size: 13px; font-weight: 600; color: #444; margin-bottom: 4px; display: block; }
.template-creative .cre-skill-track { height: 6px; background: #eee; border-radius: 3px; overflow: hidden; }
.template-creative .cre-skill-fill { height: 100%; background: var(--resume-accent, #E8655A); border-radius: 3px; }

/* ======================== */
/* RESPONSIVE ADJUSTMENTS   */
/* ======================== */
@media (max-width: 1024px) {
    .rb-container { flex-direction: column; overflow-y: auto; height: auto; }
    .rb-sidebar { width: 100%; min-width: unset; border-right: none; border-bottom: 1px solid var(--border); overflow-y: visible; }
    .rb-preview-panel { min-height: 80vh; }
    .rb-preview-wrapper { padding: 15px; }
    .resume-sheet { width: 100%; min-height: auto; transform: scale(1) !important; transform-origin: top center; margin-top: 0; }
}

@media (max-width: 768px) {
    .template-modern { flex-direction: column; }
    .template-modern .mod-left { width: 100%; border-right: none; padding: 30px; }
    .template-modern .mod-right { width: 100%; padding: 30px; }
    
    .template-creative .cre-header { flex-direction: column; text-align: center; padding: 30px; }
    .template-creative .cre-body { flex-direction: column; padding: 30px; }
    .template-creative .cre-left { max-width: 100%; border-right: none; padding-right: 0; }
    
    .template-minimal { padding: 30px; }
    .template-minimal .min-name { font-size: 28px; }
}

/* ========================================= */
/* ROADMAP GENERATOR STYLES                  */
/* ========================================= */
.rm-roles-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.rm-role-chip {
    padding: 10px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.rm-role-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-lighter);
}

.rm-role-chip.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.roadmap-tree-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px 0;
    position: relative;
}

/* Vertical Line connecting nodes */
.roadmap-tree-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: var(--border);
    z-index: 0;
}

.rm-node {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.rm-node.visible {
    opacity: 1;
    transform: translateY(0);
}

.rm-node:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

/* Node indicator dot on the line */
.rm-node::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -38px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--white);
    border: 4px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bg);
}

/* Alternate sides for larger screens to look like a true tree */
@media (min-width: 768px) {
    .rm-node {
        width: 45%;
    }
    .rm-node:nth-child(odd) {
        align-self: flex-start;
        text-align: right;
    }
    .rm-node:nth-child(even) {
        align-self: flex-end;
        text-align: left;
    }
    .rm-node:nth-child(odd)::before {
        left: auto;
        right: -42px;
    }
    .rm-node:nth-child(even)::before {
        left: -42px;
    }
}

@media (max-width: 767px) {
    .roadmap-tree-container::before {
        left: 20px;
        transform: none;
    }
    .rm-node {
        width: 100%;
        margin-left: 40px;
    }
    .rm-node::before {
        left: -28px;
    }
}

.rm-node-phase {
    display: inline-block;
    padding: 4px 10px;
    background: var(--primary-lighter);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    border-radius: 12px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.rm-node-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.rm-node-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.rm-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (min-width: 768px) {
    .rm-node:nth-child(odd) .rm-topics {
        justify-content: flex-end;
    }
}

.rm-topic-chip {
    padding: 4px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 500;
}