@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* =========================================================
   LIWATRACK — PROFESSIONAL SAAS DESIGN SYSTEM
   Navy + Yellow
========================================================= */

:root {
    --bg: #f6f8fb;
    --surface: #ffffff;
    --surface-soft: #f1f4f8;
    --surface-dark: #0b1f3a;

    --border: #e4e8ee;
    --border-dark: #d5dbe4;

    --text: #101828;
    --muted: #667085;
    --muted-light: #98a2b3;

    --primary: #0b1f3a;
    --primary-dark: #07152a;

    --accent: #f5c542;
    --accent-dark: #dca900;
    --accent-soft: #fff7d6;

    --success: #16803c;
    --danger: #dc2626;

    --sidebar: 250px;

    --radius: 14px;
    --radius-small: 9px;

    --shadow:
        0 8px 25px rgba(11, 31, 58, 0.06);

    --shadow-lg:
        0 20px 60px rgba(11, 31, 58, 0.10);
}


/* =========================================================
   RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f3f6;
}

::-webkit-scrollbar-thumb {
    background: #cbd2dc;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aeb8c6;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -0.4px;
}

.logo > span > span {
    color: var(--accent-dark);
}

.logo-mark {
    width: 37px;
    height: 37px;
    border-radius: 10px;
    background: var(--primary);
    color: var(--accent);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 5px 14px rgba(11, 31, 58, .18);
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: var(--radius-small);
    padding: 11px 18px;
    font-weight: 600;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 5px 14px rgba(11, 31, 58, .14);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(11, 31, 58, .18);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: #fafbfc;
}

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

.btn-accent {
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(245, 197, 66, .25);
}

.btn-accent:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

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

.btn-large {
    padding: 14px 23px;
}

.full-width {
    width: 100%;
}


/* =========================================================
   LANDING PAGE
========================================================= */

.landing-page {
    background: white;
}

.landing-nav {
    max-width: 1180px;
    margin: auto;
    height: 76px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-nav nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
}

.nav-login {
    color: var(--muted);
}

.nav-login:hover {
    color: var(--primary);
}


/* =========================================================
   HOMEPAGE HERO
========================================================= */

.hero {
    max-width: 1180px;
    min-height: 650px;
    margin: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 470px);
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 80px 20px;
}

.hero-content {
    max-width: 650px;
    margin: 0;
    text-align: left;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
}

.eyebrow > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.hero h1 {
    margin-top: 18px;
    font-size: 64px;
    line-height: 1.02;
    letter-spacing: -3px;
    color: var(--primary);
}

.hero h1 strong {
    color: var(--primary);
}

.hero p {
    max-width: 650px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.hero-note {
    margin-top: 20px;
    color: var(--muted);
    font-size: 11px;
}

.hero-visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}


/* =========================================================
   HOMEPAGE — GENERIC PRODUCT VISUAL
========================================================= */

.product-visual {
    width: 470px;
    max-width: 100%;
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 25px;
    box-shadow: 0 30px 80px rgba(11, 31, 58, .14);
    transform: rotate(1deg);
}

.product-visual-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.product-visual-header span {
    color: var(--accent-dark);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.product-visual-header h3 {
    margin-top: 4px;
    color: var(--primary);
    font-size: 18px;
}

.visual-status {
    padding: 6px 9px;
    border-radius: 20px;
    background: var(--accent-soft);
    color: var(--primary);
    font-size: 9px;
    font-weight: 700;
}

.visual-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.visual-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: var(--surface-soft);
    border-radius: 11px;
}

.visual-icon {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    border-radius: 9px;
    font-size: 15px;
}

.visual-feature strong {
    display: block;
    color: var(--primary);
    font-size: 10px;
}

.visual-feature small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 8px;
}

.visual-timeline {
    position: relative;
    margin-top: 22px;
    padding: 5px 0 0 20px;
}

.timeline-line {
    position: absolute;
    left: 4px;
    top: 10px;
    bottom: 12px;
    width: 1px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 12px;
    margin-bottom: 17px;
}

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

.timeline-item > span {
    position: absolute;
    left: -20px;
    top: 4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid white;
    box-shadow: 0 0 0 1px var(--accent);
}

.timeline-item strong {
    display: block;
    color: var(--primary);
    font-size: 10px;
}

.timeline-item small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
    max-width: 1180px;
    margin: auto;
    padding: 100px 0;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 55px;
}

.section-heading h2 {
    font-size: 46px;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 18px;
    color: var(--primary);
}

.section-heading p {
    color: var(--muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature-card {
    background: white;
    border: 1px solid var(--border);
    padding: 28px;
    min-height: 250px;
    border-radius: var(--radius);
    transition: .2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #d8dee7;
}

.feature-number {
    color: var(--accent-dark);
    font-weight: 800;
    margin-bottom: 60px;
}

.feature-card h3 {
    margin-bottom: 12px;
    color: var(--primary);
}

.feature-card p {
    color: var(--muted);
    font-size: 13px;
}


/* =========================================================
   HOW IT WORKS
========================================================= */

.how-section {
    background: var(--surface-soft);
    max-width: none;
    padding-left: max(calc((100% - 1180px) / 2), 20px);
    padding-right: max(calc((100% - 1180px) / 2), 20px);
}

.steps {
    max-width: 1180px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.step span {
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
}

.step h3 {
    font-size: 28px;
    margin: 10px 0;
    color: var(--primary);
}

.step p {
    color: var(--muted);
}


/* =========================================================
   CTA
========================================================= */

.cta-section {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.cta-section h2 {
    font-size: 45px;
    margin-bottom: 10px;
}

.cta-section p {
    opacity: .8;
    margin-bottom: 30px;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    max-width: 1180px;
    margin: auto;
    padding: 35px 0;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
}


/* =========================================================
   AUTH
========================================================= */

.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, #fff8dc 0, transparent 30%),
        var(--bg);
}

.auth-container {
    max-width: 450px;
    margin: auto;
    padding: 50px 20px;
}

.auth-brand {
    margin-bottom: 35px;
}

.auth-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 35px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    margin-bottom: 28px;
}

.auth-header h1 {
    font-size: 30px;
    letter-spacing: -1px;
    color: var(--primary);
}

.auth-header p {
    color: var(--muted);
    font-size: 14px;
}

.auth-card label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin: 16px 0 7px;
}

.auth-card input,
.content-card input,
.content-card textarea,
.content-card select {
    width: 100%;
    border: 1px solid var(--border);
    padding: 12px 13px;
    border-radius: 9px;
    outline: none;
    background: white;
    color: var(--text);
    transition: .2s;
}

.auth-card input:focus,
.content-card input:focus,
.content-card textarea:focus,
.content-card select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 31, 58, .06);
}

.form-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-row-between a {
    font-size: 12px;
    color: var(--primary);
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 7px;
    font-weight: 400 !important;
}

.checkbox-label input {
    width: auto;
}

.terms {
    margin-bottom: 20px;
}

.two-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-divider {
    text-align: center;
    border-bottom: 1px solid var(--border);
    line-height: 1px;
    margin: 30px 0;
}

.auth-divider span {
    background: white;
    padding: 0 10px;
    color: var(--muted);
    font-size: 11px;
}

.auth-footer {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}


/* =========================================================
   APPLICATION LAYOUT
========================================================= */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar);
    background: var(--primary);
    color: white;
    border-right: 1px solid var(--primary-dark);
    padding: 25px 18px;
    z-index: 20;
}

.sidebar .logo {
    color: white;
    padding: 0 10px;
    margin-bottom: 45px;
}

.sidebar .logo > span > span {
    color: var(--accent);
}

.sidebar .logo-mark {
    background: var(--accent);
    color: var(--primary);
}

.nav-section {
    margin-bottom: 28px;
}

.nav-label {
    color: #8fa0b7;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .1em;
    padding: 0 12px;
    margin-bottom: 9px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    margin: 3px 0;
    border-radius: 9px;
    color: #c4cedc;
    font-size: 13px;
    font-weight: 500;
    transition: .2s;
}

.sidebar-link:hover {
    background: rgba(255,255,255,.08);
    color: white;
}

.sidebar-link.active {
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
}

.sidebar-bottom {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 20px;
}

.main-wrapper {
    margin-left: var(--sidebar);
    min-height: 100vh;
}

.topbar {
    height: 70px;
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 35px;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid #f3df8e;
}

.main-content {
    padding: 35px;
    max-width: 1400px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 30px;
    letter-spacing: -1px;
    color: var(--primary);
}

.page-header p {
    color: var(--muted);
    font-size: 13px;
}


/* =========================================================
   DASHBOARD
========================================================= */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 32px;
}

.dashboard-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -.8px;
    color: var(--primary);
}

.dashboard-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    max-width: 600px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.dashboard-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.dashboard-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.stat-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.stat-value {
    margin-top: 10px;
    font-size: 30px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--primary);
}

.stat-description {
    margin-top: 8px;
    font-size: 11px;
    color: var(--muted);
}

.dashboard-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.dashboard-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dashboard-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.panel-header h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -.2px;
    color: var(--primary);
}

.panel-header p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.panel-link {
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
}

.panel-link:hover {
    color: var(--accent-dark);
}


/* =========================================================
   ACHIEVEMENT LIST
========================================================= */

.achievement-list {
    display: flex;
    flex-direction: column;
}

.dashboard-achievement {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    border-top: 1px solid var(--border);
}

.dashboard-achievement:first-child {
    border-top: none;
    padding-top: 0;
}

.achievement-mark {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.achievement-content {
    min-width: 0;
    flex: 1;
}

.achievement-content strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.achievement-content span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--muted);
}

.achievement-date {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 10px;
}


/* =========================================================
   PROGRESS
========================================================= */

.profile-progress {
    padding-top: 3px;
}

.progress-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.progress-top span {
    color: var(--primary);
    font-weight: 700;
}

.progress-bar {
    height: 7px;
    background: var(--surface-soft);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: inherit;
}

.profile-progress p {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
    margin: 12px 0;
}


/* =========================================================
   QUICK ACTIONS
========================================================= */

.dashboard-actions {
    display: flex;
    flex-direction: column;
}

.dashboard-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    color: var(--text);
}

.dashboard-action:first-child {
    border-top: none;
    padding-top: 0;
}

.dashboard-action:last-child {
    padding-bottom: 0;
}

.dashboard-action:hover strong {
    color: var(--primary);
}

.action-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

.dashboard-action strong {
    display: block;
    font-size: 11px;
    font-weight: 600;
}

.dashboard-action small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}


/* =========================================================
   CATEGORY OVERVIEW
========================================================= */

.category-panel {
    margin-bottom: 30px;
}

.category-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 14px;
    background: var(--surface-soft);
    border-radius: 9px;
}

.category-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
}

.category-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-dark);
}

.category-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
}


/* =========================================================
   ACHIEVEMENTS PAGE
========================================================= */

.toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}

.toolbar input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 12px;
    outline: none;
    background: white;
}

.toolbar select {
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 12px;
    background: white;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.achievement-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: .2s;
}

.achievement-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: #d7dde6;
}

.card-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.category-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--primary);
    display: grid;
    place-items: center;
}

.badge {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 20px;
    background: var(--accent-soft);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
}

.achievement-card h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--primary);
}

.achievement-card .organization {
    color: var(--muted);
    font-size: 12px;
}

.achievement-card .date {
    display: block;
    margin-top: 15px;
    color: var(--muted);
    font-size: 10px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.tag {
    background: var(--surface-soft);
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 10px;
    color: var(--muted);
}


/* =========================================================
   FORMS
========================================================= */

.form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 7px;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.file-upload {
    border: 2px dashed var(--border);
    padding: 35px;
    text-align: center;
    border-radius: 12px;
    color: var(--muted);
    background: #fbfcfd;
}

.file-upload:hover {
    border-color: var(--accent-dark);
    background: var(--accent-soft);
}

.file-upload input {
    margin-top: 12px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}


/* =========================================================
   PROFILE
========================================================= */

.profile-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 28px;
}

.profile-page-header h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.7px;
    color: var(--primary);
}

.profile-page-header > div:first-child > p:last-child {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.profile-strength-card {
    width: 230px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
}

.profile-strength-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.profile-strength-top span {
    color: var(--muted);
}

.profile-strength-top strong {
    color: var(--primary);
    font-size: 12px;
}

.profile-strength-bar {
    height: 6px;
    margin-top: 9px;
    background: var(--surface-soft);
    border-radius: 10px;
    overflow: hidden;
}

.profile-strength-fill {
    height: 100%;
    background: var(--accent);
    border-radius: inherit;
}

.profile-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar-large {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 16px;
    background: var(--primary);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    font-weight: 700;
}

.profile-card-header h2 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -.3px;
    color: var(--primary);
}

.profile-card-header p {
    margin: 5px 0 8px;
    color: var(--muted);
    font-size: 11px;
}

.profile-status {
    display: inline-block;
    padding: 5px 8px;
    background: var(--accent-soft);
    border-radius: 6px;
    color: var(--primary);
    font-size: 9px;
    font-weight: 600;
}

.profile-section-header {
    margin-bottom: 20px;
}

.profile-section-header h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 650;
    color: var(--primary);
}

.profile-section-header p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.profile-card .form-group {
    margin-bottom: 17px;
}

.profile-card label {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 600;
}

.profile-card input,
.profile-card textarea {
    width: 100%;
    box-sizing: border-box;
}

.profile-card textarea {
    resize: vertical;
    min-height: 120px;
}

.form-help {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 9px;
}

.skill-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.profile-skill {
    padding: 7px 10px;
    background: var(--accent-soft);
    color: var(--primary);
    border-radius: 7px;
    font-size: 10px;
    font-weight: 600;
}

.profile-save-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    margin-bottom: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.profile-save-bar strong {
    display: block;
    font-size: 11px;
}

.profile-save-bar p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 10px;
}


/* =========================================================
   PORTFOLIO
========================================================= */

.portfolio-page {
    max-width: 1180px;
}

.portfolio-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 30px;
    margin-bottom: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(11,31,58,.03);
}

.portfolio-identity {
    display: flex;
    align-items: center;
    gap: 18px;
}

.portfolio-avatar {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border-radius: 18px;
    background: var(--primary);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.portfolio-label {
    display: block;
    margin-bottom: 7px;
    color: var(--accent-dark);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.portfolio-hero h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -.7px;
    color: var(--primary);
}

.portfolio-program {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--text);
}

.portfolio-year {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.portfolio-links {
    display: flex;
    gap: 8px;
}

.portfolio-link {
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 10px;
    font-weight: 600;
    transition: .2s;
}

.portfolio-link:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-section {
    margin-bottom: 18px;
}

.portfolio-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 13px;
}

.portfolio-section-heading span {
    display: block;
    margin-bottom: 5px;
    color: var(--accent-dark);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.portfolio-section-heading h2 {
    margin: 0;
    font-size: 17px;
    letter-spacing: -.3px;
    color: var(--primary);
}

.portfolio-about,
.portfolio-skills {
    padding: 20px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.portfolio-about p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.portfolio-stats > div {
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
}

.portfolio-stats strong {
    display: block;
    font-size: 24px;
    letter-spacing: -.5px;
    color: var(--primary);
}

.portfolio-stats span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 9px;
}

.portfolio-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-skill {
    padding: 8px 11px;
    background: var(--accent-soft);
    color: var(--primary);
    border-radius: 7px;
    font-size: 10px;
    font-weight: 600;
}

.portfolio-achievements {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portfolio-achievement {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .2s ease, box-shadow .2s ease;
}

.portfolio-achievement:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.portfolio-achievement-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.portfolio-achievement-content {
    min-width: 0;
    flex: 1;
}

.portfolio-achievement-top {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.portfolio-category {
    color: var(--accent-dark);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.portfolio-date {
    color: var(--muted);
    font-size: 9px;
}

.portfolio-achievement h3 {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--primary);
}

.portfolio-organization {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.portfolio-description {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.7;
}


/* =========================================================
   ACHIEVEMENT DETAILS
========================================================= */

.details-header {
    margin-bottom: 18px;
}

.back-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
}

.back-link:hover {
    color: var(--primary);
}

.details-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 18px;
}

.details-category-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 16px;
    background: var(--primary);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.details-category {
    display: inline-block;
    color: var(--accent-dark);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 7px;
}

.details-hero h1 {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: -.5px;
    color: var(--primary);
}

.details-hero p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.details-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
    gap: 18px;
}

.details-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.details-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}

.details-panel h2 {
    margin: 0;
    font-size: 15px;
    color: var(--primary);
}

.details-description h3 {
    margin: 0 0 10px;
    font-size: 12px;
}

.details-description p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.details-information {
    margin-top: 25px;
    border-top: 1px solid var(--border);
}

.details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.details-label {
    color: var(--muted);
    font-size: 11px;
}

.details-row strong {
    font-size: 11px;
    text-align: right;
}

.certificate-status {
    color: var(--success);
    font-size: 11px;
    font-weight: 600;
}

.details-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.details-skill {
    padding: 7px 10px;
    background: var(--accent-soft);
    color: var(--primary);
    border: 1px solid #f3df8e;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 500;
}

.details-action-button {
    width: 100%;
    margin-top: 8px;
}


/* =========================================================
   CV — PREMIUM RESUME DESIGN
========================================================= */

.cv-page {
    background: #eef1f5;
    min-height: 100vh;
}

.cv-toolbar {
    max-width: 850px;
    margin: auto;
    padding: 20px 0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cv-paper {
    position: relative;
    background: white;
    width: 850px;
    max-width: 100%;
    min-height: 1100px;
    margin: 20px auto 60px;
    padding: 0;
    box-shadow: 0 20px 70px rgba(11, 31, 58, .13);
    overflow: hidden;
}


/* CV HEADER */

.cv-header {
    position: relative;
    background: var(--primary);
    color: white;
    padding: 48px 60px 42px;
    border-bottom: 6px solid var(--accent);
    margin-bottom: 0;
}

.cv-header::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -70px;
    top: -90px;
    border-radius: 50%;
    border: 35px solid rgba(245,197,66,.12);
}

.cv-header h1 {
    position: relative;
    z-index: 1;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin: 0 0 7px;
}

.cv-header p {
    position: relative;
    z-index: 1;
    color: #dce4ef;
    font-size: 11px;
    margin: 3px 0;
}

.cv-header .cv-name-accent {
    color: var(--accent);
}

.cv-contact {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 17px;
}

.cv-contact span {
    font-size: 9px;
    color: #dce4ef;
}


/* CV CONTENT */

.cv-content {
    padding: 40px 60px 55px;
}

.cv-section {
    margin-bottom: 28px;
}

.cv-section h2 {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .12em;
    padding-bottom: 9px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.cv-section h2::before {
    content: "";
    width: 5px;
    height: 17px;
    border-radius: 3px;
    background: var(--accent);
}

.cv-item {
    margin-bottom: 17px;
    padding-left: 15px;
    border-left: 2px solid #edf0f4;
}

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

.cv-item strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
}

.cv-item small {
    display: block;
    color: var(--accent-dark);
    font-size: 9px;
    font-weight: 600;
    margin-top: 2px;
}

.cv-item p {
    font-size: 10px;
    color: var(--muted);
    line-height: 1.7;
    margin-top: 5px;
}

.cv-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.cv-skill {
    padding: 7px 10px;
    border-radius: 6px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: 9px;
    font-weight: 600;
}

.cv-highlight {
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    padding: 13px 15px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 18px;
}

.cv-highlight p {
    color: var(--primary);
    font-size: 10px;
    line-height: 1.7;
}


/* =========================================================
   EMPTY STATES
========================================================= */

.empty-state,
.dashboard-empty,
.portfolio-empty {
    text-align: center;
}

.empty-state {
    padding: 70px 20px;
    background: white;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.empty-state h2 {
    margin-bottom: 8px;
    color: var(--primary);
}

.empty-state p {
    color: var(--muted);
    margin-bottom: 20px;
}

.empty-icon,
.details-empty-icon,
.portfolio-empty-icon {
    width: 45px;
    height: 45px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    text-align: center;
}


/* =========================================================
   SETTINGS
========================================================= */

.settings-grid {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.setting-row:last-child {
    border-bottom: 0;
}

.setting-row p {
    color: var(--muted);
    font-size: 12px;
}

.setting-row input {
    width: auto;
}

.danger-card {
    border-color: #fecaca;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu-button {
    display: none;
}


/* =========================================================
   RESPONSIVE — 1000px
========================================================= */

@media (max-width: 1000px) {

    .landing-nav {
        padding: 0 20px;
    }

    .landing-nav nav a:not(.nav-login):not(.btn) {
        display: none;
    }

    .hero {
        max-width: 900px;
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 35px;
        padding: 70px 20px;
        text-align: center;
    }

    .hero-content {
        max-width: 750px;
        margin: 0 auto;
        text-align: center;
    }

    .hero .eyebrow {
        justify-content: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-note {
        text-align: center;
    }

    .hero-visual {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 5px;
    }

    .product-visual {
        width: 470px;
        max-width: 100%;
    }

    .section {
        padding: 70px 20px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar {
        transform: translateX(-100%);
        transition: .25s;
        box-shadow: 10px 0 40px rgba(0,0,0,.12);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-wrapper {
        margin-left: 0;
    }

    .mobile-menu-button {
        display: block;
        position: fixed;
        top: 17px;
        left: 15px;
        z-index: 30;
        border: 1px solid var(--border);
        background: white;
        color: var(--primary);
        border-radius: 8px;
        padding: 8px 11px;
    }

    .topbar {
        padding-left: 70px;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-columns,
    .details-grid,
    .form-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .category-overview {
        grid-template-columns: repeat(2, 1fr);
    }

    .achievement-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   RESPONSIVE — 850px
========================================================= */

@media (max-width: 850px) {

    .portfolio-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .portfolio-links {
        width: 100%;
    }

    .portfolio-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .cv-paper {
        width: calc(100% - 30px);
    }
}


/* =========================================================
   RESPONSIVE — 750px
========================================================= */

@media (max-width: 750px) {

    .profile-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-strength-card {
        width: 100%;
    }

    .profile-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}


/* =========================================================
   RESPONSIVE — 650px
========================================================= */

@media (max-width: 650px) {

    .hero {
        gap: 30px;
        padding: 55px 20px 65px;
    }

    .hero-content {
        width: 100%;
    }

    .hero h1 {
        font-size: 48px;
        line-height: 1.05;
        letter-spacing: -2px;
    }

    .hero p {
        font-size: 14px;
        line-height: 1.7;
    }

    .hero-buttons {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-note {
        font-size: 11px;
        line-height: 1.8;
        text-align: center;
    }

    .hero-visual {
        width: 100%;
        margin-top: 0;
    }

    .product-visual {
        width: 100%;
        padding: 20px;
        transform: none;
        border-radius: 18px;
    }

    .product-visual-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .visual-feature-grid {
        grid-template-columns: 1fr;
    }

    .visual-feature {
        padding: 13px;
    }

    .visual-timeline {
        margin-top: 20px;
    }

    .section-heading h2 {
        font-size: 35px;
    }

    .feature-grid,
    .steps,
    .achievement-grid {
        grid-template-columns: 1fr;
    }

    footer {
        flex-direction: column;
        gap: 15px;
        padding: 30px 20px;
    }

    .stats-grid,
    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
    }

    .main-content {
        padding: 22px 15px;
    }

    .page-header {
        flex-direction: column;
        gap: 15px;
    }

    .toolbar {
        flex-direction: column;
    }

    .two-inputs {
        grid-template-columns: 1fr;
    }

    .portfolio-intro h1 {
        font-size: 38px;
    }

    .portfolio-achievement-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .portfolio-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .portfolio-footer .btn {
        width: 100%;
    }

    .cv-header {
        padding: 35px 30px;
    }

    .cv-content {
        padding: 30px;
    }

    .cv-header h1 {
        font-size: 30px;
    }

    .cv-contact {
        flex-direction: column;
        gap: 5px;
    }
}


/* =========================================================
   RESPONSIVE — 500px
========================================================= */

@media (max-width: 500px) {

    .hero {
        padding: 45px 16px 55px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero .eyebrow {
        font-size: 11px;
    }

    .hero-note {
        font-size: 10px;
    }

    .product-visual {
        padding: 17px;
    }

    .product-visual-header h3 {
        font-size: 16px;
    }

    .details-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .details-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .details-row strong {
        text-align: left;
    }

    .profile-card {
        padding: 18px;
    }

    .profile-card-header {
        align-items: flex-start;
    }

    .profile-save-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-save-bar .btn {
        width: 100%;
    }

    .portfolio-hero {
        padding: 20px;
    }

    .portfolio-identity {
        align-items: flex-start;
    }

    .portfolio-avatar {
        width: 60px;
        height: 60px;
        font-size: 19px;
    }

    .portfolio-hero h1 {
        font-size: 22px;
    }

    .portfolio-stats {
        gap: 8px;
    }

    .portfolio-stats > div {
        padding: 14px;
    }

    .portfolio-achievement {
        padding: 16px;
    }

    .cv-paper {
        width: 100%;
        margin: 0;
    }

    .cv-header {
        padding: 30px 22px;
    }

    .cv-content {
        padding: 28px 22px;
    }
}


/* =========================================================
   PRINT / CV EXPORT
========================================================= */

@media print {

    body {
        background: white;
    }

    .sidebar,
    .topbar,
    .cv-toolbar,
    .mobile-menu-button {
        display: none !important;
    }

    .main-wrapper {
        margin: 0;
    }

    .main-content {
        padding: 0;
    }

    .cv-page {
        background: white;
    }

    .cv-paper {
        width: 100%;
        min-height: auto;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }

    .cv-header {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .cv-content {
        padding: 35px 50px;
    }

    .cv-section {
        break-inside: avoid;
    }
}
