/* ========================================== */
/* [1] ЗМІННІ ТА КОНФІГУРАЦІЯ (VARIABLES)     */
/* ========================================== */

:root {
    --bg-dark: #050a07;
    --bg-indigo: rgb(30, 16, 61);
    --bg-emerald: #0a1f15;
    --gold-primary: #efbc1e;
    --gold-light: #f3e5ab;
    --text-main: #e0e0e0;
    --font-heading: 'Cinzel', serif;
    --font-text: 'Montserrat', sans-serif;
    --emerald-green: #005f4c; /* Колір для .tile */
}

/* ========================================== */
/* [2] БАЗОВІ НАЛАШТУВАННЯ ТА СКИНУТТЯ (BASE)  */
/* ========================================== */

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

/* Виправлення для Safari/Chrome: прибираємо синє виділення при кліку */
a, button, div {
    -webkit-tap-highlight-color: transparent;
}

body, html {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-text);
    line-height: 1.6;
    overflow-x: hidden; /* Захист від горизонтального скролу */
    -ms-overflow-style: none; /* IE, Edge */
    scrollbar-width: none; /* Firefox */
    touch-action: pan-x pan-y;
    /* Прибирає затримку кліку та спроби зуму */
    -ms-touch-action: pan-x pan-y;
}

/* Прибираємо стандартне виділення при натисканні на мобілках */
* {
    -webkit-tap-highlight-color: transparent;
}

/* ========================================== */
/* [3] МАГІЧНИЙ ФОН ТА ЕФЕКТИ (GLOBAL FX)     */
/* ========================================== */

/* Анімований фон (партикли) */
body {
    background-image: radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 3px),
    radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 2px),
    radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 3px),
    radial-gradient(rgba(255, 255, 255, .4), rgba(255, 255, 255, .1) 2px, transparent 3px);
    background-size: 550px 550px, 350px 350px, 250px 250px, 150px 150px;
    background-position: 0 0, 40px 60px, 130px 270px, 70px 100px;
    animation: background-travel 120s linear infinite;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    overflow-x: hidden;
    user-select: none; /* стандарт */
    -webkit-user-select: none; /* Safari/Chrome */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
    -webkit-touch-callout: none; /* iOS Safari */
}

/* Легке золоте сяйво на весь фон */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(212, 175, 55, 0.01);
    z-index: 1;
    pointer-events: none;
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

@keyframes background-travel {
    from {
        background-position: 0 0, 40px 60px, 130px 270px, 70px 100px;
    }
    to {
        background-position: -1000px 1000px, -600px 400px, -400px 800px, -200px 300px;
    }
}

/* ========================================== */
/* [4] ТИПОГРАФІКА (TYPOGRAPHY)               */
/* ========================================== */

h1, h2 {
    text-align: center;
    color: var(--gold-primary);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4), 0 0 20px rgba(212, 175, 55, 0.2);
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

h6 a  {
    outline: none !important;
    text-decoration: none;
}

h6 {
    text-align: left;
    color: var(--gold-primary);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4), 0 0 20px rgba(212, 175, 55, 0.2);
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    margin-top: 0px;
    font-size: 45px;
    margin-right: 35px;
    display: inline-block;
    float: left;

    border: none !important;
    border-left: none !important;
    outline: none !important;
    text-decoration: none;

    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), text-shadow 0.3s ease, color 0.3s ease;
    will-change: transform;
}

h6::before {
    display: none !important;
    content: none !important;
}

h6:hover, h6:focus, h6:active {
    color: var(--gold-primary);
    text-shadow: 0 0 22px rgba(212, 175, 55, 0.6), 0 0 20px rgba(212, 175, 55, 0.2);

    transform: scale(1.11);
    cursor: pointer;
}

h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin: 0 0 10px 0;
    letter-spacing: 2px;
}

h2 {
    font-family: var(--font-heading);
    margin-bottom: 50px;
}

.subtitle_title {
    font-size: 18px;
    max-width: 700px;
    margin-bottom: 10px;
    color: var(--gold-light);
    font-weight: 300;
    margin-top: -25px;
}

.subtitle_btn {
    font-size: 20px;
    max-width: 500px;
    margin-top: 10px;
    top: 30px;
    position: relative;
    color: var(--gold-light);
    font-weight: 300;
}

.hero .subtitle {
    font-size: 18px;
    max-width: 400px;
    margin-bottom: 10px;
    color: var(--gold-light);
    font-weight: 300;
}

/* ========================================== */
/* [5] НАВІГАЦІЯ (HEADER & NAV)               */
/* ========================================== */

header {
    display: flex;
    flex-direction: row; /* Тільки в рядок! */
    justify-content: space-between;
    align-items: center;
    padding: 0 5%; /* Однакові відступи з обох боків */
    height: 70px;
    background-color: rgba(5, 10, 7, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 50px; /* Для десктопа */
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--gold-light);
    text-decoration: none;
    /*margin-left: 30px;*/
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

/* Прихований бургер для десктопа */
.mobile-burger {
    display: none;
}

.nav-links a:hover {
    color: var(--gold-primary);
}

.nav-links a,
.dropdown-trigger {
    /*font-family: 'Cinzel', serif !important;*/
    font-size: 18px !important;
    color: var(--gold-light) !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
}

.submenu a {
    /* font-family: 'Cinzel', serif !important; */
    font-size: 13px !important;
    color: #ccc !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;

    width: 250px;
    padding: 10px 0;
    display: block;

    /* Центруємо текст всередині посилання */
    text-align: center;

    /* Центруємо сам блок посилання (якщо батько ширший) */
    margin: 0 auto;
}

.nav-links a:hover,
.dropdown-trigger:hover,
.submenu a:hover {
    color: var(--gold-primary) !important;
}

/* ========================================== */
/* [6] КНОПКИ (BUTTONS)                       */
/* ========================================== */

input, textarea, select {
    font-size: 16px !important;
}

select:disabled {
    -webkit-appearance: none; /* Для Safari та Chrome */
    -moz-appearance: none;    /* Для Firefox */
    appearance: none;
    cursor: not-allowed;
}

.btn-gold-main {
    display: block;
    width: 100%;
    max-width: 600px;
    margin: 40px auto 0;
    padding: 22px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, #b8860b 100%);
    color: var(--bg-dark);
    text-align: center;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 4px;
    transition: all 0.5s ease;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
}

.btn-gold-main:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 45px rgba(212, 175, 55, 0.5);
    filter: brightness(1.1);
}


.btn-gold {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 40px auto 0;
    padding: 22px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, #b8860b 100%);
    color: var(--bg-dark);
    text-align: center;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 4px;
    transition: all 0.5s ease;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 45px rgba(212, 175, 55, 0.5);
    filter: brightness(1.1);
}


/* ========================================== */
/* [7] ГРІДИ ТА КАРТКИ (GRIDS & CARDS)        */
/* ========================================== */

/* Загальні гріди */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Стандартні картки (index.php) */
.card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--gold-primary);
}

.card h3 {
    font-family: var(--font-heading);
    color: var(--gold-light);
    margin-bottom: 15px;
}

/* Портальні картки */
.portal-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(83, 34, 193, 0.11);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 30px 20px;
    backdrop-filter: blur(8px);
    transition: all 0.4s ease;
    text-align: center;
}

.portal-card h3 {
    font-size: 1.3rem;
    color: var(--gold-light);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.portal-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 1px;
    background: var(--gold-primary);
    opacity: 0.5;
}

.portal-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #ccc;
}

.portal-card .btn-gold {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
}

/* Плитки (.tile) */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 600px;
    width: 100%;
    padding: 20px;
}

.tile {
    background-color: var(--emerald-green);
    color: #fff;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

/* ========================================== */
/* [8] МАГІЧНІ ПЛИТКИ (MAGIC TILES)           */
/* ========================================== */

.magic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.magic-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: rgba(92, 28, 232, 0.13);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    text-decoration: none;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.magic-tile:hover {
    transform: translateY(-8px);
    background: rgba(92, 28, 232, 0.26);
    border-color: rgba(212, 175, 55, 0.7);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.2);
}

.magic-tile .btn-gold {
    margin-top: 20px;
    pointer-events: none; /* Щоб клік йшов по самій плитці */
}

/* ========================================== */
/* [9] СТОРІНКИ ТА СЕКЦІЇ (PAGE LAYOUTS)      */
/* ========================================== */
/* Фонове відео/анімація */
.video-bg-container-desktop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-bg-container-desktop video {
    max-width: 120%;
    max-height: 120%;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 10px;
    transform: translate(-50%, -50%);
    object-fit: cover;
    overflow: hidden;
    opacity: 0.2; /* Налаштування прозорості відео */
}

.video-bg-container {
    display: none;
}


/* Головний Hero */
.hero {
    position: relative;
    padding: 160px 20px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(circle at center, rgba(92, 28, 232, 0.22) 0%, transparent 70%);
    text-align: center;
}

.hero-logo {
    width: 320px;
    margin-bottom: 30px;
    filter: drop-shadow(0px 0px 20px rgba(212, 175, 55, 0.3));
}

/* Загальні секції */
.section {
    padding: 100px 10%;
    position: relative;
}

.section-dark {
    background-color: var(--bg-dark);
}

.section-emerald {
    background-color: rgba(92, 28, 232, 0.22);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

/* Внутрішній Hero сторінок */
.page-hero {
    padding: 160px 20px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-hero p {
    color: var(--gold-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.course-section {
    padding: 20px 15px 80px;
}

/* Сторніка послуг (Container & Content) */
.service-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 9999;
}

.service-content {
    background: rgba(5, 10, 7, 0.85); /* Темніший фон для контрасту з відео */
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 60px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.service-content-service {
    background: rgba(17, 8, 47, 0.43);
!important;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 50px 60px;
    backdrop-filter: blur(8px);
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(92, 28, 232, 0.33);
}

.service-content h3, .service-content-service h3 {
    font-size: 1.6rem;
    color: var(--gold-primary);
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding-bottom: 10px;
    display: inline-block;
}

.service-content p, .service-content-service p {
    font-size: 1.05rem;
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.service-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: #e0e0e0;
    font-size: 1.05rem;
    line-height: 1.5;
}

.service-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--gold-primary);
    font-size: 1.2rem;
}

.order-box {
    text-align: center;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
}

.order-price {
    font-size: 1.8rem;
    color: var(--gold-light);
    margin-bottom: 25px;
    font-family: var(--font-heading);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* ========================================== */
/* [10] СПЛЕШ-СКРІН (SPLASH SCREEN)           */
/* ========================================== */

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--bg-indigo) 0%, var(--bg-dark) 80%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

#crystal-ball-container {
    position: relative;
    width: 80vw;
    height: 80vw;
    max-width: 500px;
    max-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: appearance 2.5s ease-out forwards;
    opacity: 0;
}

@keyframes appearance {
    0% {
        opacity: 0;
        transform: scale(0.9) blur(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) blur(0);
    }
}

#splash-logo {
    position: absolute;
    top: 48%;
    left: 50%;
    width: 25%;
    height: 25%;
    z-index: 2;
    /* Магія 3D */
    transform-style: preserve-3d;
    transform: translate(-50%, -50%);
    animation: spin-axis 5s linear infinite;
}

#logo-header {
    position: absolute;
    z-index: 0;
    width: 65%;
    height: 65%;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%);
    animation: 5s linear infinite spin-axis;
}

.logo-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('https://soul-lab.com.ua/assets/img/logo_main.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* Ховаємо виворітну сторону */
    backface-visibility: hidden;
}

/* Передня сторона (за замовчуванням) */
.logo-face.front {
    transform: rotateY(0deg);
}

/* Задня сторона — заздалегідь розгорнута на 180 градусів */
.logo-face.back {
    transform: rotateY(180deg);
}

/* Оновлена анімація без зміщення translate, бо ми його винесли в сам блок */
@keyframes spin-axis {
    from {
        transform: translate(-50%, -50%) rotateY(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotateY(360deg);
    }
}

/* Твій існуючий стиль для кулі — залишаємо як є */
#crystal-ball {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('https://soul-lab.com.ua/assets/img/crystal_ball.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.2));
}

/* ========================================== */
/* [11] ФУТЕР (FOOTER)                        */
/* ========================================== */

footer {
    background-color: #000;
    padding: 40px 10%;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

footer a {
    color: var(--gold-primary);
    text-decoration: none;
}

/* ========================================== */
/* [12] ГЛОБАЛЬНА ВЗАЄМОДІЯ (INTERACTIONS)    */
/* ========================================== */

/* Ефекти фокусу */
.btn-gold:focus, .magic-tile:focus, .portal-card:focus {
    outline: none;
    border-color: var(--gold-light);
    box-shadow: 0 0 15px rgba(243, 229, 171, 0.4);
}

/* Ефекти активності (Натискання) */
.btn-gold:active {
    transform: scale(0.95);
    background: rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6) !important;
}

.portal-card:active {
    transform: scale(0.97);
    border-color: var(--gold-primary);
    background: rgba(92, 28, 232, 0.11);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4) !important;
}

.magic-tile:focus {
    background: rgba(5, 10, 7, 0.95);;
}

.tile:active {
    transform: scale(0.95);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.8),
    0 0 25px rgba(212, 175, 55, 0.6),
    0 0 35px rgba(212, 175, 55, 0.4);
}

.magic-tile:active {
    transform: scale(0.96) translateY(0);
    border-color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.9),
    0 0 30px rgba(212, 175, 55, 0.7),
    0 0 50px rgba(212, 175, 55, 0.4) !important;
}


/* ========================================== */
/* [13] ЦІНА                                  */
/* ========================================== */

.price-tag {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin: 20px 0;
    text-align: center;
    display: block;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.course-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 30px;
}

.stat-item span {
    display: block;
    color: var(--gold-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.stat-item strong {
    font-size: 1.3rem;
    color: #fff;
    font-family: var(--font-heading);
}

/* Кнопка покупки з ефектом сяйва */
.buy-now-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 40px auto 0;
    padding: 20px;
    background: var(--gold-primary);
    color: var(--bg-dark);
    text-align: center;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all 0.4s ease;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    z-index: 999;
}

.buy-now-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.7);
    background: var(--gold-light);
}

/* ========================================== */
/* [14] КОШИК          */
/* ========================================== */
.header-controls {
    display: flex;
    align-items: center; /* Центрує кошик і бургер по вертикалі */
    justify-content: center; /* Центрує їх між собою */
    gap: 15px;
    margin-left: auto; /* Штовхає весь блок вправо, якщо потрібно */
}

/* --- МАГІЧНИЙ КОШИК --- */
.header-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    width: 45px; /* Збільшений розмір */
    height: 45px;
    /* Прибираємо синю тінь/виділення */
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.header-cart svg {
    width: 38px; /* Більша іконка */
    height: 38px;
    display: block;
}

.header-cart:hover {
    color: var(--gold-light);
    transform: scale(1.1);
}

/* Число всередині сумки */
.cart-count {
    position: absolute;
    top: 58%; /* Зміщуємо в центр "живота" сумки */
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gold-primary);
    font-size: 11px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
    pointer-events: none; /* Щоб не заважало кліку */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Показуємо лише коли є замовлення */
.cart-count.visible {
    opacity: 1;
}

/* Анімація магічного трусіння */
@keyframes magic-shake {
    0% {
        transform: scale(1);
    }
    15% {
        transform: scale(1.1) rotate(5deg);
    }
    30% {
        transform: scale(1.1) rotate(-5deg);
    }
    45% {
        transform: scale(1.1) rotate(3deg);
    }
    60% {
        transform: scale(1.1) rotate(-3deg);
    }
    100% {
        transform: scale(1);
    }
}

/* Клас, який викликає анімацію */
.cart-shake-act {
    animation: magic-shake 0.6s cubic-bezier(.36, .07, .19, .97) both;
}

/* Додатково: якщо в кошику щось є, додамо легке золоте сяйво */
.header-cart.has-items svg {
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}


/* ========================================== */
/* [15] МАГАЗИН    */
/* ========================================== */
.empty-state {
    text-align: center;
    width: 100%;
    padding: 50px 0;
    margin: auto;
    display: block;
    grid-column: 1 / -1;
}

/* Базові стилі для плитки */
.magic-tile {
    position: relative;
    overflow: hidden; /* Щоб картинка не вилазила за краї */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    z-index: 1;
}

/* Створюємо шар для фонової картинки */
.magic-tile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    /* ЗМІНИ ТУТ: */
    background-position: center center; /* Чітке центрування по вертикалі та горизонталі */
    background-size: contain; /* Картинка повністю вписується в блок, не обрізаючись */
    background-repeat: no-repeat;

    opacity: 0.15; /* Прозорість */
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: -1;
}

/* Ефект при наведенні */
.magic-tile:hover::before {
    opacity: 0.3; /* Стає яскравішою при наведенні */
    transform: scale(1.1); /* Трохи збільшується */
}

/* Переконайся, що контент має вищий z-index */
.magic-tile > div {
    position: relative;
    z-index: 2;
}

/* Індивідуальні фони для категорій (заміни шлях на свої картинки) */
.tile-crystals::before {
    background-image: url('/assets/img/shop/crystals-bg.png');
}

.tile-candles::before {
    background-image: url('/assets/img/shop/candles-bg.png');
}

.tile-bracelets::before {
    background-image: url('/assets/img/shop/bracelets-bg.png');
}

.tile-herbs::before {
    background-image: url('/assets/img/shop/herbs-bg.png');
}


.shop-container {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
}

.product-image {
    width: 50%;
    /*background: #111;*/
    overflow: hidden;
    margin: auto;
}


.product-image img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image img {
    opacity: 1;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    color: var(--gold-primary);
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.product-prop {
    color: var(--gold-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.product-desc {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.price {
    font-size: 1.2rem;
    color: #fff;
    font-weight: bold;
}

.btn-gold-small {
    background: var(--gold-primary);
    color: #000;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-gold-small:hover {
    background: var(--gold-light);
    transform: scale(1.05);
}

.btn-gold-small:active {
    transform: scale(0.95);
}


/* Стилі для префіксів та оплати */
.cart-item-mini {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.cart-item-mini img {
    border-radius: 5px;
    object-fit: cover;
}

.payment-method-fixed {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #303050;
    border-radius: 8px;
    padding: 12px;
}

.mono-option {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-primary);
    font-weight: 600;
}


/* НОВІ СТИЛІ ДЛЯ КРОС-СЕЙЛІВ (Згідно твоїх вимог) */
.cross-sell-group {
    width: 100%;
    margin-bottom: 25px;
}

.cross-sell-group-header {
    font-size: 0.75rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: bold;
    border-left: 2px solid var(--gold-primary);
    padding-left: 10px;
}

.cross-sells-grid {
    display: flex;
    flex-wrap: wrap; /* Товари стають в ряди */
    gap: 12px;
}

.cross-card {
    width: 100px; /* Вдвічі менші блоки */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #303050;
    background: #121225;
    display: flex;
    flex-direction: column;
}

.cross-card-link {
    position: relative;
    width: 100px;
    height: 100px; /* Квадратне зображення */
    display: block;
}

.cross-card-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cross-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 20, 0.65); /* Затемнення фону */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5px;
    text-align: center;
    transition: background 0.3s;
}

.cross-card-link:hover .cross-card-overlay {
    background: rgba(10, 10, 20, 0.4);
}

.cross-card-overlay h4 {
    color: #fff;
    font-size: 0.85rem;
    margin: 0 0 5px 0;
    line-height: 1.2;
    text-shadow: 0 1px 3px #000;
}

.cross-card-overlay .price {
    color: var(--gold-primary);
    font-weight: bold;
    font-size: 0.8rem;
    text-shadow: 0 1px 3px #000;
}

.btn-add-cross {
    width: 100%;
    background: transparent;
    color: var(--gold-light);
    border: none;
    border-top: 1px solid #303050;
    padding: 6px 0;
    font-size: 0.65rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-add-cross:hover {
    background: var(--gold-primary);
    color: #000;
}

.input_promo {
    width: 60% !important;
    margin-right: 10px;
}

.checkout-container {
    padding: 120px 20px 60px;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 80vh;
}

.checkout-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

h2, h3 {
    color: var(--gold-primary);
    margin-bottom: 25px;
    font-family: 'Cinzel', serif;
}

.cart-details {
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item img {
    width: 122px;
    height: 121px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 25px;
}

.item-info {
    flex-grow: 1;
    width: 100%;
}

.item-info h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 4px;
    margin-top: 0px;
}

.item-info span {
    color: var(--gold-light);
    font-size: 1rem;
}

/* Керування кількістю */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.btn-qty {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: 0.2s;
}

.btn-qty:hover {
    background: var(--gold-primary);
    color: #000;
}

.qty-num {
    color: #fff;
    font-size: 0.9rem;
    min-width: 15px;
    text-align: center;
}

.item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    min-width: 100px;
}

.btn-remove {
    background: none;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 5px;
    opacity: 0.7;
}

.btn-remove:hover {
    opacity: 1;
    text-decoration: underline;
}

.cart-summary {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--gold-primary);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.order-form {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--gold-primary);
    height: fit-content;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    padding: 12px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 5px;
    outline: none;
    font-family: 'Montserrat', sans-serif;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: var(--gold-primary);
}

.input-group textarea {
    resize: none;
}

.btn-gold-large {
    width: 100%;
    padding: 15px;
    background: var(--gold-primary);
    border: none;
    color: #000;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-gold-large:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

@media (max-width: 850px) {
    .checkout-wrapper {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-wrap: wrap;
    }

    .item-controls {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
    }
}

/* ========================================== */
/* [16] ЛОГІН        */
/* ========================================== */
.auth-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
}

.auth-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: rgba(5, 10, 7, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 40px;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(212, 175, 55, 0.05);
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    color: #888;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    padding: 10px 0;
    cursor: pointer;
    transition: 0.3s;
    border-bottom: 2px solid transparent;
}

.auth-tab.active {
    color: var(--gold-primary);
    border-bottom: 2px solid var(--gold-primary);
}

.auth-form {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.auth-form.active {
    display: block;
}

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

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 5px;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.85rem;
}

.remember-me {
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.forgot-link {
    color: var(--gold-light);
    text-decoration: none;
    transition: 0.2s;
}

.forgot-link:hover {
    color: var(--gold-primary);
    text-decoration: underline;
}

.btn-gold-large {
    width: 100%;
    padding: 15px;
    background: var(--gold-primary);
    border: none;
    color: #000;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
    font-family: var(--font-heading);
}

.btn-gold-large:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.auth-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.auth-divider span {
    background: rgba(5, 10, 7, 0.95);
    padding: 0 15px;
    color: #666;
    font-size: 0.85rem;
    position: relative;
    z-index: 2;
}

.social-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Змушуємо кнопки Google та Apple бути однакової ширини */
.g_id_signin, #appleid-signin {
    width: 100%;
    max-width: 300px;
    display: flex;
    justify-content: center;
}

/* Apple button fix для ширини */
#appleid-signin > div {
    width: 100% !important;
}

@media (max-width: 500px) {
    .auth-card {
        padding: 30px 20px;
    }
}


/* ========================================== */
/* [17] ПРОФІЛЬ                               */
/* ========================================== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 50px 0 20px;
}

.pg-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #303050;
    border-radius: 8px;
    font-family: 'Cinzel', serif;
    transition: 0.3s;
}

.pg-item:hover {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
}

.pg-item.active {
    background: #d4af37;
    color: #0f0f1a;
    border-color: #d4af37;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.pg-item.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.pg-dots {
    display: flex;
    align-items: flex-end;
    padding-bottom: 8px;
    color: #666;
    font-weight: bold;
    letter-spacing: 2px;
}

/*.pagination {*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    gap: 10px;*/
/*    margin-top: 30px;*/
/*}*/

/*.page-link {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    width: 40px;*/
/*    height: 40px;*/
/*    border: 1px solid #303050;*/
/*    border-radius: 8px;*/
/*    color: #ccc;*/
/*    text-decoration: none;*/
/*    transition: 0.3s;*/
/*}*/

/*.page-link:hover {*/
/*    border-color: var(--gold-primary);*/
/*    color: var(--gold-primary);*/
/*}*/

/*.page-link.active {*/
/*    background: var(--gold-primary);*/
/*    color: #000;*/
/*    border-color: var(--gold-primary);*/
/*}*/

/* Стилі верифікації */
.verify-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 5px;
    font-weight: bold;
    text-transform: uppercase;
}

.v-ok {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
}

.v-warn {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.verify-action-btn {
    width: 100%;
    background: var(--gold-primary);
    color: #000;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 5px;
    transition: 0.3s;
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.input-verify-wrapper {
    position: relative;
    width: 100%;
}

.verify-status-button {
    position: relative;
    bottom: 15px;
    font-size: 1.1rem;
    margin-bottom: 35px;
}

.verify-status-icon {
    position: relative;
    bottom: 55px;
    font-size: 1.1rem;
    left: 95%;
}

/* Модальне вікно для коду */
.verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.v-modal-card {
    background: #1a1a2e;
    border: 1px solid #303050;
    padding: 40px;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
}

.otp-input {
    width: 100%;
    background: #0f0f1a;
    border: 1px solid #404070;
    color: var(--gold-primary);
    font-size: 2rem;
    text-align: center;
    letter-spacing: 10px;
    padding: 10px;
    margin: 20px 0;
    border-radius: 8px;
}


.header-icon {
    color: var(--gold-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
}

.header-icon:hover {
    color: var(--gold-light);
    transform: scale(1.1);
}

.header-icon svg {
    width: 38px;
    height: 38px;
    display: block;
}

.relative-wrap {
    position: relative;
}

/* Стилізація стандартного input щоб він виглядав гарно при використанні datalist */
input[list]::-webkit-calendar-picker-indicator {
    display: none !important; /* Прибираємо стандартну стрілочку в деяких браузерах */
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-sub {
    color: var(--gold-primary);
    font-size: 1.2rem;
    margin: 30px 0 15px;
    font-family: var(--font-heading);
}

.alert-warning {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold-primary);
    padding: 15px;
    border-radius: 8px;
    color: var(--gold-light);
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.profile-section {
    padding: 120px 20px 60px;
    min-height: 80vh;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

/* Sidebar */
.profile-sidebar {
    background: rgba(5, 10, 7, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    padding: 30px 20px;
    height: fit-content;
}

.user-info {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}

.avatar-placeholder {
    font-size: 3rem;
    margin-bottom: 10px;
}

.user-info h3 {
    color: var(--gold-primary);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.user-info p {
    color: #888;
    font-size: 0.9rem;
}

.profile-menu {
    list-style: none;
    padding: 0;
}

.profile-menu li {
    padding: 15px;
    cursor: pointer;
    color: #ccc;
    border-radius: 8px;
    transition: 0.3s;
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
}

.profile-menu li:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #fff;
}

.profile-menu li.active {
    background: var(--gold-primary);
    color: #000;
    font-weight: bold;
}

/* Content Area */
.profile-tab {
    display: none;
    animation: fadeIn 0.4s ease;
}

.profile-tab.active {
    display: block;
}

.profile-tab h2 {
    text-align: center;
    margin-bottom: 30px
}

/* Cards */
.profile-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    transition: 0.3s;
}

.profile-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

/* Course specific */
blockquote {
    border-left: 0.5px solid silver;
    margin-left: 20px;
    padding-left: 7px;
}

.course-card {
    display: flex;
    gap: 25px;
    align-items: center;
}

.course-img {
    width: 150px;
    height: 230px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--gold-primary);
}

.course-info {
    flex-grow: 1;
}

.course-info h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.text-muted {
    color: #777;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.progress-container {
    width: 100%;
    background: #222;
    border-radius: 5px;
    height: 8px;
    margin-bottom: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gold-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 15px;
}

/* Order specific */
.order-id {
    font-weight: bold;
    color: var(--gold-primary);
}

.order-date {
    color: #888;
    font-size: 0.85rem;
}

.btn-course-detail {
    display: block;
    width: 110px;
    margin: unset;
}

.order-body p {
    margin-bottom: 5px;
    color: #ccc;
    font-size: 0.95rem;
}

/* Forms */
.input-group label {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 12px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 5px;
    margin-bottom: 20px;
}

.input-group input:focus {
    border-color: var(--gold-primary);
    outline: none;
}

.agreements-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.checkbox-label a {
    color: var(--gold-primary);
    text-decoration: none;
}

/* Додаткові стилі до ваших існуючих */
.badge-tg {
    background: #24A1DE;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
}

.warn-dot {
    background: #ff4d4d;
    color: white;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    margin-left: 5px;
}

.alert-warning {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold-primary);
    padding: 15px;
    border-radius: 8px;
    color: var(--gold-light);
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-sub {
    color: var(--gold-primary);
    font-size: 1.2rem;
    margin: 30px 0 15px;
    font-family: var(--font-heading);
}

.status-completed {
    color: #4CAF50;
}

.status-pending {
    color: var(--gold-primary);
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 850px) {
    .profile-container {
        grid-template-columns: 1fr;
    }

    .course-card {
        flex-direction: column;
        text-align: center;
    }
}


/* ========================================== */
/* [18] ORDER DETAIL                          */
/* ========================================== */
.button-profile-order-detail {
    left: 10px;
    position: relative;
    float: right;
    bottom: 45px;
}


.order-details-section {
    padding: 140px 20px 80px;
    min-height: 100vh;
    color: #fff;
}

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

.order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.order-header h1 {
    font-family: 'Cinzel', serif;
    color: var(--gold-primary);
    margin: 0;
}

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

.back-link:hover {
    color: var(--gold-primary);
}

.status-badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(255, 165, 0, 0.15);
    color: orange;
    border: 1px solid orange;
}

.status-paid {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
}

.status-completed {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border: 1px solid #00ff00;
}

.status-cancelled {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4d4d;
    border: 1px solid #ff4d4d;
}

.status-order-profile {
    background: none !important;
    border: none !important;
}

.order-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.order-items-card, .order-info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
}

h3, h4 {
    font-family: 'Cinzel', serif;
    color: var(--gold-light);
    margin-bottom: 20px;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Нові стилі для картинки та посилання */
.item-main-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-mini-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.item-link {
    color: #fff;
    text-decoration: none;
    transition: 0.2s;
}

.item-link:hover {
    color: var(--gold-primary);
    text-decoration: underline;
}

.order-item-row h4 {
    margin: 0;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.order-item-row p {
    margin: 5px 0 0;
    color: #888;
    font-size: 0.85rem;
}

.order-total {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
}

.order-total strong {
    color: var(--gold-primary);
}

.info-group {
    margin-bottom: 25px;
}

.info-group p {
    font-size: 0.95rem;
    color: #ccc;
    margin: 8px 0;
    line-height: 1.5;
}

.info-group strong {
    color: var(--gold-light);
    min-width: 80px;
    display: inline-block;
}

.pay-now-block {
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px dashed var(--gold-primary);
    text-align: center;
}

.pay-now-block p {
    color: #fff;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

@media (max-width: 850px) {
    .order-grid {
        grid-template-columns: 1fr;
    }
}


/* ===================== */
/* REVIEW SECTION */
.reviews-section {
    padding: 20px 0;
    background: #0a0a0f;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.reviews-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.review-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 25px;
    transition: 0.3s;
}

.review-card:hover {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.03);
}

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

.user-name {
    color: var(--gold-light);
    font-weight: 600;
    font-family: 'Philosopher', sans-serif;
    font-size: 1.1rem;
}

.review-stars {
    color: var(--gold-primary);
    font-size: 1rem;
    letter-spacing: 2px;
}

.review-text {
    color: #b0b0b0;
    line-height: 1.7;
    font-style: italic;
    font-size: 0.95rem;
}

/* Форма відгуку */
.add-review-box {
    margin-top: 30px;
    padding: 20px;
    border-radius: 15px;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.07), transparent);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 25px;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: 0.3s;
}

.star-rating-input input:checked ~ label, .star-rating-input label:hover, .star-rating-input label:hover ~ label {
    color: var(--gold-primary);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.review-textarea {
    width: 100%;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    outline: none;
    transition: 0.3s;
}

.review-textarea:focus {
    border-color: var(--gold-primary);
}

.btn-submit-review {
    background: var(--gold-primary);
    color: #000;
    border: none;
    display: block !important;
    margin: auto;
    transition: 0.3s;
}


/* ========================================== */
/* [18] PRODUCT DETAIL                          */
/* ========================================== */
/* Тултіп */
.tooltip-container {
    position: relative;
    cursor: help;
    /*border-bottom: 1px dashed #666;*/
    display: inline-block;
    -webkit-tap-highlight-color: transparent;
}

.tooltip-container::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);

    /* Стилізація */
    background-color: #222;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

    /* Робота з текстом */
    width: max-content;
    max-width: 200px;
    white-space: normal;
    text-align: center;

    /* Анімація */
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.5, 0, 0.5, 1);
    pointer-events: none;
}

/* Маленький трикутник (стрілочка) */
.tooltip-container::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border: 8px solid transparent;
    border-top-color: #222;

    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.5, 0, 0.5, 1);
}

/* Ефект при наведенні */
.tooltip-container:hover::after,
.tooltip-container.active::after,
.tooltip-container:hover::before,
.tooltip-container.active::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Якщо це крайній елемент (з попереднього кроку) */
.tooltip-container.edge-right.active::after {
    transform: translateY(0);
}

/* Базовий тултіп (по центру) */
.tooltip-container::after {
    left: 50%;
    transform: translateX(-50%) translateY(10px);
}

.tooltip-container.edge-left::after {
    left: 0;
    transform: translateY(10px);
}

.tooltip-container.edge-right::after {
    left: auto;
    right: 0;
    transform: translateY(10px);
}

/* Поява (спільна для всіх) */
.tooltip-container:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Для бокових класів */
}

.tooltip-container.edge-left:hover::after,
.tooltip-container.edge-right:hover::after {
    transform: translateY(0);
}

.product-details-section {
    padding: 120px 20px 80px;
    min-height: 100vh;
    color: #fff;
}


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

/* Хлібні крихти */
.breadcrumbs {
    margin-bottom: 40px;
    font-size: 0.9rem;
    color: #888;
}

.breadcrumbs a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.breadcrumbs a:hover {
    color: var(--gold-primary);
}

.breadcrumbs span {
    margin: 0 8px;
}

.breadcrumbs .current {
    color: var(--gold-primary);
}

/* Головна сітка */
.product-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: -60px;
}


/* Зображення */
.product-gallery {
    position: relative;
}

.main-image-wrapper {
    position: relative;
    border-radius: 15px;
    padding: 20px;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#main-product-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    border-radius: 10px;
}

.img-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background: var(--gold-primary);
    filter: blur(100px);
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

/* Інформація */
.product-info-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    bottom: 70px;
    position: relative;
}

.product-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin: 0 0 33px;
    line-height: 0.8;
}

.product-title-mob {
    display: none
}

.product-price {
    font-size: 1.8rem;
    font-family: 'Cinzel', serif;
    color: #fff;
    margin-bottom: 5px;
}

.product-price span {
    font-size: 1.2rem;
    color: #888;
}

.product-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.5) 0%, transparent 100%);
    margin-bottom: 25px;
}

.product-description p {
    color: #ccc;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: -20px 0;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1px;
    color: #aaa;
    font-size: 0.95rem;
}

.product-features .icon {
    font-size: 1.2rem;
}

/* Стилі для блоку характеристик, щоб гарно вписатися в твій дизайн */
.product-attributes {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.attr-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    padding-bottom: 4px;
}

.attr-row:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.attr-label {
    color: rgba(255, 255, 255, 0.6);
}

.attr-value {
    color: var(--gold-light);
    font-weight: 600;
    text-align: right;
}

/* Кнопки та вибір кількості */
.product-actions {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    align-items: stretch;
    flex-wrap: wrap;
}

.qty-selector {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.qty-selector button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    padding: 0 20px;
    cursor: pointer;
    transition: 0.3s;
    height: 100%;
    display: flex;
    align-items: center;
}

.qty-selector button:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-primary);
}

.qty-selector input {
    width: 50px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    pointer-events: none;
    -moz-appearance: textfield;
    font-family: 'Montserrat', sans-serif;
}

.qty-selector input::-webkit-outer-spin-button, .qty-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-gold-large {
    flex-grow: 1;
    padding: 15px 30px;
}

/* Схожі товари */
.related-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 30px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: 0.3s;
    display: block;
}

.related-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
}

.related-card img {
    width: 70%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.related-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.related-card .price {
    color: var(--gold-primary);
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
}

@media (max-width: 900px) {
    .product-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .related-grid {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }

    .qty-selector {
        justify-content: center;
        height: 50px;
    }
}


/* ========================================== */
/* [20] SUCCESS                               */
/* ========================================== */
.success-page {
    padding: 150px 20px 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
}

.success-card {
    max-width: 600px;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gold-primary);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.icon-check {
    font-size: 50px;
    margin-bottom: 20px;
    display: inline-block;
    color: var(--gold-primary);
}

.success-card h1 {
    font-family: 'Cinzel', serif;
    color: var(--gold-primary);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.order-number {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 30px;
}

.order-number strong {
    color: var(--gold-light);
}

.status-box {
    background: rgba(212, 175, 55, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 40px;
    border-left: 3px solid var(--gold-primary);
}

.status-box p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.action-block {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.action-block h3 {
    color: #fff;
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.action-block p {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.btn-gold {
    display: inline-block;
    padding: 14px 35px;
    background: var(--gold-primary);
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.back-link {
    margin-top: 30px;
}

.back-link a {
    color: #777;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.back-link a:hover {
    color: var(--gold-primary);
}

@media (max-width: 600px) {
    .success-card {
        padding: 40px 20px;
    }

    .success-card h1 {
        font-size: 1.8rem;
    }
}



/* ========================================== */
/* [21] carousel                             */
/* ========================================== */
/* Стилі для каруселі в дизайні Soul Lab */
.carousel-section { position: relative; max-width: 1200px; margin: 0 auto; padding: 40px 15px; }
.carousel-wrapper { position: relative; display: flex; align-items: center; }

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    /* scroll-behavior: smooth; Видалено, щоб JS плавно керував прокруткою */
    padding: 20px 5px;
    scrollbar-width: none; /* Firefox */
}
.carousel-track::-webkit-scrollbar { display: none; } /* Chrome, Safari */

.carousel-card {
    flex: 0 0 calc(33.333% - 14px);
    background: #1a1a2e;
    border: 1px solid #303050;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.carousel-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }

/* Нова обгортка зображення */
.carousel-img-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

/* Затемнення, яке світлішає при наведенні */
.carousel-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.65);
    transition: background 0.4s ease;
    z-index: 1;
}
.carousel-card:hover .carousel-overlay {
    background: rgba(0, 0, 0, 0.25);
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.carousel-card:hover .carousel-img {
    transform: scale(1.05); /* Легкий зум для преміальності */
}

.badge-type {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    background: var(--gold-primary);
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    margin: 0;
}

.carousel-img-wrapper h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 100% 5px;
    background: rgba(14, 14, 14, 0.71);
    transform: translate(-50%, -50%);
    z-index: 2;
    color: rgb(255, 255, 255);
    text-align: center;
    width: 100%;
    font-size: 1.2rem;
    margin: 0px;
    text-shadow: rgba(0, 0, 0, 0.8) 0px 2px 5px;
    pointer-events: none;
}

.carousel-content {
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1a1a2e;
}

.carousel-nav-btn {
    position: absolute;
    z-index: 10;
    background: var(--gold-primary);
    color: #000;
    border: none;
    width: 45px;
    height: 45px;
    margin: -35px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
    transition: 0.3s;
}
.carousel-nav-btn:hover { transform: scale(1.1); background: #fff; }
.carousel-nav-btn.prev { left: -20px; }
.carousel-nav-btn.next { right: -20px; }


@keyframes light-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

/* Клас для кнопки */
.btn-shake-periodic {
    /* Твої поточні стилі (.btn-gold-main) залишаються, додаємо лише анімацію */
    display: inline-block; /* переконайся, що стоїть block або inline-block, щоб transform працював */

    /* Назва анімації, тривалість 0.5с, працює безкінечно (infinite) */
    animation: light-shake 0.5s ease-in-out infinite;

    /* ГОЛОВНА МАГІЯ: затримка між повтореннями анімації */
    /* Оскільки сама анімація триває 0.5с, ми робимо загальний цикл 3.5 секунди, де 3 секунди кнопка просто спокійно стоїть */
    animation-duration: 3.5s;
}


@keyframes light-shake {
    /* Перші 15% часу (приблизно 0.5 сек від 3.5 сек) кнопка труситься */
    0% { transform: translateX(0); }
    2% { transform: translateX(-3px); }
    4% { transform: translateX(3px); }
    6% { transform: translateX(-2px); }
    8% { transform: translateX(2px); }
    10% { transform: translateX(-1px); }
    12% { transform: translateX(1px); }
    14%, 100% { transform: translateX(0); } /* Решту 85% часу (3 секунди) вона просто стоїть */
}

.btn-gold-main.shake-effect {
    display: inline-block;
    animation: light-shake 3.5s ease-in-out infinite;
}


/* ========================================== */
/* [22] АДАПТИВНІСТЬ (MEDIA QUERIES)          */
/* ========================================== */


/* --- Планшети та ПК --- */
@media (min-width: 768px) {
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 5%;
    }

    .nav-logo {
        flex: 1;
        display: flex;
        justify-content: flex-start;
    }

    .nav-links {
        flex: 0 0 auto;
        display: flex;
        justify-content: center;
        gap: 35px; /* однаковий відступ між усіма пунктами */
    }

    .header-controls {
        flex: 1;
        display: flex;
        justify-content: flex-end; /* притискає кошик до правого краю */
        margin-left: 0; /* прибираємо авто-відступ для десктопа */
        gap: 20px;
    }

    /* Прибираємо старі маргіни, які зміщували центр */
    .nav-links > a,
    .dropdown-item {
        margin-left: 0 !important;
    }

    .nav-links a {
        font-size: 13px;
    }

    .hero-logo {
        width: 220px;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .portal-card:hover {
        border-color: rgba(212, 175, 55, 0.6);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.15);
        transform: translateY(-8px);
    }

    .arrow-mobile {
        display: none;
    }

    /* Ховаємо стрілку на ПК */
    .dropdown-item {
        position: relative;
        padding: 20px 0; /* Зона для наведення */
    }

    .submenu {
        position: absolute;
        top: 100%; /* Точно під пунктом */
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background: rgba(5, 10, 7, 0.98);
        border: 1px solid rgba(212, 175, 55, 0.2);
        padding: 15px 25px;
        min-width: 220px;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s ease;
        backdrop-filter: blur(10px);
        text-align: center;
    }

    .dropdown-item:hover .submenu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .nav-links {
        display: flex;
        align-items: center;
    }

    .nav-links > a {
        margin-left: 35px;
    }

    .carousel-card { flex: 0 0 calc(50% - 10px); }
}


/* --- Мобільна версія (Телефони) --- */
@media (max-width: 767px) {
    .carousel-card { flex: 0 0 85%; }
    .carousel-nav-btn { display: none; }

    .hero .subtitle {
        font-size: 15px;
        max-width: 500px;
        margin-bottom: 10px;
        color: var(--gold-light);
        font-weight: 300;
    }

    .subtitle_title {
        font-size: 14px;
        max-width: 500px;
        margin-bottom: 10px;
        color: var(--gold-light);
        font-weight: 300;
        margin-top: -25px;
    }

    .subtitle_btn {
        font-size: 18px;
        max-width: 500px;
        color: var(--gold-light);
        font-weight: 300;
    }


    .reviews-container {
        padding: 0 40px;
    }

    .button-profile-order-detail {
        left: 0;
        float: none;
        bottom: 0;
        top: 10px;
        width: 150px;
        display: block;
        text-align: center;
        margin: auto;
    }

    .btn-course-detail {
        width: 150px;
        display: block;
        margin: auto;
    }

    .order-date {
        width: 100%;
        display: block;
        margin-bottom: 15px;
    }

    .item-info h4 {
        font-size: 1.05rem;
    }

    .summary-line {
        font-size: 1rem;
    }

    .input_promo {
        width: 100% !important;
        margin-right: 10px;
        margin-bottom: 10px !important;
    }

    .pagination-container {
        gap: 6px; /* Зменшуємо відступи */
    }

    .pg-item {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .course-card {
        gap: 0px;
    }

    .course-img {
        width: 150px;
        height: 150px;
    }

    .product-info-wrapper {
        bottom: 0 !important;
    }

    .product-title-mob {
        display: block;
        margin-bottom: -25px;
        font-size: 2.2rem;
    }

    .product-title {
        display: none
    }

    .product-main-grid {
        margin-bottom: -20px;
    }

    /* Header */
    .order-header {
        display: block;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 20px;
        text-align: center
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 20px;
        width: 100%;
    }

    .nav-links a {
        font-size: 11px;
        letter-spacing: 1px;
    }

    header {
        flex-direction: row !important; /* ПРИМУСОВО В РЯДОК */
        justify-content: space-between !important;
        padding: 0 5% !important;
        height: 70px !important;
    }

    #logo-header {
        margin-left: 16px;
        width: 45%;
        height: 45%;
    }

    /* Логотип: робимо висоту 40px */
    .nav-logo img {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 40px;
        cursor: pointer;
        position: relative;
        right: 20px;
    }

    /* Бургер: РОБИМО ТАКУ Ж ВИСОТУ 40px І ПРАВОРУЧ */
    .mobile-burger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        cursor: pointer;
        z-index: 1001;
        padding: 0;
        margin: 0;
        margin-top: 2px;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-burger span {
        display: block;
        width: 35px;
        height: 4px;
        background-color: var(--gold-primary);
        margin: 3.5px 0;
        transition: 0.3s;
        border-radius: 2px;
    }

    /* Виїзне меню (тепер воно не ламає шапку) */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 10, 7, 0.97);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        margin: 0;
        padding: 0;
        transition: 1s cubic-bezier(0.4, 0, 0.2, 1);
        /*border: 1px solid rgba(212, 175, 55, 0.2);*/
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 0 !important;
        font-size: 18px !important;
        letter-spacing: 3px;
    }

    .header-cart {
        margin-left: auto;
        margin-right: 15px;
    }

    /* Анімація Х */
    .mobile-burger.open span:nth-child(1) {
        transform: translateY(14px) rotate(45deg);
        bottom: 2px;
        position: relative;
    }

    .mobile-burger.open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-burger.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        bottom: 2px;
        position: relative
    }

    .dropdown-item {
        width: 100%;
        text-align: center;
    }

    .dropdown-trigger {
        display: flex;
        justify-content: center;
        /*align-items: center;*/
        gap: 10px;
        width: 100%;
    }

    /* Стрілочка тільки для мобілки */
    .arrow-mobile {
        width: 15px;
        height: 15px;
        border-right: 1px solid var(--gold-primary);
        border-bottom: 1px solid var(--gold-primary);
        transform: rotate(45deg);
        transition: 0.3s;
    }

    .order-header h1 {
        font-family: 'Cinzel', serif;
        color: var(--gold-primary);
        font-size: 1.7rem;
        margin-bottom: 20px;
    }

    .status-badge {
        margin-bottom: 20px;
        display: inline-block;
    }


    .order-total {
        font-size: 1rem;
    }


    .dropdown-item.active .arrow-mobile {
        transform: rotate(-135deg);
    }

    .submenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out;
        background: rgba(212, 175, 55, 0.02);

        /* МАГІЯ ЦЕНТРУВАННЯ */
        display: flex;
        flex-direction: column; /* Ставимо пункти один під одним */
        align-items: center; /* Вирівнюємо їх по центру горизонтально */
        width: 100%;
    }

    .dropdown-item.active .submenu {
        max-height: 600px;
        padding: 10px 0;
    }

    .submenu a {
        width: 100% !important; /* На мобільних краще займати всю ширину для кліку */
        max-width: 280px; /* Але обмежимо текст, щоб не розповзався */
        margin: 0 auto;
        text-align: center;
    }

    .nav-links {
        padding-top: 100px !important; /* Щоб не перекривалося шапкою */
    }


    /* Коригуємо Hero, щоб не залізав під шапку */
    .hero, .page-hero {
        padding-top: 120px !important;
    }

    /* Layout & Text */
    .hero {
        padding-top: 190px;
    }

    .hero-logo {
        width: 160px;
    }

    .section {
        padding-top: 140px;
    }

    .page-hero {
        padding-top: 190px;
        padding-bottom: 20px;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    /* Service Content */
    .service-content, .service-content-service {
        padding: 30px 20px;
    }

    .service-content h3, .service-content-service h3 {
        font-size: 1.4rem;
    }

    .service-content p, .service-list li, .service-content-service p {
        font-size: 0.95rem;
    }

    .course-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .price-tag {
        font-size: 2rem;
    }

    /* Grids & Cards */
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .magic-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .magic-tile {
        padding: 30px 20px;
    }

    /* Fast Mobile Interactions */
    .magic-tile, .portal-card, .btn-gold {
        transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s ease;
    }

    .magic-tile:active {
        transform: scale(0.96) translateY(0) !important;
        background: rgba(92, 28, 232, 0.22);
    !important;
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.8),
        0 0 40px rgba(212, 175, 55, 0.4) !important;
    }

    .nav-links a:active {
        color: var(--gold-primary);
        text-shadow: 0 0 8px var(--gold-primary);
    }

    .service-container {
        opacity: 0.95;
    }

    .video-bg-container-desktop {
        display: none;
        pointer-events: none;
    }

    .video-bg-container {
        display: block;
        position: fixed;
        top: 15%;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: 0;
        pointer-events: none;
        opacity: 0.5;
    }


    .video-bg-container video {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        position: relative;
        top: 55%;
        left: 50%;
        transform: translate(-50%, -50%);
        object-fit: cover;
        opacity: 0.2;
        pointer-events: none;
    }
}