/* ══════════════════════════════════════════════════════════════
   HelinoColorPicker — Main Stylesheet
   ══════════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'Minecraft';
    src: url('MinecraftRegularAlt.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Minecraft';
    src: url('MinecraftBoldAlt.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Minecraft';
    src: url('MinecraftItalicAlt.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Minecraft';
    src: url('MinecraftBoldItalicAlt.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

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

/* ══════════════════════════════════════════════════════════════
   DESIGN TOKENS (SrinoDeploy Palette)
   ══════════════════════════════════════════════════════════════ */
:root {
    /* Colours */
    --bg-dark: #0f1118;
    /* Deep Space Blue */
    --bg-card: #131620;
    /* Card Surface */
    --bg-glass: rgba(19, 22, 32, 0.7);
    --bg-input: rgba(0, 0, 0, 0.25);
    --accent: #3b82f6;
    /* Srino Primary Blue */
    --accent-bright: #60a5fa;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    /* Slate 400 */
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(59, 130, 246, 0.3);
    --border-bright: rgba(59, 130, 246, 0.5);

    /* Layout */
    --nav-h: 72px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* ── Preview shared metrics ────────────────────────────────
       BOTH .editor-backdrop AND #text-input must use these EXACT
       values. Any mismatch causes the selection-highlight offset.
       container-height = 2 × pv-pad + pv-font = 2×26 + 48 = 100px
       ─────────────────────────────────────────────────────── */
    --pv-font: 48px;
    --pv-lh: 1;
    --pv-pad-v: 26px;
    --pv-pad-h: 24px;
    --pv-height: 100px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 17px;
}

body {
    background-color: var(--bg-dark);
    background-image:
        /* Subtle dot grid */
        radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    color: var(--text-main);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

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

/* ══════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background: rgba(15, 17, 24, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
}

/* Brand (left) */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    flex-shrink: 0;
}

/*
 ┌─────────────────────────────────────────────────────────────┐
 │  LOGO PLACEHOLDER                                           │
 │  To add your own logo:                                      │
 │  1. Copy your image file (e.g. logo.png) into the folder:  │
 │     C:\Users\Home\Desktop\HelinoColorPicker\               │
 │  2. Open index.html and find the <div class="nav-logo-     │
 │     placeholder"> element (line ~17)                        │
 │  3. Replace "HC" with:  <img src="logo.png" alt="Logo">    │
 │  The image will auto-fill the 36 × 36 px rounded square.   │
 └─────────────────────────────────────────────────────────────┘
*/
.nav-logo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-logo-placeholder:hover {
    border-color: var(--border-accent);
    transform: scale(1.05);
}

.nav-logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.nav-brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    background: linear-gradient(130deg, #fff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

/* Centre tabs */
.nav-tabs {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    background: rgba(10, 22, 58, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.28rem;
}

.nav-tab {
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-tab:hover {
    color: #fff;
}

.nav-tab.active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* Right – hamburger */
.nav-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-menu-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-menu-btn span {
    display: block;
    width: 15px;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
}

.nav-menu-btn:hover {
    border-color: var(--border-accent);
    color: var(--accent-bright);
}

/* ── PAGE SYSTEM ──────────────── */
.page {
    display: none;
    padding-top: var(--nav-h);
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* ══════════════════════════════════════════════════════════════
   APP CONTAINER
   ══════════════════════════════════════════════════════════════ */
.app-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 2.2rem 1.75rem 4rem;
}

/* ── HEADER ─────────────────── */
.header {
    margin: 3rem 0;
    text-align: center;
}

.logo-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-bottom: 0.45rem;
}

h1 {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
    letter-spacing: -1px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 480px;
    margin: 0 auto;
}

/* ── EDITOR SECTION ─────────── */
.editor-section {
    margin-bottom: 1.75rem;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.65rem;
}

.label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-bright);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: 'JetBrains Mono', monospace;
}

.prompt-icon {
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

/* ── TOOLBAR ────────────────── */
.toolbar {
    display: flex;
    gap: 0.32rem;
    padding: 0.28rem;
    background: var(--bg-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
}

.tool-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.quick-colors {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.color-tag {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--c);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.color-tag:hover {
    transform: scale(1.2);
    border-color: #fff;
}

.tool-btn.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.55), rgba(20, 60, 180, 0.7));
    border-color: var(--border-accent);
    color: #fff;
}

/* ══════════════════════════════════════════════════════════════
   PREVIEW BOX — pixel-perfect alignment
   The container is a fixed-height box.
   Both .editor-backdrop and #text-input are absolutely positioned
   and share IDENTICAL font/size/padding so the browser renders
   text at the same pixel position in both.
   This means the textarea selection highlight overlaps the
   colored backdrop text exactly — zero offset.
   ══════════════════════════════════════════════════════════════ */
.editor-container {
    position: relative;
    background: rgba(2, 5, 14, 0.9);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    height: var(--pv-height);
    /* 80px */
    overflow: hidden;
    transition: border-color 0.25s;
}

.editor-container:focus-within {
    border-color: var(--border-accent);
}

/* ─ Shared rule — IDENTICAL on both elements ─ */
.editor-backdrop,
#text-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* Typography — must match exactly */
    font-family: 'Minecraft', 'Courier New', monospace;
    font-size: var(--pv-font);
    /* 40px */
    line-height: var(--pv-lh);
    /* 1    */
    letter-spacing: 0;
    word-spacing: 0;

    /* Layout — must match exactly */
    padding: var(--pv-pad-v) var(--pv-pad-h);
    /* 20px 20px */
    margin: 0;
    border: none;
    outline: none;

    white-space: pre-wrap;
    word-break: break-all;
    text-align: center;
    overflow: hidden;

    /* Pixel-perfect rendering */
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
    font-smooth: never;
    text-rendering: optimizeSpeed;
    image-rendering: pixelated;
}

/* Backdrop: coloured spans live here */
.editor-backdrop {
    z-index: 1;
    pointer-events: none;
    user-select: none;
    background: transparent;
    color: transparent;
    /* spans carry their own colour */
}

/* Textarea: transparent text, handles input */
#text-input {
    z-index: 2;
    background: transparent;
    resize: none;
    color: transparent;
    -webkit-text-fill-color: transparent;
    caret-color: rgba(255, 255, 255, 0.85);
}

/* ── GRADIENT SLIDER ─────────── */
.gradient-slider-container {
    background: var(--bg-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-glass);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 0.6rem;
}

.gradient-slider {
    height: 6px;
    border-radius: 3px;
}

/* ── GRID COLUMNS ─────────────── */
.grid-columns {
    display: grid;
    grid-template-columns: 300px 1fr 265px;
    gap: 1.1rem;
}

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

/* ── GLASS CARD ──────────────── */
.col {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    position: relative;
    transition: border-color 0.3s;
}

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

/* ── COL HEADER ───────────────── */
.col-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.1rem;
}

.col-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    color: var(--accent-bright);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ── RANDOM BUTTON ────────────── */
.random-btn {
    background: rgba(20, 55, 150, 0.17);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-accent);
    color: var(--accent-bright);
    font-size: 0.61rem;
    font-weight: 700;
    padding: 0.38rem 0.65rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.2s;
}

.random-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #fff;
    transform: translateY(-1px);
}

/* ── FORM ─────────────────────── */
.form-group {
    margin-bottom: 1.05rem;
}

.form-group label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'JetBrains Mono', monospace;
}

.number-input-group {
    display: flex;
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.number-input-group .num-btn {
    background: rgba(59, 130, 246, 0.07);
    border: none;
    border-right: 1px solid var(--border-glass);
    color: var(--accent-bright);
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.17s;
    font-family: 'Outfit', sans-serif;
}

.number-input-group .num-btn:last-child {
    border-right: none;
    border-left: 1px solid var(--border-glass);
}

.number-input-group .num-btn:hover {
    background: rgba(59, 130, 246, 0.19);
}

.number-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.92rem;
}

/* ── COLOR SWATCHES ───────────── */
.colors-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
    margin-top: 0.15rem;
}

.swatch-card {
    position: relative;
    background: rgba(5, 12, 32, 0.55);
    border: 1px solid var(--border-glass);
    padding: 0.48rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    cursor: pointer;
}

.swatch-card:hover {
    background: rgba(14, 36, 90, 0.45);
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.color-row-header {
    font-size: 0.57rem;
    font-weight: 700;
    color: var(--accent-bright);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.7;
}

.color-box {
    width: 100%;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.67rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.12s;
    position: relative;
    overflow: hidden;
}

.color-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
    pointer-events: none;
    border-radius: inherit;
}

.color-box:active {
    transform: scale(0.95);
}

.delete-btn-mini {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    background: #dc2626;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.3);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.swatch-card:hover .delete-btn-mini {
    opacity: 1;
    transform: scale(1);
}

.delete-btn-mini:hover {
    background: #ef4444;
    transform: scale(1.15) !important;
}

.color-box-anchor {
    position: absolute;
    visibility: hidden;
    pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   CUSTOM COLOUR PICKER POPUP
   ══════════════════════════════════════════════════════════════ */
.custom-color-picker {
    display: none;
    position: fixed;
    z-index: 9999;
    background: rgba(4, 9, 28, 0.97);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    width: 250px;
    animation: popIn 0.18s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.88) translateY(6px);
    }

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

.custom-color-picker.visible {
    display: block;
}

.picker-saturation {
    position: relative;
    width: 100%;
    height: 135px;
    border-radius: var(--radius-sm);
    cursor: crosshair;
    overflow: hidden;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.picker-saturation .sat-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.picker-saturation .val-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #000, transparent);
}

.picker-cursor {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.picker-hue {
    position: relative;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(to right,
            hsl(0, 100%, 50%), hsl(30, 100%, 50%), hsl(60, 100%, 50%),
            hsl(90, 100%, 50%), hsl(120, 100%, 50%), hsl(150, 100%, 50%),
            hsl(180, 100%, 50%), hsl(210, 100%, 50%), hsl(240, 100%, 50%),
            hsl(270, 100%, 50%), hsl(300, 100%, 50%), hsl(330, 100%, 50%),
            hsl(360, 100%, 50%));
    cursor: pointer;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hue-thumb {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.picker-hex-row {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.picker-hex-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.picker-hex-input {
    flex: 1;
    background: rgba(59, 130, 246, 0.07);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.38rem 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: border-color 0.17s;
}

.picker-hex-input:focus {
    outline: none;
    border-color: var(--border-bright);
}

.picker-preview-swatch {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    flex-shrink: 0;
}

.picker-close-btn {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.picker-close-btn:hover {
    background: rgba(220, 38, 38, 0.28);
    color: #fff;
}

.picker-presets {
    display: flex;
    gap: 0.28rem;
    flex-wrap: wrap;
    margin-top: 0.65rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border-glass);
}

.picker-preset-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.13s;
}

.picker-preset-dot:hover {
    transform: scale(1.3);
}

/* ── OUTPUT ──────────────────── */
.output-textarea {
    width: 100%;
    height: 125px;
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 0.82rem;
    color: var(--text-main);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    resize: none;
    transition: border-color 0.25s;
    line-height: 1.6;
}

.output-textarea:focus {
    outline: none;
    border-color: var(--border-accent);
}

/* ── SELECT / INPUT ──────────── */
.custom-select,
.custom-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 0.68rem 0.82rem;
    color: var(--text-main);
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    transition: border-color 0.22s;
    -webkit-appearance: none;
    appearance: none;
}

.custom-select:focus,
.custom-input:focus {
    outline: none;
    border-color: var(--border-accent);
}

.custom-select option {
    background: #050b1a;
    color: var(--text-main);
}

/* ── ACTION BUTTONS (glass) ──── */
.action-buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 0.62rem;
}

.action-btn {
    width: 100%;
    padding: 1rem;
    background: #27272a;
    /* Slate 800-ish */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #3f3f46;
    transform: translateY(-1px);
}

#copy-btn {
    background: var(--accent);
}

#copy-btn:hover {
    background: var(--accent-bright);
}

#reset-btn {
    background: rgba(220, 38, 38, 0.05);
    border-color: rgba(220, 38, 38, 0.17);
    color: #f87171;
}

#reset-btn:hover {
    background: rgba(220, 38, 38, 0.22);
    border-color: rgba(220, 38, 38, 0.44);
    color: #fff;
    transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════════
   COMING SOON PAGE
   ══════════════════════════════════════════════════════════════ */
.coming-soon-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--nav-h));
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 2rem;
}

.cs-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: rgba(30, 80, 200, 0.17);
    border: 1px solid var(--border-accent);
    border-radius: 99px;
    padding: 0.38rem 1.1rem;
    color: var(--accent-bright);
}

.cs-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(130deg, #fff 0%, #93c5fd 55%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    max-width: 500px;
}

.cs-sub {
    color: var(--text-muted);
    max-width: 380px;
    font-size: 1rem;
    line-height: 1.7;
}

.cs-dots {
    display: flex;
    gap: 0.5rem;
}

.cs-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-accent);
    animation: pulse 1.4s ease-in-out infinite;
}

.cs-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.cs-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {

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

    50% {
        opacity: 1;
        transform: scale(1.4);
        background: var(--accent-bright);
    }
}

/* ── MINECRAFT MODIFIER CLASSES ─ */
@keyframes obfuscate {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.55
    }
}

.mc-obf {
    animation: obfuscate 0.1s infinite;
}

.mc-b {
    font-weight: bold;
}

.mc-i {
    font-style: italic;
}

.mc-u {
    text-decoration: underline;
}

.mc-st {
    text-decoration: line-through;
}

.mc-u.mc-st {
    text-decoration: underline line-through;
}

.mc-sc {
    font-variant: small-caps;
}

/* ── CONVERTER PAGE ─────────── */
.converter-box {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .converter-box {
        flex-direction: row;
        align-items: stretch;
    }
}

.conv-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.conv-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-bright);
    letter-spacing: 0.1em;
}

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

.conv-textarea {
    width: 100%;
    height: 300px;
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.5rem;
    color: #fff;
    font-family: 'Minecraft', 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    resize: none;
    transition: all 0.3s ease;
}

.conv-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.conv-textarea.output-mode {
    background: rgba(59, 130, 246, 0.03);
    border-color: rgba(59, 130, 246, 0.2);
    color: var(--accent-bright);
}

.conv-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .conv-divider {
        flex-direction: column;
    }
}

.divider-line {
    flex: 1;
    width: 2px;
    background: var(--border-glass);
}

.divider-icon {
    font-size: 1.5rem;
    color: var(--border-accent);
    opacity: 0.5;
}

.glow-icon {
    filter: drop-shadow(0 0 10px var(--accent));
}

.pickr {
    display: none !important;
}