:root {
            --steem-blue: #0a3a85;
            --steem-blue-dark: #072a63;
            --steem-link: #4ba8f8;
            --steem-link-hover: #2f8fe0;
            --steem-red: var(--steem-blue);
            --danger: #d64541;
            --bg-soft: #f5f8fb;
            --bg-head: #fafbfd;
            --text-body: #222;
            --steem-green: #4ba85a;
            --steem-orange: #f0ad4e;
            --bg-body: #eef2f7;
            --bg-card: #ffffff;
            --border-light: #dbe4ee;
            --border-mid: #b7c4d3;
            --text-primary: #16233b;
            --text-secondary: #5c6b80;
            --text-muted: #8b98a8;
            --gray-pill: #e9eef4;
            --shadow-card: 0 1px 2px rgba(10, 58, 133, .08);
            --radius: 3px;
        }
        * {
            box-sizing: border-box;
        }
        html,
        body {
            margin: 0;
            padding: 0;
            min-height: 100vh;
        }
        body {
            font-family: 'Source Sans Pro', 'Noto Sans Bengali', sans-serif;
            background: var(--bg-body);
            color: var(--text-primary);
            font-size: 15px;
            line-height: 1.5;
            -webkit-font-smoothing: antialiased;
        }
        a {
            color: var(--steem-link);
            text-decoration: none;
            cursor: pointer;
        }
        a:hover {
            color: var(--steem-link-hover);
            text-decoration: underline;
        }
        button {
            font-family: inherit;
            cursor: pointer;
        }
        img {
            max-width: 100%;
        }
        ::selection {
            background: #cfe2ff;
        }

        .topnav {
            background: var(--steem-blue);
            color: #fff;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
        }
        .topnav-inner {
            max-width: 1280px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 0 16px;
            height: 56px;
        }
        .brand {
            font-size: 21px;
            font-weight: 700;
            color: #fff;
            letter-spacing: .2px;
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
        }
        .brand:hover {
            text-decoration: none;
            color: #fff;
        }
        .brand .dot {
            color: #6cc3ff;
        }
        .nav-search {
            flex: 1;
            max-width: 480px;
            position: relative;
        }
        .nav-search input {
            width: 100%;
            padding: 8px 12px 8px 34px;
            border-radius: 16px;
            border: none;
            background: rgba(255, 255, 255, .15);
            color: #fff;
            font-size: 14px;
            outline: none;
            transition: background .15s;
        }
        .nav-search input::placeholder {
            color: rgba(255, 255, 255, .65);
        }
        .nav-search input:focus {
            background: rgba(255, 255, 255, .25);
        }
        .nav-search svg {
            position: absolute;
            left: 11px;
            top: 50%;
            transform: translateY(-50%);
            opacity: .65;
        }
        .nav-tabs {
            display: flex;
            gap: 2px;
            margin-left: 6px;
        }
        .nav-tabs button {
            background: none;
            border: none;
            color: rgba(255, 255, 255, .75);
            padding: 8px 12px;
            border-radius: 3px;
            font-size: 14px;
            font-weight: 600;
            border-bottom: 2px solid transparent;
        }
        .nav-tabs button:hover {
            color: #fff;
        }
        .nav-tabs button.active {
            color: #fff;
            border-bottom-color: var(--steem-red);
        }
        .nav-right {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }
        .btn {
            border: 1px solid transparent;
            border-radius: 3px;
            padding: 8px 16px;
            font-size: 14px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: background .15s, border-color .15s;
        }
        .btn-submit {
            background: var(--steem-red);
            color: #fff;
        }
        .btn-submit:hover {
            background: var(--steem-link);
            color: #fff;
        }
        .btn-outline {
            background: transparent;
            border-color: rgba(255, 255, 255, .4);
            color: #fff;
        }
        .btn-outline:hover {
            background: rgba(255, 255, 255, .1);
        }
        .btn-secondary {
            background: var(--gray-pill);
            color: var(--text-primary);
            border-color: var(--border-mid);
        }
        .btn-secondary:hover {
            background: #e2e8f0;
        }
        .btn-block {
            width: 100%;
            justify-content: center;
        }
        .btn-sm {
            padding: 5px 10px;
            font-size: 13px;
        }
        .btn:disabled {
            opacity: .5;
            cursor: not-allowed;
        }

        .user-chip {
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, .1);
            padding: 5px 10px 5px 5px;
            border-radius: 18px;
            color: #fff;
            position: relative;
        }
        .user-chip img {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: #555;
        }
        .user-chip .uname {
            font-weight: 600;
            font-size: 13.5px;
        }
        .user-chip .caret {
            font-size: 10px;
            opacity: .7;
        }
        .user-menu {
            position: absolute;
            top: 46px;
            right: 0;
            background: var(--bg-card);
            color: var(--text-primary);
            border-radius: var(--radius);
            box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
            min-width: 200px;
            display: none;
            overflow: hidden;
            border: 1px solid var(--border-light);
        }
        .user-menu.show {
            display: block;
        }
        .user-menu a,
        .user-menu button {
            display: block;
            width: 100%;
            text-align: left;
            padding: 10px 16px;
            background: none;
            border: none;
            font-size: 14px;
            color: var(--text-primary);
            border-bottom: 1px solid var(--border-light);
        }
        .user-menu a:last-child,
        .user-menu button:last-child {
            border-bottom: none;
        }
        .user-menu a:hover,
        .user-menu button:hover {
            background: var(--bg-body);
            text-decoration: none;
        }

        .page {
            max-width: 1280px;
            margin: 0 auto;
            display: flex;
            gap: 24px;
            padding: 20px 16px 60px;
            align-items: flex-start;
        }
        .col-left {
            width: 220px;
            flex-shrink: 0;
            position: sticky;
            top: 76px;
        }
        .col-main {
            flex: 1;
            min-width: 0;
        }
        .col-right {
            width: 300px;
            flex-shrink: 0;
            position: sticky;
            top: 76px;
        }
        @media(max-width:1100px) {
            .col-right {
                display: none;
            }
        }
        @media(max-width:860px) {
            .col-left {
                display: none;
            }
        }

        .side-card {
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: var(--radius);
            margin-bottom: 16px;
            overflow: hidden;
        }
        .side-card h3 {
            margin: 0;
            padding: 12px 14px;
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: .4px;
            color: var(--text-secondary);
            border-bottom: 1px solid var(--border-light);
            background: var(--bg-head);
        }
        .side-nav a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 14px;
            color: var(--text-primary);
            font-weight: 600;
            font-size: 14.5px;
            border-bottom: 1px solid var(--border-light);
        }
        .side-nav a:last-child {
            border-bottom: none;
        }
        .side-nav a:hover {
            background: var(--bg-body);
            text-decoration: none;
        }
        .side-nav a.active {
            color: var(--steem-red);
        }
        .tag-cloud {
            padding: 12px 14px;
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        .tag-pill {
            background: var(--gray-pill);
            border: 1px solid var(--border-mid);
            border-radius: 14px;
            padding: 4px 10px;
            font-size: 12.5px;
            color: var(--text-secondary);
            font-weight: 600;
            cursor: pointer;
        }
        .tag-pill:hover {
            background: #e2e8f0;
            text-decoration: none;
        }
        .notif-item:hover {
            background: var(--gray-pill);
        }

        .feed-tabs {
            display: flex;
            gap: 4px;
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: var(--radius);
            padding: 4px;
            margin-bottom: 16px;
        }
        .feed-tabs button {
            flex: 1;
            background: none;
            border: none;
            padding: 9px 6px;
            font-weight: 600;
            font-size: 13.5px;
            color: var(--text-secondary);
            border-radius: 3px;
        }
        .feed-tabs button.active {
            background: var(--steem-blue);
            color: #fff;
        }
        .feed-tabs button:hover:not(.active) {
            background: var(--bg-body);
        }

        .post-card {
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: var(--radius);
            margin-bottom: 14px;
            display: flex;
            box-shadow: var(--shadow-card);
        }
        .vote-rail {
            width: 56px;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 14px 0;
            border-right: 1px solid var(--border-light);
            background: var(--bg-soft);
            border-radius: var(--radius) 0 0 var(--radius);
        }
        .vote-btn {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            border: 1px solid var(--border-mid);
            background: var(--bg-card);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            transition: .15s;
        }
        .vote-btn:hover {
            border-color: var(--steem-green);
            color: var(--steem-green);
        }
        .vote-btn.upvoted {
            background: var(--steem-green);
            border-color: var(--steem-green);
            color: #fff;
        }
        .vote-btn.down:hover {
            border-color: var(--danger);
            color: var(--danger);
        }
        .vote-btn.downvoted {
            background: var(--danger);
            border-color: var(--danger);
            color: #fff;
        }
        .vote-payout {
            font-weight: 700;
            font-size: 14px;
            margin: 8px 0;
            text-align: center;
            color: var(--text-primary);
        }
        .vote-count {
            font-size: 11px;
            color: var(--text-muted);
        }

        .post-body {
            flex: 1;
            min-width: 0;
            padding: 14px 16px;
        }
        .post-meta {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: var(--text-secondary);
            margin-bottom: 8px;
            flex-wrap: wrap;
        }
        .post-meta img.avatar {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: #ddd;
        }
        .post-meta .author {
            font-weight: 700;
            color: var(--text-primary);
        }
        .post-meta .author:hover {
            text-decoration: underline;
        }
        .post-meta .reputation {
            color: var(--text-muted);
            font-size: 12px;
        }
        .post-meta .community-tag {
            background: var(--gray-pill);
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 11.5px;
            font-weight: 600;
        }
        .post-title {
            font-size: 19px;
            font-weight: 700;
            margin: 4px 0 6px;
            color: var(--text-primary);
            line-height: 1.3;
        }
        .post-title a {
            color: inherit;
        }
        .post-title a:hover {
            color: var(--steem-link-hover);
            text-decoration: none;
        }
        .post-excerpt {
            color: var(--text-secondary);
            font-size: 14.5px;
            margin-bottom: 10px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .post-thumb {
            width: 100%;
            max-height: 340px;
            object-fit: cover;
            border-radius: var(--radius);
            margin-bottom: 10px;
            background: #eee;
        }
        .post-actions {
            display: flex;
            align-items: center;
            gap: 18px;
            font-size: 13px;
            color: var(--text-secondary);
            flex-wrap: wrap;
        }
        .post-actions .pa-item {
            display: flex;
            align-items: center;
            gap: 5px;
            color: var(--text-secondary);
            font-weight: 600;
        }
        .post-actions .pa-item:hover {
            color: var(--steem-link);
            text-decoration: none;
        }
        .post-actions svg {
            flex-shrink: 0;
        }
        .post-actions .pa-item.resteemed {
            color: var(--steem-green);
        }

        .article-card {
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: var(--radius);
            padding: 24px 28px;
            margin-bottom: 16px;
        }
        .article-title {
            font-size: 28px;
            font-weight: 700;
            line-height: 1.25;
            margin: 0 0 14px;
        }
        .article-meta {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 18px;
            padding-bottom: 18px;
            border-bottom: 1px solid var(--border-light);
            flex-wrap: wrap;
        }
        .article-meta img.avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #ddd;
        }
        .article-meta .meta-text .author {
            font-weight: 700;
            font-size: 15px;
        }
        .article-meta .meta-text .sub {
            font-size: 12.5px;
            color: var(--text-muted);
        }
        .article-content {
            overflow-wrap: anywhere;
            font-size: 16.5px;
            line-height: 1.7;
            color: var(--text-body);
        }
        .article-content img {
            border-radius: var(--radius);
            margin: 10px 0;
            max-width: 100%;
        }
        .article-content h1,
        .article-content h2,
        .article-content h3 {
            margin-top: 1.4em;
        }
        .article-content p {
            margin: 0 0 1em;
        }
        .article-content blockquote {
            border-left: 3px solid var(--border-mid);
            margin: 1em 0;
            padding: .2em 1em;
            color: var(--text-secondary);
        }
        .article-content code {
            background: var(--gray-pill);
            padding: 2px 5px;
            border-radius: 3px;
            font-size: .9em;
        }
        .article-content pre {
            background: #272822;
            color: #f8f8f2;
            padding: 14px;
            border-radius: var(--radius);
            overflow-x: auto;
        }
        .article-content pre code {
            background: none;
            color: inherit;
            padding: 0;
        }
        .article-content a {
            word-break: break-word;
        }
        .article-tags {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            margin-top: 20px;
        }

        .payout-bar {
            display: flex;
            align-items: center;
            gap: 20px;
            padding: 16px 0;
            border-top: 1px solid var(--border-light);
            margin-top: 16px;
            flex-wrap: wrap;
        }
        .payout-amt {
            font-size: 18px;
            font-weight: 700;
            color: var(--steem-green);
        }

        .comment-box {
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: var(--radius);
            padding: 18px;
            margin-bottom: 14px;
        }
        .comment-box textarea {
            width: 100%;
            min-height: 90px;
            border: 1px solid var(--border-mid);
            border-radius: var(--radius);
            padding: 10px;
            font-family: inherit;
            font-size: 14.5px;
            resize: vertical;
            outline: none;
        }
        .comment-box textarea:focus {
            border-color: var(--steem-link);
        }
        .comment-thread {
            margin-top: 6px;
        }
        .comment-item {
            display: flex;
            gap: 10px;
            padding: 14px 0;
            border-bottom: 1px solid var(--border-light);
        }
        .comment-item:last-child {
            border-bottom: none;
        }
        .comment-item img.avatar {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: #ddd;
            flex-shrink: 0;
        }
        .comment-body {
            flex: 1;
            min-width: 0;
        }
        .comment-head {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            margin-bottom: 4px;
        }
        .comment-head .author {
            font-weight: 700;
            color: var(--text-primary);
        }
        .comment-text {
            font-size: 14.5px;
            color: var(--text-body);
            line-height: 1.55;
            margin-bottom: 6px;
            word-wrap: break-word;
        }
        .comment-actions {
            display: flex;
            gap: 14px;
            font-size: 12.5px;
            color: var(--text-secondary);
            align-items: center;
        }
        .comment-actions span,
        .comment-actions a,
        .comment-actions button {
            background: none;
            border: none;
            color: var(--text-secondary);
            font-weight: 600;
            font-size: 12.5px;
            padding: 0;
        }
        .comment-actions a:hover,
        .comment-actions button:hover {
            color: var(--steem-link);
            text-decoration: none;
        }
        .comment-reply-box {
            margin-top: 10px;
            margin-left: 0;
        }
        .comment-children {
            margin-left: 30px;
            margin-top: 6px;
            border-left: 2px solid var(--border-light);
            padding-left: 14px;
        }

        .editor-wrap {
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: var(--radius);
            padding: 20px;
        }
        .editor-wrap input[type=text] {
            width: 100%;
            font-size: 22px;
            font-weight: 700;
            border: none;
            border-bottom: 1px solid var(--border-light);
            padding: 8px 2px 14px;
            outline: none;
            margin-bottom: 14px;
            font-family: inherit;
        }
        .editor-tabs {
            display: flex;
            gap: 0;
            border-bottom: 1px solid var(--border-light);
            margin-bottom: 12px;
        }
        .editor-tabs button {
            background: none;
            border: none;
            padding: 9px 16px;
            font-weight: 600;
            font-size: 14px;
            color: var(--text-secondary);
            border-bottom: 2px solid transparent;
        }
        .editor-tabs button.active {
            color: var(--steem-blue);
            border-bottom-color: var(--steem-red);
        }
        .editor-wrap textarea.md-editor {
            width: 100%;
            min-height: 340px;
            border: 1px solid var(--border-mid);
            border-radius: var(--radius);
            padding: 14px;
            font-family: ui-monospace, Consolas, 'Noto Sans Bengali', monospace;
            font-size: 14.5px;
            resize: vertical;
            outline: none;
            line-height: 1.6;
        }
        .editor-wrap textarea.md-editor:focus {
            border-color: var(--steem-link);
        }
        .md-toolbar {
            display: flex;
            gap: 4px;
            margin-bottom: 8px;
            flex-wrap: wrap;
        }
        .md-toolbar button {
            background: var(--gray-pill);
            border: 1px solid var(--border-mid);
            border-radius: 3px;
            width: 32px;
            height: 30px;
            font-weight: 700;
            font-size: 13.5px;
            color: var(--text-primary);
        }
        .md-toolbar button:hover {
            background: #e2e8f0;
        }
        .preview-pane {
            border: 1px solid var(--border-mid);
            border-radius: var(--radius);
            padding: 16px;
            min-height: 340px;
            background: var(--bg-card);
        }
        .editor-footer {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-top: 16px;
            flex-wrap: wrap;
        }
        .editor-footer input[type=text].tags-input {
            flex: 1;
            min-width: 200px;
            border: 1px solid var(--border-mid);
            border-radius: var(--radius);
            padding: 9px 12px;
            font-size: 14px;
            outline: none;
            font-weight: 400;
        }
        .editor-footer input.tags-input:focus {
            border-color: var(--steem-link);
        }
        .field-label {
            font-size: 12.5px;
            color: var(--text-secondary);
            font-weight: 600;
            margin-bottom: 5px;
            display: block;
            text-transform: uppercase;
            letter-spacing: .3px;
        }
        .markdown-help {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 6px;
        }
        .editor-select {
            width: 100%;
            border: 1px solid var(--border-mid);
            border-radius: var(--radius);
            padding: 9px 12px;
            font-size: 14.5px;
            outline: none;
            font-family: inherit;
            background: var(--bg-card);
            color: var(--text-primary);
        }
        .editor-select:focus {
            border-color: var(--steem-link);
        }
        .beneficiary-section {
            margin-top: 16px;
        }
        .beneficiary-row {
            display: flex;
            gap: 8px;
            align-items: center;
            margin-bottom: 8px;
        }
        .beneficiary-row input[type=text] {
            flex: 1;
            border: 1px solid var(--border-mid);
            border-radius: var(--radius);
            padding: 8px 10px;
            font-size: 14px;
            outline: none;
            font-family: inherit;
        }
        .beneficiary-row input.ben-percent {
            width: 90px;
            flex: none;
        }
        .beneficiary-row input:focus {
            border-color: var(--steem-link);
        }
        .beneficiary-row .ben-remove {
            background: none;
            border: 1px solid var(--border-mid);
            border-radius: var(--radius);
            width: 32px;
            height: 32px;
            color: var(--danger);
            font-weight: 700;
            flex: none;
        }
        .beneficiary-row .ben-remove:hover {
            background: #e6ecf7;
        }
        .beneficiary-total {
            font-size: 12.5px;
            color: var(--text-secondary);
            margin-top: 4px;
        }
        .beneficiary-total.over {
            color: var(--danger);
            font-weight: 700;
        }
        .upload-zone {
            border: 2px dashed var(--border-mid);
            border-radius: var(--radius);
            padding: 14px;
            text-align: center;
            color: var(--text-muted);
            font-size: 13px;
            cursor: pointer;
            margin-bottom: 10px;
            transition: border-color .2s, color .2s;
        }
        .upload-zone:hover {
            border-color: var(--steem-link);
            color: var(--steem-link);
        }
        .upload-zone.dragover {
            border-color: var(--steem-green);
            color: var(--steem-green);
            background: #f0faf0;
        }

        .wallet-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 14px;
            margin-bottom: 20px;
        }
        .wallet-tile {
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: var(--radius);
            padding: 18px;
        }
        .wallet-tile .wt-label {
            font-size: 12.5px;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: .3px;
            font-weight: 700;
            margin-bottom: 6px;
        }
        .wallet-tile .wt-value {
            font-size: 22px;
            font-weight: 700;
            color: var(--text-primary);
        }
        .wallet-tile .wt-sub {
            font-size: 12.5px;
            color: var(--text-muted);
            margin-top: 4px;
        }
        .wallet-actions {
            display: flex;
            gap: 8px;
            margin-top: 12px;
        }
        .tx-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13.5px;
        }
        .tx-table th {
            text-align: left;
            padding: 8px 10px;
            color: var(--text-secondary);
            border-bottom: 2px solid var(--border-light);
            font-size: 12px;
            text-transform: uppercase;
        }
        .tx-table td {
            padding: 9px 10px;
            border-bottom: 1px solid var(--border-light);
        }

        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(20, 22, 30, .55);
            display: none;
            align-items: flex-start;
            justify-content: center;
            z-index: 1000;
            padding: 60px 16px;
            overflow-y: auto;
        }
        .modal-overlay.show {
            display: flex;
        }
        .modal-box {
            background: var(--bg-card);
            border-radius: 6px;
            max-width: 420px;
            width: 100%;
            box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
        }
        .modal-box.wide {
            max-width: 560px;
        }
        .modal-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 18px 20px;
            border-bottom: 1px solid var(--border-light);
        }
        .modal-head h2 {
            margin: 0;
            font-size: 18px;
        }
        .modal-close {
            background: none;
            border: none;
            font-size: 20px;
            color: var(--text-muted);
            line-height: 1;
        }
        .modal-close:hover {
            color: var(--text-primary);
        }
        .modal-body {
            padding: 20px;
        }
        .modal-body label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 6px;
            margin-top: 14px;
        }
        .modal-body label:first-child {
            margin-top: 0;
        }
        .modal-body input[type=text],
        .modal-body input[type=password],
        .modal-body textarea {
            width: 100%;
            border: 1px solid var(--border-mid);
            border-radius: var(--radius);
            padding: 10px 12px;
            font-size: 14.5px;
            outline: none;
            font-family: inherit;
        }
        .modal-body input:focus,
        .modal-body textarea:focus {
            border-color: var(--steem-link);
        }
        .modal-footer {
            padding: 16px 20px;
            border-top: 1px solid var(--border-light);
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }
        .login-method-toggle {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
        }
        .login-method-toggle button {
            flex: 1;
            padding: 9px;
            border: 1px solid var(--border-mid);
            border-radius: var(--radius);
            background: var(--bg-card);
            font-weight: 600;
            font-size: 13.5px;
            color: var(--text-secondary);
        }
        .login-method-toggle button.active {
            background: var(--steem-blue);
            color: #fff;
            border-color: var(--steem-blue);
        }
        .helper-text {
            font-size: 12.5px;
            color: var(--text-muted);
            margin-top: 6px;
            line-height: 1.5;
        }
        .error-text {
            font-size: 13px;
            color: var(--danger);
            margin-top: 8px;
            font-weight: 600;
            display: none;
        }
        .error-text.show {
            display: block;
        }

        #toast-wrap {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 2000;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .toast {
            background: #222;
            color: #fff;
            padding: 12px 18px;
            border-radius: 6px;
            font-size: 14px;
            box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
            min-width: 240px;
            display: flex;
            align-items: center;
            gap: 10px;
            animation: slideIn .25s ease;
        }
        .toast.success {
            border-left: 4px solid var(--steem-green);
        }
        .toast.error {
            border-left: 4px solid var(--danger);
        }
        .toast.info {
            border-left: 4px solid var(--steem-link);
        }
        @keyframes slideIn {
            from {
                transform: translateX(40px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .spinner {
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255, 255, 255, .4);
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin .7s linear infinite;
            display: inline-block;
        }
        .spinner.dark {
            border: 2px solid rgba(0, 0, 0, .15);
            border-top-color: var(--steem-blue);
        }
        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-muted);
        }
        .skeleton {
            background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
            background-size: 200% 100%;
            animation: shimmer 1.4s infinite;
            border-radius: var(--radius);
        }
        @keyframes shimmer {
            0% {
                background-position: 200% 0;
            }
            100% {
                background-position: -200% 0;
            }
        }
        .skel-card {
            height: 170px;
            margin-bottom: 14px;
        }

        .profile-banner {
            background: var(--steem-blue);
            height: 90px;
            border-radius: var(--radius) var(--radius) 0 0;
        }
        .profile-head {
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: var(--radius);
            overflow: hidden;
            margin-bottom: 16px;
        }
        .profile-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            gap: 12px;
            padding: 0 20px;
            margin-top: -45px;
        }
        .profile-info {
            padding: 10px 20px 14px;
        }
        .profile-top img.avatar-big {
            width: 90px;
            height: 90px;
            flex: 0 0 90px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid var(--bg-card);
            background: #ddd;
        }
        .profile-name {
            font-size: 21px;
            font-weight: 700;
            margin: 6px 0 2px;
        }
        .profile-stats {
            display: flex;
            gap: 18px;
            padding: 0 20px 16px;
            font-size: 13.5px;
            color: var(--text-secondary);
            flex-wrap: wrap;
        }
        .profile-stats b {
            color: var(--text-primary);
        }

        footer.site-footer {
            text-align: center;
            padding: 30px;
            color: var(--text-muted);
            font-size: 12.5px;
        }

        .hidden {
            display: none !important;
        }
        .text-center {
            text-align: center;
        }
        .mt-2 {
            margin-top: 10px;
        }
        .load-more-wrap {
            text-align: center;
            margin: 24px 0;
        }

        @media(max-width:600px) {
            .article-card {
                padding: 16px;
            }
            .article-title {
                font-size: 22px;
            }
            .post-card {
                flex-direction: row;
            }
            .nav-search {
                display: none;
            }
            .nav-tabs {
                display: none;
            }
            .editor-wrap {
                padding: 14px;
            }
        }

/* ================= Steem Space additions ================= */
[data-theme="dark"] {
    --bg-body: #0f1621;
    --bg-card: #17212f;
    --bg-soft: #1b2738;
    --bg-head: #1a2433;
    --border-light: #263449;
    --border-mid: #34465f;
    --text-primary: #e4ebf5;
    --text-secondary: #a8b6c9;
    --text-muted: #7c8ba0;
    --text-body: #d8e0eb;
    --gray-pill: #223047;
    --steem-blue: #0b2f6b;
    --steem-red: #2f7fe0;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .4);
}
[data-theme="dark"] .article-content pre { background: #0b0f16; }
[data-theme="dark"] .btn-secondary:hover,
[data-theme="dark"] .tag-pill:hover,
[data-theme="dark"] .md-toolbar button:hover { background: #2a3a55; }
[data-theme="dark"] .skeleton { background: linear-gradient(90deg, #1c2738 25%, #243247 50%, #1c2738 75%); background-size: 200% 100%; }
[data-theme="dark"] input, [data-theme="dark"] textarea, [data-theme="dark"] select {
    background: var(--bg-soft); color: var(--text-primary);
}
[data-theme="dark"] .feed-tabs button.active { background: var(--steem-red); }
[data-theme="dark"] .upload-zone.dragover { background: #17301d; }

.theme-toggle {
    background: rgba(255, 255, 255, .12); border: none; color: #fff;
    width: 34px; height: 34px; border-radius: 50%; font-size: 15px;
}
.theme-toggle:hover { background: rgba(255, 255, 255, .22); }

.community-head {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px;
    display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap;
}
.community-head img { width: 64px; height: 64px; border-radius: 50%; background: var(--gray-pill); }
.community-head h1 { margin: 0 0 4px; font-size: 22px; }
.community-head .about { color: var(--text-secondary); font-size: 14px; }
.community-head .stats { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

.community-row {
    display: flex; gap: 12px; align-items: center; padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.community-row:last-child { border-bottom: none; }
.community-row img { width: 40px; height: 40px; border-radius: 50%; background: var(--gray-pill); flex-shrink: 0; }
.community-row .info { flex: 1; min-width: 0; }
.community-row .title { font-weight: 700; color: var(--text-primary); }
.community-row .desc { font-size: 13px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.comment-children .comment-children { margin-left: 18px; }
.comment-collapsed > .comment-body > .comment-text,
.comment-collapsed > .comment-body > .comment-actions,
.comment-collapsed > .comment-body > .comment-children { display: none; }
.comment-toggle { font-size: 12px; color: var(--text-muted); cursor: pointer; background: none; border: none; padding: 0; }
.comment-item.highlight { background: rgba(75, 168, 248, .08); }

.edit-link { font-size: 13px; font-weight: 600; }
.badge {
    display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px;
    border-radius: 10px; background: var(--gray-pill); color: var(--text-secondary);
}
.badge.pinned { background: #fff3cd; color: #8a6d00; }
.profile-tabs-link { text-decoration: none !important; }
.feed-tabs a {
    flex: 1; text-align: center; padding: 9px 6px; font-weight: 600; font-size: 13.5px;
    color: var(--text-secondary); border-radius: 3px;
}
.feed-tabs a.active { background: var(--steem-blue); color: #fff; }
.feed-tabs a:hover { text-decoration: none; }
.feed-tabs a:hover:not(.active) { background: var(--bg-body); }
.draft-note { font-size: 12px; color: var(--text-muted); margin-right: auto; align-self: center; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.price-row .sym { font-weight: 700; color: var(--text-primary); }
.vp-bar { height: 6px; background: var(--gray-pill); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.vp-bar > div { height: 100%; background: var(--steem-green); }
.mobile-nav { display: none; }
@media (max-width: 860px) {
    .mobile-nav {
        display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
        background: var(--bg-card); border-top: 1px solid var(--border-light);
    }
    .mobile-nav a {
        flex: 1; text-align: center; padding: 9px 0 10px; font-size: 11.5px;
        color: var(--text-secondary); font-weight: 600;
    }
    .mobile-nav a span { display: block; font-size: 18px; }
    .mobile-nav a:hover { text-decoration: none; }
    body { padding-bottom: 60px; }
    #toast-wrap { bottom: 74px; }
}
@media (max-width: 600px) {
    .nav-right .btn-submit .label { display: none; }
    .user-chip .uname { display: none; }
}

.nav-tabs a {
    color: rgba(255, 255, 255, .75); padding: 8px 12px; border-radius: 3px;
    font-size: 14px; font-weight: 600; border-bottom: 2px solid transparent;
}
.nav-tabs a:hover { color: #fff; text-decoration: none; }
.nav-tabs a.active { color: #fff; border-bottom-color: #6cc3ff; }
.side-nav a.active { color: var(--steem-link); }
[data-theme="dark"] .feed-tabs a.active { background: var(--steem-red); }

/* ---------- Markdown content (steemit-compatible) ---------- */
.article-content h1 { font-size: 1.7em; } .article-content h2 { font-size: 1.45em; }
.article-content h3 { font-size: 1.25em; } .article-content h4 { font-size: 1.1em; }
.article-content h4, .article-content h5, .article-content h6 { margin: 1.2em 0 .5em; }
.article-content ul, .article-content ol { padding-left: 1.6em; margin: 0 0 1em; }
.article-content li { margin: .25em 0; }
.article-content hr { border: none; border-top: 1px solid var(--border-light); margin: 1.6em 0; }
.article-content table { border-collapse: collapse; width: 100%; margin: 1em 0; display: block; overflow-x: auto; }
.article-content th, .article-content td { border: 1px solid var(--border-mid); padding: 7px 10px; text-align: left; }
.article-content th { background: var(--bg-soft); }
.article-content center, .article-content .text-center { text-align: center; display: block; }
.article-content center img { margin-left: auto; margin-right: auto; }
.article-content img { height: auto; display: inline-block; }
.article-content .text-justify { text-align: justify; }
.article-content .text-right { text-align: right; }
.article-content .pull-left { float: left; max-width: 50%; margin: 0 1em 1em 0; }
.article-content .pull-right { float: right; max-width: 50%; margin: 0 0 1em 1em; }
.article-content::after { content: ""; display: table; clear: both; }
.article-content del { opacity: .7; }
.article-content .video-embed { position: relative; padding-top: 56.25%; margin: 1em 0; }
.article-content .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.comment-text p:last-child { margin-bottom: 0; }
.comment-text img { max-width: 100%; max-height: 420px; }

/* ---------- Split editor (write left, live preview right) ---------- */
body.wide-editor .col-left, body.wide-editor .col-right { display: none; }
body.wide-editor .page { max-width: 1500px; }
.editor-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.editor-pane-write, .editor-pane-preview { min-width: 0; display: flex; flex-direction: column; }
.pane-head {
    font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px;
    color: var(--text-secondary); margin-bottom: 8px; display: flex; gap: 8px; align-items: baseline;
}
.pane-head .pane-sub { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text-muted); margin-left: auto; }
.editor-split textarea.md-editor { flex: 1; min-height: 560px; height: 62vh; }
.editor-pane-preview .preview-pane {
    flex: 1; min-height: 560px; height: calc(62vh + 92px); overflow-y: auto;
    background: var(--bg-card); font-size: 15.5px;
}
.editor-pane-preview .preview-pane .article-title { font-size: 24px; margin-top: 0; }
.editor-mobile-tabs { display: none; }
.schedule-box {
    margin-top: 16px; padding: 14px 16px; border: 1px dashed var(--border-mid);
    border-radius: var(--radius); background: var(--bg-soft);
}
.schedule-toggle { font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.schedule-toggle input { width: 17px; height: 17px; }
@media (max-width: 900px) {
    .editor-split { grid-template-columns: 1fr; }
    .editor-mobile-tabs { display: flex; }
    .editor-split .editor-pane-preview { display: none; }
    .editor-split.show-preview .editor-pane-preview { display: flex; }
    .editor-split.show-preview .editor-pane-write { display: none; }
    .editor-split textarea.md-editor, .editor-pane-preview .preview-pane { min-height: 380px; height: 55vh; }
}

/* ---------- Admin panel ---------- */
.admin-wrap { max-width: 1200px; margin: 0 auto; }
.admin-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.admin-head h2 { margin: 0; }
.admin-tabs { flex-wrap: wrap; }
.admin-tabs button { flex: 1 1 auto; }
.admin-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-form input[type=text], .admin-form input[type=password], .admin-form input[type=number],
.admin-setting input[type=text], .admin-setting input[type=number], .admin-setting textarea, .tx-table input[type=number] {
    border: 1px solid var(--border-mid); border-radius: var(--radius); padding: 8px 10px;
    font-size: 14px; font-family: inherit; background: var(--bg-card); color: var(--text-primary);
}
.admin-setting {
    display: flex; justify-content: space-between; gap: 16px; align-items: center;
    padding: 12px 0; border-bottom: 1px solid var(--border-light); flex-wrap: wrap;
}
.admin-setting > div:first-child { flex: 1; min-width: 240px; }

/* =====================================================================
   STEEM SPACE — DESIGN v2 (white + teal, rounded cards)
   This layer overrides the earlier styles above.
   ===================================================================== */
:root {
    --brand: #0f9d84;
    --brand-dark: #0b8370;
    --brand-soft: #e6f6f2;
    --brand-softer: #f1faf8;
    --steem-blue: var(--brand);
    --steem-blue-dark: var(--brand-dark);
    --steem-red: var(--brand);
    --steem-link: var(--brand);
    --steem-link-hover: var(--brand-dark);
    --steem-green: #16a34a;
    --danger: #e5484d;
    --bg-body: #f5f7f9;
    --bg-card: #ffffff;
    --bg-soft: #f6f8fa;
    --bg-head: #ffffff;
    --border-light: #e8ecef;
    --border-mid: #d5dbe1;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #8a94a3;
    --text-body: #27303d;
    --gray-pill: #f0f3f5;
    --shadow-card: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .05);
    --radius: 12px;
    --radius-sm: 8px;
}
[data-theme="dark"] {
    --brand: #19c3a3;
    --brand-dark: #13a589;
    --brand-soft: #123a35;
    --brand-softer: #102b28;
    --bg-body: #0d1117;
    --bg-card: #161b22;
    --bg-soft: #1c232c;
    --bg-head: #161b22;
    --border-light: #262e38;
    --border-mid: #36404c;
    --text-primary: #e6edf3;
    --text-secondary: #adb7c3;
    --text-muted: #7d8794;
    --text-body: #d5dde6;
    --gray-pill: #1f2730;
    --steem-blue: var(--brand);
    --steem-red: var(--brand);
    --shadow-card: none;
}
body { font-family: 'Inter', 'Noto Sans Bengali', system-ui, sans-serif; font-size: 15px; }
.ic { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }
.btn { border-radius: var(--radius-sm); font-weight: 600; }
.btn-submit { background: var(--brand); color: #fff; }
.btn-submit:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }
.btn-secondary { background: var(--bg-card); border-color: var(--border-mid); color: var(--text-primary); }
.btn-secondary:hover { background: var(--bg-soft); text-decoration: none; }
.badge { border-radius: 6px; }

/* ---------- Top bar ---------- */
.topnav { background: var(--bg-card); color: var(--text-primary); box-shadow: none; border-bottom: 1px solid var(--border-light); }
.topnav-inner { max-width: 1440px; height: 68px; gap: 24px; padding: 0 24px; }
.brand { color: var(--text-primary); gap: 10px; font-size: 22px; }
.brand:hover { color: var(--text-primary); }
.brand img { width: 42px; height: 42px; border-radius: 50%; }
.brand-text { font-weight: 700; letter-spacing: -.3px; }
.brand-text b { color: var(--brand); }
.nav-search { max-width: 640px; margin: 0 auto; }
.nav-search input { background: var(--bg-soft); color: var(--text-primary); border: 1px solid transparent; border-radius: 12px; padding: 11px 16px 11px 44px; font-size: 14.5px; }
.nav-search input::placeholder { color: var(--text-muted); }
.nav-search input:focus { background: var(--bg-card); border-color: var(--brand); }
.nav-search .ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); opacity: 1; }
.nav-right { margin-left: 0; gap: 8px; }
.nav-right-inner { display: flex; align-items: center; gap: 10px; }
.icon-btn {
    position: relative; width: 42px; height: 42px; border-radius: 50%; border: none; background: transparent;
    color: var(--text-secondary); display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--text-primary); }
.icon-btn .dot-badge {
    position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: none;
    align-items: center; justify-content: center; border: 2px solid var(--bg-card);
}
.btn-write { padding: 10px 20px; border-radius: 10px; font-size: 15px; gap: 8px; }
.btn-login { background: transparent; border: 1px solid var(--border-mid); color: var(--text-primary); border-radius: 10px; padding: 9px 18px; }
.btn-login:hover { border-color: var(--brand); color: var(--brand); }
.user-chip { background: transparent; color: var(--text-secondary); padding: 3px; border-radius: 24px; cursor: pointer; }
.user-chip:hover { background: var(--bg-soft); }
.user-chip img { width: 40px; height: 40px; background: var(--gray-pill); }
.user-chip .caret { display: inline-flex; }
.user-menu { top: 52px; border-radius: var(--radius); min-width: 230px; box-shadow: 0 10px 30px rgba(16, 24, 40, .14); padding: 6px; }
.user-menu a, .user-menu button { border: none; border-radius: 8px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.user-menu .menu-head { padding: 10px 12px; border-bottom: 1px solid var(--border-light); margin-bottom: 4px; font-size: 13px; color: var(--text-muted); }
.user-menu .menu-head b { display: block; color: var(--text-primary); font-size: 15px; }

/* ---------- Layout ---------- */
.page { max-width: 1440px; gap: 28px; padding: 22px 24px 60px; }
.col-left { width: 248px; top: 90px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; }
.col-right { width: 340px; top: 90px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; }
@media (max-width: 1240px) { .col-right { width: 300px; } .col-left { width: 220px; } }

/* ---------- Left menu ---------- */
.side-menu a {
    display: flex; align-items: center; gap: 14px; padding: 11px 14px; margin-bottom: 4px; border-radius: 10px;
    color: var(--text-primary); font-weight: 500; font-size: 15.5px;
}
.side-menu a .ic { color: var(--text-secondary); }
.side-menu a:hover { background: var(--bg-card); text-decoration: none; }
.side-menu a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.side-menu a.active .ic { color: var(--brand); }
.side-menu-sm a { font-size: 14.5px; padding: 9px 14px; }
.side-divider { height: 1px; background: var(--border-light); margin: 14px 10px; }
.side-title { font-size: 14px; color: var(--text-muted); font-weight: 500; padding: 4px 14px 10px; }
.side-communities a {
    display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 10px;
    color: var(--text-primary); font-size: 14.5px; font-weight: 500;
}
.side-communities a:hover { background: var(--bg-card); text-decoration: none; }
.side-communities img { width: 32px; height: 32px; border-radius: 50%; background: var(--gray-pill); object-fit: cover; }
.side-communities span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-more { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; color: var(--text-secondary); font-size: 14px; }

/* ---------- Cards (generic) ---------- */
.side-card, .article-card, .comment-box, .editor-wrap, .profile-head, .community-head, .wallet-tile, .post-card, .widget, .feed-box {
    border-radius: var(--radius); border-color: var(--border-light); box-shadow: var(--shadow-card);
}

/* ---------- Feed tabs + composer ---------- */
.feed-box { background: var(--bg-card); border: 1px solid var(--border-light); margin-bottom: 16px; overflow: hidden; }
.feed-box .feed-tabs { border: none; border-bottom: 1px solid var(--border-light); border-radius: 0; margin: 0; padding: 0 16px; gap: 6px; background: transparent; }
.feed-tabs a, .feed-tabs button { flex: 0 0 auto; padding: 14px 18px; border-radius: 0; font-size: 15px; font-weight: 500; color: var(--text-secondary); border-bottom: 3px solid transparent; display: inline-flex; align-items: center; gap: 7px; }
.feed-tabs a.active, .feed-tabs button.active { background: transparent !important; color: var(--brand); font-weight: 600; border-bottom-color: var(--brand); }
.feed-tabs a:hover:not(.active), .feed-tabs button:hover:not(.active) { background: transparent; color: var(--text-primary); }
.feed-tabs:not(.feed-box .feed-tabs) { background: var(--bg-card); border-radius: var(--radius); padding: 0 12px; }
.composer { display: flex; gap: 14px; padding: 16px; }
.composer > img { width: 44px; height: 44px; border-radius: 50%; background: var(--gray-pill); flex-shrink: 0; }
.composer-box { flex: 1; border: 1px solid var(--border-light); border-radius: 12px; overflow: hidden; }
.composer-box textarea {
    width: 100%; border: none; outline: none; resize: none; padding: 14px 16px; min-height: 58px;
    font: inherit; font-size: 15px; color: var(--text-primary); background: transparent;
}
.composer-box textarea::placeholder { color: var(--text-muted); }
.composer-tools { display: flex; align-items: center; gap: 4px; padding: 6px 8px 8px 10px; border-top: 1px solid var(--border-light); }
.composer-tools .ctool { background: none; border: none; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 8px; color: var(--text-secondary); font-size: 14px; }
.composer-tools .ctool:hover { background: var(--bg-soft); color: var(--text-primary); }
.composer-tools .btn { margin-left: auto; padding: 8px 22px; }

/* ---------- Post card v2 ---------- */
.post-card { display: block; padding: 16px 20px 12px; margin-bottom: 14px; }
.pc-head { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); margin-bottom: 12px; flex-wrap: wrap; position: relative; }
.pc-head .pc-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gray-pill); object-fit: cover; }
.pc-author { font-weight: 700; color: var(--text-primary); font-size: 15.5px; }
.pc-author:hover { color: var(--brand); text-decoration: none; }
.pc-rep { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); font-size: 11.5px; font-weight: 700; }
.pc-in a { color: var(--text-secondary); font-weight: 500; }
.pc-time { color: var(--text-muted); }
.pc-more-wrap { margin-left: auto; position: relative; }
.pc-more { background: none; border: none; color: var(--text-muted); width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.pc-more:hover { background: var(--bg-soft); color: var(--text-primary); }
.pc-menu {
    display: none; position: absolute; right: 0; top: 38px; z-index: 20; min-width: 200px; padding: 6px;
    background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 12px; box-shadow: 0 10px 30px rgba(16, 24, 40, .14);
}
.pc-menu.show { display: block; }
.pc-menu a, .pc-menu button {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 8px;
    background: none; border: none; color: var(--text-primary); font-size: 14px; text-align: left;
}
.pc-menu a:hover, .pc-menu button:hover { background: var(--bg-soft); text-decoration: none; }
.pc-menu .danger { color: var(--danger); }
.pc-resteemed { font-size: 12.5px; color: var(--text-muted); margin: -4px 0 10px; display: flex; align-items: center; gap: 6px; }
.pc-main { display: flex; gap: 20px; align-items: flex-start; }
.pc-thumb { flex: 0 0 290px; height: 132px; border-radius: 10px; overflow: hidden; background: var(--gray-pill); display: block; }
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.post-card:hover .pc-thumb img { transform: scale(1.03); }
.pc-text { flex: 1; min-width: 0; }
.pc-title { font-size: 17.5px; font-weight: 700; line-height: 1.35; margin: 0 0 6px; letter-spacing: -.1px; }
.pc-title a { color: var(--text-primary); }
.pc-title a:hover { color: var(--brand); text-decoration: none; }
.pc-excerpt { color: var(--text-secondary); font-size: 14.5px; line-height: 1.55; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-tag { background: var(--brand-soft); color: var(--brand); border-radius: 7px; padding: 3px 11px; font-size: 12.5px; font-weight: 600; }
.pc-tag:hover { background: var(--brand); color: #fff; text-decoration: none; }
.pc-foot { display: flex; align-items: center; gap: 14px; margin-top: 14px; color: var(--text-secondary); font-size: 14.5px; }
.pc-vote {
    width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--brand); background: var(--bg-card);
    color: var(--brand); display: inline-flex; align-items: center; justify-content: center; transition: .15s;
}
.pc-vote:hover, .pc-vote.voted { background: var(--brand); color: #fff; }
.pc-vote.down { border-color: var(--border-mid); color: var(--text-muted); width: 30px; height: 30px; }
.pc-vote.down:hover, .pc-vote.down.voted { background: var(--danger); border-color: var(--danger); color: #fff; }
.pc-payout { background: none; border: none; color: var(--brand); font-weight: 700; font-size: 15.5px; display: inline-flex; align-items: center; gap: 3px; padding: 4px 2px; }
.pc-sep { width: 1px; height: 20px; background: var(--border-light); }
.pc-act { background: none; border: none; display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); font-weight: 500; font-size: 14.5px; padding: 6px 4px; }
.pc-act:hover { color: var(--brand); text-decoration: none; }
.pc-act.resteemed { color: var(--steem-green); }
@media (max-width: 760px) {
    .pc-main { flex-direction: column; }
    .pc-thumb { flex: none; width: 100%; height: 190px; }
    .post-card { padding: 14px; }
    .pc-foot { gap: 10px; }
}

/* ---------- Right widgets ---------- */
.widget { background: var(--bg-card); border: 1px solid var(--border-light); padding: 18px; margin-bottom: 16px; }
.widget-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--brand); }
.widget-head h3 { margin: 0; font-size: 16.5px; color: var(--text-primary); font-weight: 700; flex: 1; }
.widget-link { font-size: 14px; font-weight: 500; }
.announce {
    display: flex; gap: 14px; align-items: center; background: var(--brand-softer); border-radius: 10px; padding: 16px;
    color: var(--text-primary); margin-bottom: 8px;
}
.announce:hover { text-decoration: none; background: var(--brand-soft); }
.announce-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.announce b { color: var(--brand); display: block; font-size: 15px; margin-bottom: 3px; }
.announce .announce-text { font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; display: block; }
.announce .announce-icon .ic { color: #fff; }
.announce .ic-go { margin-left: auto; color: var(--text-secondary); }
.tc-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--text-primary); }
.tc-row:hover { text-decoration: none; }
.tc-row:hover .tc-name { color: var(--brand); }
.tc-rank { width: 20px; text-align: center; color: var(--text-secondary); font-weight: 500; }
.tc-row img { width: 46px; height: 46px; border-radius: 50%; background: var(--gray-pill); object-fit: cover; }
.tc-name { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-sub { font-size: 13px; color: var(--text-muted); }
.tc-trend { margin-left: auto; color: var(--steem-green); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.sc-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.sc-row img { width: 46px; height: 46px; border-radius: 50%; background: var(--gray-pill); object-fit: cover; }
.sc-row .info { flex: 1; min-width: 0; }
.sc-row .name { font-weight: 600; color: var(--text-primary); font-size: 14.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-row .about { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-row .btn { padding: 6px 16px; border-radius: 8px; }
.side-footer { font-size: 12px; color: var(--text-muted); line-height: 1.7; padding: 4px 6px 20px; }
.side-footer img { vertical-align: -4px; border-radius: 50%; }
.site-footer { display: none; }

/* ---------- Misc restyles ---------- */
.tag-pill { background: var(--brand-soft); border: none; color: var(--brand); border-radius: 7px; }
.tag-pill:hover { background: var(--brand); color: #fff; }
.vote-btn.upvoted { background: var(--brand); border-color: var(--brand); }
.profile-banner { background: linear-gradient(120deg, #0b3d5c, var(--brand)); height: 130px; border-radius: var(--radius) var(--radius) 0 0; }
.payout-amt { color: var(--brand); }
.modal-box { border-radius: 14px; }
.toast { border-radius: 10px; }
.mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mobile-nav a.mn-write { color: var(--brand); }
[data-theme="dark"] .feed-tabs a.active { background: transparent; }
@media (max-width: 860px) {
    .topnav-inner { gap: 12px; padding: 0 14px; height: 60px; }
    .brand-text { display: none; }
    .page { padding: 14px 12px 70px; }
}
@media (max-width: 600px) {
    .nav-search { display: block; }
    .nav-search input { padding-left: 38px; font-size: 13.5px; }
    .btn-write .label, .btn-write { padding: 9px 12px; }
    .btn-write .label { display: none; }
    #themeToggle { display: none; }
}

@media (max-width: 600px) {
    .composer { padding: 12px; gap: 10px; }
    .composer > img { display: none; }
    .composer-tools .ctool { padding: 7px 8px; font-size: 0; gap: 0; }
    .composer-tools .ctool .ic { width: 20px; height: 20px; }
    .composer-tools .btn { padding: 8px 16px; }
    .feed-box .feed-tabs { padding: 0 6px; }
    .feed-tabs a, .feed-tabs button { padding: 13px 12px; }
    .pc-in { display: none; }
}

/* ---------- Translation ---------- */
.translate-bar {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 12px; margin: -4px 0 18px;
    background: var(--brand-softer); border: 1px solid var(--border-light); border-radius: 10px; font-size: 13.5px;
}
.translate-bar .tb-label { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-weight: 600; margin-right: 4px; }
.translate-bar .tb-lang {
    border: 1px solid var(--border-mid); background: var(--bg-card); color: var(--text-primary); border-radius: 999px;
    padding: 5px 12px; font-size: 13.5px; font-family: 'Inter', 'Noto Sans Bengali', 'Noto Sans Devanagari', 'Noto Naskh Arabic', sans-serif;
}
.translate-bar .tb-lang:hover { border-color: var(--brand); color: var(--brand); }
.translate-bar .tb-lang.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.translate-bar .tb-status { flex-basis: 100%; color: var(--text-muted); font-size: 12.5px; display: flex; align-items: center; gap: 8px; }
.translate-bar .tb-status:empty { display: none; }
.article-content.is-translated { animation: fadeIn .3s ease; }
.article-content[dir="rtl"], .article-title[dir="rtl"] { text-align: right; font-family: 'Noto Naskh Arabic', 'Inter', sans-serif; }
.article-content[lang="hi"] { font-family: 'Noto Sans Devanagari', 'Inter', sans-serif; }
@keyframes fadeIn { from { opacity: .3; } to { opacity: 1; } }
.pc-menu-sep { height: 1px; background: var(--border-light); margin: 6px 4px; }
.pc-menu-label { display: flex; align-items: center; gap: 8px; padding: 6px 12px 4px; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .3px; }
.pc-menu .pc-menu-sub { margin-left: auto; font-size: 12px; color: var(--text-muted); }

/* =====================================================================
   RESPONSIVE v3 — desktop ≥1180 · laptop 900–1179 · tablet 600–899 · phone <600
   ===================================================================== */
/* Elements that only exist on small screens */
.drawer-btn, .search-btn, .search-close, .drawer-head, .drawer-only, .drawer-backdrop, .mobile-communities { display: none; }
.pc-who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.pc-line1, .pc-line2 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.side-theme {
    display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 14px; border: none; border-radius: 10px;
    background: none; color: var(--text-primary); font-size: 14.5px; font-weight: 500;
}
.side-theme:hover { background: var(--bg-soft); }

/* ---------- Laptop: drop the right column ---------- */
@media (max-width: 1179px) {
    .col-right { display: none; }
    .page { gap: 22px; }
    .col-left { width: 220px; }
}

/* ---------- Tablet & phone: left column becomes a drawer ---------- */
@media (max-width: 899px) {
    .drawer-btn { display: inline-flex; margin-left: -6px; }
    .col-left {
        display: block !important; position: fixed; top: 0; left: 0; bottom: 0; z-index: 300;
        width: 300px; max-width: 86vw; max-height: none; padding: 12px 12px 30px;
        background: var(--bg-card); box-shadow: 8px 0 30px rgba(0, 0, 0, .15);
        transform: translateX(-105%); transition: transform .25s ease; overflow-y: auto;
    }
    body.drawer-open .col-left { transform: translateX(0); }
    .drawer-backdrop {
        display: block; position: fixed; inset: 0; z-index: 290; background: rgba(15, 23, 42, .45);
        opacity: 0; pointer-events: none; transition: opacity .25s;
    }
    body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
    body.drawer-open { overflow: hidden; }
    .drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 14px; border-bottom: 1px solid var(--border-light); margin-bottom: 10px; }
    .drawer-head .brand { font-size: 19px; }
    .drawer-head .brand img { width: 38px; height: 38px; }
    .drawer-head .brand-text { display: inline !important; }
    .drawer-only { display: block; }
    .side-menu a:hover, .side-communities a:hover { background: var(--bg-soft); }
    .page { display: block; padding: 14px 14px 90px; }
    .col-main { width: 100%; max-width: 760px; margin: 0 auto; }
    .topnav-inner { padding: 0 14px; gap: 12px; height: 62px; }
    .nav-search { max-width: none; }

    /* Bottom navigation */
    .mobile-nav {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; height: 64px;
        padding-bottom: env(safe-area-inset-bottom); background: var(--bg-card);
        border-top: 1px solid var(--border-light); box-shadow: 0 -4px 20px rgba(16, 24, 40, .06);
    }
    .mobile-nav a { flex: 1; position: relative; justify-content: center; color: var(--text-muted); font-size: 11px; font-weight: 600; gap: 3px; }
    .mobile-nav a .ic { width: 23px; height: 23px; }
    .mobile-nav a.active { color: var(--brand); }
    .mobile-nav a.active::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
    .mobile-nav a.mn-write.active::before { display: none; }
    .mn-fab {
        width: 52px; height: 52px; margin-top: -22px; border-radius: 50%; background: var(--brand); color: #fff;
        display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(15, 157, 132, .4);
        border: 4px solid var(--bg-card);
    }
    .mn-badge {
        display: none; position: absolute; top: 6px; left: calc(50% + 4px); min-width: 17px; height: 17px; padding: 0 4px;
        border-radius: 9px; background: var(--danger); color: #fff; font-size: 10px; font-style: normal; font-weight: 700;
        align-items: center; justify-content: center;
    }
    body[data-view="editor"] .mobile-nav, body[data-view="admin"] .mobile-nav { display: none; }
    body[data-view="editor"] .page { padding-bottom: 30px; }
    #toast-wrap { bottom: 80px; left: 12px; right: 12px; align-items: center; }
    .toast { min-width: 0; width: 100%; max-width: 460px; }

    /* Communities strip */
    .mobile-communities {
        display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px; margin: 0 -14px 4px; padding-left: 14px; padding-right: 14px;
        scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .mobile-communities::-webkit-scrollbar { display: none; }
    .mobile-communities:empty { display: none; }
    .mc-item { flex: 0 0 auto; width: 66px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-secondary); text-decoration: none !important; }
    .mc-ring {
        width: 60px; height: 60px; border-radius: 50%; padding: 3px; display: flex; align-items: center; justify-content: center;
        background: linear-gradient(135deg, var(--brand), #3fd0b6 50%, #0b6e8f);
    }
    .mc-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg-body); background: var(--bg-card); }
    .mc-all .mc-ring { background: var(--brand-soft); color: var(--brand); }
    .mc-name { font-size: 11.5px; font-weight: 500; max-width: 66px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }

    /* Generic */
    .article-card { padding: 20px; }
    .tx-table { display: block; overflow-x: auto; white-space: nowrap; }
    .feed-tabs, .admin-tabs, #profileFeedTabs { overflow-x: auto; flex-wrap: nowrap !important; scrollbar-width: none; }
    .feed-tabs::-webkit-scrollbar { display: none; }
    .feed-tabs a, .feed-tabs button { white-space: nowrap; flex: 0 0 auto !important; }
}

/* ---------- Phone ---------- */
@media (max-width: 599px) {
    body { font-size: 14.5px; }
    .topnav-inner { height: 58px; gap: 6px; padding: 0 10px; }
    .brand img { width: 36px; height: 36px; }
    .brand-text { display: none; }
    .search-btn { display: inline-flex; }
    .nav-search { display: none !important; }
    .topnav.search-open .nav-search {
        display: flex !important; position: absolute; inset: 0; z-index: 5; max-width: none; margin: 0;
        align-items: center; padding: 0 10px; background: var(--bg-card); gap: 6px;
    }
    .topnav.search-open .nav-search input { flex: 1; padding-left: 40px; font-size: 15px; }
    .topnav.search-open .nav-search > .ic { left: 24px; }
    .topnav.search-open .search-close { display: inline-flex; }
    .nav-right { margin-left: auto; gap: 2px; }
    #themeToggle { display: none; }
    .btn-write { display: none !important; }
    .btn-login { padding: 7px 14px; font-size: 14px; }
    .user-chip img { width: 36px; height: 36px; }
    .user-chip .caret { display: none; }
    .user-menu { position: fixed; top: 62px; right: 10px; left: auto; }
    .icon-btn { width: 40px; height: 40px; }

    .page { padding: 10px 10px 88px; }
    .mobile-communities { margin: 0 -10px 2px; padding-left: 10px; padding-right: 10px; }

    /* Feed box */
    .feed-box { border-radius: 14px; margin-bottom: 12px; }
    .feed-box .feed-tabs { padding: 0 4px; }
    .feed-tabs a, .feed-tabs button { padding: 13px 14px; font-size: 14.5px; }
    .composer { padding: 10px 12px 12px; }
    .composer-box { border-radius: 22px; }
    .composer-box textarea { padding: 11px 16px; min-height: 0; }
    .composer-tools { border-top: none; padding: 0 8px 8px 8px; }

    /* Post card (phone) */
    .post-card { padding: 14px 14px 10px; border-radius: 14px; margin-bottom: 12px; }
    .pc-head { gap: 10px; margin-bottom: 10px; flex-wrap: nowrap; }
    .pc-head .pc-avatar { width: 40px; height: 40px; }
    .pc-who { flex-direction: column; align-items: flex-start; gap: 1px; flex: 1; }
    .pc-line2 { font-size: 12.5px; gap: 5px; max-width: 100%; }
    .pc-line2 .pc-in { display: inline; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
    .pc-head .badge { display: none; }
    .pc-author { font-size: 15px; }
    .pc-main { display: grid; grid-template-columns: 1fr; gap: 0; }
    .pc-text { display: contents; }
    .pc-title { order: 1; font-size: 16.5px; margin-bottom: 4px; }
    .pc-excerpt { order: 2; -webkit-line-clamp: 2; font-size: 14px; margin-bottom: 10px; }
    .pc-thumb { order: 3; flex: none; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; margin-bottom: 10px; }
    .pc-tags { order: 4; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; }
    .pc-tags::-webkit-scrollbar { display: none; }
    .pc-tag { flex: 0 0 auto; }
    .pc-foot { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border-light); gap: 6px; justify-content: space-between; }
    .pc-sep { display: none; }
    .pc-act { padding: 8px 10px; border-radius: 8px; }
    .pc-act:active, .pc-vote:active { transform: scale(.94); }
    .pc-menu { position: fixed; left: 10px; right: 10px; top: auto; bottom: 74px; min-width: 0; border-radius: 16px; padding: 8px; box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); }
    .pc-menu a, .pc-menu button { padding: 12px 14px; font-size: 15px; }

    /* Article */
    .article-card { padding: 16px; border-radius: 14px; }
    .article-title { font-size: 22px; line-height: 1.3; }
    .article-content { font-size: 16px; line-height: 1.75; }
    .article-meta { gap: 8px; }
    .article-meta .edit-link { margin-left: 0 !important; }
    .payout-bar { gap: 8px; }
    .payout-bar > div:first-child { flex-basis: 100%; }
    .payout-bar .btn { flex: 1 1 calc(50% - 8px); justify-content: center; padding: 9px 8px; }
    .translate-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -4px; margin-right: -4px; }
    .translate-bar .tb-label span, .translate-bar .tb-label { white-space: nowrap; }
    .translate-bar .tb-lang { flex: 0 0 auto; }
    .translate-bar .tb-status { flex-basis: auto; white-space: nowrap; }
    .comment-box { padding: 14px; border-radius: 14px; }
    .comment-children { margin-left: 10px; padding-left: 10px; }
    .comment-children .comment-children { margin-left: 4px; }
    .comment-item img.avatar { width: 30px; height: 30px; }

    /* Profile */
    .profile-banner { height: 110px; }
    .profile-top { flex-direction: column; align-items: center; margin-top: -46px; padding: 0 16px; }
    .profile-top .btn { margin: 0 auto; }
    .profile-info { text-align: center; padding: 8px 16px 14px; }
    .profile-stats { justify-content: center; gap: 10px 16px; padding: 0 16px 16px; }
    .community-head { padding: 16px; }
    .community-head > div:last-child { flex-direction: row !important; width: 100%; }
    .community-head > div:last-child .btn { flex: 1; justify-content: center; }

    /* Wallet, witnesses, admin */
    .wallet-grid { grid-template-columns: 1fr; gap: 10px; }
    .wallet-tile .wt-value { font-size: 20px; }
    .wallet-actions { flex-wrap: wrap; }
    .admin-setting > div:first-child { min-width: 0; }
    .admin-form > * { flex: 1 1 100%; }

    /* Editor */
    .editor-wrap { padding: 14px; border-radius: 14px; }
    .editor-wrap input[type=text]#editorTitle { font-size: 19px; }
    .md-toolbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
    .md-toolbar button { flex: 0 0 auto; width: 38px; height: 36px; }
    .editor-footer > div { min-width: 0 !important; flex-basis: 100% !important; }
    #scheduleFields .btn { flex: 1 1 calc(50% - 8px); justify-content: center; }
    #scheduleAt { width: 100% !important; }

    /* Modals become bottom sheets */
    .modal-overlay { align-items: flex-end; padding: 0; }
    .modal-box, .modal-box.wide { max-width: 100%; border-radius: 18px 18px 0 0; animation: sheetUp .25s ease; max-height: 92vh; overflow-y: auto; }
    .modal-box::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--border-mid); margin: 8px auto 0; }
    .modal-footer { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
    .modal-footer .btn { flex: 1; justify-content: center; }
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: .5; } to { transform: none; opacity: 1; } }

/* Very small phones */
@media (max-width: 360px) {
    .pc-act { padding: 8px 6px; font-size: 13.5px; }
    .mobile-nav a span { font-size: 10px; }
}
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 899px) {
    .mobile-nav a span { display: block; font-size: 11px; line-height: 1.2; }
    .mobile-nav a .mn-fab { display: flex; font-size: 0; }
}
@media (max-width: 599px) {
    body.pcmenu-open::after { content: ""; position: fixed; inset: 0; z-index: 250; background: rgba(15, 23, 42, .4); }
    .pc-menu.show { z-index: 260; }
    body.pcmenu-open .post-card { opacity: 1 !important; }
}
input[type=range] { accent-color: var(--brand); }
.article-meta .meta-text { flex: 1; min-width: 0; }
@media (max-width: 599px) {
    .article-meta { flex-wrap: nowrap; align-items: flex-start; }
    .article-meta .meta-text .sub { line-height: 1.5; }
    .article-meta .edit-link { display: none; }
    #voteModal .vote-slider-wrap { gap: 12px; }
    #voteWeightSlider { flex: 1; }
}

/* Downvote confirm button */
.btn-submit.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-submit.btn-danger:hover { filter: brightness(.92); }
.pc-foot .pc-vote.down { margin-left: 4px; }

/* ===== Embossed login (SIGN IN) ===== */
#loginModal { align-items: center !important; }
.emboss-wrap { position: relative; width: min(440px, 94vw); margin: auto; text-align: center; padding: 8px 0; }
.emboss-close { position: absolute; right: 4px; top: -36px; border: none; background: none; color: #fff; font-size: 20px; cursor: pointer; }
.emboss-card {
    width: 100%; aspect-ratio: 1 / 1; border-radius: 50%;
    background: var(--bg-body);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    padding: 0 56px; box-sizing: border-box;
    box-shadow: 14px 14px 30px rgba(163,177,198,.65), -14px -14px 30px rgba(255,255,255,.95);
    animation: embossIn .5s ease both;
}
@keyframes embossIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
.emboss-title { margin: 0 0 4px; font-size: 22px; font-weight: 800; letter-spacing: .14em; color: var(--text-primary); }
.emboss-card .login-method-toggle {
    display: flex; gap: 4px; width: 100%; max-width: 260px; margin: 0; padding: 4px; border-radius: 999px;
    background: var(--bg-body);
    box-shadow: inset 4px 4px 8px rgba(163,177,198,.6), inset -4px -4px 8px rgba(255,255,255,.9);
}
.emboss-card .login-method-toggle button {
    flex: 1; height: 34px; border: none; border-radius: 999px; background: transparent;
    font-size: 13px; font-weight: 600; color: var(--text-secondary); cursor: pointer; transition: all .25s;
}
.emboss-card .login-method-toggle button.active {
    color: var(--steem-blue); background: var(--bg-body);
    box-shadow: 4px 4px 8px rgba(163,177,198,.7), -4px -4px 8px #fff;
}
.emboss-input {
    width: 100%; max-width: 280px; height: 46px; border: none; outline: none; border-radius: 999px;
    padding: 0 20px; font-size: 15px; color: var(--text-primary); background: var(--bg-body);
    box-shadow: inset 6px 6px 12px rgba(163,177,198,.7), inset -6px -6px 12px rgba(255,255,255,.95);
    transition: box-shadow .25s, transform .25s;
}
.emboss-input::placeholder { color: var(--text-muted); }
.emboss-input:focus {
    transform: translateY(-1px);
    box-shadow: inset 3px 3px 6px rgba(163,177,198,.55), inset -3px -3px 6px rgba(255,255,255,.95), 0 0 0 2px var(--steem-link);
}
.emboss-key { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.emboss-remember { font-size: 12.5px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.emboss-remember input { width: auto; margin: 0; }
.emboss-btn {
    height: 46px; min-width: 150px; padding: 0 36px; border: none; border-radius: 999px;
    background: var(--bg-body); color: var(--steem-blue); font-size: 15px; font-weight: 700; letter-spacing: .08em;
    cursor: pointer; transition: transform .15s, box-shadow .15s, color .2s;
    box-shadow: 6px 6px 12px rgba(163,177,198,.7), -6px -6px 12px #fff;
}
.emboss-btn:hover { color: var(--steem-link-hover); }
.emboss-btn:active { transform: scale(.97); box-shadow: inset 4px 4px 8px rgba(163,177,198,.7), inset -4px -4px 8px #fff; }
.emboss-btn:disabled { opacity: .6; cursor: wait; }
.emboss-notes { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.emboss-note { font-size: 12.5px; color: #e8edf5; line-height: 1.5; }
.emboss-wrap .error-text { color: #ffd6d6; font-weight: 600; }
.emboss-wrap .error-text.show { display: block; }
@media (max-width: 480px) { .emboss-card { padding: 0 44px; gap: 12px; } .emboss-title { font-size: 19px; } }
[data-theme="dark"] .emboss-card {
    background: #1b2433;
    box-shadow: 12px 12px 26px #0b0f16, -10px -10px 24px #263247;
}
[data-theme="dark"] .emboss-title, [data-theme="dark"] .emboss-input { color: #e8edf5; }
[data-theme="dark"] .emboss-card .login-method-toggle, [data-theme="dark"] .emboss-input, [data-theme="dark"] .emboss-btn { background: #1b2433; }
[data-theme="dark"] .emboss-input { box-shadow: inset 6px 6px 12px #0b0f16, inset -6px -6px 12px #263247; }
[data-theme="dark"] .emboss-btn { box-shadow: 6px 6px 12px #0b0f16, -6px -6px 12px #263247; color: #8fc6ff; }
[data-theme="dark"] .emboss-card .login-method-toggle { box-shadow: inset 4px 4px 8px #0b0f16, inset -4px -4px 8px #263247; }

/* Sign up link (header + login modal) */
.btn-signup { text-decoration: none; }
.login-signup-note { margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--text-secondary); }
.login-signup-note a { color: var(--brand); font-weight: 600; text-decoration: none; }
.login-signup-note a:hover { text-decoration: underline; }

/* PWA install button */
.pwa-install { position: fixed; right: 16px; bottom: 16px; z-index: 900; display: flex; align-items: center; gap: 6px;
    background: var(--brand); color: #fff; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.18); padding: 4px 6px 4px 4px; }
.pwa-install-btn { background: transparent; border: 0; color: #fff; font-weight: 600; font-size: 14px; padding: 8px 12px; cursor: pointer; }
.pwa-install-close { background: transparent; border: 0; color: #fff; opacity: .8; font-size: 14px; padding: 6px 8px; cursor: pointer; }
@media (max-width: 600px) { .pwa-install { bottom: 78px; } }

/* Editor emoji picker */
.md-toolbar { position: relative; }
.emoji-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; width: 300px; display: grid;
    grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px; background: var(--bg-card);
    border: 1px solid var(--border-mid); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.emoji-pop button { background: transparent; border: 0; font-size: 20px; padding: 4px; cursor: pointer; border-radius: 6px; }
.emoji-pop button:hover { background: var(--bg-hover, #f1f5f9); }

/* Dialog box (Settings / Withdraw route / Witness settings) */
.sp-dialog-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sp-dialog { background: var(--bg-card); color: var(--text-primary); border-radius: 12px; padding: 20px; width: 100%; max-width: 440px; max-height: 90vh; overflow: auto; box-shadow: 0 16px 48px rgba(0,0,0,.3); }
.sp-dialog label { display: block; font-size: 13px; color: var(--text-secondary); margin: 10px 0 4px; }
.sp-dialog input, .sp-dialog textarea { padding: 8px; border: 1px solid var(--border-mid); border-radius: 6px; background: var(--bg-card); color: var(--text-primary); font-family: inherit; }
