﻿@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Haringtone';
    src: url('/fonts/haringtone.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'A Alli';
    src: url('/fonts/a-alli.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: #050505;
    color: #E8E8E8;
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.8;
    direction: rtl;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: #C9A45C;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #d4b06a;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 164, 92, 0.03) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s ease;
    background: rgba(5, 5, 5, 0.4);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(20px);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(201, 164, 92, 0.1);
}

.header.scrolled .logo-img {
    height: 42px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-img {
    height: 56px;
    width: auto;
    display: block;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: #C9A45C;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: #E8E8E8;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    min-width: 44px;
    min-height: 44px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: #E8E8E8;
    margin: 6px 0;
    transition: all 0.3s ease;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.song-detail .hero-particles {
    height: 80vh;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, #121016 0%, #050505 70%);
    z-index: 0;
}

.hero-fog {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(5, 5, 5, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 2rem 5rem;
}

.hero-emblem {
    width: 260px;
    height: 260px;
    margin: 0 auto 2.5rem;
    opacity: 0;
    animation: fadeInScale 1.5s ease forwards;
    margin-top: 7rem;
}

.hero-emblem a {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}


.hero-title {
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    font-family: 'Haringtone', 'Vazirmatn', sans-serif;
    font-size: 5.5rem;
    color: #c9a45c;
    letter-spacing: 6px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
}

.title-line.subtitle {
    font-family: 'A Alli', 'Vazirmatn', sans-serif;
    font-size: 2.6rem;
    color: #C9A45C;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    animation-delay: 1s;
}

.hero-description {
    font-size: 1.1rem;
    color: #888;
    line-height: 2;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.5s;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 2s;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: #C9A45C;
    color: #050505;
}

.btn-primary:hover {
    background: #d4b06a;
    color: #050505;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 164, 92, 0.3);
}

.btn-outline {
    background: transparent;
    color: #C9A45C;
    border: 1px solid #C9A45C;
}

.btn-outline:hover {
    background: rgba(201, 164, 92, 0.1);
    color: #C9A45C;
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 3s;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid #C9A45C;
    border-bottom: 2px solid #C9A45C;
    transform: rotate(-45deg);
    animation: scrollBounce 2s ease infinite;
    opacity: 0.7;
}

.featured-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 2rem;
    color: #E8E8E8;
    margin-bottom: 1rem;
}

.section-divider {
    width: 60px;
    height: 1px;
    background: #C9A45C;
    margin: 0 auto;
}

.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
    gap: 2rem;
    justify-content: center;
}

.music-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(201, 164, 92, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.music-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 164, 92, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    color: inherit;
}

.card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #121016;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.music-card:hover .card-image img {
    transform: scale(1.05);
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(201, 164, 92, 0.3);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.music-card:hover .card-overlay {
    opacity: 1;
}

.card-play {
    font-size: 3rem;
    color: #C9A45C;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.music-card:hover .card-play {
    transform: scale(1);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.1rem;
    color: #E8E8E8;
    margin-bottom: 0.5rem;
}

.card-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.card-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.card-genre {
    display: inline-block;
    font-size: 0.75rem;
    color: #C9A45C;
    padding: 0.2rem 0.6rem;
    border: 1px solid rgba(201, 164, 92, 0.3);
    border-radius: 4px;
}

.card-duration {
    font-size: 0.75rem;
    color: #666;
}

.quote-section {
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
}

.quote-container {
    max-width: 700px;
    margin: 0 auto;
}

.quote-mark {
    font-size: 5rem;
    color: rgba(201, 164, 92, 0.1);
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1;
    margin-bottom: 1rem;
}

.quote-container blockquote p {
    font-size: 1.3rem;
    color: #888;
    line-height: 2;
    font-style: italic;
}

.quote-container cite {
    display: block;
    margin-top: 1.5rem;
    color: #C9A45C;
    font-style: normal;
    font-size: 0.9rem;
}

.page-header {
    padding: 10rem 2rem 4rem;
    text-align: center;
    position: relative;
    background: radial-gradient(ellipse at center, #121016 0%, #050505 70%);
}

.page-header-content {
    max-width: 700px;
    margin: 0 auto;
}

.page-title {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 2.5rem;
    color: #E8E8E8;
    margin-bottom: 1rem;
}

.page-description {
    color: #666;
    font-size: 1.1rem;
}

.music-list-section {
    padding: 4rem 2rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #555;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: rgba(201, 164, 92, 0.2);
}

.empty-state h2 {
    font-size: 1.3rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.song-detail {
    position: relative;
}

.song-detail-bg {
    position: fixed;
    inset: 0;
    background: #050505;
    z-index: -1;
}

.song-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80vh;
    overflow: hidden;
    z-index: 0;
}

.song-header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}


.song-header-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.45) 0%, rgba(5, 5, 5, 0.75) 25%, rgba(5, 5, 5, 0.95) 55%, #050505 80%);
    z-index: 2;
}

.song-header {
    position: relative;
    z-index: 1;
    padding: 50vh 2rem 3rem;
}

.back-link {
    display: inline-block;
    color: #888;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: #C9A45C;
}

.song-info-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.song-title {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 2.5rem;
    color: #E8E8E8;
}

.song-genre {
    font-size: 0.85rem;
    color: #C9A45C;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(201, 164, 92, 0.3);
    border-radius: 4px;
}

.song-body {
    padding: 2rem;
    padding-bottom: 6rem;
}

.song-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    align-items: start;
}

.song-cover-wrapper {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(201, 164, 92, 0.1);
}

.song-cover {
    width: 100%;
    display: block;
}

.song-cover-placeholder {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(201, 164, 92, 0.2);
    border: 1px solid rgba(201, 164, 92, 0.1);
    border-radius: 12px;
}

.song-section {
    margin-bottom: 3rem;
}

.song-section-title {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.3rem;
    color: #C9A45C;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(201, 164, 92, 0.1);
}

.song-story {
    color: #aaa;
    line-height: 2;
    font-size: 0.95rem;
}

.song-lyrics {
    color: #888;
    line-height: 1.8;
    font-size: 0.9rem;
    font-style: italic;
    text-align:center;
}

.song-lyrics .stanza {
    margin: 0;
    line-height: 2;
    white-space: pre-wrap;
}

.song-lyrics .stanza:first-child {
    margin-top: 0;
}

.stanza-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    direction: ltr;
}

.stanza-divider::before,
.stanza-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 164, 92, 0.25), transparent);
}

.stanza-divider::after {
    background: linear-gradient(270deg, transparent, rgba(201, 164, 92, 0.25), transparent);
}

.stanza-divider span {
    color: rgba(201, 164, 92, 0.35);
    font-size: 0.5rem;
    flex-shrink: 0;
}

.song-video video {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(201, 164, 92, 0.1);
}

.about-section {
    padding: 4rem 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
    align-items: center;
}

.about-text h2 {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.8rem;
    color: #E8E8E8;
    margin-bottom: 2rem;
}

.about-text p {
    color: #888;
    line-height: 2;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.about-symbol {
    display: flex;
    justify-content: center;
    align-items: center;
}

.symbol-container {
    text-align: center;
}

.symbol-logo {
    width: 100px;
    height: 100px;
    display: block;
    margin: 0 auto 1.5rem;
}

.symbol-text {
    color: #666;
    font-style: italic;
    font-size: 1rem;
}

.about-manifesto {
    padding-top: 4rem;
    border-top: 1px solid rgba(201, 164, 92, 0.1);
}

.manifesto-title {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.5rem;
    color: #E8E8E8;
    text-align: center;
    margin-bottom: 3rem;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.manifesto-item {
    text-align: center;
    padding: 2rem;
    border: 1px solid rgba(201, 164, 92, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.manifesto-item:hover {
    border-color: rgba(201, 164, 92, 0.3);
    transform: translateY(-4px);
}

.manifesto-item h3 {
    font-family: 'Vazirmatn', sans-serif;
    color: #C9A45C;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.manifesto-item p {
    color: #666;
    line-height: 1.8;
    font-size: 0.85rem;
}

.contact-section {
    padding: 4rem 2rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.5rem;
    color: #E8E8E8;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: #888;
    line-height: 2;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #888;
    font-size: 0.9rem;
}

.detail-icon {
    color: #C9A45C;
    font-size: 1.2rem;
}

.detail-logo {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(201, 164, 92, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #C9A45C;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 164, 92, 0.2);
    border-radius: 8px;
    color: #E8E8E8;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #C9A45C;
}

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

.captcha-box {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.captcha-equation {
    color: #C9A45C;
    font-size: 1.1rem;
    white-space: nowrap;
    font-family: 'Vazirmatn', sans-serif;
    min-width: 80px;
}

.captcha-input {
    width: 100px;
    text-align: center;
    direction: ltr;
}

.form-char-count {
    display: block;
    text-align: left;
    color: #555;
    font-size: 0.75rem;
    margin-top: 0.3rem;
}

.contact-alert {
    margin-top: 1rem;
}

.text-danger {
    color: #EF5350;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: block;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(46, 125, 50, 0.15);
    border: 1px solid rgba(46, 125, 50, 0.3);
    color: #81C784;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 1rem;
}

.footer {
    background: #050505;
    border-top: 1px solid rgba(201, 164, 92, 0.1);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.footer-logo {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.5rem;
    color: #C9A45C;
    letter-spacing: 4px;
}

.footer-tagline {
    color: #555;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #666;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #C9A45C;
}

.footer-copy p {
    color: #444;
    font-size: 0.8rem;
}

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-code {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 8rem;
    color: #C9A45C;
    margin-bottom: 1rem;
}

.error-message {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background: #050505;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
        overflow-y: auto;
    }

    .nav.active {
        opacity: 1;
        pointer-events: all;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: block;
    }

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

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

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

    .title-line {
        font-size: 3.2rem;
        letter-spacing: 4px;
    }

    .title-line.subtitle {
        font-size: 2rem;
    }

    .song-layout {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .music-grid {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        width: 200px;
    }

    .admin-main {
        margin-right: 200px;
    }
}

@media (max-width: 480px) {
    .title-line {
        font-size: 2.4rem;
    }

    .title-line.subtitle {
        font-size: 1.7rem;
    }

/*    .hero-actions {
        flex-direction: column;
    }
*/
    .container {
        padding: 0 1rem;
    }
}

/* ============ back to top ============ */
.to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 48px;
    height: 48px;
    background: rgba(5, 5, 5, 0.82);
    border: 1px solid rgba(201, 164, 92, 0.35);
    border-radius: 50%;
    cursor: pointer;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(16px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.to-top:hover {
    border-color: rgba(201, 164, 92, 0.8);
    box-shadow: 0 0 24px rgba(201, 164, 92, 0.35);
    transform: translateY(-3px);
}

.to-top-ring {
    position: absolute;
    inset: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    transform: rotate(-90deg);
    pointer-events: none;
}

.to-top-ring .ring-bg {
    fill: none;
    stroke: rgba(201, 164, 92, 0.12);
    stroke-width: 2;
}

.to-top-ring .ring-fill {
    fill: none;
    stroke: #C9A45C;
    stroke-width: 2;
    stroke-linecap: round;
    filter: drop-shadow(0 0 4px rgba(201, 164, 92, 0.6));
    transition: stroke-dashoffset 0.15s linear;
}

.to-top-arrow {
    color: #C9A45C;
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.to-top:hover .to-top-arrow {
    transform: translateY(-3px);
}

@media (max-width: 600px) {
    .to-top {
        bottom: 1.25rem;
        left: 1.25rem;
        width: 42px;
        height: 42px;
    }
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============ 404 page ============ */
.notfound-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(ellipse 60% 50% at 50% 40%, rgba(61, 42, 92, 0.25) 0%, transparent 65%),
        transparent;
}

.notfound-page .container {
    width: 100%;
    padding-top: 6rem;
}

.notfound-logo {
    width: 160px;
    height: 160px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    animation: notfoundFloat 4s ease-in-out infinite;
}

.notfound-code {
    background: linear-gradient(120deg, #E2C17C 20%, #C9A45C 40%, #8B1E2D 60%, #C9A45C 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: notfoundShine 6s linear infinite;
    filter: drop-shadow(0 0 30px rgba(201, 164, 92, 0.25));
}

.notfound-title {
    font-size: 1.4rem;
    color: #E8E8E8;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

@keyframes notfoundFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes notfoundShine {
    to { background-position: 200% center; }
}
