/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=DM+Mono:wght@400;500&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    --bg: #f5f1eb;
    --bg-card: #ffffff;
    --bg-card-alt: #faf8f5;
    --bg-accent: #1a1a2e;
    --bg-accent-soft: #2d2d44;
    --border: #e8e4dd;
    --border-hover: #d0cbc3;
    --text: #1a1a2e;
    --text-secondary: #6b6880;
    --text-muted: #9e9bae;
    --text-inverse: #f5f1eb;
    --accent: #e8553d;
    --accent-soft: rgba(232, 85, 61, 0.08);
    --accent-hover: #d44830;
    --teal: #2a9d8f;
    --teal-soft: rgba(42, 157, 143, 0.08);
    --indigo: #5c5ce0;
    --indigo-soft: rgba(92, 92, 224, 0.08);
    --shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.04);
    --shadow-md: 0 4px 16px rgba(26, 26, 46, 0.06);
    --shadow-lg: 0 8px 30px rgba(26, 26, 46, 0.08);
    --shadow-hover: 0 12px 40px rgba(26, 26, 46, 0.12);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --font-main: 'Outfit', system-ui, sans-serif;
    --font-mono: 'DM Mono', monospace;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg);
}

html::-webkit-scrollbar {
    width: 5px;
}

html::-webkit-scrollbar-track {
    background: var(--bg);
}

html::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

body {
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    display: block;
}

/* ===== STICKY HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    background: rgba(245, 241, 235, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header .wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
}

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

.header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.header-nav a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 100px;
    transition: all var(--transition);
}

.header-nav a:hover {
    color: var(--text);
    background: rgba(26, 26, 46, 0.05);
}

.settings-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1rem;
    transition: all var(--transition);
}

.settings-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: rotate(30deg);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 1px;
    transition: all var(--transition);
}

/* ===== BENTO GRID ===== */
.bento {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 28px 40px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 16px;
}

/* ===== BENTO CARD BASE ===== */
.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
    overflow: hidden;
    position: relative;
}

.bento-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

/* ===== HERO CARD — 2 cols wide, 2 rows tall ===== */
.bento-hero {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 36px;
    background: var(--bg-accent);
    color: var(--text-inverse);
    border-color: transparent;
    min-height: 380px;
}

.bento-hero:hover {
    background: var(--bg-accent-soft);
    border-color: transparent;
}

.bento-hero .hero-greeting {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: slideUp 0.5s ease forwards 0.2s;
}

.bento-hero .hero-name {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 8px;
    opacity: 0;
    animation: slideUp 0.5s ease forwards 0.35s;
}

.bento-hero .hero-headline {
    font-size: 1.05rem;
    font-weight: 400;
    color: rgba(245, 241, 235, 0.6);
    margin-bottom: 4px;
    opacity: 0;
    animation: slideUp 0.5s ease forwards 0.5s;
}

.bento-hero .hero-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(245, 241, 235, 0.4);
    opacity: 0;
    animation: slideUp 0.5s ease forwards 0.6s;
}

.bento-hero .hero-location svg {
    width: 13px;
    height: 13px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

/* ===== AVATAR CARD — 2 cols, 2 rows ===== */
.bento-avatar {
    grid-column: span 2;
    grid-row: span 2;
    padding: 0;
    overflow: hidden;
    border-color: transparent;
}

.bento-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.bento-avatar:hover img {
    transform: scale(1.04);
}

/* ===== ABOUT CARD — 3 cols ===== */
.bento-about {
    grid-column: span 3;
}

.bento-about .card-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 12px;
    padding: 4px 10px;
    background: var(--accent-soft);
    border-radius: 100px;
    display: inline-block;
}

.bento-about .about-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== STATS CARD — 1 col ===== */
.bento-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.stat-cell {
    padding: 20px;
    text-align: center;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.stat-cell:nth-child(2),
.stat-cell:nth-child(4) {
    border-right: none;
}

.stat-cell:nth-child(3),
.stat-cell:nth-child(4) {
    border-bottom: none;
}

.stat-cell:hover {
    background: var(--bg-card-alt);
}

.stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.stat-lbl {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ===== SKILLS CARD — 2 cols ===== */
.bento-skills {
    grid-column: span 2;
}

.bento-skills .card-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--teal);
    margin-bottom: 16px;
    padding: 4px 10px;
    background: var(--teal-soft);
    border-radius: 100px;
    display: inline-block;
}

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

.skill-pill {
    font-size: 0.82rem;
    font-weight: 500;
    padding: 8px 18px;
    background: var(--bg-card-alt);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text);
    transition: all var(--transition);
    cursor: default;
}

.skill-pill:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 85, 61, 0.2);
}

/* ===== CTA CARD — 2 cols ===== */
.bento-cta {
    grid-column: span 2;
    background: var(--accent);
    border-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.bento-cta:hover {
    background: var(--accent-hover);
    border-color: transparent;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 100px;
    transition: all var(--transition);
}

.cta-primary {
    background: #fff;
    color: var(--accent);
}

.cta-primary:hover {
    background: var(--bg);
    color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cta-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.cta-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: translateY(-2px);
}

.cta-link svg {
    width: 16px;
    height: 16px;
}

/* ===== SECTION LABELS ===== */
.section-label {
    max-width: 1200px;
    margin: 40px auto 16px;
    padding: 0 28px;
}

.section-label h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}

.section-label h2 span {
    color: var(--accent);
}

.section-label p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== PROJECT CARDS ===== */
.projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.project-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.project-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--bg-card-alt);
}

.project-body {
    padding: 24px;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.project-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.tech-chip {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    padding: 3px 10px;
    background: var(--indigo-soft);
    color: var(--indigo);
    border-radius: 100px;
}

.project-links {
    display: flex;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition);
}

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

.project-link svg {
    width: 14px;
    height: 14px;
}

/* ===== PUBLICATIONS ===== */
.pubs-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pub-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.pub-row:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.pub-year-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 12px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 100px;
    white-space: nowrap;
}

.pub-info {
    flex: 1;
}

.pub-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.pub-venue {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
}

.pub-open {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all var(--transition);
    white-space: nowrap;
}

.pub-open:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.pub-open svg {
    width: 12px;
    height: 12px;
}

/* ===== CONTACT BENTO ===== */
.contact-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px 60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.contact-card.wide {
    grid-column: span 2;
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: var(--radius-sm);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-lbl {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.contact-val {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.social-row {
    grid-column: span 4;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.social-circle {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    background: var(--bg-card-alt);
    transition: all var(--transition-spring);
}

.social-circle:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: scale(1.12);
    box-shadow: 0 4px 16px rgba(232, 85, 61, 0.25);
}

.social-circle svg {
    width: 18px;
    height: 18px;
}

/* ===== FOOTER ===== */
.footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px 30px;
    text-align: center;
}

.footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer a {
    color: var(--accent);
}

/* ===== SETTINGS PANEL ===== */
.settings-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 46, 0.3);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

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

.settings-panel {
    position: fixed;
    top: 0;
    right: -520px;
    width: 480px;
    max-width: 92vw;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right var(--transition);
    box-shadow: -8px 0 40px rgba(26, 26, 46, 0.1);
}

.settings-panel.active {
    right: 0;
}

.settings-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.settings-top h2 {
    font-size: 1rem;
    font-weight: 700;
}

.settings-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card-alt);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.settings-close:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.settings-body {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.settings-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 14px;
    background: var(--bg-card-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.settings-info strong {
    color: var(--accent);
}

.settings-info code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 1px 5px;
    background: var(--bg);
    border-radius: 4px;
    color: var(--indigo);
}

.settings-textarea {
    flex: 1;
    min-height: 280px;
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 16px;
    resize: none;
    line-height: 1.6;
    transition: border-color var(--transition);
}

.settings-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.settings-textarea::placeholder {
    color: var(--text-muted);
}

.settings-msg {
    font-size: 0.78rem;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    display: none;
}

.settings-msg.error {
    color: #c0392b;
    background: rgba(192, 57, 43, 0.06);
    border: 1px solid rgba(192, 57, 43, 0.15);
}

.settings-msg.success {
    color: var(--teal);
    background: var(--teal-soft);
    border: 1px solid rgba(42, 157, 143, 0.15);
}

.settings-msg.visible {
    display: block;
}

.settings-btns {
    padding: 18px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}

.btn-apply,
.btn-reset {
    flex: 1;
    padding: 10px 0;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-align: center;
}

.btn-apply {
    background: var(--accent);
    color: #fff;
}

.btn-apply:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 16px rgba(232, 85, 61, 0.25);
    transform: translateY(-1px);
}

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

.btn-reset:hover {
    background: var(--bg);
    color: var(--text);
    border-color: var(--border-hover);
}

/* ===== FADE IN ===== */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-hero {
        grid-column: span 2;
        min-height: 300px;
    }

    .bento-avatar {
        grid-column: span 2;
        min-height: 280px;
    }

    .bento-about {
        grid-column: span 2;
    }

    .bento-skills {
        grid-column: span 2;
    }

    .bento-cta {
        grid-column: span 2;
    }

    .bento-stats {
        grid-column: span 2;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-card.wide {
        grid-column: span 2;
    }

    .social-row {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(245, 241, 235, 0.97);
        backdrop-filter: blur(16px);
        padding: 16px 28px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
    }

    .header-nav.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .bento-hero .hero-name {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-hero {
        grid-column: span 1;
    }

    .bento-avatar {
        grid-column: span 1;
        min-height: 240px;
    }

    .bento-about {
        grid-column: span 1;
    }

    .bento-skills {
        grid-column: span 1;
    }

    .bento-cta {
        grid-column: span 1;
    }

    .bento-stats {
        grid-column: span 1;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card.wide {
        grid-column: span 1;
    }

    .social-row {
        grid-column: span 1;
    }

    .settings-panel {
        width: 100vw;
    }
}

/* ===== PIN AUTH MODAL ===== */
.pin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.pin-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    z-index: 2001;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    width: 360px;
    max-width: 90vw;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.pin-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.pin-modal-header {
    padding: 24px 24px 0;
    text-align: center;
}

.pin-modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.pin-modal-body {
    padding: 20px 24px;
    text-align: center;
}

.pin-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.pin-input {
    width: 180px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 1.8rem;
    letter-spacing: 0.6em;
    padding: 12px 16px;
    background: var(--bg-card-alt);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease;
}

.pin-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.pin-error {
    font-size: 0.8rem;
    color: #e74c3c;
    margin-top: 12px;
    min-height: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.pin-error.visible {
    opacity: 1;
}

.pin-lockout {
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 4px;
    min-height: 18px;
}

.pin-modal-footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 0 24px 24px;
}

.pin-modal-footer .btn-apply,
.pin-modal-footer .btn-reset {
    padding: 10px 24px;
    font-size: 0.85rem;
}