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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000;
    color: #e0e0e0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.9) 100%),
        url('../assets/magicrust-background-official.png') center/cover no-repeat fixed;
    z-index: -2;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 140, 0, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(139, 69, 19, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
    animation: ambientPulse 8s ease-in-out infinite;
}

@keyframes ambientPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.auth-bar {
    background: rgba(0, 0, 0, 0.92);
    border-bottom: 2px solid rgba(255,140,0,0.4);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px) saturate(180%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 40px rgba(255,140,0,0.1);
}

.auth-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-btn {
    color: #c0c0c0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff8c00, #ffd700);
    transition: width 0.3s ease;
}

.nav-btn:hover {
    color: #ffd700;
}

.nav-btn:hover::after {
    width: 80%;
}

.logo-small {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2em;
    font-weight: bold;
}

.logo-small a {
    background: linear-gradient(135deg, #ff8c00 0%, #ffd700 50%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.logo-small a:hover {
    filter: drop-shadow(0 0 8px rgba(255,140,0,0.6));
}

.nav-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 8px rgba(255,140,0,0.5));
    transition: all 0.3s ease;
}

.nav-icon:hover {
    filter: drop-shadow(0 0 12px rgba(255,215,0,0.8));
    transform: scale(1.05);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ff8c00;
}

.user-name {
    color: #ffd700;
    font-weight: 600;
}

.logout-btn {
    background: rgba(255,140,0,0.2);
    border: 1px solid #ff8c00;
    color: #ff8c00;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255,140,0,0.3);
    color: #ffd700;
}

.login-btn {
    display: inline-block;
    background: rgba(255,140,0,0.2);
    border: 1px solid #ff8c00;
    color: #ff8c00;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: rgba(255,140,0,0.3);
    color: #ffd700;
    transform: translateY(-2px);
}

.review-form-card {
    background: rgba(20, 20, 20, 0.9);
    border: 2px solid rgba(255,140,0,0.3);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}

.review-form-card h3 {
    color: #ffd700;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.review-form-card textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(30, 25, 20, 0.6);
    border: 1px solid rgba(255,140,0,0.3);
    border-radius: 8px;
    padding: 15px;
    color: #e0e0e0;
    font-family: inherit;
    font-size: 1em;
    resize: vertical;
}

.review-form-card textarea:focus {
    outline: none;
    border-color: #ff8c00;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.char-counter {
    color: #888;
    font-size: 0.9em;
}

.submit-btn {
    background: linear-gradient(135deg, #ff8c00, #ffd700);
    color: #000;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,140,0,0.4);
}

.login-prompt-card {
    background: rgba(20, 20, 20, 0.9);
    border: 2px solid rgba(255,140,0,0.3);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.login-prompt-card p {
    color: #c0c0c0;
    font-size: 1.1em;
    margin-bottom: 20px;
}



.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    padding: 80px 20px 60px;
    background: linear-gradient(180deg, rgba(255,140,0,0.12) 0%, rgba(139,69,19,0.08) 50%, transparent 100%);
    border-bottom: 2px solid rgba(255,140,0,0.4);
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(255,140,0,0.15) 0%, transparent 70%);
    pointer-events: none;
}

header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    box-shadow: 0 0 20px #ffd700;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    animation: logoGlow 3s ease-in-out infinite;
}

.logo img {
    filter: drop-shadow(0 0 20px rgba(255,140,0,0.6));
    transition: all 0.3s ease;
}

.logo img:hover {
    filter: drop-shadow(0 0 35px rgba(255,215,0,0.9));
    transform: scale(1.05);
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(255,140,0,0.5)); }
    50% { filter: drop-shadow(0 0 30px rgba(255,215,0,0.8)); }
}

.subtitle {
    font-size: 1.3em;
    color: #b8860b;
    margin-top: 10px;
    text-shadow: 0 0 10px rgba(184, 134, 11, 0.3);
}

.service-section {
    background: linear-gradient(135deg, rgba(20,15,10,0.92), rgba(15,10,5,0.88));
    border: 2px solid rgba(255,140,0,0.4);
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 60px rgba(255,140,0,0.15);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.service-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,140,0,0.08) 0%, transparent 70%);
    animation: sectionPulse 10s ease-in-out infinite;
}

@keyframes sectionPulse {
    0%, 100% { transform: translate(0, 0); opacity: 0.5; }
    50% { transform: translate(-20px, -20px); opacity: 0.8; }
}

.service-section h2 {
    color: #ffd700;
    font-size: 2.3em;
    margin-bottom: 35px;
    text-align: center;
    text-shadow: 0 0 20px rgba(255,215,0,0.5), 0 0 40px rgba(255,140,0,0.3);
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-item {
    background: linear-gradient(135deg, rgba(30,25,20,0.7), rgba(20,15,10,0.85));
    padding: 25px;
    border-left: 4px solid #ff8c00;
    border-radius: 10px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,140,0,0.15), transparent);
    transition: left 0.6s ease;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    background: linear-gradient(135deg, rgba(40,35,30,0.9), rgba(30,25,20,0.95));
    border-left-color: #ffd700;
    border-left-width: 5px;
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(255,140,0,0.3), inset 0 0 30px rgba(255,140,0,0.05);
}

.feature-icon {
    font-size: 2.5em;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 0 8px rgba(255,140,0,0.4));
}

.feature-item:hover .feature-icon {
    filter: drop-shadow(0 0 15px rgba(255,215,0,0.7));
    transform: scale(1.1);
}

.feature-item strong {
    color: #ffd700;
    font-size: 1.1em;
    display: block;
    margin-bottom: 5px;
}

.price-box {
    background: linear-gradient(135deg, rgba(255,140,0,0.2) 0%, rgba(255,215,0,0.1) 100%);
    border: 3px solid #ff8c00;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.price-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,215,0,0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.price {
    font-size: 3em;
    color: #ffd700;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(255,215,0,0.5);
    position: relative;
    z-index: 1;
}

.guarantee-box {
    background: rgba(255,140,0,0.1);
    border: 2px solid rgba(255,140,0,0.4);
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
}

.guarantee-box p {
    margin: 10px 0;
    font-size: 1.1em;
    line-height: 1.6;
}

.guarantee-box strong {
    color: #ffd700;
}

.reviews-section {
    margin-top: 60px;
}

.reviews-section h2 {
    color: #ffd700;
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 15px rgba(255,215,0,0.4);
}

.review-card {
    background: linear-gradient(135deg, rgba(25,20,15,0.95), rgba(20,15,10,0.9));
    border: 2px solid rgba(255,140,0,0.35);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.review-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,140,0,0.1), transparent);
    transition: left 0.6s ease;
}

.review-card:hover::after {
    left: 100%;
}

.review-card:hover {
    border-color: #ffd700;
    box-shadow: 0 8px 35px rgba(255,140,0,0.4), inset 0 0 40px rgba(255,140,0,0.05);
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #ff8c00;
    margin-right: 15px;
    box-shadow: 0 0 10px rgba(255,140,0,0.3);
}

.review-author {
    font-weight: bold;
    color: #ffd700;
    font-size: 1.1em;
}

.review-date {
    color: #888;
    font-size: 0.9em;
    margin-top: 3px;
}

.review-content {
    color: #d0d0d0;
    line-height: 1.6;
    margin-top: 10px;
}

.note-box {
    background: rgba(255,140,0,0.05);
    border-left: 4px solid #ff8c00;
    padding: 20px;
    margin: 30px 0;
    border-radius: 5px;
}

.note-box p {
    color: #c0c0c0;
    line-height: 1.8;
}

.note-box strong {
    color: #ffd700;
}

footer {
    text-align: center;
    padding: 50px 20px 25px;
    margin-top: 80px;
    border-top: 2px solid rgba(255,140,0,0.5);
    background: linear-gradient(180deg, rgba(0,0,0,0.5), rgba(10,5,0,0.9));
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at bottom, rgba(255,140,0,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.contact-section {
    margin-bottom: 30px;
}

.contact-section h3 {
    color: #ffd700;
    font-size: 2em;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255,215,0,0.5);
    font-weight: 800;
}

.contact-section p {
    color: #c0c0c0;
    margin-bottom: 20px;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #ff8c00, #ffd700);
    color: #000;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(255,140,0,0.4);
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.contact-btn:hover::before {
    left: 100%;
}

.contact-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 35px rgba(255,140,0,0.6);
}

.btn-icon {
    font-size: 1.3em;
}

.footer-bottom {
    color: #888;
    padding-top: 25px;
    margin-top: 20px;
    border-top: 1px solid rgba(255,140,0,0.3);
    font-size: 0.95em;
}

.loading-spinner {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid rgba(255,140,0,0.2);
    border-top: 4px solid #ff8c00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: #888;
    font-size: 1.1em;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff8c00, #ffd700);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #000;
    box-shadow: 0 4px 15px rgba(255,140,0,0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(255,140,0,0.6);
}

.scroll-to-top.visible {
    display: flex;
}

@media (max-width: 768px) {
    .logo {
        font-size: 2.5em;
    }

    .subtitle {
        font-size: 1.1em;
    }

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

    .price {
        font-size: 2em;
    }

    .service-section {
        padding: 25px;
    }

    header {
        padding: 60px 20px 40px;
    }
}

/* Ambient Particles Effect */
.ambient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.amb-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.amb1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ff8c00, transparent);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.amb2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #ffd700, transparent);
    top: 50%;
    right: 10%;
    animation-delay: 7s;
}

.amb3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #b8860b, transparent);
    bottom: 10%;
    left: 50%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: rgba(255,140,0,0.4);
    color: #ffd700;
}

::-moz-selection {
    background: rgba(255,140,0,0.4);
    color: #ffd700;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(10,10,10,0.9);
    border-left: 1px solid rgba(255,140,0,0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff8c00, #b8860b);
    border-radius: 6px;
    border: 2px solid rgba(10,10,10,0.9);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffd700, #ff8c00);
}
