* { box-sizing: border-box; }
body.content-page { margin: 0; min-height: 100vh; padding-bottom: 100px; direction: rtl; font-family: 'Vazirmatn', 'Segoe UI', sans-serif; color: #f5f7ff; background: linear-gradient(135deg, #071526, #123b52 55%, #071017); }
.content-nav { position: fixed; left: 50%; bottom: 18px; z-index: 2100; display: flex; justify-content: center; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 28px); padding: 10px 14px; transform: translateX(-50%); border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px; background: rgba(4, 20, 34, .58); backdrop-filter: blur(24px) saturate(1.4); box-shadow: 0 12px 40px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255,255,255,.16); }
.content-nav > div { display: flex; align-items: center; gap: 8px; }
.content-nav a { color: #d9f3ff; text-decoration: none; margin: 0; padding: 9px 13px; border: 1px solid transparent; border-radius: 11px; white-space: nowrap; transition: all .25s ease; }
.content-nav a:hover { color: #fff; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.12); transform: translateY(-2px); }
.content-nav .brand { font-size: 1.25rem; font-weight: 700; color: #fff; }
.content-main { width: min(1100px, 90vw); margin: 0 auto; padding: 70px 0; }
.content-hero { padding: 45px 0 30px; }
.content-hero h1 { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 4.5rem); }
.content-hero p { max-width: 680px; color: rgba(255,255,255,.72); line-height: 2; }
.content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.content-card { padding: 22px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.08); box-shadow: 0 16px 50px rgba(0,0,0,.16); }
.content-card { position: relative; overflow: hidden; }
.content-image { display: block; width: 100%; max-height: 230px; object-fit: cover; margin: -22px -22px 18px; width: calc(100% + 44px); }
.content-card h2 { margin-top: 0; }
.content-card p { color: rgba(255,255,255,.7); line-height: 1.9; white-space: pre-wrap; }
.content-card a { color: #6ed5ff; }
.admin-form { display: grid; gap: 10px; max-width: 720px; }
.admin-form input, .admin-form textarea, .admin-form select { padding: 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; background: rgba(0,0,0,.25); color: #fff; font: inherit; }
.admin-form button { padding: 12px 18px; border: 0; border-radius: 6px; background: #20b5a4; color: #fff; cursor: pointer; font: inherit; }
.admin-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 10px; padding: 12px; background: rgba(255,255,255,.06); }
.admin-item button { border: 0; border-radius: 5px; padding: 7px 10px; cursor: pointer; }
.content-page .chat-toggle-btn { font-size: 0; }
.content-page .chat-toggle-btn::before { content: '\00d7'; font-size: 27px; line-height: 1; color: rgba(255,255,255,.72); }
.content-page .chat-toggle-btn:hover::before { color: #fff; }
.content-page .action-send-btn { overflow: visible; }
.content-page .action-send-btn svg { width: 24px; height: 24px; }
.content-page .content-main { padding-top: 48px; }
.content-page .content-hero h1 { letter-spacing: .02em; text-shadow: 0 8px 30px rgba(0,0,0,.25); }
.content-admin-toolbar { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.content-admin-toolbar button, .content-admin-actions button { border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; font: inherit; transition: all .2s ease; }
.content-admin-toolbar button { padding: 10px 16px; }
.content-admin-toolbar button:hover, .content-admin-actions button:hover { background: rgba(32,181,164,.65); transform: translateY(-2px); }
.content-admin-actions { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; opacity: .75; }
.content-admin-actions button { width: 34px; height: 34px; font-size: 18px; }
.content-editor-modal { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); }
.content-editor { position: relative; display: grid; gap: 11px; width: min(620px, 100%); max-height: 90vh; overflow-y: auto; padding: 28px; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; background: rgba(7,25,42,.9); box-shadow: 0 25px 80px rgba(0,0,0,.4); }
.content-editor h2 { margin: 0 0 6px; }
.content-editor input, .content-editor textarea { width: 100%; padding: 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(0,0,0,.25); color: #fff; font: inherit; }
.content-editor > button[type="submit"] { padding: 12px; border: 0; border-radius: 8px; background: #20b5a4; color: #fff; cursor: pointer; font: inherit; }
.editor-close { position: absolute; top: 12px; left: 12px; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 20px; cursor: pointer; }
.editor-status { color: #ffb4b4; }
.admin-item span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.content-pagination { display: flex; justify-content: center; gap: 8px; margin: 30px 0 80px; }
.content-pagination button { min-width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; backdrop-filter: blur(14px); }
.content-pagination button.active, .content-pagination button:hover { background: rgba(32,181,164,.55); border-color: rgba(255,255,255,.35); }
.content-page .chat-open-btn { font-size: 0; }
.content-page .chat-open-btn::before { content: '\2192'; font-size: 30px; line-height: 1; }
.admin-dashboard { display: grid; gap: 22px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.admin-tabs button { border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 10px 16px; color: #fff; background: rgba(255,255,255,.08); cursor: pointer; font: inherit; }
.admin-tabs button.active, .admin-tabs button:hover { background: rgba(32,181,164,.55); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-list { display: grid; gap: 10px; margin-top: 20px; }
.admin-item { display: grid; grid-template-columns: 1fr auto auto; }
.admin-item small { color: rgba(255,255,255,.55); }
.admin-item .danger:hover { background: rgba(220,70,90,.7); }
@media (max-width: 600px) { .content-nav { bottom: 10px; gap: 5px; padding: 7px; } .content-nav > div { gap: 2px; } .content-nav a { padding: 8px 9px; font-size: 12px; } .content-nav .brand { display: none; } }
