/* ==========================================================================
   BongoEye Telegram Article Panel - Fully Responsive Stylesheet
   ========================================================================== */
:root {
    --bg-dark: #0e1621;
    --bg-surface: #17212b;
    --bg-elevated: #242f3d;
    --bg-hover: #1d2733;
    --color-primary: #2b5278;
    --color-primary-hover: #356291;
    --color-accent: #2aacc8;
    --color-accent-hover: #38c2e0;
    --color-text-main: #ffffff;
    --color-text-muted: #7f91a4;
    --color-border: #1a2533;
    --tab-bar-height: 52px;
    --toolbar-height: 56px;
    --app-height: 100dvh;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    color: var(--color-text-main);
    overflow: hidden;
}

.app-container {
    width: 100%;
    height: 100%;
    height: var(--app-height, 100dvh);
    background-color: var(--bg-surface);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
    z-index: 60;
    gap: 10px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #0088cc 0%, #2aacc8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(42, 172, 200, 0.4);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.2s;
}

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

.avatar img.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.title-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.channel-name-input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    width: 100%;
    max-width: 140px;
    margin-bottom: 2px;
}

.header-role-badge {
    font-size: 10px;
    background: rgba(76, 175, 80, 0.15);
    color: #66bb6a;
    border: 1px solid rgba(76, 175, 80, 0.35);
    padding: 1px 6px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    transition: all 0.2s ease;
}

.header-role-badge.public {
    background: rgba(76, 175, 80, 0.18);
    color: #66bb6a;
    border-color: rgba(76, 175, 80, 0.35);
}

.header-role-badge.private {
    background: rgba(255, 167, 38, 0.18);
    color: #ffa726;
    border-color: rgba(255, 167, 38, 0.35);
}

.header-role-badge.draft {
    background: rgba(42, 172, 200, 0.18);
    color: #2aacc8;
    border-color: rgba(42, 172, 200, 0.35);
}

.category-container {
    position: relative;
    width: 100%;
    max-width: 180px;
}

#category-input {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 12px;
    outline: none;
    width: 100%;
    transition: color 0.15s;
}

#category-input:focus {
    color: var(--color-accent);
}

#category-input::placeholder {
    color: var(--color-text-muted);
}

.dropdown-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    width: 220px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 150;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.dropdown-item {
    padding: 9px 14px;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-item:hover {
    background: var(--color-primary);
}

/* Privacy Selector Segmented Control */
.editor-privacy-selector {
    display: inline-flex;
    background: #0e1621;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 3px;
    gap: 3px;
}

.privacy-option-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.privacy-option-btn:hover {
    color: #fff;
}

.privacy-option-btn[data-privacy="public"].active {
    background: rgba(76, 175, 80, 0.2);
    color: #66bb6a;
    border: 1px solid rgba(76, 175, 80, 0.45);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.25);
}

.privacy-option-btn[data-privacy="private"].active {
    background: rgba(255, 167, 38, 0.2);
    color: #ffa726;
    border: 1px solid rgba(255, 167, 38, 0.45);
    box-shadow: 0 2px 8px rgba(255, 167, 38, 0.25);
}

.privacy-option-btn[data-privacy="draft"].active {
    background: rgba(42, 172, 200, 0.2);
    color: #2aacc8;
    border: 1px solid rgba(42, 172, 200, 0.45);
    box-shadow: 0 2px 8px rgba(42, 172, 200, 0.25);
}

/* Author Publishing Identity Bar */
.author-identity-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 18px;
    background: #111a24;
    border-bottom: 1px solid var(--color-border);
    font-size: 12px;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.identity-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.identity-label {
    color: var(--color-text-muted);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.identity-button-group {
    display: inline-flex;
    background: var(--bg-dark);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 2px;
    gap: 3px;
}

.identity-pill-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.identity-pill-btn:hover {
    color: #fff;
}

.identity-pill-btn.active {
    background: var(--color-primary);
    border-color: var(--color-accent);
    color: #fff;
}

.identity-avatar-mini {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0088cc;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.identity-avatar-mini.website {
    background: linear-gradient(135deg, #0088cc 0%, #2aacc8 100%);
}

.status-indicator-chip {
    font-size: 11px;
    color: #8ab4f8;
    background: rgba(42, 172, 200, 0.08);
    border: 1px solid rgba(42, 172, 200, 0.2);
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.icon-btn {
    font-size: 17px;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
    text-decoration: none;
}

.icon-btn:hover {
    color: #fff;
    background: var(--bg-elevated);
}

.action-btn {
    background: var(--bg-elevated);
    border: none;
    color: var(--color-text-muted);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 13px;
}

.action-btn:hover {
    color: #fff;
    background: var(--color-primary);
}

.action-btn:disabled, .action-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: var(--bg-elevated);
    color: var(--color-text-muted);
}

/* Main Content Layout */
.main-content-layout {
    display: flex;
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.editor-column {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    min-height: 0;
    background-color: var(--bg-surface);
    position: relative;
    overflow: hidden;
}

.editor-container {
    flex: 1;
    padding: 16px 20px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    position: relative;
    display: flex;
    flex-direction: column;
}

.title-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 22px;
    font-weight: 700;
    color: #8ab4f8;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.title-input::placeholder {
    color: #4f5d6d;
}

.editor-content {
    width: 100%;
    flex: 1;
    min-height: 240px;
    outline: none;
    font-size: 16px;
    line-height: 1.7;
    color: #e1e9f1;
    word-break: break-word;
}

.editor-content[placeholder]:empty:before {
    content: attr(placeholder);
    color: #5d6f82;
    cursor: text;
}

.editor-content a {
    color: #2aacc8;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.15s;
}

.editor-content a:hover {
    color: #58d3ee;
}

.editor-figure {
    margin: 14px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    user-select: none;
}

.editor-figure img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: outline 0.15s;
}

.editor-figure.selected img {
    outline: 2px solid var(--color-accent);
}

.editor-figure figcaption {
    margin-top: 6px;
    font-size: 13px;
    color: var(--color-text-muted);
    font-style: italic;
    text-align: center;
    width: 100%;
    outline: none;
    padding: 2px 8px;
    border-radius: 4px;
}

.editor-figure figcaption:empty:before {
    content: attr(placeholder);
    color: #5a6e82;
}

.editor-figure figcaption:focus {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.link-preview-box {
    margin: 14px 0;
    background: #111a24;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-accent);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    gap: 14px;
    position: relative;
    user-select: none;
}

.link-preview-thumb {
    width: 100px;
    height: 75px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #0e1621;
}

.link-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-preview-content {
    flex: 1;
    min-width: 0;
}

.link-preview-site {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.link-preview-title {
    font-size: 14px;
    font-weight: 700;
    color: #8ab4f8;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    line-height: 1.3;
}

.link-preview-title:hover {
    text-decoration: underline;
}

.link-preview-desc {
    font-size: 12px;
    color: #a0b2c6;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-remove-preview {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: var(--color-text-muted);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.15s;
}

.btn-remove-preview:hover {
    background: #ef5350;
    color: #fff;
}

.editor-content hr {
    border: none;
    height: 1px;
    background: #2a3b4c;
    margin: 18px 0;
}

/* Toolbar */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--color-border);
    flex-shrink: 0;
    z-index: 50;
    position: relative;
    gap: 8px;
}

.tools-left {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0;
}

.tools-left::-webkit-scrollbar {
    display: none;
}

.toolbar-separator {
    width: 1px;
    height: 22px;
    background-color: var(--color-border);
    margin: 0 4px;
    flex-shrink: 0;
}

.tool-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 15px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    font-weight: 600;
    flex-shrink: 0;
}

.tool-btn:hover {
    color: #fff;
    background-color: var(--bg-elevated);
}

.tool-btn:active, .tool-btn.active {
    color: var(--color-accent);
    background-color: rgba(42, 172, 200, 0.15);
    border: 1px solid rgba(42, 172, 200, 0.3);
}

.send-btn {
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, background-color 0.2s;
    flex-shrink: 0;
    font-size: 15px;
}

.send-btn:hover {
    background-color: var(--color-primary-hover);
    transform: scale(1.05);
}

.send-btn:active {
    transform: scale(0.95);
}

.tab-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--color-border);
    flex-shrink: 0;
    height: var(--tab-bar-height);
    z-index: 50;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 6px;
    transition: color 0.15s;
    text-decoration: none;
}

.tab-item i {
    font-size: 17px;
    margin-bottom: 2px;
}

.tab-item.active {
    color: var(--color-accent);
}

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

/* Desktop Sidebar */
.desktop-sidebar {
    display: none;
    width: 360px;
    background-color: #111a24;
    border-left: 1px solid var(--color-border);
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-card {
    background: var(--bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 16px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: #e1e9f1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i {
    color: var(--color-accent);
}

.status-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.status-badge.online {
    background: rgba(76, 175, 80, 0.15);
    color: #66bb6a;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-badge.pending {
    background: rgba(255, 167, 38, 0.15);
    color: #ffa726;
    border: 1px solid rgba(255, 167, 38, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.stat-box {
    background: var(--bg-dark);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 18px;
    font-weight: 700;
    color: #8ab4f8;
}

.stat-label {
    font-size: 10px;
    color: var(--color-text-muted);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.refresh-posts-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 13px;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s;
}

.refresh-posts-btn:hover {
    color: #fff;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
}

.empty-posts-hint {
    color: var(--color-text-muted);
    font-size: 12px;
    text-align: center;
    padding: 16px 0;
}

.sidebar-post-item {
    background: var(--bg-dark);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.sidebar-post-item:hover {
    background: var(--bg-elevated);
    border-color: var(--color-accent);
}

.sidebar-post-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--color-text-muted);
}

.popup-menu {
    position: absolute;
    background-color: #242f3d;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    padding: 8px 0;
    z-index: 120;
    border: 1px solid #1a2533;
}

#mention-dropdown {
    position: absolute;
    width: 240px;
    max-height: 250px;
    overflow-y: auto;
    background: #242f3d;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    z-index: 160;
}

.mention-item {
    padding: 8px 12px;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s;
}

.mention-item:hover, .mention-item.selected {
    background: var(--color-primary);
    color: #fff;
}

.mention-item i {
    color: var(--color-accent);
    font-size: 13px;
    width: 16px;
    text-align: center;
}

.mention-item .mention-tag {
    font-weight: 600;
}

.mention-item .mention-type {
    font-size: 10px;
    color: var(--color-text-muted);
    margin-left: auto;
    text-transform: uppercase;
}

#link-modal .modal-content {
    max-width: 440px;
}

.link-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.link-form-group label {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.link-form-input {
    width: 100%;
    padding: 10px 14px;
    background: #111a24;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: #fff;
    outline: none;
    font-size: 14px;
    transition: border-color 0.15s;
}

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

.link-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

#modal-profile .modal-content {
    max-width: 440px;
    text-align: center;
}

.profile-preview-box {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #111a24;
    margin: 12px auto;
    border: 3px solid var(--color-accent);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(42, 172, 200, 0.35);
}

.profile-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-elevated);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--color-accent);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.hidden {
    display: none !important;
}

/* Code Editor */
.code-editor-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
    min-height: 0;
    background: #0d131a;
    border: 1px solid #1f2c3a;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 10px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.code-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #17212b;
    padding: 10px 16px;
    border-bottom: 1px solid #1f2c3a;
    flex-shrink: 0;
    gap: 10px;
    flex-wrap: wrap;
}

.code-editor-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-editor-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-code-action {
    background: #242f3d;
    border: 1px solid #334458;
    color: #e1e9f1;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.btn-code-action:hover {
    background: #2d3b4c;
    color: #fff;
}

.btn-code-action.save {
    background: #2b5278;
    border-color: #2aacc8;
    color: #fff;
}

.btn-code-action.save:hover {
    background: #356291;
}

.btn-code-action.cancel {
    background: transparent;
    border-color: #445468;
    color: #7f91a4;
}

.btn-code-action.cancel:hover {
    color: #ef5350;
    border-color: #ef5350;
}

.code-editor-body {
    flex: 1;
    min-height: 280px;
    position: relative;
    display: flex;
}

.source-code-textarea {
    width: 100%;
    height: 100%;
    min-height: 320px;
    background: #0a1017;
    color: #7cd5ff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13.5px;
    line-height: 1.6;
    padding: 14px 16px;
    border: none;
    outline: none;
    resize: none;
    tab-size: 2;
    white-space: pre;
    overflow-x: auto;
    overflow-y: auto;
}

.code-editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px;
    background: #111a24;
    border-top: 1px solid #1f2c3a;
    font-size: 11px;
    color: #7f91a4;
}

#btn-code-editor.active {
    background-color: rgba(42, 172, 200, 0.25);
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}

/* Color Tool Popup */
.text-color-popup {
    width: 250px;
    padding: 12px;
    background: #242f3d;
    border: 1px solid #1a2533;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    z-index: 180;
    position: absolute;
}

.color-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    border-bottom: 1px solid #1f2c3a;
    padding-bottom: 6px;
}

.close-tiny-btn {
    background: transparent;
    border: none;
    color: #7f91a4;
    cursor: pointer;
    font-size: 13px;
}

.close-tiny-btn:hover {
    color: #fff;
}

.color-input-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    background: #17212b;
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid #2b394a;
}

.color-input-row .hash-symbol {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 14px;
}

.color-input-row input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 13px;
    font-family: monospace;
    font-weight: 600;
    outline: none;
    width: 80px;
    text-transform: uppercase;
}

.color-preview-chip {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    flex-shrink: 0;
    transition: background-color 0.15s;
}

.btn-color-apply {
    background: var(--color-primary);
    border: none;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: auto;
    transition: background 0.15s;
}

.btn-color-apply:hover {
    background: var(--color-primary-hover);
}

.quick-colors-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 5px;
    align-items: center;
}

.quick-color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s, outline 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-color-dot:hover {
    transform: scale(1.2);
    outline: 2px solid #fff;
}

.editor-content img.selected, .editor-figure.selected img, .editor-figure.selected {
    outline: 3px solid #2aacc8 !important;
    box-shadow: 0 0 16px rgba(42, 172, 200, 0.6) !important;
    border-radius: 6px;
}

/* Three-Dot Dropdown */
.editor-three-dot-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.editor-dropdown-popup {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 295px;
    background-color: #17212b;
    border: 1px solid #242f3d;
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
    z-index: 250;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    animation: fadeInSlideDown 0.18s ease-out;
}

.editor-dropdown-popup.hidden {
    display: none !important;
}

@keyframes fadeInSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-header-banner {
    padding: 8px 16px 6px;
    border-bottom: 1px solid #202b38;
    margin-bottom: 4px;
}

.dropdown-header-banner .dropdown-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7f91a4;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-section {
    display: flex;
    flex-direction: column;
    padding: 2px 6px;
}

.dropdown-group-header {
    font-size: 11px;
    font-weight: 700;
    color: #2aacc8;
    padding: 6px 12px 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.dropdown-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #e4ecf2;
    font-size: 13.5px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    width: 100%;
}

.dropdown-menu-item:hover {
    background-color: #232e3c;
    color: #ffffff;
}

.dropdown-menu-item.active {
    background: rgba(42, 172, 200, 0.15);
    color: #2aacc8;
    font-weight: 600;
}

.dropdown-menu-item .item-icon-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-menu-item .icon-public {
    color: #66bb6a;
    width: 18px;
    text-align: center;
}

.dropdown-menu-item .icon-private {
    color: #ffa726;
    width: 18px;
    text-align: center;
}

.dropdown-menu-item .icon-draft {
    color: #2aacc8;
    width: 18px;
    text-align: center;
}

.item-check-badge {
    font-size: 13px;
    color: #2aacc8;
    margin-left: 8px;
}

.item-check-badge.hidden {
    display: none !important;
}

.menu-avatar-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0088cc 0%, #2aacc8 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.menu-avatar-circle.website {
    background: linear-gradient(135deg, #1f3349 0%, #2aacc8 100%);
    font-size: 10px;
}

.dropdown-section-separator {
    height: 1px;
    background-color: #202b38;
    margin: 4px 8px;
}

.drafts-status-pill {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    background: #242f3d;
    color: #7f91a4;
    font-weight: 600;
    transition: all 0.2s;
}

.drafts-status-pill.active {
    background: rgba(42, 172, 200, 0.2);
    color: #2aacc8;
    border: 1px solid rgba(42, 172, 200, 0.4);
}

@media (min-width: 900px) {
    body {
        display: block;
        background-color: var(--bg-dark);
        padding: 0;
        margin: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .app-container {
        max-width: 100% !important;
        width: 100% !important;
        height: 100vh !important;
        max-height: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
    }

    .header {
        padding: 12px 28px;
        width: 100%;
    }

    .author-identity-bar {
        padding: 8px 28px;
        width: 100%;
    }

    .channel-name-input {
        font-size: 17px;
        max-width: 240px;
    }

    .category-container {
        max-width: 240px;
    }

    .main-content-layout {
        display: flex;
        flex: 1;
        width: 100%;
        height: calc(100% - 105px);
        overflow: hidden;
    }

    .editor-column {
        flex: 1;
        min-width: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
        border-right: 1px solid var(--color-border);
    }

    .editor-container {
        padding: 28px 48px;
        width: 100%;
        max-width: 100%;
        flex: 1;
        overflow-y: auto;
    }

    .title-input {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .editor-content {
        font-size: 17px;
        line-height: 1.75;
    }

    .toolbar {
        padding: 10px 28px;
        width: 100%;
    }

    .tools-left {
        gap: 6px;
    }

    .tool-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .send-btn {
        width: 44px;
        height: 44px;
        font-size: 17px;
    }

    .desktop-sidebar {
        display: flex;
        width: 380px;
        min-width: 340px;
        flex-shrink: 0;
        padding: 20px;
        overflow-y: auto;
    }

    .tab-bar {
        display: none !important;
    }

    .bottom-sheet {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        bottom: auto;
        width: 90%;
        max-width: 440px;
        border-radius: 16px !important;
    }

    .modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        align-items: center !important;
        justify-content: center !important;
    }

    .modal-content {
        max-width: 460px;
        border-radius: 16px !important;
    }
}

@media (max-width: 899px) {
    .header-center {
        display: none !important;
    }
    .author-identity-bar {
        display: none !important;
    }
    .header {
        flex-wrap: nowrap;
        padding: 8px 14px;
        gap: 8px;
    }
    .editor-dropdown-popup {
        right: 4px;
        max-width: min(300px, calc(100vw - 16px));
    }
}

/* ==========================================================================
   News Metadata Bar: Tags & Location (BongoEye Theme)
   ========================================================================== */
.news-metadata-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 18px;
    background: #111a24;
    border-bottom: 1px solid #1a2533;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
}

.metadata-bar-left, .metadata-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.meta-tags-container {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.meta-tags-chips-list {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #242f3d;
    color: #2aacc8;
    border: 1px solid rgba(42, 172, 200, 0.3);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.tag-chip-del {
    background: transparent;
    border: none;
    color: #7f91a4;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}
.tag-chip-del:hover {
    color: #ef5350;
}

.tag-input-container {
    position: relative;
}

.tag-input-field {
    background: transparent;
    border: 1px dashed rgba(127, 145, 164, 0.4);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    outline: none;
    min-width: 140px;
    transition: all 0.15s;
}
.tag-input-field:focus {
    border-color: #2aacc8;
    background: #17212b;
}
.tag-input-field::placeholder {
    color: #7f91a4;
}

.meta-location-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-location-pill {
    background: #17212b;
    border: 1px solid #242f3d;
    color: #fff;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.meta-location-pill:hover {
    border-color: #2aacc8;
    color: #2aacc8;
}

.btn-clear-loc {
    background: rgba(239, 83, 80, 0.15);
    border: 1px solid rgba(239, 83, 80, 0.3);
    color: #ef5350;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.15s;
}
.btn-clear-loc:hover {
    background: #ef5350;
    color: #fff;
}

.create-tag-action {
    color: #2aacc8 !important;
    font-weight: 600;
    border-top: 1px solid #1a2533;
}
.create-tag-action:hover {
    background: rgba(42, 172, 200, 0.15) !important;
}

/* ==========================================================================
   Primary Send / Publish Button with Clear "পোস্ট" Label
   ========================================================================== */
.send-btn {
    min-width: 82px;
    height: 38px;
    padding: 0 16px;
    border-radius: 20px;
    background-color: var(--color-primary);
    border: none;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(42, 172, 200, 0.3);
    flex-shrink: 0;
}
.send-btn:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(42, 172, 200, 0.45);
}
.send-btn:active {
    transform: translateY(1px);
}
.send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   Category Autocomplete Dropdown Enhancement (Preserves layout)
   ========================================================================== */
.category-container {
    position: relative;
    width: 100%;
    max-width: 190px;
}

#category-dropdown {
    width: 250px;
    max-height: 260px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
    border: 1px solid #2aacc8;
    z-index: 250;
}

.category-dropdown-header {
    padding: 6px 12px;
    font-size: 10px;
    text-transform: uppercase;
    color: #7f91a4;
    border-bottom: 1px solid #1a2533;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-item.create-category-action {
    color: #2aacc8 !important;
    font-weight: 700;
    background: rgba(42, 172, 200, 0.08);
    border-bottom: 1px solid #1a2533;
}

.dropdown-item.create-category-action:hover {
    background: rgba(42, 172, 200, 0.2) !important;
}

.dropdown-item.category-item {
    font-weight: 500;
}

.dropdown-item.category-item.selected {
    color: #2aacc8;
    background: rgba(42, 172, 200, 0.12);
}

/* ==========================================================================
   Dedicated News Publication Settings Page (নিউজ প্রকাশনা সেটিংস পৃষ্ঠা)
   ========================================================================== */
.publish-settings-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-page);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInSlide 0.22s ease-out;
}
.publish-settings-page.hidden {
    display: none !important;
}

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

.publish-page-header {
    height: 60px;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-shrink: 0;
}

.publish-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.btn-page-back {
    background: var(--bg-elevated);
    border: 1px solid var(--color-border);
    color: #fff;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s;
    flex-shrink: 0;
}

.btn-page-back:hover {
    background: #1f3349;
    border-color: #2aacc8;
    color: #2aacc8;
}

.publish-header-title-box {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.publish-page-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.publish-page-subtitle {
    font-size: 11px;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.step-indicator-pill {
    background: rgba(102, 187, 106, 0.15);
    border: 1px solid rgba(102, 187, 106, 0.3);
    color: #66bb6a;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.publish-page-main {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.publish-settings-scroll-container {
    width: 100%;
    max-width: 780px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 60px;
}

.publish-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-section-label {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-status-hint {
    font-size: 12px;
    color: #2aacc8;
    font-weight: 600;
}

.card-instruction-text {
    font-size: 12px;
    color: var(--color-text-muted);
    margin: 0 0 14px 0;
    line-height: 1.5;
}

/* News Brief Summary */
.news-summary-card {
    background: linear-gradient(135deg, rgba(36,47,61,0.7) 0%, rgba(23,33,43,0.9) 100%);
    border: 1px solid rgba(42, 172, 200, 0.25);
}

.btn-inline-edit {
    background: transparent;
    border: 1px solid rgba(42,172,200,0.3);
    color: #2aacc8;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-inline-edit:hover {
    background: rgba(42,172,200,0.15);
}

.news-brief-category {
    font-size: 12px;
    color: #2aacc8;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-brief-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.news-brief-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #7f91a4;
}

.dot-separator {
    color: #435467;
}

/* Publication Mode Options Grid */
.publication-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.pub-option-card {
    background: #0e1621;
    border: 1.5px solid #242f3d;
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.pub-option-card:hover {
    border-color: #3b5068;
    transform: translateY(-1px);
}

.pub-option-card.active {
    background: rgba(42, 172, 200, 0.08);
    border-color: #2aacc8;
    box-shadow: 0 0 12px rgba(42, 172, 200, 0.2);
}

.pub-option-radio {
    font-size: 16px;
    color: #7f91a4;
    margin-top: 2px;
    transition: color 0.15s;
}

.pub-option-card.active .pub-option-radio {
    color: #2aacc8;
}

.pub-option-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.pub-option-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.pub-option-desc {
    font-size: 11px;
    color: #7f91a4;
    margin: 0;
    line-height: 1.4;
}

/* Identity Section */
.pub-identity-section {
    border-top: 1px solid #1a2533;
    padding-top: 14px;
    margin-top: 10px;
}

.pub-sub-label {
    font-size: 12px;
    font-weight: 600;
    color: #a0b2c6;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pub-identity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}

.identity-card-btn {
    background: #0e1621;
    border: 1px solid #242f3d;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.15s;
}

.identity-card-btn:hover {
    border-color: #3b5068;
}

.identity-card-btn.active {
    background: rgba(42, 172, 200, 0.08);
    border-color: #2aacc8;
}

.identity-avatar-box {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #2aacc8;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    overflow: hidden;
}

.identity-avatar-box.website {
    background: #1f3349;
    color: #2aacc8;
    border: 1px solid #2aacc8;
}

.identity-text-box {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.identity-text-box strong {
    font-size: 13px;
    color: #fff;
}

.identity-text-box span {
    font-size: 10px;
    color: #7f91a4;
}

.identity-check-icon {
    font-size: 16px;
    color: #2aacc8;
}

/* Location Fields Grid */
.location-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.loc-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.loc-field-group label {
    font-size: 12px;
    color: #7f91a4;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pub-select-input, .pub-text-input {
    background: #0e1621;
    border: 1px solid #242f3d;
    border-radius: 8px;
    padding: 9px 12px;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
}

.pub-select-input:focus, .pub-text-input:focus {
    border-color: #2aacc8;
}

.pub-select-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #0b1118;
}

.btn-clear-location-inline {
    background: rgba(239, 83, 80, 0.12);
    border: 1px solid rgba(239, 83, 80, 0.3);
    color: #ef5350;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-clear-location-inline:hover {
    background: #ef5350;
    color: #fff;
}

.selected-location-summary {
    background: rgba(239, 83, 80, 0.1);
    border: 1px solid rgba(239, 83, 80, 0.25);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tags Management */
.pub-tags-chips-wrapper {
    background: #0e1621;
    border: 1px solid #242f3d;
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 48px;
}

.pub-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pub-tag-input-box {
    position: relative;
    flex: 1;
    min-width: 180px;
}

.pub-tag-field {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 13px;
    width: 100%;
    padding: 4px 6px;
}

.pub-tag-field::placeholder {
    color: #5d6f82;
}

.pub-suggested-tags-container {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #1a2533;
}

.suggested-tags-title {
    font-size: 11px;
    color: #7f91a4;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.suggested-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.suggested-tag-pill {
    background: #17212b;
    border: 1px solid #242f3d;
    color: #a0b2c6;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

.suggested-tag-pill:hover {
    border-color: #2aacc8;
    color: #fff;
    background: #1f3349;
}

.suggested-tag-pill.active {
    background: rgba(42, 172, 200, 0.2);
    border-color: #2aacc8;
    color: #2aacc8;
    font-weight: 600;
}

/* Bottom Confirm Action Card */
.publish-bottom-action-card {
    background: #17212b;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    position: sticky;
    bottom: 12px;
    z-index: 60;
}

.action-card-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #a0b2c6;
}

.action-buttons-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-action-cancel {
    background: var(--bg-elevated);
    border: 1px solid var(--color-border);
    color: #a0b2c6;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s;
}

.btn-action-cancel:hover {
    background: #1f3349;
    color: #fff;
}

.btn-confirm-post {
    background: linear-gradient(135deg, #2aacc8 0%, #1d8da6 100%);
    border: none;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(42, 172, 200, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-confirm-post:hover {
    background: linear-gradient(135deg, #32bede 0%, #229db8 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(42, 172, 200, 0.5);
}

.btn-confirm-post:active {
    transform: translateY(1px);
}

.btn-confirm-post:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 600px) {
    .publish-bottom-action-card {
        flex-direction: column;
        align-items: stretch;
    }
    .action-buttons-group {
        flex-direction: column;
        width: 100%;
    }
    .btn-action-cancel, .btn-confirm-post {
        width: 100%;
        justify-content: center;
    }
    .publication-options-grid {
        grid-template-columns: 1fr;
    }
    .location-fields-grid {
        grid-template-columns: 1fr;
    }
}

