/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --white: #ffffff;
    --gray: #999999;
    --light-gray: #f5f5f5;
    --red: #ff0000;
    --transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
    
    /* Dark theme (default) */
    --bg: #000000;
    --text: #ffffff;
    --text-secondary: #999999;
    --border: #2a2a2a;
}

[data-theme="light"] {
    --bg: #ffffff;
    --text: #000000;
    --text-secondary: #666666;
    --border: #e0e0e0;
}
/* Light theme */
html.light,
html.light body,
body.light {
    --bg: #ffffff;
    --text: #000000;
    --text-secondary: #666666;
    --border: #e0e0e0;
    background: #ffffff !important;
    color: #000000 !important;
}

html {
    scroll-behavior: smooth;
}

/* View Transitions for theme switching */
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.5s;
}

::view-transition-old(root) {
    animation-name: fade-out;
}

::view-transition-new(root) {
    animation-name: fade-in;
}

@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.2s ease, color 0.2s ease;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    width: 200px;
    height: 200px;
    animation: logoFadeIn 1s ease-out, logoMoveToNav 0.8s ease-in-out 1.2s forwards;
}

.preloader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes logoFadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes logoMoveToNav {
    to {
        transform: translate(calc(-50vw + 60px), calc(-50vh + 40px)) scale(0.2);
        opacity: 0;
    }
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 60px;
    background: transparent;
    z-index: 1000;
    transition: all var(--transition);
}

.nav.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

.nav-left, .nav-center, .nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-left {
    flex: 1;
}

.nav-center {
    flex: 0;
    justify-content: center;
}

.nav-right {
    flex: 1;
    justify-content: flex-end;
}

.nav-logo {
    height: 40px;
    width: auto;
    transition: transform var(--transition);
    animation: navLogoFadeIn 0.5s ease-out 2s both;
}

@keyframes navLogoFadeIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.nav-logo:hover {
    transform: scale(1.05) rotate(5deg);
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    position: relative;
    transition: opacity 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text);
    transition: width 0.4s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-icon {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    transition: transform 0.3s ease;
}

.nav-icon:hover {
    transform: rotate(180deg);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lang-btn.active {
    color: var(--text);
}

.lang-divider {
    color: var(--text-secondary);
    font-size: 12px;
}

.nav-btn {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border-radius: 50px;
}

.nav-btn:hover {
    background: var(--black);
    transform: translateY(-2px);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.user-name {
    font-size: 13px;
    letter-spacing: 1px;
}

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-burger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition);
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 40px;
}

.mobile-menu-link {
    color: var(--text);
    text-decoration: none;
    font-size: 24px;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.mobile-menu-link:hover {
    opacity: 0.5;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 60px;
    background: var(--bg);
    transition: background 0.2s ease;
}

.hero-content {
    text-align: center;
    animation: fadeInUp 1.2s ease-out;
}

.hero-logo-container {
    margin-bottom: 60px;
}

.hero-logo {
    width: 300px;
    height: auto;
    animation: heroLogoFloat 6s ease-in-out infinite, heroLogoFadeIn 1s ease-out 2.2s both;
}

@keyframes heroLogoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(2deg); }
    50% { transform: translateY(-10px) rotate(-2deg); }
    75% { transform: translateY(-15px) rotate(1deg); }
}

@keyframes heroLogoFadeIn {
    from { opacity: 0; transform: translateY(40px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-title {
    font-size: 56px;
    font-weight: 600;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 2.4s both;
    color: var(--text);
}

.hero-subtitle {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
    animation: fadeInUp 1s ease-out 2.6s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: fadeIn 2s ease-out 1s both;
}

.scroll-indicator span {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: var(--text);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== SECTIONS ===== */
section {
    min-height: 100vh;
    padding: 120px 60px;
    background: var(--bg);
    transition: background 0.2s ease;
}

.section-header {
    margin-bottom: 100px;
    text-align: center;
}

.section-title {
    font-size: 52px;
    font-weight: 600;
    letter-spacing: 6px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    color: var(--text);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--text);
}

/* ===== SERVICES ===== */
.services {
    background: var(--bg);
    transition: background 0.2s ease;
}

.services-pricelist-top {
    max-width: 800px;
    margin: 0 auto 60px;
}

.services-pricelist-top img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease;
}

.services-pricelist-top img:hover {
    transform: translateY(-10px) scale(1.02);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 80px 60px;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .service-card {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--red);
    transition: left var(--transition);
    z-index: 0;
    border-radius: 24px;
}

.service-card:hover::before {
    left: 0;
}

.service-card:hover {
    color: var(--white);
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-number {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 30px;
    opacity: 0.5;
}

.service-title {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.service-desc {
    font-size: 14px;
    line-height: 1.8;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

.service-card:hover .service-desc {
    color: rgba(255, 255, 255, 0.8);
}

.service-price {
    font-size: 18px;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 20px;
}

.service-order-btn {
    background: transparent;
    border: 1px solid var(--text);
    color: var(--text);
    padding: 12px 30px;
    border-radius: 12px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.service-card:hover .service-order-btn {
    opacity: 1;
    transform: translateY(0);
}

.service-order-btn:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* ===== PORTFOLIO ===== */
.portfolio {
    background: var(--bg);
    transition: background 0.2s ease;
}

.portfolio-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 60px;
}

.portfolio-category {
    flex: 1 1 calc(33.333% - 30px);
    min-width: 400px;
    max-width: 550px;
    height: 400px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] .portfolio-category {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.portfolio-category:hover {
    transform: translateY(-15px) scale(1.03) rotate(1deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.portfolio-category.active {
    transform: scale(0.95);
    opacity: 0.7;
}

.portfolio-category-image,
.portfolio-category-video {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

/* ДЛЯ ИЗОБРАЖЕНИЙ - cover чтобы заполнить без серых полос */
.portfolio-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ДЛЯ ВИДЕО - cover чтобы заполнить без серых полос */
.portfolio-category-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portfolio-category:hover .portfolio-category-image img,
.portfolio-category:hover .portfolio-category-video video {
    transform: scale(1.05) rotate(2deg);
}

.portfolio-category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portfolio-category:hover .portfolio-category-info {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-category-info h3 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 6px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
    line-height: 1.3;
}

.portfolio-category:hover .portfolio-category-info h3 {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-category-info p {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
}

.portfolio-category:hover .portfolio-category-info p {
    transform: translateY(0);
    opacity: 1;
}

/* ===== PORTFOLIO DETAIL ===== */
.portfolio-detail {
    min-height: 100vh;
    padding: 120px 60px;
    background: var(--bg);
    transition: background 0.2s ease;
}

.portfolio-detail.hidden {
    display: none;
}

.portfolio-detail-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 80px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.back-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] .back-btn {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.back-btn:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    transform: translateX(-12px) scale(1.2);
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.4);
}

.back-btn:active {
    transform: translateX(-8px) scale(0.85);
    transition: all 0.1s ease;
}

.portfolio-detail-title {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
}

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 60px;
}

.portfolio-item {
    flex: 0 1 calc(33.333% - 30px);
    min-width: 400px;
    max-width: 550px;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] .portfolio-item {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.portfolio-item:hover {
    transform: translateY(-15px) scale(1.03) rotate(1deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.portfolio-item img,
.portfolio-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 24px;
}

.portfolio-item:hover img,
.portfolio-item:hover video {
    transform: scale(1.05) rotate(2deg);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 6px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
    text-align: center;
    line-height: 1.3;
}

.portfolio-item:hover .portfolio-overlay-title {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-overlay-subtitle {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay-subtitle {
    transform: translateY(0);
    opacity: 1;
}

/* ===== CONTACT ===== */
.contact {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg);
    transition: background 0.2s ease;
}

.contact-content {
    max-width: 600px;
}

.contact-title {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.contact-text {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 40px;
    background: var(--red);
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    border-radius: 50px;
}

.contact-btn:hover {
    background: var(--black);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===== FOOTER ===== */
.footer {
    padding: 60px;
    border-top: 1px solid var(--border);
    background: var(--bg);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.footer-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.footer-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.footer-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.footer-logo {
    height: 30px;
    width: auto;
}

.footer-center p {
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.footer-right {
    display: flex;
    gap: 30px;
}

.footer-right a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.footer-right a:hover {
    color: var(--text);
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

.modal.closing {
    animation: modalFadeOut 0.3s ease;
}

.modal.active .modal-content > div {
    animation: modalSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.closing .modal-content > div {
    animation: modalSlideDown 0.3s cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalSlideDown {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(80px) scale(0.85);
    }
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
}

[data-theme="light"] .modal-overlay {
    background: rgba(255, 255, 255, 0.95);
}

.modal-content {
    position: relative;
    background: transparent;
    padding: 0;
    max-width: 500px;
    width: 90%;
    z-index: 1;
    animation: slideUp 0.4s ease;
}

.modal-large {
    max-width: 1100px;
}

.modal-medium {
    max-width: 700px;
}

.modal-video-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
}

.modal-video-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.modal-image-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
}

[data-theme="light"] .modal-image-container {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 10;
}

[data-theme="light"] .modal-close {
    color: var(--black);
}

.modal-close:hover {
    color: var(--red);
    transform: rotate(90deg) scale(1.2);
}

.modal-close:active {
    transform: rotate(90deg) scale(0.9);
}

/* Простой белый крестик для модалок заказа и прайслиста - БЕЗ КРУЖКА */
#order-modal .modal-close,
#pricing-modal .modal-close,
#login-modal .modal-close {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 28px;
    font-weight: 300;
    width: 36px;
    height: 36px;
}

[data-theme="light"] #order-modal .modal-close,
[data-theme="light"] #pricing-modal .modal-close,
[data-theme="light"] #login-modal .modal-close {
    color: var(--black);
}

#order-modal .modal-close:hover,
#pricing-modal .modal-close:hover,
#login-modal .modal-close:hover {
    color: var(--red);
    transform: rotate(90deg) scale(1.15);
}

/* Liquid glass кнопка С КРУЖКОМ для портфолио модалки */
#portfolio-modal .modal-close {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    width: 48px;
    height: 48px;
    font-size: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
}

/* Темный крестик для светлых фонов */
#portfolio-modal .modal-close.dark-close {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #000000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

#portfolio-modal .modal-close:hover {
    background: rgba(255, 0, 0, 0.9);
    border-color: rgba(255, 0, 0, 0.3);
    color: var(--white);
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 12px 40px rgba(255, 0, 0, 0.4);
}

.modal-title {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--text);
}

[data-theme="light"] .modal-title {
    color: var(--black);
}

.modal-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.modal-form-container {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
}

[data-theme="light"] .modal-form-container {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

#telegram-widget {
    display: flex;
    justify-content: center;
}

/* ===== MODAL AUDIO PLAYER ===== */
.modal-audio-player {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .modal-audio-player {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.2) 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 0, 0, 1) 0%, rgba(200, 0, 0, 0.9) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.4), 0 0 0 0 rgba(255, 0, 0, 0.4);
}

.modal-play-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 12px 32px rgba(255, 0, 0, 0.6), 0 0 40px rgba(255, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 0, 0, 1) 0%, rgba(255, 50, 50, 1) 100%);
}

.modal-play-btn:active {
    transform: scale(0.95);
    transition: all 0.1s ease;
}

.modal-player-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .modal-progress-bar {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 0, 0, 1) 0%, rgba(255, 50, 50, 0.9) 100%);
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.6), 0 0 24px rgba(255, 0, 0, 0.3);
    border-radius: 3px;
}

.modal-time-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

[data-theme="light"] .modal-time-display {
    color: rgba(0, 0, 0, 0.6);
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--text);
}

[data-theme="light"] .form-group label {
    color: var(--black);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text);
    font-family: var(--font-main);
    font-size: 14px;
    transition: all 0.3s ease;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
}

/* ===== ORDER MODAL STYLES ===== */
.modal-order {
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-order-title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text);
}

.order-section {
    margin-bottom: 25px;
}

.order-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.order-section-icon {
    font-size: 20px;
}

.order-section-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text);
    margin: 0;
}

.order-textarea {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: var(--text);
    font-family: var(--font-main);
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
}

[data-theme="light"] .order-textarea {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.order-textarea:focus {
    outline: none;
    border-color: rgba(255, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.05);
}

[data-theme="light"] .order-textarea:focus {
    background: rgba(0, 0, 0, 0.03);
}

.order-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.6;
}

[data-theme="light"] .order-textarea::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

.order-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--text);
}

.order-input {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: var(--text);
    font-family: var(--font-main);
    font-size: 14px;
    transition: all 0.3s ease;
}

[data-theme="light"] .order-input {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.order-input:focus {
    outline: none;
    border-color: rgba(255, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.05);
}

[data-theme="light"] .order-input:focus {
    background: rgba(0, 0, 0, 0.03);
}

.order-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .order-input::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

.order-submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: capitalize;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-top: 10px;
}

.order-submit-btn:hover {
    background: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 0, 0, 0.4);
}

.order-submit-btn:active {
    transform: translateY(-1px);
    transition: all 0.1s ease;
}

.contact-choice {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.contact-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="light"] .contact-radio {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-radio:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 0, 0, 0.2);
}

[data-theme="light"] .contact-radio:hover {
    background: rgba(0, 0, 0, 0.03);
}

.contact-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.contact-radio input[type="radio"]:checked + span {
    color: var(--red);
    font-weight: 600;
}

.contact-username {
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 13px;
}

/* ===== UTILITY ===== */
.hidden {
    display: none !important;
}

/* ===== PRICING MODAL ===== */
.pricing-modal-container {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 50px;
}

[data-theme="light"] .pricing-modal-container {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.pricing-modal-title {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text);
}

.pricing-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pricing-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

[data-theme="light"] .pricing-item {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.pricing-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
    border-color: rgba(255, 0, 0, 0.3);
}

[data-theme="light"] .pricing-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.pricing-item-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.pricing-item-name {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text);
}

.pricing-item-price {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.pricing-order-btn {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-left: 20px;
}

.pricing-order-btn:hover {
    background: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
}

[data-theme="light"] .pricing-order-btn:hover {
    background: var(--black);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .nav {
        padding: 0 40px;
    }
    
    .nav-center {
        display: none;
    }
    
    .nav-burger {
        display: flex;
    }
    
    section {
        padding: 80px 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-categories {
        flex-direction: column;
        padding: 0 60px;
    }
    
    .portfolio-category {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .portfolio-grid {
        flex-direction: column;
        padding: 0 60px;
    }
    
    .portfolio-item {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 0 20px;
        height: 60px;
    }
    
    .nav-logo {
        height: 30px;
    }
    
    .nav-right {
        gap: 15px;
    }
    
    .lang-switch {
        display: none;
    }
    
    section {
        padding: 60px 20px;
    }
    
    .hero-logo {
        width: 200px;
    }
    
    .hero-title {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 28px;
        letter-spacing: 4px;
    }
    
    .service-card {
        padding: 60px 30px;
    }
    
    .portfolio-grid {
        padding: 0 20px;
    }
    
    .portfolio-item {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .portfolio-categories {
        padding: 0 20px;
    }
    
    .portfolio-category {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .portfolio-categories {
        grid-template-columns: 1fr;
    }
    
    .portfolio-detail {
        padding: 80px 20px;
    }
    
    .portfolio-detail-header {
        margin-bottom: 40px;
    }
    
    .portfolio-detail-title {
        font-size: 24px;
        letter-spacing: 3px;
    }
    
    .contact-title {
        font-size: 28px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-right {
        flex-direction: column;
        gap: 15px;
    }
    
    .modal-content {
        padding: 40px 20px;
    }
    
    .modal-audio-player {
        flex-direction: column;
        padding: 20px;
    }
    
    #portfolio-modal-content > div {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    #portfolio-modal-content h2 {
        font-size: 24px !important;
    }
    
    #portfolio-modal-content p {
        font-size: 16px !important;
    }
    
    .pricing-modal-container {
        padding: 30px 20px;
    }
    
    .pricing-modal-title {
        font-size: 24px;
        letter-spacing: 2px;
    }
    
    .pricing-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }
    
    .pricing-item-info {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .pricing-order-btn {
        width: 100%;
        margin-left: 0;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.modal-track-cover {
    animation: fadeInScale 0.5s ease 0.1s both;
}

.modal-track-info {
    animation: fadeInUp 0.5s ease 0.2s both;
}

.modal-track-artist {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #ffffff;
    animation: fadeInUp 0.5s ease 0.3s both;
}

.modal-track-title {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
    animation: fadeInUp 0.5s ease 0.4s both;
}

.modal-audio-player {
    animation: fadeInUp 0.5s ease 0.5s both;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* ===== SCROLL ANIMATIONS ===== */
[data-scroll] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-scroll].visible {
    opacity: 1;
    transform: translateY(0);
}

[data-scroll].hidden-back {
    opacity: 0;
    transform: translateY(-40px);
}

[data-scroll-scale] {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-scroll-scale].visible {
    opacity: 1;
    transform: scale(1);
}

[data-scroll-scale].hidden-back {
    opacity: 0;
    transform: scale(0.9);
}


/* ===== PROFILE SECTION ===== */
.profile {
    min-height: 100vh;
    padding: 120px 60px;
    background: var(--bg);
    transition: background 0.2s ease;
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-header-section {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    margin-bottom: 30px;
}

[data-theme="light"] .profile-header-section {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.profile-avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid var(--red);
    object-fit: cover;
    display: none;
}

.profile-avatar-img.loaded {
    display: block;
}

.profile-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 4px solid var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

[data-theme="light"] .profile-avatar-placeholder {
    background: rgba(0, 0, 0, 0.03);
}

.profile-avatar-img.loaded + .profile-avatar-placeholder {
    display: none;
}

.profile-name-display {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 8px;
    color: var(--text);
}

.profile-username-display {
    font-size: 16px;
    color: var(--text-secondary);
    opacity: 0.7;
    letter-spacing: 0.5px;
}

/* Balance Card - Portfolio Style */
.profile-balance-section {
    margin-bottom: 40px;
}

.mcbank-card {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1.586;
    border-radius: 24px;
    overflow: hidden;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
}

[data-theme="light"] .mcbank-card {
    background: transparent;
    border: none;
    box-shadow: none !important;
}

[data-theme="light"] .mcbank-card:hover {
    box-shadow: none !important;
    transform: none !important;
}

.mcbank-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.mcbank-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mcbank-card:hover .mcbank-bg {
    transform: scale(1.05);
}

.mcbank-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.05) 100%);
}

[data-theme="light"] .mcbank-overlay {
    background: none;
}

.mcbank-content {
    position: relative;
    z-index: 2;
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.mcbank-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mcbank-label {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.mcbank-currency {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 14px;
}

.mcbank-amount {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.mcbank-symbol {
    font-size: 42px;
    font-weight: 700;
    color: white;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
}

.mcbank-value {
    font-size: 64px;
    font-weight: 700;
    color: white;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
    line-height: 1;
}

.mcbank-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 
                inset 0 1px 0 rgba(255, 255, 255, 0.8),
                0 0 20px rgba(255, 255, 255, 0.3);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.mcbank-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.5s ease;
}

.mcbank-btn:hover::before {
    left: 100%;
}

.mcbank-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 
                inset 0 1px 0 rgba(255, 255, 255, 0.9),
                0 0 30px rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.mcbank-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 
                inset 0 1px 0 rgba(255, 255, 255, 0.8),
                0 0 15px rgba(255, 255, 255, 0.3);
}

.mcbank-btn svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
}
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.buy-mtv-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

.buy-mtv-button:active {
    transform: translateY(-1px);
    transition: all 0.1s ease;
}

/* Profile Stats */
.profile-stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.profile-stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

[data-theme="light"] .profile-stat-card {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.profile-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 8px;
}

.stat-card-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Transactions */
.profile-transactions-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
}

[data-theme="light"] .profile-transactions-section {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.profile-section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.profile-transactions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-transaction-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

[data-theme="light"] .profile-transaction-item {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.profile-transaction-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

[data-theme="light"] .profile-transaction-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

.profile-transaction-info {
    flex: 1;
}

.profile-transaction-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
}

.profile-transaction-date {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.7;
}

.profile-transaction-amount {
    font-size: 18px;
    font-weight: 700;
}

.profile-transaction-amount.positive {
    color: #00ff00;
}

.profile-transaction-amount.negative {
    color: var(--red);
}

.profile-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    opacity: 0.5;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .profile {
        padding: 80px 20px;
    }
    
    .profile-stats-section {
        grid-template-columns: 1fr;
    }
    
    .balance-card {
        padding: 30px 20px;
    }
    
    .balance-card-value {
        font-size: 48px;
    }
    
    .balance-card-symbol {
        font-size: 32px;
    }
}


/* ============================================
   PROFILE SECTION
   ============================================ */

.profile-section {
    min-height: 100vh;
    padding: 0;
    background: var(--bg-color);
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px 0;
}

.profile-back-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.profile-back-btn:hover {
    transform: translateX(-4px);
    background: var(--primary-color);
    color: white;
}

.profile-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
}

/* User Card */
.profile-user-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.profile-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

.profile-username {
    font-size: 14px;
    color: var(--text-secondary);
}

.profile-logout-btn {
    padding: 12px 24px;
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-logout-btn:hover {
    background: #f44336;
    color: white;
}

/* Balance Card */
.profile-balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.balance-header h3 {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.9;
}

.balance-currency {
    font-size: 14px;
    opacity: 0.8;
}

.balance-amount {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.balance-mtv {
    font-size: 48px;
    font-weight: 700;
}

.balance-symbol {
    font-size: 32px;
    font-weight: 600;
    opacity: 0.9;
}

.balance-mini {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 24px;
}

.balance-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.balance-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.balance-btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.balance-btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.balance-btn-secondary {
    background: rgba(0, 0, 0, 0.2);
    color: white;
}

.balance-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.balance-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.balance-info p {
    font-size: 12px;
    opacity: 0.8;
}

/* Stats Grid */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.profile-stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Transactions */
.profile-transactions-card h3,
.profile-orders-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
}

.transactions-list,
.orders-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
}

[data-theme="dark"] .transaction-item {
    background: rgba(255, 255, 255, 0.05);
}

.tx-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.tx-icon.tx-deposit {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.tx-icon.tx-withdraw {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.tx-info {
    flex: 1;
}

.tx-type {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.tx-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.tx-amount {
    font-size: 16px;
    font-weight: 700;
}

.tx-amount.tx-deposit {
    color: #4caf50;
}

.tx-amount.tx-withdraw {
    color: #f44336;
}

.transactions-empty,
.orders-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

/* Order History */
.order-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
}

[data-theme="dark"] .order-history-item {
    background: rgba(255, 255, 255, 0.05);
}

.order-history-info {
    flex: 1;
}

.order-history-service {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.order-history-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.order-history-status {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.order-history-status.order-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.order-history-status.order-in-progress {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

.order-history-status.order-completed {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

/* Profile Link in Nav */
.profile-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    margin-left: 12px;
}

.profile-link:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* ============================================
   CRYPTO PAYMENT MODALS
   ============================================ */

.crypto-modal-content {
    padding: 32px;
}

.crypto-modal-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 24px;
}

.crypto-method-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.crypto-method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--glass-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.crypto-method-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.crypto-method-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.crypto-icon {
    width: 32px;
    height: 32px;
}

.crypto-method-btn span {
    font-size: 14px;
    font-weight: 600;
}

.crypto-method-content {
    display: none;
}

.crypto-method-content.active {
    display: block;
}

.crypto-info-box {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.crypto-info-box p {
    color: var(--text-color);
    margin-bottom: 8px;
}

.crypto-rate {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.crypto-amount-input {
    margin-bottom: 24px;
}

.crypto-amount-input label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.crypto-input {
    width: 100%;
    padding: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
}

.crypto-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.crypto-amount-mtv {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.crypto-connect-btn,
.crypto-deposit-btn,
.crypto-confirm-btn,
.crypto-withdraw-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.crypto-connect-btn:hover,
.crypto-deposit-btn:hover,
.crypto-confirm-btn:hover,
.crypto-withdraw-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.crypto-wallet-info {
    margin-top: 16px;
}

.wallet-address {
    padding: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 16px;
    text-align: center;
}

.crypto-address-box {
    margin-bottom: 24px;
}

.crypto-address-box label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.crypto-address-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.crypto-address-display code {
    flex: 1;
    font-family: monospace;
    font-size: 12px;
    color: var(--text-color);
    word-break: break-all;
}

.copy-btn {
    padding: 8px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: scale(1.1);
}

.crypto-qr-code {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.qr-placeholder {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wallet-option-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wallet-option-btn:hover {
    transform: translateX(4px);
    border-color: var(--primary-color);
}

.wallet-icon {
    width: 32px;
    height: 32px;
}

.wallet-option-btn span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.crypto-address-input {
    margin-bottom: 24px;
}

.crypto-address-input label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .crypto-method-selector {
        grid-template-columns: 1fr;
    }
    
    .balance-actions {
        grid-template-columns: 1fr;
    }
    
    .profile-user-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}


/* ===== CRYPTO DEPOSIT MODAL - CLEAN DESIGN ===== */
.crypto-deposit-container {
    padding: 20px 0;
}

.crypto-info-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(38, 161, 123, 0.1);
    border: 1px solid rgba(38, 161, 123, 0.3);
    border-radius: 16px;
    margin-bottom: 24px;
}

[data-theme="light"] .crypto-info-banner {
    background: rgba(38, 161, 123, 0.05);
}

.crypto-banner-text h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.crypto-banner-text p {
    font-size: 14px;
    color: var(--text-secondary);
}

.crypto-instructions {
    margin-bottom: 24px;
}

.crypto-instructions h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.crypto-instructions ol {
    padding-left: 20px;
    color: var(--text-secondary);
}

.crypto-instructions li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.crypto-address-section {
    margin-bottom: 24px;
}

.crypto-address-section label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.crypto-address-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

[data-theme="light"] .crypto-address-box {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.crypto-address-box code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--text);
    word-break: break-all;
}

.crypto-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.crypto-copy-btn:hover {
    background: #cc0000;
    transform: translateY(-1px);
}

.crypto-copy-btn:active {
    transform: translateY(0);
}

.crypto-qr-section {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.qr-code-container {
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-code-container canvas,
.qr-code-container img {
    display: block;
}

.crypto-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
}

.crypto-warning svg {
    flex-shrink: 0;
    color: #ffc107;
    margin-top: 2px;
}

.crypto-warning p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
}


/* ===== NAV CARD (Mini MC Bank Card) ===== */
.nav-card {
    position: relative;
    width: 100px;
    height: 63px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-card:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-card-amount {
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ===== PROFILE PAGE - CLEAN DESIGN ===== */
.profile-page {
    min-height: 100vh;
    padding: 100px 60px 60px;
    background: var(--bg);
    transition: background 0.2s ease;
}

.profile-page-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.profile-page-header h1 {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text);
}

.profile-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-back-btn svg {
    width: 32px;
    height: 32px;
}

.profile-back-btn:hover {
    transform: translateX(-4px) scale(1.1);
}

.profile-logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 12px;
    color: var(--red);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-logout-btn:hover {
    background: var(--red);
    border-color: var(--red);
    color: white;
}

.profile-card-section {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.profile-card-section.animate {
    opacity: 1;
    transform: translateY(0);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.profile-stat {
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

[data-theme="light"] .profile-stat {
    background: transparent;
    border: none;
    box-shadow: none !important;
}

.profile-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.profile-stat .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.profile-stat .stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-section {
    padding: 32px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-bottom: 24px;
}

[data-theme="light"] .profile-section {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.profile-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.empty-state {
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .profile-page {
        padding: 100px 20px 40px;
    }
    
    .profile-page-header h1 {
        font-size: 24px;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .nav-card {
        width: 80px;
        height: 50px;
    }
    
    .nav-card-symbol {
        font-size: 14px;
    }
    
    .nav-card-amount {
        font-size: 16px;
    }
}


/* Card animation */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Buy MTV Button - External (under card) */
.mcbank-btn-external {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    margin-top: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 
                inset 0 1px 0 rgba(255, 255, 255, 0.8),
                0 0 20px rgba(255, 255, 255, 0.3);
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s, background 0.4s ease, box-shadow 0.4s ease;
}

.mcbank-btn-external.animate {
    opacity: 1;
    transform: translateY(0);
}

.mcbank-btn-external::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.5s ease;
}

.mcbank-btn-external:hover::before {
    left: 100%;
}

.mcbank-btn-external:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 
                inset 0 1px 0 rgba(255, 255, 255, 0.9),
                0 0 30px rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.mcbank-btn-external:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 
                inset 0 1px 0 rgba(255, 255, 255, 0.8),
                0 0 15px rgba(255, 255, 255, 0.3);
}

.mcbank-btn-external svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
}
