/* ==========================================================
   NoTrace.site — Create / View Page UI/UX Improvements
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto+Mono:wght@400;600&display=swap');

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

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
    /* Brand */
    --primary-color: #dcae50;
    --primary-dark: #c69b3f;
    --primary-light: rgba(220, 174, 80, 0.15);
    --primary-glow: rgba(220, 174, 80, 0.35);
    --accent-gradient: linear-gradient(135deg, #dcae50 0%, #e9c875 100%);
    --accent-gradient-h: linear-gradient(135deg, #e9c875 0%, #f5d98a 100%);

    /* Surfaces */
    --bg-color: #080810;
    --bg-secondary: #0d0d1a;
    --card-bg: rgba(22, 22, 38, 0.85);
    --card-bg-solid: #13131f;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(255, 255, 255, 0.04);

    /* Text */
    --text-color: #f0f0f8;
    --text-muted: rgba(240, 240, 248, 0.55);
    --text-subtle: rgba(240, 240, 248, 0.35);

    /* Borders */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(220, 174, 80, 0.25);
    --border-accent-h: rgba(220, 174, 80, 0.5);

    /* Semantic */
    --success-color: #4ade80;
    --success-bg: rgba(74, 222, 128, 0.12);
    --danger-color: #f87171;
    --danger-bg: rgba(248, 113, 113, 0.12);
    --warning-color: #fbbf24;
    --warning-bg: rgba(251, 191, 36, 0.12);
    --info-color: #60a5fa;
    --info-bg: rgba(96, 165, 250, 0.12);

    /* Dark text (for use on gold backgrounds) */
    --dark-color: #0a0a12;

    /* Spacing/Shape — BOXY */
    --border-radius: 3px;
    --border-radius-sm: 2px;
    --border-radius-lg: 4px;
    --border-radius-xl: 6px;
    --border-radius-pill: 3px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.55);
    --shadow-gold: 0 4px 24px rgba(220, 174, 80, 0.2);
    --shadow-gold-lg: 0 8px 40px rgba(220, 174, 80, 0.3);

    /* Typography */
    --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Roboto Mono', 'Courier New', monospace;

    /* Layout */
    --max-width: 1200px;

    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* ── Base ───────────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    line-height: 1.65;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    overflow-x: hidden;
    cursor: default;
    /* Subtle mesh background */
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(220, 174, 80, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(220, 174, 80, 0.04) 0%, transparent 60%);
    background-attachment: fixed;
}


/* Subtle dot grid overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

/* ── Container ──────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* ── Typography ─────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-color);
    letter-spacing: -0.3px;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

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

a:hover {
    color: var(--primary-dark);
}

/* ── Header / Navigation ────────────────────────────────────── */
header {
    padding: 1.5rem 0;
    position: relative;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}


.logo-link {
    text-decoration: none;
    display: inline-block;
    transition: var(--transition-fast);
}

.logo-link:hover {
    transform: scale(1.04);
}

.logo h1 {
    font-size: 1.75rem;
    margin: 0;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.5px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Nav links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    margin-left: auto;
}

/* Mobile-only nav panel header — hidden on desktop */
.nav-header-item {
    display: none;
}

.nav-close-btn {
    display: none;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.45rem 0.9rem;
    font-size: 0.95rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-color);
    background: var(--glass-bg);
}

.nav-links a:hover::after {
    width: 60%;
}

.nav-links a.active {
    color: var(--primary-color);
    background: var(--primary-light);
}

.nav-links a.active::after {
    width: 60%;
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 20;
    position: relative;
}

.hamburger span {
    width: 30px;
    height: 2.5px;
    background: var(--accent-gradient);
    border-radius: 10px;
    transition: var(--transition);
    transform-origin: center;
}

/* ── Main ───────────────────────────────────────────────────── */
main {
    flex: 1;
}

/* ── Badge ──────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: var(--border-radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-accent);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* ── Sections ───────────────────────────────────────────────── */
.section {
    padding: 4rem 0;
    position: relative;
    text-align: center;
}

.section-intro {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--text-color) 40%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--primary-color);
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 0;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero-fullscreen {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
    min-height: calc(100vh - 180px);
    position: relative;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    z-index: 1;
}

.hero-content h1 {
    background-image: linear-gradient(135deg, #f0f0f8 0%, #dcae50 60%, #e9c875 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Decorative elements */
.decorative-dots {
    position: absolute;
    width: 220px;
    height: 220px;
    top: -60px;
    right: -20px;
    background-image: radial-gradient(var(--primary-color) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    opacity: 0.15;
    z-index: -1;
}

.decorative-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 65% at 65% 40%, rgba(220, 174, 80, 0.1) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* ── Feature Cards ──────────────────────────────────────────── */
.cards-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    flex: 1;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-accent);
    text-align: left;
}

.card:hover {
    border-color: var(--border-accent-h);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-accent-h);
}

/* Shimmer on hover */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 174, 80, 0.06), transparent);
    transition: left 0.6s ease;
}

.card:hover::before {
    left: 100%;
}

/* Gold accent left bar */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px 0 0 3px;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    background: var(--primary-light);
    display: inline-flex;
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius);
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-accent);
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.card p {
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ── CTA Section ────────────────────────────────────────────── */
.cta {
    padding: 5rem 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius-xl);
    margin: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-accent);
    box-shadow: var(--shadow);
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
}

.cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(220, 174, 80, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta h2 {
    margin-bottom: 0.75rem;
}

.cta p {
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Ripple effect base */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn:not(:disabled):hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--dark-color);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(220, 174, 80, 0.3);
}

.btn-primary:not(:disabled):hover {
    background: var(--accent-gradient-h);
    box-shadow: 0 6px 24px rgba(220, 174, 80, 0.45);
    transform: translateY(-2px);
    color: var(--dark-color);
}

.btn-secondary {
    background: rgba(220, 174, 80, 0.12);
    color: var(--primary-color);
    border: 1px solid var(--border-accent);
}

.btn-secondary:not(:disabled):hover {
    background: rgba(220, 174, 80, 0.2);
    border-color: var(--border-accent-h);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-accent);
    color: var(--primary-color);
}

.btn-outline:not(:disabled):hover {
    background: var(--primary-light);
    border-color: var(--border-accent-h);
    transform: translateY(-2px);
}

/* ── Form ───────────────────────────────────────────────────── */
.note-form {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    border: 1px solid var(--border-accent);
    z-index: 5;
    cursor: default;
}

.note-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.form-group {
    margin-bottom: 1.6rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.2px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--input-bg);
    color: var(--text-color);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-subtle);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light), 0 0 0 1px rgba(220, 174, 80, 0.3);
    background-color: rgba(255, 255, 255, 0.06);
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

.form-group select option {
    background-color: var(--card-bg-solid);
    color: var(--text-color);
}

.char-counter {
    text-align: right;
    color: var(--text-subtle);
    font-size: 0.8rem;
    margin-top: 0.4rem;
}

/* Code input */
.code-input {
    font-family: var(--font-mono);
    font-size: 2rem;
    text-align: center;
    letter-spacing: 0.6rem;
    text-transform: uppercase;
    font-weight: 600;
}

/* ── Cloudflare Turnstile widget ───────────────────────────── */
.turnstile-widget {
    display: flex;
    justify-content: center;
    margin: 1.25rem 0 0.5rem;
    min-height: 65px; /* prevent layout shift while iframe loads */
}

/* ── Note Card (Hero preview) ───────────────────────────────── */
.note-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-accent);
    width: 100%;
    max-width: 380px;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-12deg) rotateX(2deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    border: 1px solid var(--border-accent);
}

.note-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-accent-h), var(--shadow-gold);
}

.note-header {
    background: var(--accent-gradient);
    color: var(--dark-color);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.note-header strong {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    vertical-align: middle;
}

.note-header span {
    color: var(--dark-color);
    font-weight: 700;
    vertical-align: middle;
    display: inline-block;
}

.note-header span#display-code {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    letter-spacing: 3px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    margin-left: 8px;
}

.note-code {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.note-timer {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.85;
}

.note-content {
    padding: 1.5rem;
    position: relative;
}

.note-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, rgba(220, 174, 80, 0.4) 0%, transparent 100%);
}

/* ── CAPTCHA ────────────────────────────────────────────────── */
.captcha-section {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(220, 174, 80, 0.05);
    border: 1px solid var(--border-accent);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: slide-down 0.3s ease-out;
}

.captcha-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.captcha-header span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.captcha-display {
    background: #fff;
    border-radius: var(--border-radius-sm);
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.captcha-canvas {
    width: 100%;
    height: 100%;
}

.captcha-input-group {
    display: flex;
    gap: 0.75rem;
}

.captcha-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--input-bg);
    color: var(--text-color);
    font-family: var(--font-mono);
    font-size: 1rem;
    text-align: center;
    outline: none;
    transition: var(--transition-fast);
}

.captcha-input:focus {
    border-color: var(--border-accent);
    box-shadow: 0 0 0 2px rgba(220, 174, 80, 0.2);
}

.btn-refresh-captcha {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 42px;
    height: 42px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-refresh-captcha:hover {
    background: var(--primary-light);
    border-color: var(--border-accent);
    color: var(--primary-color);
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* ── Result / Display Panels ────────────────────────────────── */
.note-result,
.note-display {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-accent);
    position: relative;
    transition: var(--transition);
    max-width: 600px;
    margin: 0 auto;
}

.note-result::before,
.note-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

/* Note content within view */
.note-display .note-content {
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    border-left: 3px solid var(--primary-color);
    padding: 0;
}

/* ── Error Panel ────────────────────────────────────────────── */
.note-error {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(248, 113, 113, 0.25);
    text-align: center;
    max-width: 500px;
    margin: 2rem auto;
    position: relative;
}

.note-error::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--danger-color);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.note-error h3 {
    color: var(--danger-color);
}

.error-icon {
    width: 64px;
    height: 64px;
    background: var(--danger-bg);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--danger-color);
    margin: 0 auto 1.5rem;
    font-weight: bold;
}

.error-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Success Icon ───────────────────────────────────────────── */
.success-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--dark-color);
    margin: 0;
    /* removed auto — breaks flex row */
    box-shadow: var(--shadow-gold);
    animation: pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

@keyframes pop-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ── Code Display ───────────────────────────────────────────── */
.code-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.code {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 2rem;
    color: var(--primary-color);
    letter-spacing: 6px;
    background: var(--primary-light);
    padding: 10px 24px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-accent);
    text-align: center;
    text-shadow: 0 0 20px rgba(220, 174, 80, 0.4);
}

.note-code-display {
    display: flex;
    align-items: flex-start;
}

.note-code-display p {
    font-weight: 500;
    margin-bottom: 8px;
}

/* ── Note Actions / Link Row ────────────────────────────────── */
.note-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.expiry-info p {
    color: var(--warning-color);
    font-size: 0.9rem;
    margin: 0;
}

.create-new {
    margin-left: auto;
}

/* Share link row */
.note-link {
    display: flex;
    gap: 0.5rem;
    margin: 1.25rem 0 1rem;
    width: 100%;
}

.note-link input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: var(--input-bg);
    color: var(--text-muted);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    outline: none;
}

.note-link input:focus {
    border-color: var(--border-accent);
}

/* Horizontal container */
.horizontal-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    width: 100%;
}

/* ── Timer / Countdown ──────────────────────────────────────── */
.expiry-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
}

#countdown-timer {
    font-family: var(--font-mono);
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
    display: inline-block;
    vertical-align: middle;
    transition: color 0.5s ease, background 0.5s ease;
}

/* Timer urgency states (applied dynamically) */
.timer-warning #countdown-timer,
#countdown-timer.timer-warning {
    color: var(--warning-color) !important;
    background: var(--warning-bg) !important;
    animation: timer-pulse 2s infinite;
}

.timer-critical #countdown-timer,
#countdown-timer.timer-critical {
    color: var(--danger-color) !important;
    background: var(--danger-bg) !important;
    animation: timer-pulse 0.8s infinite;
}

@keyframes timer-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.65;
    }
}

/* ── Note Viewer (view.html) ────────────────────────────────── */
.view-note {
    padding: 0;
}

.view-note h2 {
    margin-bottom: 2rem;
}

.note-toolbar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.note-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-tool {
    font-size: 0.82rem;
    padding: 0.4rem 0.85rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
    cursor: pointer;
    font-family: var(--font-main);
}

.btn-tool:hover {
    background: var(--primary-light);
    border-color: var(--border-accent);
    color: var(--primary-color);
}

.tool-icon {
    font-style: normal;
    margin-right: 4px;
}

.note-viewer {
    display: flex;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    position: relative;
    min-height: 120px;
    max-height: 420px;
    transition: var(--transition);
}

.note-text {
    margin: 0;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-color);
    position: relative;
    z-index: 20;
    user-select: text;
    height: 100%;
    max-height: 420px;
}

/* Scrollbar styling */
.note-text::-webkit-scrollbar {
    width: 5px;
}

.note-text::-webkit-scrollbar-track {
    background: transparent;
}

.note-text::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.note-text::-webkit-scrollbar-thumb:hover {
    background: var(--border-accent);
}

/* ── Share Options ──────────────────────────────────────────── */
.share-options {
    margin: 1.25rem 0;
    width: 100%;
}

.share-options p {
    margin-bottom: 0.75rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-start;
}

.btn-share {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0.9rem;
    border-radius: 50%;
    background: var(--glass-bg);
    color: var(--text-color);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    width: 42px;
    height: 42px;
    cursor: pointer;
}

.btn-share:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
}

.btn-share .share-icon {
    width: 18px;
    height: 18px;
    display: block;
    filter: brightness(0) invert(0.7);
}

.btn-share:hover .share-icon {
    filter: brightness(0) invert(1);
}

.btn-share.whatsapp:hover {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.1);
}

.btn-share.telegram:hover {
    border-color: #0088cc;
    background: rgba(0, 136, 204, 0.1);
}

.btn-share.twitter:hover {
    border-color: #1DA1F2;
    background: rgba(29, 161, 242, 0.1);
}

.btn-share.facebook:hover {
    border-color: #4267B2;
    background: rgba(66, 103, 178, 0.1);
}

.btn-share.email:hover {
    border-color: #D44638;
    background: rgba(212, 70, 56, 0.1);
}

.btn-share.native:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.btn-share.qrcode:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.action-icon {
    margin-right: 5px;
    font-style: normal;
}

/* ── QR Code Modal ──────────────────────────────────────────── */
.qr-modal {
    display: none;
    position: fixed;
    z-index: 1100;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
}

.qr-modal.show {
    display: flex;
}

.qr-modal-content {
    background: var(--card-bg-solid);
    margin: auto;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 90%;
    width: 360px;
    text-align: center;
    position: relative;
    border: 1px solid var(--border-accent);
    animation: slide-up 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slide-up {
    from {
        transform: translateY(20px) scale(0.96);
        opacity: 0;
    }

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

.qr-modal-content h3 {
    margin-bottom: 1.25rem;
    color: var(--primary-color);
}

.qr-close,
.qr-close-view {
    position: absolute;
    top: 12px;
    right: 16px;
    color: var(--text-muted);
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
}

.qr-close:hover,
.qr-close-view:hover {
    color: var(--primary-color);
}

.qr-display {
    background: #fff;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 0 auto 1.5rem;
    display: inline-block;
    position: relative;
    border: 1px solid var(--border-accent);
    box-shadow: var(--shadow-sm);
}

.qr-display img {
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.qr-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

/* ── Notification Toast ─────────────────────────────────────── */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 14px 18px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    max-width: 320px;
    min-width: 240px;
    transform: translateX(130%);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 3px solid transparent;
}

/* Type-aware colors */
.notification.error {
    background: #1a0a0a;
    border-color: var(--danger-color);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(248, 113, 113, 0.15);
}

.notification.success {
    background: #0a1a0d;
    border-color: var(--success-color);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(74, 222, 128, 0.15);
}

.notification.default {
    background: #0a0d1a;
    border-color: var(--info-color);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(96, 165, 250, 0.15);
}

.notification.show {
    transform: translateX(0);
}

.notification-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.notification-message {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-color);
    opacity: 1;
    line-height: 1.4;
    flex: 1;
}

.notification-close {
    position: relative;
    top: auto;
    right: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.6;
    transition: var(--transition-fast);
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.notification-close:hover {
    opacity: 1;
    color: var(--text-color);
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
    margin-top: auto;
    padding: 1.75rem 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-accent) 30%, var(--border-accent) 70%, transparent 100%);
}

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

.footer-content p {
    color: var(--text-subtle);
    font-size: 0.85rem;
    margin: 0;
    opacity: 1;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-subtle);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* ── Modal ──────────────────────────────────────────────────── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--card-bg-solid);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    max-width: 520px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-accent);
    transform: scale(0.92) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-backdrop.active .modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition-fast);
    line-height: 1;
}

.modal-close:hover {
    opacity: 1;
    color: var(--primary-color);
}

.modal-header {
    margin-bottom: 1.25rem;
}

.modal-title {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-body h4 {
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    margin-top: 1rem;
}

.modal-body p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ── Create / View page sections ───────────────────────────── */
.create-note {
    padding: 0;
}

.create-note h2 {
    margin-bottom: 2rem;
}

.view-note {
    padding: 0;
}

.view-note h2 {
    margin-bottom: 2rem;
}

/* ── Loading spinner ────────────────────────────────────────── */
.loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: var(--dark-color);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

/* ── Helper classes ─────────────────────────────────────────── */
.hidden {
    display: none !important;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    h1 {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .hero-fullscreen {
        flex-direction: column;
        padding: 2rem 0;
        min-height: unset;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-content p {
        max-width: 100%;
    }

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

    .hero-image {
        width: 100%;
    }

    .note-card {
        max-width: 100%;
        transform: none;
    }

    .note-card:hover {
        transform: translateY(-4px);
    }

    .cards-container {
        flex-direction: column;
        gap: 1.25rem;
    }

    .card {
        max-width: 100%;
    }

    .note-form {
        padding: 1.5rem;
    }

    .code {
        font-size: 1.5rem;
        padding: 8px 16px;
        flex: 1;
    }

    .code-wrapper {
        flex-wrap: wrap;
        gap: 10px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    .note-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .create-new {
        margin-left: 0;
        width: 100%;
    }

    .create-new .btn {
        width: 100%;
        text-align: center;
    }

    .note-link {
        flex-direction: column;
        gap: 8px;
    }

    .note-link input,
    .note-link button {
        width: 100%;
    }

    .qr-modal-content {
        width: 92%;
        padding: 1.5rem;
    }

    .qr-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .qr-actions .btn {
        width: 100%;
    }

    .note-viewer {
        max-height: 300px;
    }

    .note-text {
        max-height: 300px;
    }

    .note-header {
        padding: 0.9rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .note-code-display,
    .expiry-timer {
        display: flex;
        align-items: center;
        width: 100%;
    }

    .note-header strong {
        font-size: 0.95rem;
        min-width: 70px;
    }

    .note-header span#display-code,
    #countdown-timer {
        font-size: 1.1rem;
        flex: 1;
    }

    /* Mobile navigation */
    .hamburger {
        display: flex;
        z-index: 115;
        position: relative;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 78%;
        max-width: 320px;
        height: 100dvh;
        background: rgba(10, 10, 20, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 0;
        z-index: 105;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6);
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        margin-left: 0;
        border-left: 1px solid var(--border-accent);
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    /* Nav panel — brand header */
    .nav-header-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.1rem 1.4rem;
        border-bottom: 1px solid var(--border-color);
        background: rgba(220, 174, 80, 0.04);
        list-style: none;
        flex-shrink: 0;
    }

    .nav-panel-brand {
        font-size: 1.05rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        background: var(--accent-gradient);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        font-family: var(--font-main);
    }

    .nav-close-btn {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border-color);
        color: var(--text-muted);
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1.1rem;
        line-height: 1;
        transition: var(--transition-fast);
        flex-shrink: 0;
    }

    .nav-close-btn:hover {
        background: var(--primary-light);
        border-color: var(--border-accent);
        color: var(--primary-color);
    }

    /* Nav links on mobile */
    .nav-links>li:not(.nav-header-item) {
        width: 100%;
        opacity: 0;
        animation: fadeInRight 0.35s forwards;
    }

    .nav-links a {
        width: 100%;
        display: block;
        padding: 1rem 1.4rem;
        font-size: 1rem;
        font-weight: 500;
        border-left: 3px solid transparent;
        border-radius: 0;
        color: var(--text-muted);
        letter-spacing: 0.2px;
        transition: all 0.2s ease;
    }

    .nav-links a:hover {
        border-left-color: var(--border-accent);
        background: rgba(220, 174, 80, 0.05);
        color: var(--text-color);
        padding-left: 1.75rem;
    }

    .nav-links a.active {
        border-left-color: var(--primary-color);
        background: rgba(220, 174, 80, 0.08);
        color: var(--primary-color);
        padding-left: 1.75rem;
    }

    .nav-links a::after {
        display: none;
    }

    @keyframes fadeInRight {
        from {
            opacity: 0;
            transform: translateX(16px);
        }

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

    .nav-links.active li:nth-child(2) {
        animation-delay: 0.06s;
    }

    .nav-links.active li:nth-child(3) {
        animation-delay: 0.12s;
    }

    .nav-links.active li:nth-child(4) {
        animation-delay: 0.18s;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(4px);
        z-index: 100;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Hamburger → X animation (correct pivot math: 7px = space between span centers) */
    .hamburger.active span:first-child {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .section-intro {
        margin: 0 auto 2rem;
    }

    .share-buttons {
        justify-content: flex-start;
    }

    .notification {
        top: auto;
        bottom: 20px;
        right: 16px;
        left: 16px;
        max-width: 100%;
        transform: translateY(120%);
    }

    .notification.show {
        transform: translateY(0);
    }

    /* Page layout stacks on mobile */
    .page-layout {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem 0;
    }

    .page-sidebar {
        display: none;
    }

    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .form-group-btn {
        align-self: stretch;
    }

    .form-group-btn .btn-full {
        width: 100%;
    }

    /* Steps stacks */
    .steps-container {
        flex-direction: column;
        gap: 1.25rem;
    }

    .steps-line {
        display: none;
    }

    /* CTA grid stacks */
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-left h2 {
        font-size: 1.8rem;
    }

    .cta-actions {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
        text-align: center;
    }

    /* Feature pills wrap */
    .feature-pills {
        gap: 0.6rem;
    }

    /* Hero stats */
    .hero-stats {
        gap: 1.25rem;
    }

    /* Note meta bar stacks */
    .note-meta-bar {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .note-meta-status {
        margin-left: 0;
    }

    .note-meta-divider {
        display: none;
    }
}

/* ── NEW: Hero stat strip ───────────────────────────────────── */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stat-val {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-mono);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-stat-sep {
    width: 1px;
    height: 28px;
    background: var(--border-color);
}

/* Note card footer (hero) */
.note-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
}

.note-card-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--success-color);
    letter-spacing: 1px;
}

.note-card-meta {
    font-size: 0.72rem;
    color: var(--text-subtle);
}

/* ── NEW: How It Works – Steps ──────────────────────────────── */
.how-it-works {
    padding: 5rem 0;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
}

.steps-container {
    display: flex;
    gap: 0;
    position: relative;
    max-width: 960px;
    margin: 0 auto 3rem;
    align-items: stretch;
}

/* Horizontal connecting line between steps */
.steps-line {
    position: absolute;
    top: 44px;
    /* aligned with step number circle */
    left: calc(33% / 2);
    right: calc(33% / 2);
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--border-accent) 20%,
            var(--border-accent) 80%,
            transparent 100%);
    z-index: 0;
}

.step-card {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem 1.75rem;
    position: relative;
    z-index: 1;
    text-align: left;
    transition: var(--transition);
    border-right: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.step-card:first-child {
    border-left: 3px solid var(--primary-color);
}

.step-card:last-child {
    border-right: 1px solid var(--border-color);
}

.step-card:hover {
    background: rgba(22, 22, 38, 0.98);
    border-color: var(--border-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.step-number {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    font-family: var(--font-mono);
    margin-bottom: 0.5rem;
}

.step-icon {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.step-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0;
    color: var(--text-color);
}

.step-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.step-cta {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: auto;
    display: inline-block;
    padding-top: 0.5rem;
}

.step-example {
    font-size: 0.82rem;
    color: var(--text-subtle);
    margin-top: auto;
    padding-top: 0.5rem;
}

.step-example code {
    font-family: var(--font-mono);
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 1px 6px;
    border: 1px solid var(--border-accent);
    font-size: 0.85rem;
}

.step-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--success-color);
    background: var(--success-bg);
    border: 1px solid rgba(74, 222, 128, 0.2);
    padding: 2px 8px;
    letter-spacing: 0.3px;
    margin-top: auto;
    width: fit-content;
}

/* Feature pills row */
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    max-width: 860px;
    margin: 0 auto;
}

.pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
    transition: var(--transition-fast);
}

.pill:hover {
    border-color: var(--border-accent);
    color: var(--text-color);
    background: var(--primary-light);
}

.pill-icon {
    font-size: 0.95rem;
}

/* About Section / SEO Content */
.about-notrace {
    padding: 5rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.about-card {
    background: var(--card-bg);
    border: 1px solid var(--border-accent);
    border-radius: var(--border-radius);
    padding: 2.5rem 2.25rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(220, 174, 80, 0.15);
}

.about-card:hover::before {
    opacity: 1;
}

.about-icon {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: rgba(220, 174, 80, 0.08);
    border: 1px solid rgba(220, 174, 80, 0.2);
    border-radius: var(--border-radius-sm);
    color: var(--primary-color);
}

.about-card h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 0.85rem;
    font-weight: 600;
}

.about-card p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-muted);
}

/* ── NEW: CTA section – Terminal design ─────────────────────── */

.cta {
    padding: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-accent);
    border-radius: 0;
    margin: 2rem 0 3rem;
    overflow: hidden;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.cta-left {
    padding: 3.5rem;
    border-right: 1px solid var(--border-color);
}

.cta-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
}

.cta-left h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-left p {
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1rem;
}

.cta-right {
    padding: 3rem 2.5rem;
    background: rgba(0, 0, 0, 0.3);
    height: 100%;
    display: flex;
    align-items: center;
}

/* Terminal block */
.cta-terminal {
    width: 100%;
    border: 1px solid var(--border-color);
    overflow: hidden;
    font-family: var(--font-mono);
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--border-color);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.terminal-title {
    font-size: 0.75rem;
    color: var(--text-subtle);
    margin-left: auto;
    letter-spacing: 0.5px;
}

.terminal-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.terminal-line {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: flex;
    gap: 0.75rem;
}

.t-prompt {
    color: var(--primary-color);
    font-weight: 700;
}

.t-success {
    color: var(--success-color);
}

.t-key {
    color: var(--text-subtle);
    min-width: 48px;
}

.t-val {
    color: var(--primary-color);
}

.t-muted {
    color: var(--text-subtle);
    font-style: italic;
}

/* ── NEW: Two-column page layout ────────────────────────────── */
.page-layout {
    display: flex;
    gap: 2.5rem;
    padding: 2.5rem 0 3rem;
    align-items: flex-start;
}

.page-main {
    flex: 1;
    min-width: 0;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.page-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ── NEW: Sidebar ───────────────────────────────────────────── */
.page-sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 2rem;
}

.sidebar-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    transition: var(--transition-fast);
    position: relative;
}

.sidebar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--border-color);
    transition: var(--transition-fast);
}

.sidebar-card:hover::before {
    background: var(--accent-gradient);
}

.sidebar-card:hover {
    border-color: var(--border-accent);
}

.highlight-card {
    border-color: var(--border-accent);
    background: rgba(220, 174, 80, 0.05);
}

.highlight-card::before {
    background: var(--accent-gradient) !important;
}

.sidebar-icon {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    display: block;
}

.sidebar-card h4 {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--text-color);
}

.sidebar-card p {
    font-size: 0.82rem;
    line-height: 1.55;
    margin-bottom: 0;
}

.sidebar-card code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 1px 5px;
    border: 1px solid var(--border-accent);
}

/* ── NEW: Create page – inline form row ─────────────────────── */
.form-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.form-group-btn {
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
}

.btn-full {
    width: 100%;
}

.lookup-form .form-group input {
    font-size: 2rem;
}

/* ── NEW: Result blocks (create success) ────────────────────── */
.result-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.result-header h3 {
    margin-bottom: 0;
    font-size: 1.3rem;
}

.result-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-subtle);
    margin-bottom: 0.5rem;
}

.result-code-block,
.result-link-block {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.code-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.result-footer {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

/* ── NEW: View page – note meta bar ─────────────────────────── */
.note-meta-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.9rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-bottom: none;
    margin-bottom: 0;
}

.note-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-subtle);
    font-weight: 600;
}

.meta-code {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 3px;
}

.meta-timer {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    transition: color 0.5s ease;
}

/* Override countdown-timer styles for meta-timer context */
#countdown-timer {
    font-family: var(--font-mono);
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.1rem;
    background: none;
    padding: 0;
    border-radius: 0;
    letter-spacing: 1px;
    display: inline-block;
    vertical-align: middle;
    transition: color 0.5s ease;
}

#countdown-timer.timer-warning {
    color: var(--warning-color) !important;
    background: none !important;
    animation: timer-pulse 2s infinite;
}

#countdown-timer.timer-critical {
    color: var(--danger-color) !important;
    background: none !important;
    animation: timer-pulse 0.8s infinite;
}

.note-meta-divider {
    width: 1px;
    height: 32px;
    background: var(--border-color);
    flex-shrink: 0;
}

.note-meta-status {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--success-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.note-body {
    border: 1px solid var(--border-color);
    border-top: none;
    margin-bottom: 1.5rem;
}

.share-block {
    margin-bottom: 1.5rem;
}

.share-block-row {
    margin-bottom: 0.75rem;
}

.view-footer-actions {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

/* ── Centered page layout (Create / View) ────────────────── */
.centered-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 2.5rem 0 4rem;
}

.centered-header {
    text-align: center;
    margin-bottom: 2rem;
}

.centered-header h2 {
    font-size: 2rem;
    margin: 0.5rem 0;
}

.centered-header .page-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.centered-form {
    width: 100%;
}

/* ── Info strip ──────────────────────────────────────────── */
.info-strip {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border-color);
    margin-bottom: 1.75rem;
    overflow: hidden;
    position: relative;
}

.info-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
}

.info-strip-item {
    flex: 1;
    display: flex;
    align-items: flex-start;
    /* icon stays at top beside title */
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--card-bg);
    transition: var(--transition-fast);
}

.info-strip-item:hover {
    background: rgba(22, 22, 38, 0.98);
}

.info-strip-item>div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-strip-item strong {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1;
}

.info-strip-item span {
    font-size: 0.75rem;
    color: var(--text-subtle);
}

.info-strip-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    padding-top: 2px;
    /* optical alignment with bold title */
    line-height: 1;
}

.info-strip-divider {
    width: 1px;
    background: var(--border-color);
    flex-shrink: 0;
}

/* Mobile: stack info strip */
@media (max-width: 600px) {
    .info-strip {
        flex-direction: column;
    }

    .info-strip-divider {
        width: 100%;
        height: 1px;
    }
}

/* Very small screens */
@media (max-width: 400px) {
    .container {
        padding: 0 14px;
    }

    .centered-page {
        padding: 1.75rem 0 3rem;
    }

    .note-form {
        padding: 1.25rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }
}

/* ── CSP Compliance Classes ─────────────────────────────────── */
.dot-red {
    background: #f87171 !important;
}

.dot-yellow {
    background: #fbbf24 !important;
}

.dot-green {
    background: #4ade80 !important;
}

.w-full {
    width: 100% !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.m-0 {
    margin: 0 !important;
}

.text-sm {
    font-size: 0.9rem !important;
}

.text-muted-alt {
    color: var(--text-muted) !important;
}

/* Banner classes */
.notrace-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    padding: 10px 24px;
    font-size: 0.85rem;
    text-align: center;
    font-family: inherit;
    border-bottom: 1px solid transparent;
}

.banner-warning {
    background: rgba(251, 191, 36, 0.1) !important;
    border-color: #fbbf24 !important;
    color: #fbbf24 !important;
}

.banner-error {
    background: rgba(248, 113, 113, 0.1) !important;
    border-color: #f87171 !important;
    color: #f87171 !important;
}

.no-scroll {
    overflow: hidden !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

/* ================================================================
   NoTrace.site — Create / View Page UI/UX Improvements
   Strictly maintains: boxy design, gold #dcae50, dark bg theme
   All additions — zero modifications to existing rules
   ================================================================ */

/* ── Enhanced centered page header ─────────────────────────── */
.centered-page {
    padding: 3rem 0 5rem;
}

.centered-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 0 0.5rem;
}

.centered-header .badge {
    margin-bottom: 1.25rem;
}

.centered-header h2 {
    font-size: 2.5rem;
    margin: 0.5rem 0 0.75rem;
    background: linear-gradient(135deg, var(--text-color) 30%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.centered-header .page-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Upgraded Info Strip ────────────────────────────────────── */
.info-strip {
    border: 1px solid var(--border-accent);
    background: var(--card-bg);
    margin-bottom: 2rem;
}

.info-strip::before {
    height: 2px;
    background: var(--accent-gradient);
}

.info-strip-item {
    padding: 1.1rem 1.4rem;
    gap: 1rem;
    position: relative;
    transition: background 0.2s ease;
    align-items: center;
}

.info-strip-item:hover {
    background: rgba(220, 174, 80, 0.05);
}

.info-strip-icon {
    font-size: 1.5rem;
    background: var(--primary-light);
    width: 42px;
    height: 42px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-accent);
    flex-shrink: 0;
    padding-top: 0;
}

.info-strip-item>div {
    gap: 4px;
}

.info-strip-item strong {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.2;
}

.info-strip-item span:not(.info-strip-icon) {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ── Enhanced Note Form ─────────────────────────────────────── */
.note-form {
    padding: 2.25rem 2.5rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 12px;
    background: var(--accent-gradient);
    border-radius: 2px;
    flex-shrink: 0;
}

.form-group textarea {
    min-height: 200px;
    font-size: 0.95rem;
    line-height: 1.65;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}

.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 174, 80, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23dcae50' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    padding-right: 2.5rem;
    cursor: pointer;
    font-weight: 500;
    /* Only transition safe properties — NOT background-position which causes the arrow to slide */
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.char-counter {
    font-size: 0.78rem;
    color: var(--text-subtle);
    margin-top: 0.35rem;
    letter-spacing: 0.2px;
}

/* ── Expiry Quick-Pick Pills ────────────────────────────────── */
.expiry-pills {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.expiry-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-mono);
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
    user-select: none;
    letter-spacing: 0.3px;
}

.expiry-pill:hover {
    border-color: var(--border-accent);
    color: var(--primary-color);
    background: var(--primary-light);
}

.expiry-pill.active {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
    box-shadow: 0 0 0 1px rgba(220, 174, 80, 0.2);
}

.expiry-helper {
    font-size: 0.78rem;
    color: var(--text-subtle);
    margin-bottom: 0.5rem;
    display: block;
}

/* ── View Page — Code Input Enhancement ─────────────────────── */
.lookup-form {
    text-align: center;
}

.lookup-form .form-group {
    margin-bottom: 0.75rem;
}

.lookup-form .form-group label {
    justify-content: center;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.lookup-form .form-group label::before {
    display: none;
}

.code-input {
    font-family: var(--font-mono) !important;
    font-size: 2.8rem !important;
    letter-spacing: 1.2rem !important;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    padding: 1rem 1.5rem !important;
    border: 2px solid var(--border-accent) !important;
    background: rgba(220, 174, 80, 0.04) !important;
    color: var(--primary-color) !important;
    border-radius: var(--border-radius) !important;
    height: 90px;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.code-input::placeholder {
    color: rgba(220, 174, 80, 0.2) !important;
    font-size: 1.6rem !important;
    letter-spacing: 0.8rem !important;
}

.code-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(220, 174, 80, 0.15), 0 0 20px rgba(220, 174, 80, 0.1) !important;
    background: rgba(220, 174, 80, 0.07) !important;
}

.code-input-hint {
    font-size: 0.78rem;
    color: var(--text-subtle);
    text-align: center;
    margin-top: 0.5rem;
    letter-spacing: 0.3px;
}

.lookup-form .btn-primary {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    width: 100%;
    margin-top: 0.5rem;
    letter-spacing: 0.3px;
}

/* ── Result Section (Create Success) ───────────────────────── */
.result-header {
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
}

.result-header .success-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
}

.result-header h3 {
    font-size: 1.35rem;
    margin-bottom: 0.2rem;
}

.result-code-block {
    background: rgba(220, 174, 80, 0.04);
    border: 1px solid var(--border-accent);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
}

.result-code-block .result-label {
    color: var(--primary-color);
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.result-link-block {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
}

.code {
    font-size: 2.4rem;
    letter-spacing: 8px;
    padding: 12px 28px;
    text-shadow: 0 0 30px rgba(220, 174, 80, 0.5);
    animation: code-appear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes code-appear {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.code-row {
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

/* ── Note Meta Bar (View) ───────────────────────────────────── */
.note-meta-bar {
    background: rgba(220, 174, 80, 0.03);
    border: 1px solid var(--border-accent);
    border-bottom: none;
    padding: 1rem 1.5rem;
    gap: 2rem;
}

.note-meta-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
}

.note-meta-item {
    position: relative;
}

.meta-label {
    font-size: 0.62rem;
    letter-spacing: 1.2px;
    color: rgba(220, 174, 80, 0.6);
}

.meta-code {
    font-size: 1.4rem;
    letter-spacing: 4px;
}

.meta-timer {
    font-size: 1.2rem;
}

.note-meta-status {
    font-size: 0.65rem;
    letter-spacing: 2px;
    gap: 6px;
}

/* ── Note Body / Viewer ─────────────────────────────────────── */
.note-body {
    border: 1px solid var(--border-accent);
    border-top: none;
    overflow: hidden;
}

.note-toolbar {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

.note-viewer {
    min-height: 160px;
    max-height: 500px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0;
    border: none;
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.3);
}

.note-text {
    padding: 1.5rem;
    font-size: 0.95rem;
    max-height: 500px;
    color: var(--text-color);
    line-height: 1.75;
}

/* ── Share Block Improvements ───────────────────────────────── */
.share-options {
    margin: 0;
    padding: 1.25rem 0 0;
}

.share-options>p {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-subtle);
    margin-bottom: 0.85rem;
}

.share-buttons {
    gap: 0.65rem;
}

.btn-share {
    width: 46px;
    height: 46px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    position: relative;
}

.btn-share:hover {
    transform: translateY(-3px);
}

.btn-share .share-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(0.55);
}

.btn-share:hover .share-icon {
    filter: brightness(0) invert(0.9);
}

/* ── View footer actions ──────────────────────────────────── */
.view-footer-actions,
.result-footer {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.view-footer-actions .btn,
.result-footer .btn {
    flex: 1;
    min-width: 160px;
    text-align: center;
    justify-content: center;
}

/* ── Error State Improvements ───────────────────────────────── */
.error-icon {
    width: 72px;
    height: 72px;
    font-size: 2rem;
    border-radius: var(--border-radius);
}

.note-error {
    padding: 3rem 2.5rem;
    max-width: 480px;
    border-radius: var(--border-radius-lg);
}

.note-error h3 {
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

/* ── Responsive: Create / View pages ───────────────────────── */
@media (max-width: 720px) {
    .centered-header h2 {
        font-size: 2rem;
    }

    .note-form {
        padding: 1.75rem 1.5rem;
    }

    .code-input {
        font-size: 2.2rem !important;
        letter-spacing: 0.9rem !important;
        height: 76px;
    }

    .code {
        font-size: 1.8rem;
        letter-spacing: 6px;
        padding: 10px 20px;
    }

    .code-row {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .code-row .btn {
        width: 100%;
    }

    .result-code-block {
        padding: 1rem 1.25rem;
    }

    .info-strip-icon {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .note-meta-bar {
        gap: 1.25rem;
        padding: 0.9rem 1rem;
    }

    .meta-code {
        font-size: 1.2rem;
        letter-spacing: 3px;
    }

    .note-text {
        padding: 1.25rem;
        font-size: 0.9rem;
        max-height: 320px;
    }

    .note-viewer {
        max-height: 320px;
    }

    .view-footer-actions,
    .result-footer {
        flex-direction: column;
    }

    .view-footer-actions .btn,
    .result-footer .btn {
        width: 100%;
    }

    .expiry-pills {
        gap: 0.4rem;
    }
}

@media (max-width: 480px) {
    .centered-page {
        padding: 2rem 0 4rem;
    }

    .centered-header h2 {
        font-size: 1.75rem;
    }

    .centered-header .page-desc {
        font-size: 0.9rem;
    }

    .info-strip {
        flex-direction: column;
    }

    .info-strip-divider {
        width: 100%;
        height: 1px;
    }

    .info-strip-item {
        padding: 0.9rem 1.1rem;
    }

    .note-form {
        padding: 1.5rem 1.25rem;
    }

    .code-input {
        font-size: 1.8rem !important;
        letter-spacing: 0.6rem !important;
        height: 68px;
    }

    .code-input::placeholder {
        font-size: 1.2rem !important;
        letter-spacing: 0.5rem !important;
    }

    .note-meta-bar {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .note-meta-divider {
        display: none;
    }

    .note-meta-status {
        width: 100%;
        margin-left: 0;
    }

    .share-buttons {
        gap: 0.5rem;
    }

    .btn-share {
        width: 42px;
        height: 42px;
    }

    .result-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

@media (max-width: 360px) {
    .code-input {
        font-size: 1.5rem !important;
        letter-spacing: 0.4rem !important;
    }

    .code {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }
}