



.academy-sub-tabs {
    display: flex;
    gap: 4px;
    padding: 8px 16px;
    background: rgba(22, 27, 34, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.academy-sub-tabs::-webkit-scrollbar {
    display: none;
}

.academy-sub-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #8b949e;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.academy-sub-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #e6edf3;
}

.academy-sub-tab-active {
    background: rgba(139, 92, 246, 0.15);
    color: #c084fc;
}

.academy-sub-tab svg {
    opacity: 0.7;
}

.academy-sub-tab-active svg {
    opacity: 1;
}



.articles-feed-header {
    padding: 12px 16px 0;
}

.articles-feed-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.articles-btn-write,
.articles-btn-my {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid rgba(0, 255, 148, 0.3);
    border-radius: 10px;
    background: rgba(0, 255, 148, 0.08);
    color: #00FF94;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s;
}

.articles-btn-write:hover,
.articles-btn-my:hover {
    background: rgba(0, 255, 148, 0.15);
    border-color: rgba(0, 255, 148, 0.5);
}

.articles-btn-write:active,
.articles-btn-my:active {
    transform: scale(0.96);
}



.articles-categories {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.articles-categories::-webkit-scrollbar {
    display: none;
}

.articles-cat-btn {
    flex-shrink: 0;
    padding: 6px 14px;
    border: 1px solid rgba(139, 148, 158, 0.2);
    border-radius: 20px;
    background: rgba(22, 27, 34, 0.6);
    color: #8b949e;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.articles-cat-btn:hover {
    border-color: rgba(139, 148, 158, 0.4);
    color: #e6edf3;
}

.articles-cat-active {
    background: rgba(0, 255, 148, 0.1);
    border-color: rgba(0, 255, 148, 0.4);
    color: #00FF94;
    font-weight: 500;
}



.articles-list {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}



.article-card {
    background: rgba(22, 27, 34, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}

.article-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.article-card:active {
    transform: scale(0.99);
}

.article-card-thumb {
    width: 100%;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.article-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.article-card-cat {
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.article-card-time {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #8b949e;
}

.article-card-title {
    margin: 0 0 6px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #e6edf3;
    line-height: 1.3;
}

.article-card-summary {
    margin: 0 0 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #8b949e;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-footer {
    display: flex;
    align-items: center;
    gap: 0;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #64748b;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.article-card-sep {
    display: inline-block;
    width: 3px;
    height: 3px;
    background: #475569;
    border-radius: 50%;
    margin: 0 6px;
}

.article-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-card-likes {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #8b949e;
}

.article-card-likes svg {
    color: #f43f5e;
}

.article-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.article-card-badge-xp {
    background: rgba(0, 255, 148, 0.1);
    color: #00FF94;
    border: 1px solid rgba(0, 255, 148, 0.2);
}

.article-card-badge-read {
    background: rgba(0, 255, 148, 0.08);
    color: #00FF94;
}

.article-card-badge-read svg {
    color: #00FF94;
}



.articles-loading {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.articles-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
}

.articles-empty-icon {
    color: #475569;
    margin-bottom: 16px;
}

.articles-empty h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    color: #94a3b8;
    margin: 0 0 8px;
}

.articles-empty p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.articles-load-more {
    padding: 0 16px 20px;
    text-align: center;
}

.articles-btn-loadmore {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(139, 148, 158, 0.2);
    border-radius: 10px;
    background: rgba(22, 27, 34, 0.6);
    color: #8b949e;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.articles-btn-loadmore:hover {
    border-color: rgba(0, 255, 148, 0.3);
    color: #00FF94;
}



.articles-reader-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.articles-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #8b949e;
    cursor: pointer;
    transition: all 0.2s;
}

.articles-back-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #e6edf3;
}

.articles-reader-breadcrumb {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #64748b;
}

.articles-reader-content {
    padding: 20px 16px;
}

.article-category-badge {
    display: inline-block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    border: 1px solid currentColor;
    border-radius: 6px;
    margin-bottom: 12px;
}

.article-reader-title {
    margin: 0 0 12px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.article-reader-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #8b949e;
    margin-bottom: 12px;
}

.article-meta-sep {
    display: inline-block;
    width: 3px;
    height: 3px;
    background: #475569;
    border-radius: 50%;
    margin: 0 8px;
}

.article-reader-stats {
    display: flex;
    gap: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 16px;
}

.article-stat-reads,
.article-stat-likes {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-reader-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 16px 0;
}

.article-reader-thumbnail {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.article-reader-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}


.article-reader-body {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: #cbd5e1;
}

.article-reader-body h2,
.article-reader-body h3 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: #e6edf3;
    margin: 24px 0 12px;
}

.article-reader-body h2 { font-size: 20px; }
.article-reader-body h3 { font-size: 18px; }

.article-reader-body p {
    margin: 0 0 16px;
}

.article-reader-body a {
    color: #58a6ff;
    text-decoration: none;
}

.article-reader-body a:hover {
    text-decoration: underline;
}

.article-reader-body ul,
.article-reader-body ol {
    padding-left: 24px;
    margin: 0 0 16px;
}

.article-reader-body li {
    margin-bottom: 6px;
}

.article-reader-body strong {
    color: #e6edf3;
    font-weight: 600;
}

.article-reader-body em {
    color: #94a3b8;
}

.article-reader-body blockquote {
    border-left: 3px solid rgba(0, 255, 148, 0.4);
    padding: 8px 16px;
    margin: 16px 0;
    background: rgba(0, 255, 148, 0.03);
    color: #94a3b8;
    font-style: italic;
}

.article-reader-body code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: #f59e0b;
}

.article-reader-body pre {
    background: rgba(22, 27, 34, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
}

.article-reader-body pre code {
    background: none;
    padding: 0;
    color: #e6edf3;
}

.article-reader-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}



.article-reader-actions {
    margin-bottom: 16px;
}

.article-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: 10px;
    background: rgba(244, 63, 94, 0.06);
    color: #8b949e;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.article-like-btn svg {
    color: #f43f5e;
}

.article-like-btn:hover {
    border-color: rgba(244, 63, 94, 0.4);
    background: rgba(244, 63, 94, 0.1);
}

.article-like-btn.article-liked {
    border-color: rgba(244, 63, 94, 0.4);
    color: #f43f5e;
}



.article-read-box {
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.article-read-unread p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #8b949e;
    margin: 0 0 12px;
}

.article-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 255, 148, 0.2), rgba(0, 255, 148, 0.1));
    border: 1px solid rgba(0, 255, 148, 0.3);
    color: #00FF94;
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
}

.article-read-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 148, 0.3), rgba(0, 255, 148, 0.15));
    border-color: rgba(0, 255, 148, 0.5);
}

.article-read-btn:active {
    transform: scale(0.97);
}

.article-read-xp {
    background: rgba(0, 255, 148, 0.15);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.article-read-done {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-read-done-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 255, 148, 0.1);
    flex-shrink: 0;
}

.article-read-done-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.article-read-done-info span {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #00FF94;
}

.article-read-done-info small {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #64748b;
}


.article-next {
    padding: 12px 0;
}

.article-next-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #64748b;
    display: block;
    margin-bottom: 6px;
}

.article-next-link {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #58a6ff;
    text-decoration: none;
    cursor: pointer;
}

.article-next-link:hover {
    color: #79bbff;
}



.articles-editor-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.articles-editor-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #e6edf3;
}

.articles-editor-form {
    padding: 20px 16px;
}

.editor-field {
    margin-bottom: 20px;
}

.editor-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.editor-required {
    color: #f43f5e;
    margin-left: 2px;
}

.editor-input,
.editor-textarea,
.editor-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(22, 27, 34, 0.8);
    color: #e6edf3;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.editor-input:focus,
.editor-textarea:focus,
.editor-select:focus {
    outline: none;
    border-color: rgba(0, 255, 148, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 255, 148, 0.08);
}

.editor-input::placeholder,
.editor-textarea::placeholder {
    color: #475569;
}

.editor-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.editor-select option {
    background: #161b22;
    color: #e6edf3;
}

.editor-textarea-sm {
    resize: vertical;
    min-height: 72px;
}

.editor-textarea-lg {
    resize: vertical;
    min-height: 240px;
    font-size: 14px;
    line-height: 1.6;
}

.editor-hint {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #64748b;
}

.editor-char-count {
    color: #8b949e;
}


.editor-toolbar {
    display: flex;
    gap: 4px;
    padding: 6px 8px;
    background: rgba(22, 27, 34, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
}

.editor-toolbar + .editor-textarea-lg {
    border-radius: 0 0 10px 10px;
}

.editor-tool-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #8b949e;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.editor-tool-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e6edf3;
}

.editor-tool-btn:active {
    background: rgba(0, 255, 148, 0.1);
    color: #00FF94;
}


.editor-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.editor-btn-draft {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(139, 148, 158, 0.3);
    border-radius: 10px;
    background: rgba(22, 27, 34, 0.6);
    color: #8b949e;
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.editor-btn-draft:hover {
    border-color: rgba(139, 148, 158, 0.5);
    color: #e6edf3;
}

.editor-btn-draft:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.editor-btn-submit {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(0, 255, 148, 0.3);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 255, 148, 0.15), rgba(0, 255, 148, 0.08));
    color: #00FF94;
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s;
}

.editor-btn-submit:hover {
    background: linear-gradient(135deg, rgba(0, 255, 148, 0.25), rgba(0, 255, 148, 0.12));
    border-color: rgba(0, 255, 148, 0.5);
}

.editor-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}



.articles-mine-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.articles-mine-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #e6edf3;
}


.articles-mine-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 16px;
}

.articles-stat-card {
    background: rgba(22, 27, 34, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    backdrop-filter: blur(8px);
}

.articles-stat-value {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #e6edf3;
}

.articles-stat-energy {
    color: #00FF94;
    text-shadow: 0 0 8px rgba(0, 255, 148, 0.4);
}

.articles-stat-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}


.articles-mine-list {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.my-article-card {
    background: rgba(22, 27, 34, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px;
    backdrop-filter: blur(8px);
}

.my-article-title {
    margin: 0 0 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #e6edf3;
    line-height: 1.3;
}

.my-article-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.my-article-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #8b949e;
    margin-bottom: 10px;
}

.my-article-energy {
    color: #00FF94;
    font-weight: 500;
}

.my-article-feedback {
    color: #f59e0b;
    font-style: italic;
    font-size: 12px;
    line-height: 1.4;
}

.my-article-actions {
    display: flex;
    gap: 8px;
}

.my-article-btn {
    padding: 7px 14px;
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 8px;
    background: rgba(88, 166, 255, 0.08);
    color: #58a6ff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.my-article-btn:hover {
    background: rgba(88, 166, 255, 0.15);
    border-color: rgba(88, 166, 255, 0.5);
}

.my-article-btn-delete {
    border-color: rgba(244, 63, 94, 0.3);
    background: rgba(244, 63, 94, 0.06);
    color: #f43f5e;
}

.my-article-btn-delete:hover {
    background: rgba(244, 63, 94, 0.12);
    border-color: rgba(244, 63, 94, 0.5);
}


.articles-mine-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
}

.articles-mine-empty h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    color: #94a3b8;
    margin: 0 0 8px;
}

.articles-mine-empty p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #64748b;
    margin: 0 0 20px;
}



@media (max-width: 480px) {
    .articles-mine-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-reader-title {
        font-size: 20px;
    }

    .article-reader-body {
        font-size: 14px;
    }

    .editor-actions {
        flex-direction: column;
    }

    .articles-feed-actions {
        flex-wrap: wrap;
    }
}
