﻿#files span { display: inline-block; border: 1px solid var(--border); padding: 4px 6px; border-radius: 4px; position: relative; padding-right: 18px; margin: 2px 5px; }
#files .close { top: 50%; right: 2px; zoom: 0.7; transform: translateY(-50%); }
input[type="text"].error { border: 1px solid #ef4141; }

.project { border: 1px solid var(--border); padding: 0; border-radius: 12px; margin: 4px 10px; background: var(--panel-bg); transition: transform .2s, box-shadow .2s; overflow: hidden; display: flex; flex-direction: column; }
.project:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.project-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 0; }
.project-status { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; letter-spacing: .4px; text-transform: uppercase; }
.status-new { background: rgba(99,102,241,.15); color: #818cf8; }
.status-offered { background: rgba(234,179,8,.15); color: #ca8a04; }
.status-accepted { background: rgba(34,197,94,.15); color: #16a34a; }
.status-done { background: rgba(168,85,247,.15); color: #9333ea; }
.status-completed { background: rgba(20,184,166,.15); color: #0d9488; }
.project-meta { display: flex; align-items: center; gap: 10px; }
.project-price { font-size: 15px; font-weight: 700; }
.project-days { font-size: 12px; color: #94a3b8; background: var(--border); padding: 2px 8px; border-radius: 10px; }
.project-title { font-size: 15px; font-weight: 700; color: var(--text); padding: 10px 16px 6px; line-height: 1.3; }
.project-desc { font-size: 13px; color: #94a3b8; padding: 0 16px; line-height: 1.5; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 58px; }
.project-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--border); margin-top: 12px; flex-wrap: wrap; gap: 8px; }
.project-author { display: flex; align-items: center; gap: 8px; }

/* Уведомления */
.notifications-list { max-width: 100%; }
.notification-item { background: var(--panel-bg); border: 1px solid var(--border); border-radius: 3px; padding: 10px; margin-bottom: 5px; display: flex; justify-content: space-between; align-items: flex-start; transition: all 0.2s ease; }
.notification-item.unread { background: var(--chat-active); border-left: 3px solid var(--link); }
.notification-item:hover { box-shadow: var(--box-shadow); }
.notification-content { flex: 1; margin-right: 10px; }
.notification-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 5px; }
.notification-title { margin: 0; font-size: 14px; font-weight: bold; color: var(--text); }
.notification-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.notification-date { font-size: 11px; color: var(--placeholder); }
.notification-type { font-size: 9px; background: var(--input-bg); color: var(--text); padding: 1px 4px; border-radius: 2px; text-transform: uppercase; border: 1px solid var(--input-border); }
.notification-text { color: var(--text); line-height: 1.4; margin-bottom: 8px; font-size: 13px; }
.notification-actions { margin-top: 5px; }
.notification-controls { display: flex; gap: 5px; }
.notification-bell { position: relative; display: flex; align-items: center; justify-content: center; padding: 8px; color: #6b7280; transition: color 0.2s ease; }
.notification-bell:hover { color: #1f2937; }
.notification-count { position: absolute; top: 4px; right: 4px; background: #ef4444; color: white; font-size: 10px; font-weight: 600; padding: 2px 5px; border-radius: 10px; min-width: 16px; text-align: center; line-height: 1; }
.notification-bell.has-notifications { color: #3b82f6; }

.btn-icon { background: var(--button-back); border: 1px solid var(--input-border); padding: 4px; border-radius: 2px; cursor: pointer; color: var(--button-color); transition: all 0.2s ease; font-family: 'main'; }
.btn-icon:hover { background: var(--edit-select-hover); color: var(--link); }
.btn-delete:hover { background: #a73535; color: white; }
.btn-mark-read:hover { background: var(--link); color: white; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.btn-primary { background: var(--link); color: white; border-color: var(--link); }
.btn-secondary { background: var(--panel-bg); color: var(--text); border-color: var(--input-border); }
.btn-sm { padding: 4px 8px; font-size: 11px; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--placeholder); }
.empty-icon { font-size: 48px; margin-bottom: 10px; }
.empty-text { font-size: 16px; margin-bottom: 20px; }
.project-author .avatar { width: 28px; height: 28px; border-radius: 50%; }
.project-author-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.2; }
.project-date { font-size: 11px; color: #94a3b8; }
.project-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }

/* ===== HERO ===== */
.hero { display: flex; align-items: center; gap: 40px; padding: 60px 40px 50px; background: linear-gradient(135deg, var(--hero-bg1, #0a1628) 0%, var(--hero-bg2, #0d2545) 100%); border-radius: 16px; margin: 0 0 30px; overflow: hidden; position: relative; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 50%, rgba(99,102,241,.15) 0%, transparent 60%); pointer-events: none; z-index: 1; }
.hero-parallax { position: absolute; inset: -30% 0; background: url('https://images.unsplash.com/photo-1669023414180-4dcf35d943e1?w=1920') center/cover no-repeat; opacity: .18; pointer-events: none; will-change: transform; }
.hero-content { flex: 1; z-index: 2; }
.hero-badge { display: inline-block; background: rgba(99,102,241,.2); border: 1px solid rgba(99,102,241,.4); color: #a5b4fc; border-radius: 20px; padding: 4px 14px; font-size: 12px; margin-bottom: 18px; }
.hero-title { font-size: 42px; font-weight: 700; line-height: 1.2; color: #fff; margin-bottom: 16px; }
.hero-accent { background: linear-gradient(90deg, #6366f1, #a855f7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { color: #94a3b8; font-size: 15px; line-height: 1.6; max-width: 480px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-btn-primary { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff !important; padding: 10px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; transition: all .2s; display: inline-block; }
.hero-btn-primary:hover { box-shadow: 0 8px 25px rgba(99,102,241,.4); }
.hero-btn-secondary { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #cbd5e1 !important; padding: 10px 24px; border-radius: 8px; font-size: 14px; transition: all .2s; display: inline-block; }
.hero-btn-secondary:hover { background: rgba(255,255,255,.14); }

/* hero visual */
.hero-visual { flex: 0 0 260px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; gap: 10px; z-index: 2; }
.hero-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 10px; color: #e2e8f0; font-size: 13px; backdrop-filter: blur(6px); transition: transform .2s; }
.hero-card:hover { background: rgba(255,255,255,.1); }
.hero-card span { font-size: 22px; }
.hc1 { grid-column: 1; } .hc2 { grid-column: 2; } .hc3 { grid-column: 1; } .hc4 { grid-column: 2; } .hc5 { grid-column: 1 / span 2; justify-content: center; }

/* ===== STATS ===== */
.stats-row { display: flex; align-items: center; justify-content: center; gap: 0; background: var(--panel-bg); border-radius: 12px; padding: 20px 40px; margin-bottom: 30px; box-shadow: 0 2px 10px var(--box-shadow); }
.stat-item { flex: 1; text-align: center; }
.stat-num { font-size: 32px; font-weight: 700; color: #6366f1; line-height: 1; }
.stat-label { font-size: 12px; color: #94a3b8; margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); margin: 0 20px; }

/* ===== SECTION HEADER ===== */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title { font-size: 22px; font-weight: 700; color: var(--text); }
.section-link { font-size: 13px; color: #6366f1; }
.section-link:hover { text-decoration: underline; }

/* ===== FILTER BAR ===== */
.filter-bar { background: var(--panel-bg); border-radius: 12px; padding: 16px 20px; margin-bottom: 20px; box-shadow: 0 2px 10px var(--box-shadow); display: flex; flex-direction: column; gap: 12px; }
.filter-search { position: relative; }
.filter-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.filter-search input { padding-left: 38px !important; border-radius: 8px !important; font-size: 14px; }
.filter-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-controls select, .filter-controls input[type="number"] { width: auto; flex: 1; min-width: 110px; border-radius: 8px !important; font-size: 13px; }
.filter-reset { background: none !important; box-shadow: none !important; border: 1px solid var(--border) !important; color: #94a3b8 !important; font-size: 12px; padding: 5px 12px; white-space: nowrap; flex: none; text-align: center; line-height: 27px; }
.filter-reset:hover { border-color: #ef4444 !important; color: #ef4444 !important; }
.filter-count { font-size: 12px; color: #94a3b8; margin-bottom: 12px; }

/* ===== PROJECTS GRID ===== */
.projects-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.projects-grid .project { margin: 0; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 56px; margin-bottom: 12px; }
.empty-text { color: #94a3b8; font-size: 16px; margin-bottom: 20px; }

.review { margin: 4px 0; padding: 10px 15px; }

.text h2 { margin-top: 20px; }
.text ul { margin-left: 20px; list-style-type: disc; }
.text li { margin: 5px 0; }
.highlight { font-weight: bold; color: #ddaf00; }
trix-editor { min-height: 500px !important; }
trix-toolbar .trix-button { color: #fff !important; }
trix-editor, trix-toolbar .trix-button-group, trix-toolbar .trix-button { border: 1px solid #3c3c3c !important; }
trix-toolbar .trix-button--icon-attach::before { background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M10.5%2018V7.5c0-2.25%203-2.25%203%200V18c0%204.125-6%204.125-6%200V7.5c0-6.375%209-6.375%209%200V18%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20stroke-miterlimit%3D%2210%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E") !important; top: 8%; bottom: 4%; }
trix-toolbar .trix-button--icon-bold::before { background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.522%2019.242a.5.5%200%200%201-.5-.5V5.35a.5.5%200%200%201%20.5-.5h5.783c1.347%200%202.46.345%203.24.982.783.64%201.216%201.562%201.216%202.683%200%201.13-.587%202.129-1.476%202.71a.35.35%200%200%200%20.049.613c1.259.56%202.101%201.742%202.101%203.22%200%201.282-.483%202.334-1.363%203.063-.876.726-2.132%201.12-3.66%201.12h-5.89ZM9.27%207.347v3.362h1.97c.766%200%201.347-.17%201.733-.464.38-.291.587-.716.587-1.27%200-.53-.183-.928-.513-1.198-.334-.273-.838-.43-1.505-.43H9.27Zm0%205.606v3.791h2.389c.832%200%201.448-.177%201.853-.497.399-.315.614-.786.614-1.423%200-.62-.22-1.077-.63-1.385-.418-.313-1.053-.486-1.905-.486H9.27Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E") !important; }
trix-toolbar .trix-button--icon-italic::before { background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M9%205h6.5v2h-2.23l-2.31%2010H13v2H6v-2h2.461l2.306-10H9V5Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E") !important; }
trix-toolbar .trix-button--icon-link::before { background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M18.948%205.258a4.337%204.337%200%200%200-6.108%200L11.217%206.87a.993.993%200%200%200%200%201.41c.392.39%201.027.39%201.418%200l1.623-1.613a2.323%202.323%200%200%201%203.271%200%202.29%202.29%200%200%201%200%203.251l-2.393%202.38a3.021%203.021%200%200%201-4.255%200l-.05-.049a1.007%201.007%200%200%200-1.418%200%20.993.993%200%200%200%200%201.41l.05.049a5.036%205.036%200%200%200%207.091%200l2.394-2.38a4.275%204.275%200%200%200%200-6.072Zm-13.683%2013.6a4.337%204.337%200%200%200%206.108%200l1.262-1.255a.993.993%200%200%200%200-1.41%201.007%201.007%200%200%200-1.418%200L9.954%2017.45a2.323%202.323%200%200%201-3.27%200%202.29%202.29%200%200%201%200-3.251l2.344-2.331a2.579%202.579%200%200%201%203.631%200c.392.39%201.027.39%201.419%200a.993.993%200%200%200%200-1.41%204.593%204.593%200%200%200-6.468%200l-2.345%202.33a4.275%204.275%200%200%200%200%206.072Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E") !important; }
trix-toolbar .trix-button--icon-strike::before { background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6%2014.986c.088%202.647%202.246%204.258%205.635%204.258%203.496%200%205.713-1.728%205.713-4.463%200-.275-.02-.536-.062-.781h-3.461c.398.293.573.654.573%201.123%200%201.035-1.074%201.787-2.646%201.787-1.563%200-2.773-.762-2.91-1.924H6ZM6.432%2010h3.763c-.632-.314-.914-.715-.914-1.273%200-1.045.977-1.739%202.432-1.739%201.475%200%202.52.723%202.617%201.914h2.764c-.05-2.548-2.11-4.238-5.39-4.238-3.145%200-5.392%201.719-5.392%204.316%200%20.363.04.703.12%201.02ZM4%2011a1%201%200%201%200%200%202h15a1%201%200%201%200%200-2H4Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E") !important; }
trix-toolbar .trix-button--icon-quote::before { background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M4.581%208.471c.44-.5%201.056-.834%201.758-.995C8.074%207.17%209.201%207.822%2010%208.752c1.354%201.578%201.33%203.555.394%205.277-.941%201.731-2.788%203.163-4.988%203.56a.622.622%200%200%201-.653-.317c-.113-.205-.121-.49.16-.764.294-.286.567-.566.791-.835.222-.266.413-.54.524-.815.113-.28.156-.597.026-.908-.128-.303-.39-.524-.72-.69a3.02%203.02%200%200%201-1.674-2.7c0-.905.283-1.59.72-2.088Zm9.419%200c.44-.5%201.055-.834%201.758-.995%201.734-.306%202.862.346%203.66%201.276%201.355%201.578%201.33%203.555.395%205.277-.941%201.731-2.789%203.163-4.988%203.56a.622.622%200%200%201-.653-.317c-.113-.205-.122-.49.16-.764.294-.286.567-.566.791-.835.222-.266.412-.54.523-.815.114-.28.157-.597.026-.908-.127-.303-.39-.524-.72-.69a3.02%203.02%200%200%201-1.672-2.701c0-.905.283-1.59.72-2.088Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E") !important; }
trix-toolbar .trix-button--icon-heading-1::before { background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21.5%207.5v-3h-12v3H14v13h3v-13h4.5ZM9%2013.5h3.5v-3h-10v3H6v7h3v-7Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E") !important; }
trix-toolbar .trix-button--icon-code::before { background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3.293%2011.293a1%201%200%200%200%200%201.414l4%204a1%201%200%201%200%201.414-1.414L5.414%2012l3.293-3.293a1%201%200%200%200-1.414-1.414l-4%204Zm13.414%205.414%204-4a1%201%200%200%200%200-1.414l-4-4a1%201%200%201%200-1.414%201.414L18.586%2012l-3.293%203.293a1%201%200%200%200%201.414%201.414Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E") !important; }
trix-toolbar .trix-button--icon-bullet-list::before { background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%207.5a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203ZM8%206a1%201%200%200%201%201-1h11a1%201%200%201%201%200%202H9a1%201%200%200%201-1-1Zm1%205a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm0%206a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm-2.5-5a1.5%201.5%200%201%201-3%200%201.5%201.5%200%200%201%203%200ZM5%2019.5a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E") !important; }
trix-toolbar .trix-button--icon-number-list::before { background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3%204h2v4H4V5H3V4Zm5%202a1%201%200%200%201%201-1h11a1%201%200%201%201%200%202H9a1%201%200%200%201-1-1Zm1%205a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm0%206a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm-3.5-7H6v1l-1.5%202H6v1H3v-1l1.667-2H3v-1h2.5ZM3%2017v-1h3v4H3v-1h2v-.5H4v-1h1V17H3Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E") !important; }
trix-toolbar .trix-button--icon-undo::before { background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3%2014a1%201%200%200%200%201%201h6a1%201%200%201%200%200-2H6.257c2.247-2.764%205.151-3.668%207.579-3.264%202.589.432%204.739%202.356%205.174%205.405a1%201%200%200%200%201.98-.283c-.564-3.95-3.415-6.526-6.825-7.095C11.084%207.25%207.63%208.377%205%2011.39V8a1%201%200%200%200-2%200v6Zm2-1Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E") !important; }
trix-toolbar .trix-button--icon-redo::before { background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2014a1%201%200%200%201-1%201h-6a1%201%200%201%201%200-2h3.743c-2.247-2.764-5.151-3.668-7.579-3.264-2.589.432-4.739%202.356-5.174%205.405a1%201%200%200%201-1.98-.283c.564-3.95%203.415-6.526%206.826-7.095%203.08-.513%206.534.614%209.164%203.626V8a1%201%200%201%201%202%200v6Zm-2-1Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E") !important; }
trix-toolbar .trix-button--icon-decrease-nesting-level::before { background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%206a1%201%200%200%201%201-1h12a1%201%200%201%201%200%202H6a1%201%200%200%201-1-1Zm4%205a1%201%200%201%200%200%202h9a1%201%200%201%200%200-2H9Zm-3%206a1%201%200%201%200%200%202h12a1%201%200%201%200%200-2H6Zm-3.707-5.707a1%201%200%200%200%200%201.414l2%202a1%201%200%201%200%201.414-1.414L4.414%2012l1.293-1.293a1%201%200%200%200-1.414-1.414l-2%202Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E") !important; }
trix-toolbar .trix-button--icon-increase-nesting-level::before { background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%206a1%201%200%200%201%201-1h12a1%201%200%201%201%200%202H6a1%201%200%200%201-1-1Zm4%205a1%201%200%201%200%200%202h9a1%201%200%201%200%200-2H9Zm-3%206a1%201%200%201%200%200%202h12a1%201%200%201%200%200-2H6Zm-2.293-2.293%202-2a1%201%200%200%200%200-1.414l-2-2a1%201%200%201%200-1.414%201.414L3.586%2012l-1.293%201.293a1%201%200%201%200%201.414%201.414Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E") !important; }

.terms-container { max-width: 800px; margin: 0 auto; padding: 20px; }
.page-header { text-align: center; margin-bottom: 40px; display: block; }
.page-header h1 { font-size: 2.5rem; margin-bottom: 10px; color: var(--text-color); }
.page-subtitle { color: var(--text-secondary); margin: 0; font-size: 12px; }
.terms-content { background: var(--card-bg); border-radius: 12px; padding: 30px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); }
.terms-section { margin-bottom: 30px; }
.terms-section:last-child { margin-bottom: 0; }
.terms-section h2 { font-size: 1.5rem; margin-bottom: 15px; color: var(--text-color); border-bottom: 2px solid var(--primary-color); padding-bottom: 5px; }
.terms-section h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--text-color); }
.terms-section p { line-height: 1.6; margin-bottom: 12px; color: var(--text-color); }
.terms-section ul { margin-left: 20px; margin-bottom: 12px; }
.terms-section li { margin-bottom: 8px; line-height: 1.5; color: var(--text-color); }
.terms-footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-color); text-align: center; }
.terms-footer p { color: var(--text-secondary); font-size: 0.9rem; }

.error-container { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 40px 20px; }
.error-content { text-align: center; max-width: 500px; }
.error-icon { font-size: 64px; margin-bottom: 20px; }
.error-title { font-size: 32px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.error-desc { font-size: 16px; color: var(--placeholder); margin-bottom: 24px; }
.post-container { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.post-meta { display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 20px; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.post-category { font-size: 11px; background: rgba(99,102,241,.15); color: #818cf8; padding: 4px 8px; border-radius: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.post-date { font-size: 14px; color: var(--placeholder); font-weight: 500; }
.post-title { font-size: 36px; font-weight: 700; color: var(--text); margin-bottom: 16px; line-height: 1.2; }
.post-subtitle { font-size: 18px; color: var(--placeholder); margin-bottom: 0; line-height: 1.5; }
.post-content { font-size: 16px; line-height: 1.7; color: var(--text); }
.post-content h1, .post-content h2, .post-content h3 { margin-top: 32px; margin-bottom: 16px; color: var(--text); }
.post-content h1 { font-size: 28px; font-weight: 700; }
.post-content h2 { font-size: 24px; font-weight: 600; }
.post-content h3 { font-size: 20px; font-weight: 600; }
.post-content p { margin-bottom: 16px; }
.post-content ul, .post-content ol { margin: 16px 0 16px 24px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote { margin: 20px 0; padding: 16px 20px; background: var(--panel-bg); border-left: 4px solid var(--link); border-radius: 4px; font-style: italic; }
.post-content code { background: var(--border); padding: 2px 6px; border-radius: 4px; font-family: 'Courier New', monospace; font-size: 14px; }
.post-content pre { background: var(--panel-bg); border: 1px solid var(--border); border-radius: 8px; padding: 20px; overflow-x: auto; margin: 20px 0; }
.post-content pre code { background: none; padding: 0; }
.post-footer { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border); }
.post-navigation { display: flex; justify-content: center; }


.portfolio-item-container { max-width: 1400px; margin: 0 auto; padding: 40px 20px; }
.portfolio-item-header { margin-bottom: 40px; }
.breadcrumb { display: block; align-items: center; gap: 8px; font-size: 12px; }
.breadcrumb-link { color: var(--link); text-decoration: none; font-weight: 500; }
.breadcrumb-link:hover { color: var(--link-hover); }
.breadcrumb-separator { color: var(--placeholder); }
.breadcrumb-current { color: var(--text); font-weight: 500; }
.portfolio-item-content { display: grid; grid-template-columns: 1fr 380px; gap: 40px; }
.portfolio-item-main { background: var(--panel-bg); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.portfolio-item-visual { position: relative; height: 400px; background: var(--border); }
.portfolio-item-image { width: 100%; height: 100%; object-fit: cover; }
.portfolio-item-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 80px; color: var(--placeholder); background: linear-gradient(135deg, var(--border) 0%, var(--panel-bg) 100%); }
.portfolio-item-info { padding: 40px; }
.portfolio-item-title { font-size: 32px; font-weight: 800; color: var(--text); margin-bottom: 20px; line-height: 1.2; }
.portfolio-item-meta { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.portfolio-item-category { font-size: 14px; background: rgba(99,102,241,.15); color: #818cf8; padding: 8px 16px; border-radius: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.portfolio-item-date { display: flex; align-items: center; gap: 6px; color: var(--placeholder); font-size: 14px; }
.portfolio-item-description h3 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.portfolio-item-description p { font-size: 16px; line-height: 1.7; color: var(--text); margin-bottom: 30px; }
.portfolio-item-technologies h3 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.tech-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.tech-item { font-size: 14px; background: var(--border); color: var(--text); padding: 8px 12px; border-radius: 20px; font-weight: 500; }
.portfolio-item-actions { padding-top: 20px; border-top: 1px solid var(--border); }
.portfolio-item-sidebar { display: flex; flex-direction: column; gap: 30px; }
.portfolio-author-card { background: var(--panel-bg); border: 1px solid var(--border); border-radius: 16px; padding: 30px; }
.author-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.author-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.author-name { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.author-role { font-size: 14px; color: var(--placeholder); }
.author-stats { display: flex; gap: 20px; margin-bottom: 24px; }
.author-stats .stat { text-align: center; }
.author-stats .stat-value { display: block; font-size: 20px; font-weight: 700; color: var(--text); }
.author-stats .stat-label { font-size: 12px; color: var(--placeholder); }
.author-actions { display: flex; flex-direction: column; gap: 10px; }
.related-works { background: var(--panel-bg); border: 1px solid var(--border); border-radius: 16px; padding: 30px; }
.related-works h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 20px; }
.related-grid { display: grid; gap: 16px; }
.related-card { text-decoration: none; color: inherit; display: block; }
.related-image { height: 120px; background: var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.related-image img { width: 100%; height: 100%; object-fit: cover; }
.related-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 32px; color: var(--placeholder); }
.related-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.3; }
.featured-badge { position: absolute; top: 20px; left: 20px; background: rgba(251,191,36,.2); color: #f59e0b; padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; backdrop-filter: blur(10px); }
.btn-lg { padding: 16px 32px; font-size: 16px; font-weight: 600; }

.blog-container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.blog-header { text-align: center; margin-bottom: 40px; }
.blog-title { font-size: 32px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.blog-subtitle { font-size: 16px; color: var(--placeholder); margin-bottom: 0; }
.blog-grid { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.blog-card { background: var(--panel-bg); border: 1px solid var(--border); border-radius: 12px; padding: 24px; cursor: pointer; transition: all 0.2s ease; display: flex; flex-direction: column; }
.blog-card:hover { box-shadow: 0 12px 24px rgba(0,0,0,.1); border-color: var(--link); }
.blog-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.blog-date { font-size: 12px; color: var(--placeholder); font-weight: 500; }
.blog-category { font-size: 11px; background: rgba(99,102,241,.15); color: #818cf8; padding: 4px 8px; border-radius: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.blog-card-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 12px; line-height: 1.3; }
.blog-card-desc { font-size: 14px; color: var(--placeholder); line-height: 1.6; margin-bottom: 16px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-footer { margin-top: auto; }
.blog-read-more { color: var(--link); font-weight: 600; font-size: 14px; transition: color 0.2s ease; }
.blog-card:hover .blog-read-more { color: var(--link-hover); }

.portfolio-page { max-width: 1400px; margin: 0 auto; padding: 40px 20px; }
.portfolio-header { margin-bottom: 50px; padding-bottom: 30px; border-bottom: 2px solid var(--border); }
.portfolio-info { flex: 1; }
.portfolio-title { font-size: 42px; font-weight: 800; color: var(--text); margin-bottom: 12px; line-height: 1.1; }
.portfolio-stats { display: flex; gap: 20px; align-items: center; }
.stat-item { font-size: 16px; color: var(--placeholder); font-weight: 500; }
.stat-item.featured { color: #f59e0b; font-weight: 600; }
.btn-lg { padding: 14px 28px; font-size: 16px; font-weight: 600; }
.btn-xl { padding: 18px 36px; font-size: 18px; font-weight: 600; }

.empty-portfolio { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; min-height: 500px; }
.empty-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.empty-icon { font-size: 120px; opacity: 0.1; position: relative; z-index: 1; }
.empty-shapes { position: absolute; width: 100%; height: 100%; }
.shape { position: absolute; border-radius: 12px; opacity: 0.1; }
.shape-1 { width: 80px; height: 80px; background: #818cf8; top: 20%; left: 10%; transform: rotate(15deg); }
.shape-2 { width: 60px; height: 60px; background: #f59e0b; bottom: 30%; right: 20%; transform: rotate(-20deg); }
.shape-3 { width: 100px; height: 40px; background: #10b981; top: 60%; left: 30%; transform: rotate(45deg); }
.empty-content { text-align: left; }
.empty-title { font-size: 32px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.empty-desc { font-size: 18px; color: var(--placeholder); margin-bottom: 32px; line-height: 1.6; }
.empty-features { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.feature { display: flex; align-items: center; gap: 12px; }
.feature-icon { font-size: 20px; }
.feature-text { font-size: 16px; color: var(--text); }
.portfolio-section { margin-bottom: 60px; }
.section-title { font-size: 28px; font-weight: 700; color: var(--text); margin-bottom: 24px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 24px; }
.featured-grid { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.portfolio-card { background: var(--panel-bg); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: all 0.3s ease; position: relative; }
.portfolio-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,.15); border-color: var(--link); }
.portfolio-image { position: relative; height: 240px; background: var(--border); overflow: hidden; }
.portfolio-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.portfolio-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 64px; color: var(--placeholder); background: linear-gradient(135deg, var(--border) 0%, var(--panel-bg) 100%); }
.portfolio-actions { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 4px; opacity: 0; transition: opacity 0.2s ease; }
.portfolio-image:hover .portfolio-actions { opacity: 1; }
.portfolio-actions .btn { font-size: 11px; padding: 2px 6px; margin: 0; zoom: 0.8; }
.portfolio-content { padding: 24px; }
.portfolio-item-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 12px; line-height: 1.3; }
.portfolio-desc { font-size: 15px; color: var(--placeholder); line-height: 1.6; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.portfolio-meta { margin-bottom: 16px; }
.portfolio-category { font-size: 12px; background: rgba(99,102,241,.15); color: #818cf8; padding: 6px 12px; border-radius: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; display: inline-block; margin-bottom: 12px; }
.portfolio-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-tag { font-size: 11px; background: var(--border); color: var(--text); padding: 4px 8px; border-radius: 12px; font-weight: 500; }
.portfolio-link { color: var(--link); text-decoration: none; font-weight: 600; font-size: 14px; transition: color 0.2s ease; display: inline-flex; align-items: center; gap: 6px; }
.portfolio-link:hover { color: var(--link-hover); }
.featured-badge { position: absolute; top: 12px; left: 12px; background: rgba(251,191,36,.2); color: #f59e0b; padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; backdrop-filter: blur(10px); }

.portfolio-public-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.portfolio-public-card { background: var(--panel-bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: all 0.2s ease; }
.portfolio-public-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); border-color: var(--link); }
.portfolio-public-image { position: relative; height: 180px; background: var(--border); overflow: hidden; }
.portfolio-public-image img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-public-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; color: var(--placeholder); background: linear-gradient(135deg, var(--border) 0%, var(--panel-bg) 100%); }
.portfolio-public-content { padding: 20px; }
.portfolio-public-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.3; }
.portfolio-public-desc { font-size: 14px; color: var(--placeholder); line-height: 1.5; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.portfolio-public-meta { margin-bottom: 12px; }
.portfolio-public-category { font-size: 11px; background: rgba(99,102,241,.15); color: #818cf8; padding: 4px 8px; border-radius: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; display: inline-block; margin-bottom: 8px; }
.portfolio-public-tech { display: flex; flex-wrap: wrap; gap: 4px; }
.tech-public-tag { font-size: 10px; background: var(--border); color: var(--text); padding: 2px 6px; border-radius: 10px; font-weight: 500; }
.portfolio-public-link { color: var(--link); text-decoration: none; font-weight: 600; font-size: 13px; transition: color 0.2s ease; display: inline-flex; align-items: center; gap: 4px; }
.portfolio-public-link:hover { color: var(--link-hover); }
.portfolio-public-card-link { text-decoration: none; color: inherit; display: block; }
.portfolio-public-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.view-more { color: var(--link); font-weight: 600; font-size: 13px; transition: color 0.2s ease; }
.view-more:hover { color: var(--link-hover); }

iframe #anchor { width: 100% !important; }
trix-editor.rich-editor { display: block; min-height: 200px !important; height: auto !important; max-height: 200px; overflow-y: auto; }

.pf-actions { display: flex; margin: 18px; gap: 14px; }
.pf-actions button { width: 100%; }
#trigger-box-ddgCaptcha { margin: 0 auto; }
.question { border: 1px solid #555; border-radius: 50%; height: 18px; width: 18px; display: inline-block; text-align: center; }

@media screen and (max-width: 768px) {
    .hero { flex-direction: column; padding: 30px 20px; }
    .hero-title { font-size: 28px; }
    .hero-visual { flex: none; width: 100%; }
    .stats-row { padding: 16px 20px; gap: 0; }
    .stat-num { font-size: 24px; }
    .projects-grid { grid-template-columns: 1fr; }
    
    .terms-container { padding: 10px; }
    .terms-content { padding: 20px; }
    .page-header h1 { font-size: 2rem; }
    .terms-section h2 { font-size: 1.3rem; }
    
    .post-container { padding: 20px 15px; }
    .post-title { font-size: 28px; }
    .post-subtitle { font-size: 16px; }
    .post-meta { flex-direction: column; gap: 8px; }
    .post-content { font-size: 15px; }
    .post-content h1 { font-size: 24px; }
    .post-content h2 { font-size: 20px; }
    .post-content h3 { font-size: 18px; }
    
    .portfolio-item-container { padding: 20px 10px; }
    .portfolio-item-visual { height: 250px; }
    .portfolio-item-info { padding: 20px; }
    .portfolio-item-title { font-size: 24px; }
    .portfolio-item-meta { flex-direction: column; align-items: flex-start; gap: 12px; }
    .author-actions { flex-direction: row; }
    .related-grid { grid-template-columns: 1fr; }
    
    .blog-container { padding: 15px; }
    .blog-title { font-size: 28px; }
    .blog-grid { gap: 16px; }
    .blog-card { padding: 20px; }
    .blog-card-title { font-size: 18px; }
    
    .portfolio-page { padding: 20px 10px; }
    .portfolio-title { font-size: 28px; }
    .empty-title { font-size: 24px; }
    .empty-desc { font-size: 16px; }
    .empty-icon { font-size: 80px; }
    .portfolio-grid { grid-template-columns: 1fr; gap: 16px; }
    .portfolio-image { height: 200px; }
    .portfolio-content { padding: 20px; }
    .portfolio-item-title { font-size: 18px; }
    
    .portfolio-public-grid { grid-template-columns: 1fr; gap: 16px; }
    .portfolio-public-image { height: 160px; }
    .portfolio-public-content { padding: 16px; }
    .portfolio-public-title { font-size: 16px; }
    .mobile-icon { margin: 0 10px; margin-top: 10px; }
    .pf-actions { margin: 0; display: block; }
    .pf-actions .stat-item { margin: 18px 0; }
    .empty-portfolio { display: block; }
    .empty-visual { display: none; }
}