/* ============================
   CSS VARIABLES
============================ */
:root {
    --primary: #39FF14;
    --primary-dim: rgba(57, 255, 20, 0.1);
    --bg-dark: #050505;
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #888888;
    --nav-height: 90px;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

/* ============================
   RESET & BASE
============================ */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
}

body {
    background-color: #000;
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    height: 100vh; 
    width: 100vw;
}

/* ============================
   BACKGROUND EFFECTS
============================ */
.orb { 
    position: fixed; 
    border-radius: 50%; 
    filter: blur(80px); 
    z-index: -1; 
    opacity: 0.2; 
    animation: float 10s infinite alternate; 
}

.orb-1 { 
    top: -10%; 
    left: -10%; 
    width: 50vw; 
    height: 50vw; 
    background: var(--primary); 
}

.orb-2 { 
    bottom: -10%; 
    right: -10%; 
    width: 40vw; 
    height: 40vw; 
    background: #004400; 
    animation-delay: -5s; 
}

.noise-overlay { 
    position: fixed; 
    inset: 0; 
    pointer-events: none; 
    z-index: -1; 
    opacity: 0.05; 
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MDAiIGhlaWdodD0iNDAwIj48ZmlsdGVyIGlkPSJnoiPjxmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjY1IiAvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNnKSIgb3BhY2l0eT0iMC41Ii8+PC9zdmc+'); 
}

@keyframes float { 
    from { transform: translate(0, 0); } 
    to { transform: translate(30px, 50px); } 
}

/* ============================
   CONTAINER
============================ */
.app-container {
    overflow-x: hidden;
    width: 100%; 
    height: 100%; 
    position: relative;
    padding-bottom: calc(var(--nav-height) + 40px);
    overflow-y: auto; 
    scroll-behavior: smooth;
}

.app-container::-webkit-scrollbar { width: 4px; }
.app-container::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }

/* ============================
   PAGE SECTIONS (SPA)
============================ */
.page-section {
    display: none; 
    padding: 20px; 
    max-width: 800px; 
    margin: 0 auto;
    animation: fadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-section.active { display: block; }

@keyframes fadeUp { 
    from { opacity: 0; transform: translateY(20px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* ============================
   PROFILE HEADER
============================ */
.profile-header {
    position: relative; 
    overflow: hidden;
    border-radius: 24px; 
    border: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.6); 
    backdrop-filter: blur(10px);
    margin-bottom: 24px; 
    text-align: left;
}

.profile-meta-row {
    display: flex; 
    align-items: flex-end; 
    padding: 20px;
    position: relative; 
    z-index: 10; 
    gap: 20px;
}

.user-identity { 
    padding-top: 10px; 
    padding-bottom: 5px; 
}

.username-sm { 
    font-family: var(--font-heading); 
    font-size: 1.8rem; 
    font-weight: 800; 
    color: #fff; 
    line-height: 1; 
    margin: 0; 
}

.verified-badge-sm { 
    width: 22px; 
    height: 22px; 
    margin-left: 6px; 
    vertical-align: middle;
    display: inline-block;
    color: #1DA1F2;
    filter: drop-shadow(0 0 8px currentColor);
    animation: verifiedPulse 2s infinite;
}

@keyframes verifiedPulse {
    0%, 100% { 
        filter: drop-shadow(0 0 8px currentColor);
    }
    50% { 
        filter: drop-shadow(0 0 12px currentColor);
    }
}

.bio-container { 
    padding: 15px 25px 25px; 
}

.bio-quote { 
    font-style: italic; 
    color: var(--primary); 
    font-size: 0.95rem; 
    margin-bottom: 15px; 
}

.social-simple-row { 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap; 
    align-items: center;
}

.btn-pill {
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    padding: 8px 16px;
    border-radius: 50px; 
    font-size: 0.8rem; 
    font-weight: 600; 
    text-decoration: none;
    background: rgba(255,255,255,0.1); 
    color: #fff; 
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.2s;
}

.btn-pill:hover { 
    background: #fff; 
    color: #000; 
    transform: translateY(-2px); 
}

.btn-pill.primary { 
    background: var(--primary); 
    color: #000; 
    border: none; 
}

.visitor-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}

/* ============================
   CONTENT FEED
============================ */
.content-feed { 
    padding: 0 10px; 
}

.fun-fact-box {
    background: linear-gradient(90deg, rgba(57, 255, 20, 0.05) 0%, rgba(0,0,0,0) 100%);
    border-left: 4px solid var(--primary);
    border-top: 1px solid rgba(57, 255, 20, 0.1);
    border-bottom: 1px solid rgba(57, 255, 20, 0.1);
    border-right: 1px solid rgba(57, 255, 20, 0.05);
    border-radius: 0 12px 12px 0;
    padding: 20px; 
    margin: 25px 0; 
    position: relative;
}

.fun-fact-box .box-title {
    font-weight: 800; 
    color: var(--primary); 
    font-family: var(--font-heading);
    margin-bottom: 10px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    letter-spacing: 1px;
}

.fun-fact-box p { 
    font-size: 0.9rem; 
    line-height: 1.6; 
    color: #ddd; 
    margin: 0; 
}

/* ============================
   EDITOR
============================ */
.editor-container {
    display: flex;
    flex-direction: column;
}
.editor-header-sticky {
    position: sticky;
    top: 0;
    /* Gunakan z-index yang lebih tinggi dari orb (orb kamu z-index -1, ini 1000) */
    z-index: 1000; 
    
    /* Gunakan warna hitam pekat (solid), bukan transparan */
    background-color: #000000; 
    
    /* Paksa lebar melampaui padding container agar mentok ke layar */
    margin-left: -20px; 
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
    
    padding-top: 15px;
    padding-bottom: 15px;
    
    /* Garis bawah tipis agar tetap elegan */
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 20px;
}


.editor-actions-wrapper {
    position: fixed; 
    top: 20px; 
    right: 20px; 
    z-index: 100;
}

.btn-publish {
    background: #fff; 
    color: #000; 
    padding: 10px 20px; 
    border-radius: 25px;
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    border: none; 
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255,255,255,0.2); 
    transition: 0.3s;
}

.btn-publish:hover { 
    background: var(--primary); 
    box-shadow: 0 0 20px var(--primary); 
    transform: scale(1.05);
}

/* FORMAT TOOLBAR */
.format-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 10px; /* Kurangi margin bawah */
    backdrop-filter: blur(10px);
    /* Hapus position sticky di sini karena sudah ikut container induk */
}

#ph-title {
    font-size: 2.2rem; 
    font-weight: 700;
    margin-bottom: 5px; /* Kurangi jarak */
}

.toolbar-group {
    display: flex;
    gap: 4px;
}

.toolbar-divider {
    width: 1px;
    background: var(--glass-border);
    margin: 0 4px;
}

.toolbar-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    color: #999;
}

.toolbar-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: var(--glass-border);
}

.toolbar-btn:active {
    background: var(--primary);
    color: #000;
}

.toolbar-btn svg {
    width: 20px;
    height: 20px;
}

.ph-input {
    width: 100%; 
    background: transparent; 
    border: none; 
    outline: none;
    color: var(--text-main); 
    font-family: var(--font-heading);
    margin-bottom: 10px; 
    display: block;
}

#ph-title {
    font-size: 2.2rem; 
    font-weight: 700;
}

#ph-title::placeholder { 
    color: #555; 
}

#ph-author {
    font-size: 1rem; 
    color: var(--primary); 
    font-family: var(--font-body); 
    margin-bottom: 25px;
    margin-top: 10px;
}

#ph-author::placeholder { 
    color: #444; 
}

#ph-content {
    font-size: 1.1rem; 
    line-height: 1.8; 
    color: #ddd;
    min-height: 300px; 
    outline: none;
}

#ph-content:empty:before {
    content: 'Write your story...'; 
    color: #444; 
    display: block;
}

#ph-content p { margin-bottom: 15px; }
#ph-content b, #ph-content strong { color: #fff; font-weight: 700; }
#ph-content i, #ph-content em { color: #aaa; font-style: italic; }
#ph-content u { text-decoration: underline; }
#ph-content s { text-decoration: line-through; }
#ph-content h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 30px 0 15px 0;
    color: #fff;
}
#ph-content blockquote {
    border-left: 3px solid var(--primary); 
    padding-left: 15px; 
    color: var(--primary); 
    margin: 20px 0;
    font-style: italic;
}
#ph-content ul, #ph-content ol { margin: 15px 0; padding-left: 25px; }
#ph-content li { margin-bottom: 8px; }
#ph-content a { color: var(--primary); text-decoration: underline; }
#ph-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    display: block;
}
#ph-content .media-wrapper {
    position: relative;
    margin: 20px 0;
}
#ph-content .media-delete {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 68, 68, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}
#ph-content .media-wrapper:hover .media-delete { opacity: 1; }

/* ============================
   ARTICLE CARDS
============================ */
.article-card {
    background: rgba(255,255,255,0.03); 
    border: 1px solid var(--glass-border);
    border-radius: 16px; 
    padding: 20px; 
    margin-bottom: 15px; 
    transition: 0.3s;
    cursor: pointer; 
    position: relative; 
    overflow: hidden;
}

.article-card:hover { 
    border-color: var(--primary); 
    transform: translateY(-3px); 
}

.article-title { 
    font-family: var(--font-heading); 
    font-size: 1.2rem; 
    font-weight: 700; 
    margin-bottom: 8px; 
    color: #fff; 
}

.article-meta { 
    font-size: 0.75rem; 
    color: #666; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.author-with-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.verified-badge-inline {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px currentColor);
}

.article-snippet { 
    font-size: 0.9rem; 
    color: #999; 
    margin-top: 10px; 
    line-height: 1.5;
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden;
}

/* ============================
   READ PAGE
============================ */
#read-header {
    position: sticky;
    top: 0;
    background: transparent;
    backdrop-filter: blur(20px);
    z-index: 100;
    padding: 15px 0 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(57, 255, 20, 0.2);
}

.read-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.read-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--glass-border);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.read-action-btn:hover {
    background: var(--primary);
    color: #000;
    transform: scale(1.1);
    border-color: var(--primary);
}

.read-action-btn svg {
    width: 20px;
    height: 20px;
}

.read-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.2;
}

.read-meta {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

#read-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ddd;
}

#read-body p { margin-bottom: 15px; }
#read-body b, #read-body strong { color: #fff; font-weight: 700; }
#read-body i, #read-body em { color: #aaa; font-style: italic; }
#read-body u { text-decoration: underline; }
#read-body s { text-decoration: line-through; }
#read-body h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 30px 0 15px 0;
    color: #fff;
}
#read-body blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 15px;
    color: var(--primary);
    margin: 20px 0;
    font-style: italic;
}
#read-body ul, #read-body ol { margin: 15px 0; padding-left: 25px; }
#read-body li { margin-bottom: 8px; }
#read-body a { color: var(--primary); text-decoration: underline; }
#read-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    display: block;
}

/* ============================
   MODALS
============================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(20,20,20,0.95);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.modal-content p {
    color: #999;
    margin-bottom: 25px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-modal {
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-modal.cancel {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.btn-modal.cancel:hover {
    background: rgba(255,255,255,0.2);
}

.btn-modal.confirm {
    background: #ff4444;
    color: #fff;
}

.btn-modal.confirm:hover {
    background: #ff0000;
    box-shadow: 0 0 20px rgba(255,68,68,0.5);
}

.gallery-modal {
    max-width: 900px;
    width: 95%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.modal-header h3 {
    margin: 0;
    text-align: left;
}

.close-btn {
    background: transparent;
    border: none;
    color: #999;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.close-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.gallery-upload {
    margin-bottom: 20px;
}

.btn-upload {
    width: 100%;
    padding: 15px;
    background: rgba(57, 255, 20, 0.1);
    border: 2px dashed var(--primary);
    border-radius: 12px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-upload:hover {
    background: var(--primary);
    color: #000;
}

.btn-upload svg {
    width: 24px;
    height: 24px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
}

.gallery-grid.active { display: grid; }

.gallery-grid::-webkit-scrollbar { width: 6px; }
.gallery-grid::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    padding: 40px 20px;
    font-style: italic;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
}

.gallery-item:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-delete {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 68, 68, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
    z-index: 10;
}

.gallery-item:hover .gallery-item-delete { opacity: 1; }

.share-modal {
    max-width: 500px;
    width: 90%;
}

.share-url-box {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.05);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.share-url-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 0.85rem;
    outline: none;
    font-family: monospace;
}

.btn-copy {
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-copy:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--primary);
}

.btn-copy svg {
    width: 16px;
    height: 16px;
}

/* ============================
   NAVIGATION
============================ */
.glass-nav {
    position: fixed; 
    bottom: 30px; 
    left: 50%; 
    transform: translateX(-50%);
    width: auto; 
    padding: 12px 30px;
    background: rgba(10, 10, 10, 0.6); 
    backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.1); 
    border-top: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px; 
    z-index: 1000;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.nav-list { 
    display: flex; 
    align-items: center; 
    gap: 30px; 
    list-style: none; 
    margin: 0; 
    padding: 0; 
}

.nav-item { 
    cursor: pointer; 
    color: rgba(255,255,255,0.4); 
    transition: 0.3s; 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.nav-icon svg { 
    width: 24px; 
    height: 24px; 
    fill: currentColor; 
    transition: 0.3s; 
}

.nav-item:hover { 
    color: #fff; 
    transform: translateY(-3px); 
}

.nav-item.active { 
    color: var(--primary); 
}

.nav-item.active svg { 
    filter: drop-shadow(0 0 8px var(--primary)); 
    transform: scale(1.1); 
}

.nav-item.active::after {
    content: ''; 
    position: absolute; 
    bottom: -8px; 
    width: 4px; 
    height: 4px;
    background: var(--primary); 
    border-radius: 50%; 
    box-shadow: 0 0 8px var(--primary);
}

.nav-external .nav-logo-center {
    width: 38px; 
    height: 38px;
    background: var(--primary); 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: #000; 
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-external:hover .nav-logo-center { 
    transform: scale(1.2) translateY(-5px); 
    box-shadow: 0 0 25px var(--primary); 
}

.nav-external svg { 
    width: 20px; 
    height: 20px; 
    fill: #000; 
}

/* ============================
   RESPONSIVE DESIGN
============================ */
@media (max-width: 768px) {
    .read-title {
        font-size: 1.8rem;
    }
    
    .article-title {
        font-size: 1.1rem;
    }
    
    #ph-title {
        font-size: 1.8rem;
    }
    
    .username-sm {
        font-size: 1.5rem;
    }
    
    .format-toolbar {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .toolbar-btn {
        flex-shrink: 0;
    }
}

@media (max-width: 600px) {
    #page-discovery.page-section { 
        padding: 0 !important; 
        margin: 0 !important; 
        width: 100%; 
        max-width: 100%; 
    }
    
    .profile-header {
        width: 100%; 
        margin: 0; 
        border-radius: 0 0 35px 35px;
        border: none; 
        border-bottom: 1px solid var(--glass-border);
    }
    
    .content-feed { 
        padding: 0 20px 100px 20px; 
        margin-top: 20px; 
    }
    
    .glass-nav { 
        bottom: 20px; 
        width: 90%; 
        padding: 12px 0; 
        justify-content: center; 
        display: flex;
    }
    
    .nav-list { 
        width: 100%; 
        justify-content: space-evenly; 
        gap: 0; 
    }
    
    #page-write { 
        padding: 25px; 
        padding-bottom: 120px; 
    }
    
    .editor-actions-wrapper { 
        position: fixed;
        top: auto; 
        bottom: 90px; 
        right: 20px; 
    }
    
    .btn-publish { 
        padding: 12px 24px; 
        border-radius: 50px; 
    }
    
    .format-toolbar::-webkit-scrollbar {
        height: 4px;
    }
    
    .format-toolbar::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 10px;
    }
    
    .toolbar-btn {
        width: 32px;
        height: 32px;
    }
    
    .gallery-modal {
        max-height: 90vh;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
        max-height: 300px;
    }
    
    /* Read Page Mobile */
    #read-header {
        padding: 10px 0 15px 0;
    }
    
    .read-actions {
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .read-action-btn {
        width: 36px;
        height: 36px;
    }
    
    .read-action-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .read-title {
        font-size: 1.5rem;
    }
    
    .share-modal {
        max-width: 95%;
    }
    
    .share-url-box {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-copy {
        width: 100%;
        justify-content: center;
    }
}
#textColorInput {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
