/* =============================================
       CUBENEST – KÖK DEĞİŞKENLER & SIFIRLA
    ============================================= */
    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

    :root {
        --primary:        #ff2a2a;
        --primary-hover:  #ff4d4d;
        --primary-glow:   rgba(255, 42, 42, 0.4);
        --bg-dark:        #030303;
        --bg-card:        rgba(15, 15, 15, 0.6);
        --text-main:      #ffffff;
        --text-muted:     #a1a1aa;
        --border-color:   rgba(255, 255, 255, 0.05);
        --cn-primary:     #ff2a2a;
        --cn-bg:          #030303;
        --cn-glass:       rgba(255, 255, 255, 0.03);
        --mono:           'JetBrains Mono', monospace;
    }

    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
        background-color: var(--bg-dark);
        color: var(--text-main);
        font-family: 'Inter', sans-serif;
        overflow-x: hidden;
        line-height: 1.6;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }
    ::selection { background-color: var(--primary); color: #fff; }

    /* =============================================
       ARKA PLAN
    ============================================= */
    .bg-grid {
        position: fixed; top: -50vh; left: -50vw; width: 200vw; height: 200vh;
        background-image:
            linear-gradient(rgba(255, 42, 42, 0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 42, 42, 0.04) 1px, transparent 1px);
        background-size: 50px 50px;
        transform: perspective(1000px) rotateX(60deg) translateY(0);
        animation: gridMove 15s linear infinite;
        z-index: -3; pointer-events: none;
    }
    @keyframes gridMove {
        0%   { transform: perspective(1000px) rotateX(60deg) translateY(0); }
        100% { transform: perspective(1000px) rotateX(60deg) translateY(50px); }
    }
    .vignette {
        position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
        background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 85%);
        z-index: -2; pointer-events: none;
    }
    .background-cubes { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }
    .cube {
        position: absolute;
        background: linear-gradient(135deg, rgba(255,42,42,0.05), transparent);
        border: 1px solid rgba(255,42,42,0.2);
        box-shadow: 0 0 20px rgba(255,42,42,0.05);
        border-radius: 8px; backdrop-filter: blur(3px);
        animation: floatUp 25s infinite linear;
    }
    .cube:nth-child(1) { width: 80px;  height: 80px;  left: 10%; bottom: -100px; animation-duration: 20s; }
    .cube:nth-child(2) { width: 40px;  height: 40px;  left: 30%; bottom: -100px; animation-duration: 15s; animation-delay: 2s; }
    .cube:nth-child(3) { width: 100px; height: 100px; left: 75%; bottom: -100px; animation-duration: 25s; animation-delay: 1s; }
    .cube:nth-child(4) { width: 60px;  height: 60px;  left: 85%; bottom: -100px; animation-duration: 18s; animation-delay: 5s; }
    .cube:nth-child(5) { width: 50px;  height: 50px;  left: 50%; bottom: -100px; animation-duration: 22s; animation-delay: 8s; }
    @keyframes floatUp {
        0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
        10%  { opacity: 1; }
        90%  { opacity: 1; }
        100% { transform: translateY(-120vh) rotate(360deg); opacity: 0; }
    }

    /* =============================================
       HEADER
    ============================================= */
    .cn-header {
        position: fixed; top: 0; left: 0; width: 100%; height: 90px;
        background: rgba(3,3,3,0.75); backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color); z-index: 1000;
    }
    .cn-header-container {
        max-width: 1400px; margin: 0 auto; height: 100%;
        display: flex; justify-content: space-between; align-items: center; padding: 0 40px;
    }
    .cn-nav { display: flex; gap: 35px; flex: 1; }
    .cn-nav-left  { justify-content: flex-end; padding-right: 50px; }
    .cn-nav-right { justify-content: flex-start; padding-left: 50px; }
    .cn-nav-item {
        position: relative; color: var(--text-muted); text-decoration: none;
        font-weight: 600; font-size: 0.95rem; transition: 0.3s;
        display: flex; align-items: center;
    }
    .cn-cube-indicator {
        width: 8px; height: 8px; background: var(--cn-primary); margin-right: 10px;
        display: inline-block; transform: rotate(45deg); opacity: 0;
        transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 0 10px var(--cn-primary);
    }
    .cn-nav-item:hover, .cn-nav-item.active { color: #fff; }
    .cn-nav-item:hover .cn-cube-indicator,
    .cn-nav-item.active .cn-cube-indicator { opacity: 1; transform: rotate(225deg); }

    .cn-logo-wrapper { perspective: 1000px; z-index: 1001; }
    .cn-main-logo { display: flex; align-items: center; gap: 15px; text-decoration: none; }
    .logo-cube {
        width: 24px; height: 24px; position: relative;
        transform-style: preserve-3d; animation: rotateCube 8s infinite linear;
    }
    .face {
        position: absolute; width: 24px; height: 24px;
        background: rgba(255,42,42,0.1); border: 1.5px solid var(--cn-primary);
    }
    .front  { transform: translateZ(12px); }
    .back   { transform: rotateY(180deg) translateZ(12px); }
    .right  { transform: rotateY(90deg) translateZ(12px); }
    .left   { transform: rotateY(-90deg) translateZ(12px); }
    .top    { transform: rotateX(90deg) translateZ(12px); }
    .bottom { transform: rotateX(-90deg) translateZ(12px); }
    @keyframes rotateCube {
        from { transform: rotateX(0) rotateY(0); }
        to   { transform: rotateX(360deg) rotateY(360deg); }
    }
    .brand-text {
        font-family: 'Montserrat', sans-serif; font-weight: 900;
        font-size: 1.6rem; color: #fff; text-transform: uppercase;
    }
    .brand-text span { color: var(--cn-primary); }

    /* Hamburger */
    .cn-hamburger { background: none; border: none; cursor: pointer; display: none; padding: 10px; z-index: 1002; }
    .hb-box { width: 30px; height: 24px; position: relative; }
    .hb-inner, .hb-inner::before, .hb-inner::after {
        width: 30px; height: 2px; background: #fff; position: absolute; transition: 0.3s;
    }
    .hb-inner { top: 50%; transform: translateY(-50%); }
    .hb-inner::before { content: ""; top: -8px; }
    .hb-inner::after  { content: ""; top: 8px; }
    .cn-hamburger.is-active .hb-inner { background: transparent; }
    .cn-hamburger.is-active .hb-inner::before { transform: rotate(45deg); top: 0; }
    .cn-hamburger.is-active .hb-inner::after  { transform: rotate(-45deg); top: 0; }

    /* Mobile Overlay */
    .cn-mobile-overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(3,3,3,0.98); backdrop-filter: blur(15px);
        z-index: 999; display: flex; align-items: center; justify-content: center;
        transform: translateX(100%); transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    }
    .cn-mobile-overlay.is-open { transform: translateX(0); }
    .overlay-content { width: 100%; padding-top: 60px; }
    .mobile-nav-list { display: flex; flex-direction: column; align-items: center; gap: 30px; }
    .mobile-nav-list a {
        color: #fff; font-size: 1.8rem; font-weight: 800;
        text-decoration: none; text-transform: uppercase; transition: 0.3s;
    }
    .mobile-nav-list a:hover { color: var(--cn-primary); }
    .m-divider { width: 40px; height: 2px; background: rgba(255,255,255,0.1); margin: 10px 0; }
    .m-special { color: var(--cn-primary) !important; }

    /* =============================================
       ANA KAPSAYICI
    ============================================= */
    .main-container {
        flex: 1; display: flex; flex-direction: column; align-items: center;
        padding: 110px 20px 80px; z-index: 2; position: relative; width: 100%;
    }
    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(30px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* =============================================
       ARAÇ HERO
    ============================================= */
    .tool-hero {
        text-align: center; max-width: 800px; width: 100%;
        margin-bottom: 50px;
        animation: fadeInUp 0.8s ease forwards;
    }
    .breadcrumb {
        display: inline-flex; align-items: center; gap: 8px;
        color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px;
    }
    .breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
    .breadcrumb a:hover { color: var(--primary); }
    .breadcrumb .sep { color: rgba(255,255,255,0.2); }
    .breadcrumb .current { color: var(--primary); font-weight: 700; }

    .tool-badge {
        display: inline-flex; align-items: center; gap: 8px;
        background: rgba(255,42,42,0.1); border: 1px solid rgba(255,42,42,0.3);
        color: var(--primary); padding: 6px 18px; border-radius: 50px;
        font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
        letter-spacing: 1px; margin-bottom: 20px;
    }
    .tool-hero h1 {
        font-family: 'Montserrat', sans-serif; font-weight: 900;
        font-size: 3.5rem; line-height: 1.1; margin-bottom: 18px;
        background: linear-gradient(135deg, #fff 0%, #4b4b4b 100%);
        -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    }
    .tool-hero h1 span {
        background: linear-gradient(135deg, #ff2a2a 0%, #ff8080 100%);
        -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    }
    .tool-hero p {
        color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; max-width: 600px; margin: 0 auto;
    }

    /* =============================================
       ARAÇ WRAPPER
    ============================================= */
    .tool-section {
        width: 100%; max-width: 1000px;
        animation: fadeInUp 1s ease forwards;
    }

    /* =============================================
       UPLOAD ZONE
    ============================================= */
    .upload-zone {
        border: 2px dashed rgba(255,42,42,0.3);
        border-radius: 20px; padding: 60px 40px;
        text-align: center; cursor: pointer;
        background: rgba(255,42,42,0.02);
        transition: all 0.3s ease;
        position: relative; overflow: hidden;
        margin-bottom: 20px;
    }
    .upload-zone::before {
        content: ''; position: absolute; inset: 0;
        background: radial-gradient(circle at 50% 0%, rgba(255,42,42,0.06), transparent 70%);
        pointer-events: none;
    }
    .upload-zone:hover, .upload-zone.drag-over {
        border-color: var(--primary);
        background: rgba(255,42,42,0.05);
        box-shadow: 0 0 40px rgba(255,42,42,0.1);
    }
    .upload-zone.drag-over { transform: scale(1.01); }
    .upload-icon {
        font-size: 3rem; color: var(--primary); margin-bottom: 20px; display: block;
        animation: pulseIcon 2.5s ease-in-out infinite;
    }
    @keyframes pulseIcon {
        0%, 100% { transform: scale(1);   opacity: 0.8; }
        50%       { transform: scale(1.1); opacity: 1; }
    }
    .upload-zone h3 {
        font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.4rem;
        margin-bottom: 10px; color: #fff;
    }
    .upload-zone p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 25px; }
    .upload-zone .format-hint {
        display: inline-flex; align-items: center; gap: 6px;
        background: rgba(255,42,42,0.08); border: 1px solid rgba(255,42,42,0.2);
        color: var(--text-muted); font-size: 0.8rem; padding: 6px 14px; border-radius: 20px;
        margin-bottom: 25px;
    }
    .upload-zone .format-hint i { color: var(--primary); }
    .btn-upload {
        display: inline-flex; align-items: center; gap: 10px;
        background: var(--primary); color: #fff; border: none; cursor: pointer;
        padding: 14px 32px; border-radius: 12px; font-family: 'Inter', sans-serif;
        font-weight: 700; font-size: 0.95rem; transition: all 0.3s ease;
        box-shadow: 0 8px 20px rgba(255,42,42,0.3);
    }
    .btn-upload:hover {
        background: var(--primary-hover); transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(255,42,42,0.4);
    }
    #fileInput { display: none; }

    /* =============================================
       DEFAULT GLYPH SEÇICI
    ============================================= */
    .default-bar {
        display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
        padding: 16px 20px;
        background: rgba(255,255,255,0.02); border: 1px solid var(--border-color);
        border-radius: 12px; flex-wrap: wrap;
    }
    .default-bar span {
        color: var(--text-muted); font-size: 0.9rem; font-weight: 600; margin-right: 4px;
    }
    .page-pills { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
    .page-pill {
        background: rgba(255,255,255,0.05); border: 1px solid var(--border-color);
        color: var(--text-muted); border-radius: 8px; padding: 6px 14px;
        font-family: var(--mono); font-size: 0.8rem; font-weight: 700;
        cursor: pointer; transition: all 0.25s ease; letter-spacing: 1px;
    }
    .page-pill:hover { border-color: rgba(255,42,42,0.4); color: var(--primary); background: rgba(255,42,42,0.06); }
    .page-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

    /* =============================================
       DOSYA BİLGİ ÇUBUĞU
    ============================================= */
    .file-info-bar {
        display: none; align-items: center; gap: 16px;
        background: rgba(255,42,42,0.06); border: 1px solid rgba(255,42,42,0.2);
        border-radius: 12px; padding: 14px 20px; margin-bottom: 20px;
    }
    .file-info-bar.visible { display: flex; }
    .file-info-bar .fi-icon { color: var(--primary); font-size: 1.2rem; }
    .file-info-bar .fi-name { font-weight: 700; font-size: 0.95rem; flex: 1; }
    .fi-page-badge {
        background: rgba(255,255,255,0.06); border: 1px solid var(--border-color);
        border-radius: 6px; padding: 4px 12px;
        font-family: var(--mono); font-size: 0.8rem; color: var(--text-muted);
    }
    .fi-page-badge span { color: var(--primary); font-weight: 700; }

    /* =============================================
       KONTROL ÇUBUĞU
    ============================================= */
    .controls-bar {
        display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
        background: rgba(255,255,255,0.02); border: 1px solid var(--border-color);
        border-radius: 14px; padding: 14px 18px; margin-bottom: 20px;
    }
    .ctrl-group {
        display: flex; align-items: center; gap: 10px;
        padding-right: 12px; border-right: 1px solid var(--border-color);
    }
    .ctrl-group:last-child { border-right: none; padding-right: 0; }
    .ctrl-label {
        font-size: 0.8rem; color: var(--text-muted); font-weight: 600;
        text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap;
    }

    /* Page input */
    .page-input {
        background: rgba(255,255,255,0.05); border: 1px solid var(--border-color);
        color: #fff; border-radius: 8px; padding: 8px 14px;
        font-family: var(--mono); font-size: 0.9rem; font-weight: 700;
        width: 80px; text-transform: uppercase; outline: none; transition: border-color 0.3s;
        letter-spacing: 2px;
    }
    .page-input:focus { border-color: var(--primary); }
    .page-input::placeholder { color: rgba(255,255,255,0.2); }

    /* Lookup input */
    .lookup-input {
        background: rgba(255,255,255,0.05); border: 1px solid var(--border-color);
        color: #fff; border-radius: 8px; padding: 8px 14px;
        font-family: var(--mono); font-size: 0.85rem; font-weight: 500;
        width: 130px; text-transform: uppercase; outline: none; transition: border-color 0.3s;
    }
    .lookup-input:focus { border-color: var(--primary); }
    .lookup-input::placeholder { color: rgba(255,255,255,0.2); }

    /* Toggle Switch */
    .toggle-wrap { display: flex; align-items: center; gap: 10px; }
    .toggle-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }
    .switch { position: relative; display: inline-block; width: 44px; height: 24px; }
    .switch input { opacity: 0; width: 0; height: 0; }
    .slider {
        position: absolute; cursor: pointer; inset: 0;
        background: rgba(255,255,255,0.08); border-radius: 24px; transition: 0.4s;
        border: 1px solid var(--border-color);
    }
    .slider::before {
        content: ''; position: absolute; height: 16px; width: 16px;
        left: 4px; bottom: 3px; background: var(--text-muted);
        border-radius: 50%; transition: 0.4s;
    }
    input:checked + .slider { background: rgba(255,42,42,0.3); border-color: var(--primary); }
    input:checked + .slider::before { transform: translateX(20px); background: var(--primary); }

    /* Ctrl Buttons */
    .ctrl-btn {
        display: inline-flex; align-items: center; gap: 8px;
        background: rgba(255,255,255,0.05); border: 1px solid var(--border-color);
        color: var(--text-muted); border-radius: 8px; padding: 8px 14px;
        font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 600;
        cursor: pointer; transition: all 0.25s; white-space: nowrap;
    }
    .ctrl-btn:hover { border-color: rgba(255,42,42,0.4); color: #fff; background: rgba(255,42,42,0.06); }
    .ctrl-btn.danger:hover { border-color: rgba(255,42,42,0.6); color: var(--primary); }
    .ctrl-btn.accent {
        background: rgba(255,42,42,0.1); border-color: rgba(255,42,42,0.3); color: var(--primary);
    }
    .ctrl-btn.accent:hover {
        background: rgba(255,42,42,0.2); border-color: var(--primary);
    }
    .ctrl-btn i { font-size: 0.85rem; }

    /* =============================================
       GLYPH IZGARA
    ============================================= */
    .grid-wrapper {
        background: rgba(10,10,10,0.6); border: 1px solid var(--border-color);
        border-radius: 16px; padding: 16px; margin-bottom: 20px;
        backdrop-filter: blur(10px);
    }
    .grid-header {
        display: flex; align-items: center; justify-content: space-between;
        margin-bottom: 14px;
    }
    .grid-title {
        font-family: var(--mono); font-size: 0.85rem; color: var(--text-muted);
        font-weight: 500;
    }
    .grid-title span { color: var(--primary); font-weight: 700; }
    .grid-counter {
        font-family: var(--mono); font-size: 0.75rem; color: rgba(255,255,255,0.2);
    }

    .glyph-grid {
        display: grid;
        grid-template-columns: repeat(16, 1fr);
        gap: 3px;
        width: 100%;
    }

    .glyph-cell {
        aspect-ratio: 1;
        background-color: rgba(255,255,255,0.03);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        image-rendering: pixelated;
        image-rendering: crisp-edges;
        border-radius: 5px;
        border: 1px solid rgba(255,255,255,0.04);
        cursor: pointer;
        position: relative;
        transition: all 0.2s ease;
        overflow: hidden;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }
    .glyph-cell::after {
        content: '';
        position: absolute; inset: 0;
        background: var(--primary);
        opacity: 0;
        border-radius: 4px;
        transition: opacity 0.2s;
    }
    .glyph-cell:hover {
        border-color: rgba(255,42,42,0.5);
        transform: scale(1.15);
        z-index: 10;
        box-shadow: 0 4px 20px rgba(255,42,42,0.4);
    }
    .glyph-cell:hover::after { opacity: 0.15; }
    .glyph-cell.copied {
        border-color: var(--primary) !important;
        animation: flashCopied 0.35s ease;
    }
    .glyph-cell.highlighted {
        border-color: var(--primary);
        box-shadow: 0 0 15px rgba(255,42,42,0.5);
        animation: pulse 0.8s ease 2;
    }
    @keyframes flashCopied {
        0%   { transform: scale(1); }
        40%  { transform: scale(1.25); background: rgba(255,42,42,0.25); }
        100% { transform: scale(1); }
    }
    @keyframes pulse {
        0%, 100% { box-shadow: 0 0 10px rgba(255,42,42,0.4); }
        50%       { box-shadow: 0 0 25px rgba(255,42,42,0.8); }
    }
    .cell-hex {
        position: absolute; bottom: 0; left: 0; right: 0;
        font-family: var(--mono); font-size: 6px;
        color: rgba(255,255,255,0.3);
        text-align: center; padding: 1px 0;
        background: rgba(0,0,0,0.5);
        z-index: 1; line-height: 1.2;
        pointer-events: none;
        transition: opacity 0.2s;
    }
    .glyph-cell:hover .cell-hex { opacity: 0; }
    /* Empty cell (no image) */
    .glyph-cell.empty-cell {
        background: rgba(255,255,255,0.02);
    }
    .glyph-cell.empty-cell:hover {
        background: rgba(255,42,42,0.05);
    }

    /* =============================================
       KARAKTER DETAY PANELİ
    ============================================= */
    .char-detail {
        display: none; align-items: center; gap: 20px;
        background: rgba(255,42,42,0.04); border: 1px solid rgba(255,42,42,0.15);
        border-radius: 14px; padding: 20px 24px; margin-bottom: 20px;
        animation: fadeInUp 0.3s ease;
        flex-wrap: wrap;
    }
    .char-detail.visible { display: flex; }

    .char-preview-box {
        width: 72px; height: 72px; flex-shrink: 0;
        border-radius: 10px; border: 2px solid rgba(255,42,42,0.3);
        background: rgba(0,0,0,0.4);
        display: flex; align-items: center; justify-content: center;
        image-rendering: pixelated;
        overflow: hidden;
        position: relative;
    }
    .char-preview-box img {
        width: 100%; height: 100%;
        object-fit: contain; image-rendering: pixelated;
    }
    .char-preview-box .char-preview-text {
        font-size: 2.5rem; line-height: 1;
        color: var(--primary);
    }
    .char-preview-placeholder {
        font-size: 0.65rem; color: rgba(255,255,255,0.2); text-align: center; line-height: 1.4;
    }

    .char-info { flex: 1; }
    .char-info-row { display: flex; gap: 24px; flex-wrap: wrap; }
    .char-info-item { min-width: 90px; }
    .char-info-item label {
        display: block; font-size: 0.7rem; color: var(--text-muted);
        text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px;
    }
    .char-info-item .val {
        font-family: var(--mono); font-size: 0.95rem; font-weight: 700; color: #fff;
    }
    .char-info-item .val.accent { color: var(--primary); }

    .char-copy-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
    .char-copy-btn {
        display: inline-flex; align-items: center; gap: 8px;
        background: rgba(255,255,255,0.05); border: 1px solid var(--border-color);
        color: var(--text-muted); border-radius: 8px; padding: 8px 16px;
        font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 600;
        cursor: pointer; transition: all 0.25s;
    }
    .char-copy-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(255,42,42,0.06); }
    .char-copy-btn.primary-btn {
        background: rgba(255,42,42,0.1); border-color: rgba(255,42,42,0.3); color: var(--primary);
    }
    .char-copy-btn.primary-btn:hover { background: rgba(255,42,42,0.2); border-color: var(--primary); }

    /* =============================================
       KILAVUZ
    ============================================= */
    .guide-section {
        width: 100%; max-width: 1000px; margin-top: 80px;
        border-top: 1px solid rgba(255,255,255,0.05); padding-top: 50px;
    }
    .guide-section h2 {
        text-align: center; font-size: 2rem; margin-bottom: 50px;
        font-family: 'Montserrat', sans-serif; text-transform: uppercase;
    }
    .guide-grid {
        display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px; align-items: stretch;
    }
    .guide-step {
        background: rgba(20,20,20,0.5); border: 1px solid rgba(255,255,255,0.05);
        border-radius: 16px; padding: 30px 25px 25px; position: relative;
        text-align: center; display: flex; flex-direction: column;
        transition: all 0.4s ease; backdrop-filter: blur(10px);
    }
    .guide-step:hover {
        transform: translateY(-8px); border-color: rgba(255,42,42,0.3);
        box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    }
    .step-number {
        position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
        background: var(--primary); width: 40px; height: 40px;
        display: flex; align-items: center; justify-content: center;
        border-radius: 50%; font-weight: 800; font-size: 1.1rem; color: #fff;
        box-shadow: 0 5px 15px rgba(255,42,42,0.4); border: 3px solid var(--bg-dark);
    }
    .step-image-wrapper {
        width: 100%; height: 160px; margin-bottom: 20px; border-radius: 8px;
        overflow: hidden; border: 1px solid rgba(255,255,255,0.1);
        display: flex; align-items: center; justify-content: center;
        background: rgba(255,42,42,0.04);
    }
    .step-image-wrapper i {
        font-size: 3.5rem; color: rgba(255,42,42,0.3);
    }
    .step-image-wrapper img {
        width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease;
    }
    .guide-step:hover .step-image-wrapper img { transform: scale(1.08); }
    .step-content { flex-grow: 1; display: flex; flex-direction: column; }
    .step-content h3 { margin-bottom: 12px; font-size: 1.25rem; font-family: 'Montserrat', sans-serif; }
    .step-content p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 0; }

    /* =============================================
       FOOTER
    ============================================= */
    .cn-footer { background: #050505; border-top: 1px solid rgba(255,255,255,0.03); padding-top: 80px; z-index: 5; position: relative; }
    .footer-top-cta { max-width: 1200px; margin: -140px auto 60px; padding: 0 20px; }
    .cta-card {
        background: linear-gradient(135deg, rgba(255,42,42,0.1) 0%, rgba(10,10,10,0.8) 100%);
        border: 1px solid rgba(255,42,42,0.2); backdrop-filter: blur(20px);
        border-radius: 24px; padding: 40px; display: flex;
        justify-content: space-between; align-items: center;
    }
    .cta-text h3 { font-size: 1.8rem; color: #fff; margin-bottom: 8px; }
    .cta-text p  { color: #a1a1aa; }
    .cta-button {
        background: var(--cn-primary); color: #fff; text-decoration: none;
        padding: 15px 35px; border-radius: 12px; font-weight: 700; transition: 0.3s;
        box-shadow: 0 10px 20px rgba(255,42,42,0.2); white-space: nowrap;
    }
    .cta-button:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(255,42,42,0.4); }
    .footer-grid {
        max-width: 1200px; margin: 0 auto;
        display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 80px; padding: 0 20px 60px;
    }
    .footer-brand-info p { color: #71717a; margin-top: 15px; max-width: 300px; }
    .footer-group h4 { color: #fff; margin-bottom: 25px; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }
    .footer-group ul { list-style: none; }
    .footer-group li { margin-bottom: 12px; }
    .footer-group a { color: #71717a; text-decoration: none; transition: 0.3s; }
    .footer-group ul li a:hover { color: #a41010; padding-left: 5px; }
    .footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding: 30px 20px; }
    .bottom-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; color: #52525b; font-size: 0.9rem; }
    .system-status { display: flex; align-items: center; gap: 10px; color: #10b981; font-weight: 700; }
    .status-pulse { width: 8px; height: 8px; background: #10b981; border-radius: 50%; animation: statusPulse 2s infinite; }
    @keyframes statusPulse {
        0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
        50%       { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
    }

    /* =============================================
       RESPONSIVE
    ============================================= */
    @media (max-width: 992px) {
        .cn-nav { display: none; }
        .cn-hamburger { display: block; }
        .cn-logo-wrapper { position: absolute; left: 50%; transform: translateX(-50%); }
        .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
        .footer-brand-info p { margin: 15px auto; }
    }
    @media (max-width: 768px) {
        .cn-logo-wrapper { position: static; transform: none; }
        .tool-hero h1 { font-size: 2.4rem; }
        .main-container { padding: 100px 15px 60px; }
        .controls-bar { gap: 8px; }
        .ctrl-group { border-right: none; padding-right: 0; }
        .cta-card { flex-direction: column; text-align: center; gap: 20px; }
        .glyph-grid { gap: 2px; }
        .char-detail { flex-direction: column; }
        .char-info-row { gap: 14px; }
    }
    @media (max-width: 480px) {
        .cn-header-container { padding: 0 15px; }
        .brand-text { font-size: 1.3rem; }
        .tool-hero h1 { font-size: 1.9rem; }
        .bottom-container { flex-direction: column; gap: 15px; }
        .glyph-grid { gap: 1px; }
        .glyph-cell { border-radius: 3px; }
        .upload-zone { padding: 40px 20px; }
    }