:root {
--primary: #7C3AED;
--primary-light: #A78BFA;
--primary-dark: #5B21B6;
--accent: #EC4899;
--accent-light: #F472B6;
--gradient-main: linear-gradient(135deg, #7C3AED 0%, #EC4899 50%, #F59E0B 100%);
--gradient-soft: linear-gradient(135deg, #EDE9FE 0%, #FCE7F3 50%, #FEF3C7 100%);
--gradient-card: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
--gradient-btn: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
--text: #1F2937;
--text-secondary: #6B7280;
--bg: #FAFBFF;
--card: #FFFFFF;
--sidebar: #FFFFFF;
--radius: 20px;
--radius-sm: 12px;
--shadow: 0 2px 20px rgba(124,58,237,0.06);
--shadow-lg: 0 8px 40px rgba(124,58,237,0.12);
--shadow-xl: 0 20px 60px rgba(124,58,237,0.15);
--header-h: 72px;
--header-scrolled: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
color: var(--text);
background: var(--bg);
line-height: 1.7;
font-size: 17px;
padding-top: var(--header-h);
word-break: break-word;
hyphens: auto;
}
}

body.scrolled-active { padding-top: var(--header-scrolled); }

a { transition: all 0.25s ease !important; text-decoration: none; color: inherit; }

img { max-width: 100%; height: auto; }

/* ===== HEADER ===== */
header {
position: fixed;
top: 0; left: 0; right: 0;
height: var(--header-h);
background: rgba(255,255,255,0.85);
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 40px;
z-index: 1000;
transition: all 0.3s ease;
border-bottom: 1px solid rgba(124,58,237,0.08);
}

body.scrolled-active header {
height: var(--header-scrolled);
box-shadow: 0 4px 30px rgba(124,58,237,0.08);
}

.logo {
font-size: 1.7rem;
font-weight: 800;
background: var(--gradient-main);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
letter-spacing: -0.02em;
}

.logo:hover { opacity: 0.8; transform: scale(1.02); }

body.scrolled-active .logo { font-size: 1.5rem; }

.burger-menu {
display: none;
cursor: pointer;
padding: 8px;
}

.burger-menu span {
display: block;
width: 26px;
height: 2.5px;
background: var(--primary);
margin: 5px 0;
border-radius: 3px;
transition: all 0.3s ease;
}

nav ul {
display: flex;
list-style: none;
gap: 8px;
}

nav a {
display: block;
padding: 10px 18px;
font-weight: 500;
font-size: 0.95rem;
color: var(--text);
border-radius: 50px;
transition: all 0.2s ease;
}

nav a:hover {
background: rgba(124,58,237,0.08);
color: var(--primary);
}

/* ===== PROGRESS BAR ===== */
.progress-container {
position: fixed;
top: var(--header-h);
left: 0;
width: 100%;
height: 3px;
background: rgba(124,58,237,0.06);
z-index: 999;
transition: top 0.3s ease;
}

body.scrolled-active .progress-container { top: var(--header-scrolled); }

.progress-bar {
height: 100%;
background: var(--gradient-main);
width: 0%;
border-radius: 0 3px 3px 0;
}

/* ===== MAIN LAYOUT ===== */
.main-wrapper {
max-width: 1320px;
margin: 0 auto;
display: grid;
grid-template-columns: 1fr 360px;
gap: 32px;
padding: 32px 40px;
}

/* ===== ARTICLE CARD ===== */
.container {
background: var(--card);
border-radius: var(--radius);
padding: 48px;
box-shadow: var(--shadow);
border: 1px solid rgba(124,58,237,0.04);
}

.article-header {
margin-bottom: 32px;
}

.article-header h1 {
font-size: 3rem;
font-weight: 800;
line-height: 100%;
letter-spacing: -0.03em;
margin-bottom: 20px;
background: var(--gradient-main);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.article-meta {
display: flex;
gap: 24px;
flex-wrap: wrap;
font-size: 0.9rem;
color: var(--text-secondary);
}

.article-meta span {
display: flex;
align-items: center;
gap: 6px;
}

/* ===== ARTICLE CONTENT ===== */
.article-content {
font-size: 1.1rem;
line-height: 1.5;
}

.article-content h2 {
font-size: 2rem;
font-weight: 700;
letter-spacing: -0.02em;
margin: 48px 0 20px;
color: var(--text);
padding-bottom: 12px;
position: relative;
line-height: 100%;
}

.article-content h2::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 60px;
height: 4px;
background: var(--gradient-main);
border-radius: 4px;
}

.article-content h3 {
font-size: 1.4rem;
font-weight: 600;
margin: 32px 0 16px;
color: var(--text);
line-height: 100%;
}

.article-content p {
margin-bottom: 1em;
color: #374151;
}

.article-content a {
color: var(--primary);
font-weight: 500;
border-bottom: 2px solid transparent;
}

.article-content a:hover {
color: var(--accent);
border-bottom-color: var(--accent);
}

.article-content a:visited {
color: var(--accent-dark);
}

.article-content strong {
color: var(--text);
font-weight: 700;
}

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

.article-content li {
margin-bottom: 10px;
}

.article-content ul li {
list-style: none;
position: relative;
padding-left: 24px;
}

.article-content ul li::before {
content: '→';
position: absolute;
left: 0;
color: var(--accent);
font-weight: 600;
}

/* ===== TABLE ===== */
table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
margin: 24px 0;
border-radius: var(--radius-sm);
overflow: hidden;
box-shadow: var(--shadow);
}

th {
background: var(--gradient-main);
color: white;
font-weight: 600;
padding: 16px 20px;
text-align: left;
}

td {
padding: 14px 20px;
border-bottom: 1px solid #F3F4F6;
}

tbody tr:nth-child(even) { background: #F9FAFB; }
tbody tr:hover { background: #EDE9FE; }

/* ===== BLOCKQUOTE ===== */
blockquote {
background: var(--gradient-soft);
border-left: 4px solid;
border-image: var(--gradient-main) 1;
padding: 28px 32px;
margin: 32px 0;
border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
font-style: italic;
}

/* ===== CODE ===== */
code {
font-family: 'SF Mono', 'Fira Code', monospace;
background: #F3F4F6;
padding: 3px 8px;
border-radius: 6px;
font-size: 0.9em;
color: var(--primary);
}

/* ===== STATS ===== */
.article-stats {
display: flex;
align-items: center;
gap: 16px;
flex-wrap: wrap;
margin-top: 40px;
padding-top: 24px;
border-top: 1px solid #F3F4F6;
color: var(--text-secondary);
font-size: 0.9rem;
}

.share-btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 22px;
background: var(--gradient-btn);
color: white;
border: none;
border-radius: 50px;
font-weight: 600;
font-size: 0.9rem;
cursor: pointer;
transition: all 0.25s ease;
}

.share-btn:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(124,58,237,0.3);
}

#reaction_up {
cursor: pointer;
font-size: 1.5rem;
display: inline-block;
transition: transform 0.2s ease;
}

#reaction_up:hover { transform: scale(1.3); }

/* ===== COMMENTS ===== */
.comments {
margin-top: 48px;
padding-top: 32px;
border-top: 1px solid #F3F4F6;
}

.comments h3 {
font-size: 1.8rem;
font-weight: 700;
margin-bottom: 24px;
letter-spacing: -0.02em;
}

.comment-form {
display: flex;
flex-direction: column;
gap: 16px;
}

.comment-form input,
.comment-form textarea {
width: 100%;
padding: 16px 20px;
border: 2px solid #E5E7EB;
border-radius: var(--radius-sm);
font-family: inherit;
font-size: 1rem;
transition: all 0.2s ease;
background: #F9FAFB;
}

.comment-form input:focus,
.comment-form textarea:focus {
outline: none;
border-color: var(--primary);
background: white;
box-shadow: 0 0 0 4px rgba(124,58,237,0.1);
}

.comment-form textarea {
min-height: 140px;
resize: vertical;
}

.comment-form button {
align-self: flex-start;
padding: 14px 36px;
background: var(--gradient-btn);
color: white;
border: none;
border-radius: 50px;
font-weight: 700;
font-size: 1rem;
cursor: pointer;
transition: all 0.25s ease;
}

.comment-form button:hover {
transform: translateY(-2px);
box-shadow: 0 10px 30px rgba(124,58,237,0.3);
}

.comment-form button:active {
transform: translateY(0);
}

/* Comment success message */
.comment-success {
display: none;
align-items: center;
gap: 12px;
padding: 16px 20px;
background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
border-radius: var(--radius-sm);
border: 1px solid #6EE7B7;
color: #065F46;
font-weight: 500;
animation: slideIn 0.4s ease;
}

.comment-success.show {
display: flex;
}

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

.comment-spinner {
width: 20px;
height: 20px;
border: 3px solid #6EE7B7;
border-top-color: #065F46;
border-radius: 50%;
animation: spin 0.8s linear infinite;
}

@keyframes spin {
to { transform: rotate(360deg); }
}

/* ===== COMMENTS LIST ===== */
.comments-list {
margin-top: 32px;
display: flex;
flex-direction: column;
gap: 20px;
}

.comment-item {
padding: 20px;
background: #F9FAFB;
border-radius: var(--radius-sm);
border: 1px solid #F3F4F6;
animation: fadeIn 0.5s ease;
}

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

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

.comment-author {
font-weight: 600;
color: var(--text);
display: flex;
align-items: center;
gap: 8px;
}

.comment-avatar {
width: 32px;
height: 32px;
border-radius: 50%;
background: var(--gradient-main);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 0.8rem;
font-weight: 700;
}

.comment-date {
font-size: 0.85rem;
color: var(--text-secondary);
}

.comment-item p {
color: #374151;
line-height: 1.6;
}

/* ===== SIDEBAR ===== */
.sidebar {
display: flex;
flex-direction: column;
gap: 24px;
}

.sidebar-widget {
background: var(--sidebar);
border-radius: var(--radius);
padding: 28px;
box-shadow: var(--shadow);
border: 1px solid rgba(124,58,237,0.04);
transition: all 0.3s ease;
}

.sidebar-widget:hover {
box-shadow: var(--shadow-lg);
transform: translateY(-4px);
}

.sidebar-widget h3 {
font-size: 1.25rem;
font-weight: 700;
margin-bottom: 20px;
letter-spacing: -0.01em;
padding-bottom: 14px;
border-bottom: 2px solid #F3F4F6;
position: relative;
}

.sidebar-widget h3::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 40px;
height: 2px;
background: var(--gradient-main);
border-radius: 2px;
}

/* Popular posts */
.popular-post {
display: flex;
gap: 14px;
padding: 14px 0;
border-bottom: 1px solid #F3F4F6;
}

.popular-post:last-child {
border-bottom: none;
padding-bottom: 0;
}

.popular-post-img {
width: 56px;
height: 56px;
border-radius: var(--radius-sm);
background: var(--gradient-soft);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
flex-shrink: 0;
}

.popular-post-info a {
font-size: 0.92rem;
font-weight: 600;
display: block;
margin-bottom: 4px;
line-height: 1.4;
}

.popular-post-info a:hover { color: var(--primary); }

.popular-post-info span {
font-size: 0.82rem;
color: var(--text-secondary);
}

/* Tags */
.sidebar-widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sidebar-widget ul li {
	position: relative;
	padding: 10px 0 10px 22px;
	border-bottom: 1px solid #F3F4F6;
	font-size: 0.93rem;
	line-height: 1.5;
}

.sidebar-widget ul li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.sidebar-widget ul li::before {
	content: '→';
	position: absolute;
	left: 0;
	color: var(--accent);
	font-weight: 600;
}

.sidebar-widget ul li a {
	color: var(--text);
	font-weight: 500;
	transition: color 0.2s ease;
}

.sidebar-widget ul li a:hover {
	color: var(--primary);
}

.sidebar-tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
}

.sidebar-tags a {
padding: 8px 16px;
background: #F3F4F6;
border-radius: 50px;
font-size: 0.88rem;
font-weight: 500;
transition: all 0.2s ease;
}

.sidebar-tags a:hover {
background: var(--gradient-main);
color: white;
transform: translateY(-2px);
}

/* ===== POLL WIDGET ===== */
.poll-widget {
background: var(--gradient-soft);
border: none;
}

.poll-widget h3::after {
background: var(--primary);
}

.poll-question {
font-weight: 600;
margin-bottom: 16px;
font-size: 1rem;
}

.poll-options {
display: flex;
flex-direction: column;
gap: 10px;
}

.poll-option {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
background: white;
border: 2px solid transparent;
border-radius: var(--radius-sm);
cursor: pointer;
transition: all 0.2s ease;
position: relative;
overflow: hidden;
}

.poll-option:hover {
border-color: var(--primary-light);
}

.poll-option.voted {
border-color: var(--primary);
}

.poll-option input[type="radio"] {
display: none;
}

.poll-radio {
width: 20px;
height: 20px;
border-radius: 50%;
border: 2px solid #D1D5DB;
flex-shrink: 0;
position: relative;
transition: all 0.2s ease;
}

.poll-option.voted .poll-radio {
border-color: var(--primary);
background: var(--primary);
}

.poll-option.voted .poll-radio::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 8px;
height: 8px;
background: white;
border-radius: 50%;
}

.poll-label {
flex: 1;
font-size: 0.95rem;
font-weight: 500;
cursor: pointer;
}

.poll-bar {
position: absolute;
top: 0;
left: 0;
height: 100%;
background: rgba(124,58,237,0.08);
border-radius: var(--radius-sm);
transition: width 0.6s ease;
width: 0;
}

.poll-percent {
font-weight: 700;
font-size: 0.9rem;
color: var(--primary);
position: relative;
z-index: 1;
opacity: 0;
transition: opacity 0.3s ease;
}

.poll-option.voted .poll-percent {
opacity: 1;
}

.poll-total {
margin-top: 14px;
font-size: 0.85rem;
color: var(--text-secondary);
text-align: center;
}

/* ===== CTA WIDGET ===== */
.sidebar-cta {
background: var(--gradient-main);
color: white;
text-align: center;
position: relative;
overflow: hidden;
}

.sidebar-cta::before {
content: '';
position: absolute;
top: -50%;
right: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
}

.sidebar-cta h3 {
color: white;
border-bottom-color: rgba(255,255,255,0.2);
position: relative;
}

.sidebar-cta h3::after {
background: white;
}

.sidebar-cta p {
font-size: 0.95rem;
opacity: 0.95;
margin-bottom: 18px;
position: relative;
}

.sidebar-cta input {
width: 100%;
padding: 14px 18px;
border: 2px solid rgba(255,255,255,0.3);
border-radius: 50px;
background: rgba(255,255,255,0.15);
color: white;
font-size: 1rem;
margin-bottom: 12px;
position: relative;
}

.sidebar-cta input::placeholder { color: rgba(255,255,255,0.7); }

.sidebar-cta input:focus {
outline: none;
border-color: white;
background: rgba(255,255,255,0.25);
}

.sidebar-cta button {
width: 100%;
padding: 14px;
background: white;
color: var(--primary);
border: none;
border-radius: 50px;
font-weight: 700;
font-size: 1rem;
cursor: pointer;
transition: all 0.25s ease;
position: relative;
}

.sidebar-cta button:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ===== FOOTER ===== */
footer {
background: linear-gradient(135deg, #7C3AED 0%, #EC4899 50%, #F59E0B 100%);
color: white;
padding: 48px 40px 0;
margin-top: 60px;
position: relative;
overflow: hidden;
}

footer::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%);
pointer-events: none;
}

.footer-content {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 32px;
padding-bottom: 32px;
position: relative;
}

.footer-section h4 {
font-size: 1.15rem;
font-weight: 700;
margin-bottom: 16px;
letter-spacing: -0.01em;
}

.footer-section p {
font-size: 0.95rem;
opacity: 0.9;
margin-bottom: 8px;
line-height: 1.6;
}

.footer-section a {
color: white;
opacity: 0.9;
text-decoration: none;
border-bottom: 1px solid rgba(255,255,255,0.3);
transition: all 0.2s ease;
}

.footer-section a:hover {
opacity: 1;
border-bottom-color: white;
}

.footer-socials {
display: flex;
gap: 16px;
flex-wrap: wrap;
}

.social-icon {
display: inline-flex !important;
align-items: center;
gap: 8px;
padding: 10px 18px;
background: rgba(255,255,255,0.15);
border: 2px solid rgba(255,255,255,0.25);
border-radius: 50px;
color: white;
text-decoration: none !important;
opacity: 1 !important;
font-weight: 600;
font-size: 0.9rem;
transition: all 0.25s ease;
border-bottom: none !important;
}

.social-icon:hover {
background: white;
color: var(--primary);
border-color: white;
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.social-icon svg {
flex-shrink: 0;
}

.footer-bottom {
border-top: 1px solid rgba(255,255,255,0.2);
padding: 20px 0;
text-align: center;
font-size: 0.9rem;
opacity: 0.8;
position: relative;
}

.footer-bottom p {
position: relative;
margin-bottom: 4px;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1100px) {
.main-wrapper {
grid-template-columns: 1fr;
}
.sidebar { order: 1; }
}

@media screen and (max-width: 768px) {
.footer-content {
grid-template-columns: 1fr;
gap: 24px;
}

footer {
padding: 32px 20px 0;
}
.main-wrapper {
padding: 20px 16px;
gap: 24px;
}

.container { padding: 28px 20px; }

.article-header h1 { font-size: 2.2rem; }

.article-content h2 { font-size: 1.6rem; }

nav {
position: fixed;
top: var(--header-h);
right: -100%;
width: 85%;
max-width: 320px;
height: calc(100vh - var(--header-h));
background: white;
transition: right 0.3s ease;
z-index: 998;
box-shadow: var(--shadow-xl);
padding: 20px;
}

body.scrolled-active nav {
top: var(--header-scrolled);
height: calc(100vh - var(--header-scrolled));
}

nav.active { right: 0; }

nav ul {
flex-direction: column;
gap: 4px;
}

nav a {
padding: 14px 18px;
font-size: 1.05rem;
}

.burger-menu { display: block; }

.burger-menu.active span:nth-child(1) {
transform: rotate(-45deg) translate(-5px, 6px);
}

.burger-menu.active span:nth-child(2) {
opacity: 0;
}

.burger-menu.active span:nth-child(3) {
transform: rotate(45deg) translate(-5px, -6px);
}

.article-stats {
flex-direction: column;
align-items: flex-start;
}
}

/* ===== LOGIN MODAL ===== */
.modal-overlay {
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: rgba(0,0,0,0.5);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
z-index: 2000;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}

.modal-overlay.active {
opacity: 1;
visibility: visible;
}

.modal-content {
background: white;
border-radius: var(--radius);
padding: 40px;
width: 100%;
max-width: 420px;
box-shadow: var(--shadow-xl);
transform: translateY(-20px);
transition: transform 0.3s ease;
position: relative;
}

.modal-overlay.active .modal-content {
transform: translateY(0);
}

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

.modal-header h3 {
font-size: 1.4rem;
font-weight: 700;
letter-spacing: -0.02em;
margin: 0;
background: var(--gradient-main);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.modal-close {
background: none;
border: none;
font-size: 1.8rem;
cursor: pointer;
color: var(--text-secondary);
transition: color 0.2s ease;
padding: 4px 8px;
line-height: 1;
}

.modal-close:hover {
color: var(--text);
}

.login-form {
display: flex;
flex-direction: column;
gap: 18px;
}

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

.form-group label {
font-size: 0.9rem;
font-weight: 600;
color: var(--text);
}

.form-group input {
padding: 14px 18px;
border: 2px solid #E5E7EB;
border-radius: var(--radius-sm);
font-size: 1rem;
font-family: inherit;
transition: all 0.2s ease;
background: #F9FAFB;
}

.form-group input:focus {
outline: none;
border-color: var(--primary);
background: white;
box-shadow: 0 0 0 4px rgba(124,58,237,0.1);
}

.login-error {
display: none;
align-items: center;
gap: 10px;
padding: 12px 16px;
background: #FEF2F2;
border: 1px solid #FECACA;
border-radius: var(--radius-sm);
color: #DC2626;
font-size: 0.9rem;
font-weight: 500;
animation: shake 0.4s ease;
}

.login-error.show {
display: flex;
}

@keyframes shake {
0%, 100% { transform: translateX(0); }
20% { transform: translateX(-6px); }
40% { transform: translateX(6px); }
60% { transform: translateX(-4px); }
80% { transform: translateX(4px); }
}

.login-btn {
padding: 16px;
background: var(--gradient-btn);
color: white;
border: none;
border-radius: 50px;
font-size: 1.05rem;
font-weight: 700;
font-family: inherit;
cursor: pointer;
transition: all 0.25s ease;
margin-top: 8px;
}

.login-btn:hover {
transform: translateY(-2px);
box-shadow: 0 10px 30px rgba(124,58,237,0.3);
}

.login-btn:active {
transform: translateY(0);
}

.modal-footer {
margin-top: 24px;
text-align: center;
}

.modal-footer p {
font-size: 0.88rem;
color: var(--text-secondary);
margin: 6px 0;
}

.modal-footer a {
color: var(--primary);
font-weight: 600;
text-decoration: none;
transition: color 0.2s ease;
}

.modal-footer a:hover {
color: var(--accent);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
position: fixed;
bottom: 32px;
right: 32px;
width: 52px;
height: 52px;
background: var(--gradient-btn);
color: white;
border: none;
border-radius: 50%;
font-size: 1.4rem;
font-weight: 700;
cursor: pointer;
z-index: 1500;
opacity: 0;
visibility: hidden;
transform: translateY(20px);
transition: all 0.3s ease;
box-shadow: 0 4px 20px rgba(124,58,237,0.3);
display: flex;
align-items: center;
justify-content: center;
}

.scroll-top.visible {
opacity: 1;
visibility: visible;
transform: translateY(0);
}

.scroll-top:hover {
transform: translateY(-4px);
box-shadow: 0 8px 30px rgba(124,58,237,0.4);
}

.scroll-top:active {
transform: translateY(0);
}

@media screen and (max-width: 768px) {
.scroll-top {
bottom: 20px;
right: 20px;
width: 46px;
height: 46px;
font-size: 1.2rem;
}
}

/* ===== QUIZ ===== */
.quiz-container {
max-width: 600px;
margin: 0 auto;
}

.quiz-step {
background: white;
border-radius: var(--radius);
padding: 36px;
box-shadow: var(--shadow);
border: 1px solid rgba(124,58,237,0.06);
}

.quiz-step h3 {
font-size: 1.3rem;
font-weight: 700;
margin-bottom: 24px;
color: var(--text);
}

.quiz-options {
display: flex;
flex-direction: column;
gap: 12px;
}

.quiz-option {
padding: 16px 20px;
background: #F9FAFB;
border: 2px solid #E5E7EB;
border-radius: var(--radius-sm);
cursor: pointer;
transition: all 0.2s ease;
font-size: 1rem;
font-weight: 500;
}

.quiz-option:hover {
border-color: var(--primary-light);
background: #EDE9FE;
transform: translateX(4px);
}

.quiz-option:active {
transform: translateX(2px);
}

.quiz-progress {
margin-top: 24px;
height: 6px;
background: #E5E7EB;
border-radius: 3px;
overflow: hidden;
}

.quiz-progress-bar {
height: 100%;
background: var(--gradient-main);
border-radius: 3px;
transition: width 0.4s ease;
}

.quiz-progress-text {
text-align: center;
margin-top: 10px;
font-size: 0.9rem;
color: var(--text-secondary);
}

.quiz-result {
background: white;
border-radius: var(--radius);
padding: 36px;
box-shadow: var(--shadow-lg);
text-align: center;
border: 2px solid var(--primary-light);
animation: fadeIn 0.5s ease;
}

.quiz-result-header h3 {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 20px;
}

.quiz-result-card {
background: var(--gradient-soft);
border-radius: var(--radius-sm);
padding: 28px;
margin-bottom: 20px;
text-align: left;
}

.quiz-result-card h4 {
font-size: 1.3rem;
font-weight: 700;
margin-bottom: 12px;
background: var(--gradient-main);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.quiz-result-card a {
color: var(--primary);
font-weight: 600;
text-decoration: none;
}

.quiz-result-card a:hover {
color: var(--accent);
}

.quiz-result-card p {
color: var(--text);
line-height: 1.7;
margin-bottom: 8px;
}

.quiz-retry {
color: var(--text-secondary);
font-size: 0.95rem;
margin-bottom: 12px;
}

.quiz-retry-btn {
padding: 14px 36px;
background: var(--gradient-btn);
color: white;
border: none;
border-radius: 50px;
font-weight: 700;
font-size: 1rem;
cursor: pointer;
transition: all 0.25s ease;
font-family: inherit;
}

.quiz-retry-btn:hover {
transform: translateY(-2px);
box-shadow: 0 10px 30px rgba(124,58,237,0.3);
}
