/* ==========================================
   GLOBAL MOBILE FIXES & ACCESSIBILITY 
   ========================================== */
html, body {
    overflow-x: hidden; /* Strictly prevent horizontal scrolling */
    width: 100%;
}

*, *::before, *::after {
    box-sizing: border-box; /* Prevent padding from breaking widths */
}

/* Ensure 44x44px minimum tap targets for touchscreens */
.nav-links a, .dropdown-content a, .mobile-submenu a, .tab-btn, .custom-option {
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* Fix Tables breaking the layout on articles.html */
.zodiac-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}

/* ==========================================
   ROOT VARIABLES & BASE
   ========================================== */
:root {
    --bg-dark: #0f172a;              /* Темна синя основа */
    --bg-body: #05070a;              /* Найтемніший фон body */
    --bg-panel: rgba(15, 23, 42, 0.85);
    --glow-color: #d4af37;           /* Базовий ЗОЛОТИЙ колір Astro Insight */
    --glow-color-dim: rgba(212, 175, 55, 0.2); 
    --glow-color-mid: rgba(212, 175, 55, 0.4); 
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --color-success: #22c55e;        
    --color-success-hover: #16a34a;
    --color-danger: #ef4444;         
}

html { 
    scroll-behavior: smooth; 
    background-color: var(--bg-body); 
}

body {
    margin: 0; padding: 0; 
    font-family: 'Playfair Display', serif; 
    color: var(--text-main);
    background-color: transparent; 
    min-height: 100vh;
    position: relative;
}

/* ФІКСОВАНИЙ CANVAS ДЛЯ ЗІРОК */
#starlight-canvas {
    display: block;
    position: fixed;
    top: 15px; left: 0;
    width: 100vw; height: calc(100vh - 15px);
    background: radial-gradient(circle at center, var(--bg-dark) 0%, var(--bg-body) 100%);
    background-size: cover;       
    background-repeat: no-repeat; 
    z-index: -1;
    pointer-events: none;
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(5, 7, 10, 0.9); backdrop-filter: blur(10px);
    display: flex; justify-content: space-between; align-items: center; gap: 30px;
    padding: 15px 20px; z-index: 1000;
    border-bottom: 1px solid var(--glow-color);
    transition: border-color 0.8s ease;
}

.nav-links { display: flex; align-items: center; gap: 15px; }
.nav-links a { color: var(--text-main); text-decoration: none; font-size: 1.1rem; transition: 0.3s; }
.nav-links a:hover { color: var(--glow-color); }
.nav-logo-link { text-decoration: none; color: inherit; display: flex; align-items: center; }

.reset-btn {
    background: transparent; border: 1px solid var(--text-muted);
    color: var(--text-muted); padding: 5px 12px; border-radius: 15px;
    font-size: 0.9rem; cursor: pointer; transition: 0.3s; margin-left: 10px;
    font-family: 'Playfair Display', serif;
}
.reset-btn:hover { border-color: var(--glow-color); color: var(--glow-color); }

/* ==========================================
   MAIN LAYOUT & CARDS
   ========================================== */
.container {
    position: relative; z-index: 1; width: 95%; max-width: 1000px;
    margin: 100px auto 40px; text-align: center;
}

header h1 { font-size: 3.5rem; color: var(--glow-color); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 3px; font-weight: 700;}
.subtitle { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 20px; font-style: italic;}

section {
    background: var(--bg-panel); backdrop-filter: blur(5px);
    padding: 30px; border-radius: 8px; margin-bottom: 30px;
    border: 1px solid var(--glow-color-dim);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    transition: border-color 0.8s ease, box-shadow 0.8s ease;
}
section:hover { border-color: var(--glow-color); box-shadow: 0 0 20px rgba(0,0,0,0.6);}
section h3 { font-size: 2rem; margin-top: 0; color: var(--text-main); font-weight: 400;}

.omen-box { border-left: 3px solid var(--glow-color); display: flex; justify-content: center; gap: 10px; font-size: 1.2rem;}
.omen-label { font-weight: bold; color: var(--glow-color);}

.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; }

/* Forms & Inputs */
.selector-group, .ask-input-group { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 15px 0; }
select, input { padding: 12px; background: rgba(0,0,0,0.5); color: white; border: 1px solid var(--text-muted); border-radius: 4px; outline: none; font-family: 'Playfair Display', serif; font-size: 1.1rem;}
select:focus, input:focus { border-color: var(--glow-color); }
.ask-input-group input { width: 70%; }
.plus-icon { font-size: 2rem; color: var(--glow-color); }

.glow-btn {
    padding: 12px 25px; background: var(--glow-color); border: none; border-radius: 4px;
    color: var(--bg-body); font-weight: bold; cursor: pointer; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; font-family: 'Playfair Display', serif; font-size: 1rem;
}
.glow-btn:hover { background: var(--text-main); box-shadow: 0 0 15px var(--glow-color); }
.glow-btn.outline { background: transparent; border: 1px solid var(--glow-color); color: var(--glow-color); }
.glow-btn.outline:hover { background: var(--glow-color); color: var(--bg-body); }
.glow-btn.success-btn { background: var(--color-success); color: var(--bg-body); }
.glow-btn.success-btn:hover { background: var(--color-success-hover); box-shadow: 0 0 15px var(--color-success); }

.result-text { margin-top: 15px; font-style: italic; color: var(--glow-color); font-size: 1.2rem; min-height: 25px;}

/* Zodiac Grid */
.zodiac-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; }
.card {
    background: rgba(0,0,0,0.4); padding: 25px 10px; border-radius: 8px; cursor: pointer;
    border: 1px solid rgba(255,255,255,0.05); transition: 0.5s;
}
.card:hover { transform: translateY(-5px); border-color: var(--glow-color); background: rgba(0,0,0,0.7);}
.card .icon { font-size: 3rem; margin-bottom: 10px; transition: color 0.8s; }
.card h3 { margin: 0 0 5px 0; font-size: 1.4rem; }
.sign-motto { font-size: 0.9rem; color: var(--text-muted); font-style: italic; }

/* 3D Tarot */
.tarot-title { color: var(--glow-color); font-size: 0.9rem; margin-bottom: 15px; font-style: italic;}
.tarot-name { font-weight: bold; font-size: 1.2rem; color: var(--text-main);}

/* ==========================================
   MODAL, TABS & ATTRIBUTES
   ========================================== */
.modal { 
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; 
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.85); overflow-y: auto;
}
.modal-content { 
    background-color: var(--bg-panel); border: 2px solid var(--glow-color); 
    width: 85%; max-width: 750px; max-height: 85vh; border-radius: 12px; 
    position: relative; box-shadow: 0 0 40px rgba(0,0,0,0.8);
    display: flex; flex-direction: column; margin: 100px auto 40px; 
}
.modal-header { flex: 0 0 auto; display: flex; justify-content: flex-end; padding: 10px 15px; background: rgba(0,0,0,0.2); }
.close-btn { font-size: 28px; cursor: pointer; color: var(--glow-color); line-height: 1; padding: 5px; }
.close-btn:hover { color: white; }
.modal-body { padding: 25px; overflow-y: auto; flex: 1; }

.modal-tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 20px; }
.tab-btn { flex: 1; background: transparent; border: none; color: var(--text-muted); padding: 12px; cursor: pointer; border-bottom: 3px solid transparent; font-family: 'Playfair Display', serif; font-size: 1.05rem; }
.tab-btn.active { color: var(--glow-color); border-bottom-color: var(--glow-color); font-weight: bold; }
.tab-content { display: none; line-height: 1.6; text-align: left; font-size: 1.1rem; }
.tab-content.active-content { display: block; animation: fadeIn 0.4s; }

.lucky-attributes { 
    display: flex; justify-content: space-between; align-items: center; gap: 15px; 
    background: rgba(0,0,0,0.4); padding: 15px; border-radius: 6px; 
    margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap;
}
.attribute-box { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.attr-label { color: var(--text-muted); font-style: italic; }
.attr-value { font-weight: bold; color: var(--text-main); }
.modal-actions button { flex: 1; padding: 12px; }

/* ==========================================
   PERSONAL GRIMOIRE (Archive)
   ========================================== */
.archive-item { 
    background: rgba(0,0,0,0.4); padding: 15px; border-radius: 4px; margin-top: 15px; 
    border-left: 3px solid var(--glow-color); text-align: left; cursor: pointer;
    transition: all 0.3s ease; display: flex; justify-content: space-between; align-items: center;
}
.archive-item:hover { background: rgba(0,0,0,0.7); transform: translateX(5px); border-color: var(--text-main); }
.archive-info { flex-grow: 1; }
.archive-date { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 5px; font-style: italic; }
.delete-btn { background: transparent; border: none; color: var(--text-muted); font-size: 1.8rem; cursor: pointer; padding: 0 10px; transition: color 0.3s; line-height: 1; }
.delete-btn:hover { color: var(--color-danger); }

/* ==========================================
   MOBILE MENU BASE
   ========================================== */
.hamburger {
    padding: 10px;
    margin-right: -10px;
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2001;
}
.hamburger span { width: 30px; height: 3px; background: var(--glow-color); transition: 0.3s; border-radius: 2px;}

.mobile-menu {
    position: fixed; top: 0; right: -100%; width: 100vw; height: 100vh;
    background: rgba(5, 7, 10, 0.98); backdrop-filter: blur(15px);
    z-index: 2000; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 35px;
    transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
}
.mobile-menu.open { right: 0; }
.close-menu { position: absolute; top: 20px; right: 30px; font-size: 50px; color: var(--glow-color); cursor: pointer; }
.mobile-menu a { font-size: 2.2rem; color: var(--text-main); text-decoration: none; text-transform: uppercase; letter-spacing: 2px;}
.mobile-menu a:hover { color: var(--glow-color); }

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-container { max-width: 1000px; margin: 120px auto 60px; padding: 40px; background: var(--bg-panel); border-radius: 8px; border: 1px solid var(--glow-color-dim); box-shadow: 0 8px 32px rgba(0,0,0,0.5); text-align: center; }
.about-intro h1 { font-size: 2.8rem; color: var(--glow-color); margin-bottom: 20px; font-family: 'Playfair Display', serif; text-transform: uppercase; letter-spacing: 2px; }
.hero-text { font-size: 1.15rem; line-height: 1.7; color: var(--text-muted); max-width: 800px; margin: 0 auto 50px; font-family: sans-serif; }
.about-features h2 { font-size: 1.8rem; color: var(--text-main); margin-bottom: 30px; font-weight: 400; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; text-align: left; }
.feature-card { background: rgba(0, 0, 0, 0.4); padding: 25px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.05); transition: transform 0.4s ease, border-color 0.4s ease; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--glow-color); background: rgba(0, 0, 0, 0.7); }
.feature-card h4 { font-size: 1.25rem; margin-top: 0; margin-bottom: 12px; color: var(--glow-color); font-family: 'Playfair Display', serif; }
.feature-card p { font-size: 1rem; line-height: 1.6; margin: 0; color: var(--text-muted); }

/* ==========================================
   STATIC PAGES BACKGROUND
   ========================================== */
body.static-page { background: radial-gradient(circle at center, var(--bg-dark) 0%, var(--bg-body) 100%) !important; background-size: cover !important; background-repeat: no-repeat !important; }

/* ==========================================
   HELP CENTER & FAQ
   ========================================== */
.faq-container { max-width: 800px; margin: 120px auto 60px; padding: 40px; background: var(--bg-panel); border-radius: 8px; border: 1px solid var(--glow-color-dim); box-shadow: 0 8px 32px rgba(0,0,0,0.5); text-align: left; }
.faq-header { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; margin-bottom: 35px; text-align: center; }
.faq-header h1 { font-size: 2.5rem; color: var(--glow-color); margin: 0 0 10px 0; text-transform: uppercase; letter-spacing: 2px;}
.faq-header p { font-size: 1.1rem; color: var(--text-muted); margin: 0; font-family: sans-serif; }
.faq-category-title { font-size: 1.3rem; color: var(--text-main); margin: 30px 0 15px 0; font-weight: 400; letter-spacing: 1px; display: flex; align-items: center; }
.faq-category-title::after { content: ''; flex-grow: 1; margin-left: 15px; height: 1px; background: rgba(255, 255, 255, 0.05); }
details { background: rgba(255, 255, 255, 0.01); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 6px; margin-bottom: 12px; padding: 16px 20px; transition: all 0.3s ease; }
details[open] { border-color: var(--glow-color-mid); background: rgba(255, 255, 255, 0.03); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); }
summary { font-size: 1.1rem; color: var(--text-main); font-family: sans-serif; cursor: pointer; list-style: none; position: relative; padding-right: 30px; font-weight: 400; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '→'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--text-muted); transition: transform 0.3s ease, color 0.3s ease; }
details[open] summary::after { transform: translateY(-50%) rotate(90deg) !important; color: var(--glow-color); }
details p, details ul { margin-top: 15px; margin-bottom: 0; font-family: sans-serif; color: var(--text-muted); font-size: 1rem; line-height: 1.6; }
details li { margin-bottom: 8px; }
.faq-footer { text-align: center; margin-top: 50px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); }
.faq-footer h3 { color: var(--text-main); font-size: 1.4rem; font-weight: 400; margin: 0 0 10px 0; }
.faq-footer p { color: var(--text-muted); font-family: sans-serif; }
.faq-footer a { color: var(--glow-color); text-decoration: none; }
.faq-footer a:hover { text-decoration: underline; }

/* ==========================================
   PRIVACY POLICY & TERMS
   ========================================== */
.privacy-section p, .privacy-section li, .terms-section p, .terms-section li { font-size: 1.05rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 12px; font-family: sans-serif; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.privacy-container, .terms-container { max-width: 800px; margin: 120px auto 60px; padding: 40px; background: var(--bg-panel); border-radius: 8px; border: 1px solid var(--glow-color-dim); box-shadow: 0 8px 32px rgba(0,0,0,0.5); text-align: left; }
.privacy-header, .terms-header { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; margin-bottom: 30px; text-align: center; }
.privacy-header h1, .terms-header h1 { font-size: 2.5rem; color: var(--glow-color); margin: 0 0 10px 0; text-transform: uppercase; letter-spacing: 2px;}
.privacy-intro-summary { background: rgba(255, 255, 255, 0.03); border-left: 3px solid var(--glow-color); padding: 20px; margin-bottom: 40px; border-radius: 0 4px 4px 0; }
.privacy-section, .terms-section { margin-bottom: 35px; }
.privacy-section h2, .terms-section h2 { font-size: 1.4rem; color: var(--text-main); margin-bottom: 15px; font-weight: 400; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 5px; }
.privacy-section ul, .terms-section ul { padding-left: 20px; margin-bottom: 15px; }
.privacy-section strong, .terms-section strong { color: var(--glow-color); font-weight: normal; }
.hr-divider { border: 0; height: 1px; background: linear-gradient(to right, transparent, var(--glow-color-dim), transparent); margin: 30px 0; }
.last-updated { font-size: 1rem; color: var(--text-muted); font-style: italic; margin: 0; }

/* ==========================================
   CONTACT SUPPORT
   ========================================== */
.contact-container { max-width: 900px; margin: 120px auto 60px; padding: 40px; background: var(--bg-panel); border-radius: 8px; border: 1px solid var(--glow-color-dim); box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
.contact-header { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; margin-bottom: 40px; text-align: center; }
.contact-header h1 { font-size: 2.5rem; color: var(--glow-color); margin: 0 0 10px 0; text-transform: uppercase; letter-spacing: 2px;}
.contact-header p { font-size: 1.1rem; color: var(--text-muted); margin: 0; font-family: sans-serif; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; text-align: left; }
.contact-info h2 { font-size: 1.5rem; color: var(--text-main); margin-top: 0; margin-bottom: 15px; font-weight: 400; }
.contact-info p { font-size: 1.05rem; line-height: 1.6; color: var(--text-muted); font-family: sans-serif; margin-bottom: 25px; }
.info-details { list-style: none; padding: 0; margin: 0 0 30px 0; }
.info-details li { font-family: sans-serif; color: var(--text-muted); margin-bottom: 15px; display: flex; align-items: center; font-size: 1rem; }
.info-details strong { color: var(--glow-color); font-weight: normal; margin-right: 8px; }
.social-links { display: flex; gap: 15px; }
.social-links a { color: var(--text-muted); font-family: sans-serif; text-decoration: none; font-size: 0.95rem; border: 1px solid rgba(255, 255, 255, 0.1); padding: 8px 15px; border-radius: 4px; transition: all 0.3s ease; }
.social-links a:hover { border-color: var(--glow-color); color: var(--glow-color); }
.contact-form { background: rgba(0,0,0,0.3); padding: 30px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.05); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: var(--text-muted); margin-bottom: 8px; font-family: sans-serif; font-size: 0.95rem; }
.form-group input, .form-group textarea { width: 100%; box-sizing: border-box; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.1); color: white; padding: 12px 15px; border-radius: 4px; font-family: sans-serif; font-size: 1rem; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--glow-color); }
.form-group textarea { resize: vertical; min-height: 120px; }
.submit-btn { width: 100%; padding: 14px; background: var(--glow-color); color: var(--bg-body); border: none; border-radius: 4px; font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: all 0.3s ease; }
.submit-btn:hover { background: var(--text-main); box-shadow: 0 0 15px var(--glow-color); }

/* ==========================================
   GLOBAL SITE FOOTER
   ========================================== */
.site-footer { text-align: center; padding: 40px 20px 20px; margin-top: 50px; border-top: 1px solid var(--glow-color-dim); color: var(--text-muted); font-family: sans-serif; font-size: 0.95rem; }
.site-footer p { margin: 0 0 15px 0; }
.footer-links { display: flex; justify-content: center; align-items: center; gap: 15px; flex-wrap: wrap; }
.footer-links a { color: var(--glow-color); text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--text-main); text-shadow: 0 0 8px var(--glow-color); }
.footer-links .divider { color: rgba(255, 255, 255, 0.2); }

/* ==========================================
   ASTRO-COMPATIBILITY PREMIUM WIDGET
   ========================================== */
.compatibility-section { padding: 60px 20px; display: flex; justify-content: center; align-items: center; }
.compatibility-container { background: transparent; border: none; padding: 40px 30px; max-width: 650px; width: 100%; text-align: center; box-shadow: none; }
.compatibility-container h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--text-main); margin-top: 0; margin-bottom: 10px; text-shadow: 0 0 10px rgba(212, 175, 55, 0.2); }
.compatibility-subtitle { font-family: sans-serif; color: var(--text-muted); font-size: 0.95rem; margin-bottom: 35px; }
.compatibility-form { display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; margin-bottom: 35px; }
.select-group { flex: 1;display:flex; flex-direction: column; gap: 15px;text-align: left; }
.input-wrapper { display: flex; flex-direction: column; gap: 8px; }
.select-group label, .select-group .pseudo-label { font-family: sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--glow-color); padding-left: 5px; }
.cosmic-connector { font-size: 1.5rem; color: var(--glow-color); padding-bottom: 8px; text-shadow: 0 0 10px var(--glow-color); animation: pulseGlow 2s infinite ease-in-out; }
.compat-btn { background: var(--glow-color); border: none; border-radius: 8px; padding: 14px 35px; color: var(--bg-body); font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: bold; text-transform: uppercase; cursor: pointer; letter-spacing: 1px; transition: all 0.3s ease; box-shadow: 0 0 10px rgba(212, 175, 55, 0.4); }
.compat-btn:hover { transform: translateY(-2px); background: var(--text-main); color: var(--bg-body); box-shadow: 0 0 20px var(--glow-color); }
.compat-btn:active { transform: translateY(1px); }
.compat-result-box { margin-top: 30px; padding: 20px; background: rgba(5, 7, 10, 0.6); border-left: 3px solid var(--glow-color); border-radius: 4px 8px 8px 4px; text-align: left; font-family: 'Playfair Display', serif; font-size: 1.1rem; line-height: 1.6; color: var(--text-main); animation: fadeIn 0.5s ease-out; }
#compatibility-result { margin-top: 30px; text-align: center; border: none; box-shadow: none; background: transparent; padding: 0; }
.compat-score-circle { width: 140px; height: 140px; margin: 0 auto 25px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(5, 7, 10, 0.8) 100%); border: 2px solid var(--glow-color); box-shadow: 0 0 30px rgba(212, 175, 55, 0.3); display: flex; align-items: center; justify-content: center; font-size: 3.8rem; font-family: 'Playfair Display', serif; color: var(--glow-color); }
.strength-box { border-left-color: #4CAF50; }
.growth-box { border-left-color: #FF9800; }
.insight-box p { margin: 0; font-size: 0.95rem; color: var(--text-main); line-height: 1.5; }

@keyframes pulseGlow { 0%, 100% { opacity: 0.6; text-shadow: 0 0 5px var(--glow-color); } 50% { opacity: 1; text-shadow: 0 0 15px var(--glow-color), 0 0 25px var(--glow-color); } }

/* ==========================================
   Article HUB (ARTICLE CARDS & GRID)
   ========================================== */

/* Glassmorphism картка (базується на твоїх змінних) */

/* Зображення з зумом при наведенні */

/* Контент картки */

.insight-footer span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Активна кнопка фільтра */
/* ==========================================
   SVG ICONS & WIDGET SELECTS
   ========================================== */

/* 1. Гнучкий розмір (для карток та модалок Celestial Readings) */
.zodiac-svg-icon { 
    width: 50%; 
    height: 50%; 
    display: inline-block; 
    vertical-align: middle; 
}

/* 2. Обмеження 100px ТІЛЬКИ для випадаючих списків сумісності */
.selected-content .zodiac-svg-icon,
.custom-option .zodiac-svg-icon {
    width: 100px !important; 
    height: 100px !important; 
    margin-right: 2px;
}

/* 3. Збережені ефекти світіння та ховеру (Vector Minimalism) */
.zodiac-svg-icon circle, .zodiac-svg-icon path { fill: var(--glow-color) !important; transition: fill 0.3s ease, filter 0.3s ease; }
.zodiac-card:hover .zodiac-svg-icon circle, .zodiac-card:hover .zodiac-svg-icon path { fill: #ffffff !important; filter: drop-shadow(0 0 8px var(--glow-color)); }

/* ========================================== */

.custom-select { position: relative; width: 100%; min-width: 220px; }
.select-trigger { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: rgba(20, 20, 30, 0.8); border: 1px solid rgba(212, 175, 55, 0.4); border-radius: 8px; color: #fff; cursor: pointer; transition: all 0.3s ease; }
.select-trigger:hover { border-color: var(--glow-color, #d4af37); box-shadow: 0 0 10px rgba(212, 175, 55, 0.2); }
.selected-content { display: flex; align-items: center; gap: 12px; }
.custom-options { position: absolute; top: 100%; left: 0; width: 100%; background: #12121a; border: 1px solid rgba(212, 175, 55, 0.4); border-radius: 8px; margin-top: 5px; padding: 0; list-style: none; max-height: 190px; overflow-y: auto; z-index: 100; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; }
.custom-options.open { opacity: 1; visibility: visible; transform: translateY(0); }
.custom-option { display: flex; align-items: center; padding: 8px 16px; gap: 10px; cursor: pointer; color: #fff; font-size: 0.95rem; transition: background 0.2s; }
.custom-option:hover { background: rgba(212, 175, 55, 0.15); }
.dropdown-icon { width: 20px; height: 20px; display: flex; justify-content: center; align-items: center; color: var(--glow-color, #d4af37); }
.dropdown-icon svg { width: 100%; height: 100%; fill: currentColor; display: block; }

/* ==========================================
   MODAL TITLE LINK
   ========================================== */
.modal-title-link { color: var(--glow-color, #d4af37); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s ease; cursor: pointer; }
.modal-title-link:hover { text-shadow: 0 0 15px var(--glow-color, #d4af37); transform: scale(1.05); }
.modal-title-link .link-icon { font-size: 0.6em; opacity: 0.7; transition: transform 0.3s ease; }
.modal-title-link:hover .link-icon { transform: translate(3px, -3px); }

/* ==========================================
   CONSOLIDATED TABLET & MOBILE MÓDOSÍTÁSOK (1024px, 768px, 480px)
   ========================================== */
@media (max-width: 1024px) {
    .zodiac-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    /* Performance */
    *, *::before, *::after {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* Navigation */
    #desktopNav { display: none; } 
    .hamburger { display: flex; flex-direction: column; gap: 6px; cursor: pointer; } 
    
    /* Typography Scaling */
    header h1 { font-size: 2.2rem; margin-top: 10px;}
    .subtitle { font-size: 1rem; }
    section h3 { font-size: 1.6rem; }
    .blog-title, .faq-header h1, .contact-header h1, .terms-header h1, .privacy-header h1, .about-intro h1, .page-title { 
        font-size: 1.8rem; 
    }
    
    /* Spacing & Layouts */
    section { padding: 20px 15px; }
    .two-col-grid { grid-template-columns: 1fr; gap: 20px;}
    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    
    /* Zodiac Grids */
    .card { padding: 15px 5px; }
    .card .icon { font-size: 2.5rem; }
    .card h3 { font-size: 1.1rem; }
    
    /* Tarot Cards (FIXED ASPECT RATIO) */
    .tarot-grid { 
        flex-direction: row; 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 15px;
    }
    .tarot-card { 
        width: 30%; 
        min-width: 90px; 
        max-width: 120px; 
        height: 170px; /* Restored tall card shape */
    } 
    
    /* Forms & Inputs */
    .ask-input-group, .selector-group { flex-direction: column; width: 100%; }
    .ask-input-group input, .selector-group select { width: 100%; }
    .glow-btn, .submit-btn, input, select { width: 100%; min-height: 48px; }
    
    /* Fortune Modal */
    .modal-content { 
        width: 95% !important; 
        margin: 80px auto 20px !important; 
        padding: 25px 15px; 
    }
    .modal-body { padding: 15px; }
    .glow-text { font-size: 1.8rem !important; }
    .modal-tabs { flex-wrap: wrap; }
    .tab-btn { flex: 1 1 100%; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 10px;}
    
    /* Modal Attributes (FIXED STACKING) */
    .lucky-attributes { 
        flex-direction: column; 
        align-items: stretch; 
        gap: 12px; 
    }
    .attribute-box {
        justify-content: space-between;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding-bottom: 5px;
    }
    .attribute-box:last-child { border-bottom: none; }
    .attribute-box.energy-box { justify-content: center !important; text-align: center; }

    /* Compatibility Widget */
    .compatibility-section { padding: 40px 15px; }
    .compatibility-container { padding: 25px 15px; }
    .compatibility-form { flex-direction: column; align-items: stretch; gap: 15px; margin-bottom: 25px; }
    .select-group { width: 100%; }
    .custom-select { min-width: 100%; } /* Prevents overflow */
    .cosmic-connector { transform: rotate(90deg); margin: 10px 0; padding-bottom: 0; }
    .compat-btn { width: 100%; }
    
    /* Articles & Static Pages (FIXED RIGHT SHIFT) */
    .privacy-container, .faq-container, .contact-container, .about-container, .terms-container { 
        margin: 100px auto 40px; 
        width: 92%;
        padding: 25px 15px; 
    }
    .blog-post, .zodiac-article-block {
        padding: 20px 15px;
        border-radius: 8px;
    }

    /* About Page Mobile Fixes */
    .features-grid { grid-template-columns: 1fr; gap: 20px; }
    .hero-text { font-size: 1.05rem; margin-bottom: 30px; }
    .feature-card { padding: 20px 15px; }
}

@media (max-width: 480px) {
    /* Typography */
    header h1 { font-size: 1.8rem; }
    .subtitle { font-size: 0.9rem; }
    .blog-title { font-size: 1.5rem; }
    .glow-text { font-size: 1.5rem !important; }

    /* Zodiac Grid */
    .zodiac-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .card { padding: 12px 5px; }
    .card .icon { font-size: 2rem; }
    .card h3 { font-size: 1rem; }

    /* Tarot Card scaling for very small screens (iPhone SE) */
    .tarot-card { 
        width: 45%; 
        max-width: 130px; 
        height: 160px; 
    }

    /* Fortune Modal */
    .modal-content { margin: 85px auto 20px !important; padding: 20px 12px; }

    /* Compatibility */
    .compat-score-circle {
        width: 110px;
        height: 110px;
        font-size: 2.8rem;
    }

    /* Compact static page margins for very small screens */
    .privacy-container, .faq-container, .contact-container, .about-container, .terms-container { 
        margin: 85px auto 30px; 
        width: 95%; 
        padding: 20px 10px; 
    }
}
@media (min-width: 769px) {
    #planetsGrid {
        grid-template-columns: repeat(5, 1fr);
    }
}
.site-footer .social-links {
    display: flex;
    justify-content: center !important; /* A !important biztosítja, hogy felülírja a korábbi szabályokat */
    align-items: center;
    width: 100%; /* Kényszeríti, hogy a doboz kitöltse a teret, így van mihez képest középre kerülnie */
    margin-top: 25px;
    gap: 20px;
}

/* ==========================================
   DYNAMIC LOGO GLOW SYSTEM (UNIFIED FIX)
   ========================================== */
.nav-logo {
    display: flex;
    align-items: center;
    max-height: 60px;
}

/* Базовий стан контейнера логотипу */
#site-logo-container,
.logo-svg-container {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--glow-color, #d4af37);
    filter: drop-shadow(0 0 6px var(--glow-color, rgba(212, 175, 55, 0.4)));
    transition: filter 0.4s ease, color 0.4s ease;
}

/* Ідеальний базовий масштаб 2.2 без скачків */
#site-logo-container svg,
.logo-svg-container svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transform: scale(2.2) !important;
    transform-origin: center center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 🪄 МАГІЯ ПРИ НАВЕДЕННІ (HOVER) — сяйво та збільшення до 3.0 */
#site-logo-container:hover,
.logo-svg-container:hover {
    filter: drop-shadow(0 0 15px var(--glow-color, rgba(212, 175, 55, 0.95)))
            drop-shadow(0 0 25px var(--glow-color, rgba(212, 175, 55, 0.6))) !important;
}

#site-logo-container:hover svg,
.logo-svg-container:hover svg {
    transform: scale(3) !important;
}

/* ==========================================
   FIX: OVERRIDE INNER SVG STYLES (.cls-1 .. .cls-4)
   Примусове перефарбовування контурів та заливок ЛОГОТИПУ В ШАПЦІ під активну ауру
   ========================================== */

/* 1. Контури, лінії ТА ЗІРКИ (cls-1, cls-3, cls-4) */
#site-logo-container svg .cls-1,
#site-logo-container svg .cls-3,
#site-logo-container svg .cls-4,
.logo-svg-container svg .cls-1,
.logo-svg-container svg .cls-3,
.logo-svg-container svg .cls-4 {
    stroke: var(--glow-color, #d4af37) !important;
    transition: stroke 0.4s ease;
}

/* 2. Тільки заповнені фігури (cls-2) */
#site-logo-container svg .cls-2,
.logo-svg-container svg .cls-2 {
    fill: var(--glow-color, #d4af37) !important;
    transition: fill 0.4s ease;
}

/* ==========================================
   PHASE 2: CUSTOM DATE PICKER DESIGN
   ========================================== */

/* 1. Стилізуємо саме поле вводу (робимо його схожим на custom-select) */
input[type="date"].gold-select {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: rgba(15, 23, 42, 0.6); /* Темний напівпрозорий фон сайту */
    border: 1px solid rgba(212, 175, 55, 0.4); /* Приглушена золота рамка */
    border-radius: 8px; /* Заокруглення як у дропдаунах */
    color: #e2e8f0; /* Світлий текст */
    font-family: inherit; /* Успадковує шрифт сайту */
    font-size: 1rem;
    padding: 12px 15px; /* Просторі відступи */
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Легка внутрішня тінь для об'єму */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    color-scheme: dark; /* Підтримка темної теми */
}

/* 2. Ефект при наведенні та кліку (фокусі) */
input[type="date"].gold-select:hover,
input[type="date"].gold-select:focus {
    border-color: var(--glow-color, #d4af37); /* Рамка стає яскраво-золотою */
    background: rgba(20, 30, 50, 0.8);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 3. Перефарбовуємо іконку календарика браузера в золото */
input[type="date"].gold-select::-webkit-calendar-picker-indicator {
    background-color: transparent;
    cursor: pointer;
    opacity: 0.7;
    /* CSS-магія: перетворюємо чорну іконку на золоту за допомогою фільтрів */
    filter: invert(75%) sepia(40%) saturate(600%) hue-rotate(350deg) brightness(100%);
    transition: all 0.3s ease;
    padding: 2px;
}

/* 4. Іконка календарика світиться при наведенні */
input[type="date"].gold-select::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    filter: invert(85%) sepia(50%) saturate(800%) hue-rotate(350deg) brightness(120%);
    transform: scale(1.1); /* Трохи збільшується */
}
/* ==========================================
   UI/UX FIX: WIDE COMPATIBILITY RESULTS (PREMIUM GLASSMORPHISM)
   ========================================== */

/* 1. Головний контейнер результатів (Вириваємо за межі батьківського блоку) */
#compatibilityResult {
    width: 90vw; /* Займає 90% ширини екрану */
    max-width: 950px; /* Достатньо місця для комфортного читання */
    position: relative;
    left: 50%;
    transform: translateX(-50%); /* Ідеальне центрування відносно всього екрану */
    
    margin-top: 50px; /* Більше простору від кнопки */
    padding: 40px; /* Дихаючий простір всередині */
    
    /* Естетика Astro Insight: Матове скло та золото */
    background: rgba(15, 23, 42, 0.65); 
    backdrop-filter: blur(12px); /* Ефект матового скла */
    -webkit-backdrop-filter: blur(12px);
    
    border: 1px solid rgba(212, 175, 55, 0.3); /* Ніжна золота рамка */
    border-radius: 16px; /* Більш сучасне, м'яке заокруглення */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05); /* Глибока тінь + верхній блік */
    box-sizing: border-box;
    z-index: 10;
}

/* 2. Обгортка для блоків аналітики */
.compat-analytics {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: left;
    width: 100%;
    margin-top: 35px;
}

/* 3. Внутрішні інформаційні блоки (Planetary Analysis та Astro-Weather) */
.insight-box {
    padding: 25px 30px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.55);
    border-left: 4px solid;
    width: 100% !important;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    line-height: 1.7;
    font-size: 1.05rem;
    color: #e2e8f0;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Легкий ефект підняття при наведенні на блоки з текстом */
.insight-box:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.2);
}

/* 4. Заголовки всередині блоків */
.insight-box h4 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    margin-top: 0;
    margin-bottom: 15px;
}
/* ==========================================
   TAROT WIDGET: CYBER ORACLE GLASSMORPHISM
   ========================================== */

.tarot-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
    perspective: 1000px;
}

.tarot-card {
    width: 200px;
    height: 320px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    position: relative;
    transition: transform 0.3s ease;
}

.tarot-card:hover {
    transform: translateY(-10px);
}

.tarot-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

/* Toggle this class via JS to flip the card */
.tarot-card.flipped .tarot-inner {
    transform: rotateY(180deg);
}

.tarot-front, .tarot-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    -webkit-backface-visibility: hidden;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glow-color-mid);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px var(--glow-color-dim);
}

/* The card back (what you see before flipping) */
.tarot-front {
    background: rgba(0,0,0,0.8);
    border: 2px solid var(--glow-color);
    color: var(--glow-color);
    font-size: 3rem;
}

/* The actual card face (what you see after flipping) */
.tarot-back {
    background: rgba(5, 7, 10, 0.85);
    border: 2px solid var(--text-main);
    transform: rotateY(180deg);
}

.tarot-position-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.tarot-card-title {
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: bold;
    margin-bottom: 5px;
}

.tarot-card-type {
    font-size: 0.8rem;
    color: var(--glow-color);
    font-style: italic;
}
/* ==========================================
   TAROT AI READING: TYPOGRAPHY & LOADER
   ========================================== */

.oracle-reading {
    display: none; /* Hidden until triggered */
    margin-top: 40px;
    padding: 35px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    color: #e2e8f0;
    line-height: 1.8;
    font-size: 1.1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 215, 0, 0.05);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 1s ease-in-out;
}

.oracle-reading h3 {
    color: #ffd700;
    margin-bottom: 15px;
    margin-top: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1.2rem;
}

.oracle-reading h3:first-child {
    margin-top: 0;
}

.oracle-reading p {
    margin-bottom: 15px;
}

.oracle-reading strong {
    color: #ffffff;
    font-weight: 600;
}

/* Mystical Loader Animation */
.oracle-loader {
    text-align: center;
    padding: 30px;
}

.glow-text {
    color: #ffd700;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 2.2rem;
    font-style: italic;
    animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
    from { opacity: 0.5; text-shadow: 0 0 5px rgba(255, 215, 0, 0.2); }
    to { opacity: 1; text-shadow: 0 0 15px rgba(255, 215, 0, 0.8); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.reading-error {
    color: #ff4c4c;
    text-align: center;
    font-style: italic;
}
/* ==========================================
   ASTRO INSIGHT PRELOADER (CLEANED & OPTIMIZED)
   ========================================== */
body.no-scroll { overflow: hidden; height: 100vh; }

#astro-preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    background: #050505;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 1.2s ease, opacity 0.4s ease;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px; /* Гнучкий розмір замість жорсткого для захисту мобілок */
    text-align: center;
}

/* Великий логотип по центру прелоадера */
#intro-logo-container {
    width: 280px; 
    height: 280px; /* Ідеальний квадрат 1:1 */
    display: flex;
    justify-content: center;
    align-items: center;
    transform-origin: top left;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.17, 1);
    will-change: transform;
}

#intro-logo-container svg {
    width: 100%; height: 100%;
    filter: drop-shadow(0 0 30px var(--glow-color, #d4af37));
    transform: scale(1.8);
}

#intro-logo-container .cls-1, 
#intro-logo-container .cls-3, 
#intro-logo-container .cls-4 {
    stroke: var(--glow-color, #d4af37) !important;
}
#intro-logo-container .cls-2 {
    fill: var(--glow-color, #d4af37) !important;
}

/* Напис Astro Insight на прелоадері */
.intro-title {
    margin-top: -20px; /* Підтягуємо текст до квадрата */
    font-size: 4rem;
    color: var(--glow-color, #d4af37);
    text-transform: uppercase;
    text-shadow: 0 0 20px var(--glow-color, #d4af37);
    opacity: 0;
    display: inline-block;
    transform-origin: top left;
    margin-left: 0; 
    white-space: nowrap; /* Забороняємо перенос тексту */
    animation: textReveal 1.5s ease-out forwards 0.3s;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.17, 1), opacity 0.5s ease;
}

@keyframes textReveal {
    0% { letter-spacing: 30px; opacity: 0; }
    100% { letter-spacing: 2px; opacity: 1; }
}

/* ==========================================
   СТИЛІ ДЛЯ ТЕКСТУ В ШАПЦІ (Місце посадки)
   ========================================== */
.nav-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--glow-color, #d4af37);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-left: 10px; /* Безпечний та гармонійний відступ */
    text-shadow: 0 0 8px var(--glow-color, #d4af37);
    transition: color 0.5s ease, text-shadow 0.5s ease;
}

/* ==========================================
   МОБІЛЬНА АДАПТАЦІЯ ДЛЯ ПРЕЛОАДЕРА
   ========================================== */
@media (max-width: 768px) {
    #intro-logo-container {
        width: 300px;  /* Пропорційне зменшення для телефонів */
        height: 300px; 
    }
    .intro-title {
        font-size: 2.2rem;
        margin-top: 10px;
    }
    .nav-title {
        font-size: 1.2rem;
        margin-left: 8px;
    }
}
/* =========================================
   CUSTOM COSMIC CURSOR (Astro Insight)
   ========================================= */

/* Застосовуємо ТІЛЬКИ для пристроїв із точною мишкою (ПК/Ноутбуки) */
@media (pointer: fine) {
    /* Жорстко ховаємо ВСІ системні курсори (стрілки, ручки, палички) на ВСІХ елементах */
    /* CSAK akkor, ha a JS ténylegesen létrehozta a saját kurzort (custom-cursor-ready osztály) */
    html.custom-cursor-ready *,
    html.custom-cursor-ready *::before,
    html.custom-cursor-ready *::after {
        cursor: none !important;
    }
    
    #cursor-dot, #cursor-aura {
        position: fixed;
        top: 0;
        left: 0;
        pointer-events: none; /* ДУЖЕ ВАЖЛИВО: дозволяє клікати крізь курсор */
        border-radius: 50%;
        z-index: 99999; /* Поверх усіх інших елементів */
        transform: translate(-50%, -50%); /* Центруємо відносно координат */
    }

    /* Центральна зірочка (рухається миттєво) */
    #cursor-dot {
        width: 6px;
        height: 6px;
        background-color: var(--glow-color, #d4af37);
        box-shadow: 0 0 10px var(--glow-color, #d4af37);
    }

    /* Орбіта/Аура (рухається із затримкою) */
    #cursor-aura {
        width: 36px;
        height: 36px;
        border: 1px solid rgba(212, 175, 55, 0.4);
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
        transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
        will-change: transform; /* Підказка для браузера: вмикає GPU-прискорення */
    }

    /* Стан "Увага": коли курсор наведено на посилання чи кнопку */
    #cursor-aura.hovering {
        width: 55px;
        height: 55px;
        background-color: rgba(212, 175, 55, 0.1);
        border-color: var(--glow-color, #d4af37);
    }
}
/* =========================================
   КАСТОМІЗАЦІЯ ТЕКСТУ ТА ВВОДУ
   ========================================= */

/* 1. Золота блимаюча каретка для полів вводу */
input, textarea {
    caret-color: var(--glow-color, #d4af37);
}

/* 2. Космічне золоте виділення тексту */
::selection {
    background-color: rgba(212, 175, 55, 0.4); /* Напівпрозорий золотий */
    color: #fff; /* Текст стає білим для контрасту */
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.8); /* Легке світіння виділеного тексту */
}

/* 3. Ховаємо стандартний текстовий курсор */
/* CSAK akkor, ha a JS ténylegesen létrehozta a saját kurzort (custom-cursor-ready osztály) */
html.custom-cursor-ready p,
html.custom-cursor-ready h1,
html.custom-cursor-ready h2,
html.custom-cursor-ready h3,
html.custom-cursor-ready h4,
html.custom-cursor-ready h5,
html.custom-cursor-ready h6,
html.custom-cursor-ready span,
html.custom-cursor-ready li,
html.custom-cursor-ready input,
html.custom-cursor-ready textarea {
    cursor: none;
}

/* 4. Новий стан Аури над текстом (Витягується в лінію) */
#cursor-aura.text-hover {
    width: 4px;
    height: 28px; /* Робимо високим */
    border-radius: 2px;
    background-color: rgba(212, 175, 55, 0.6);
    border: none;
    box-shadow: 0 0 10px var(--glow-color, #d4af37);
}
/* ==========================================
   INTERACTIVE TOOLTIPS (INFO ICONS)
   ========================================== */

/* Світіння при наведенні */
.info-tooltip:hover {
    background: var(--glow-color);
    color: var(--bg-body);
    box-shadow: 0 0 15px var(--glow-color);
}

/* Сама плашка підказки (Glassmorphism) */
.info-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 160%; /* Виринає зверху над іконкою */
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: max-content;
    max-width: 250px; /* Щоб текст не був нескінченно довгим */
    padding: 12px 18px;
    background: rgba(15, 23, 42, 0.85); /* Темно-синій матовий фон */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glow-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: 'Playfair Display', serif;
    font-weight: normal;
    text-align: center;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Плавна пружинка */
    z-index: 1000;
}

/* Маленький золотий трикутник, що вказує на іконку */
.info-tooltip::before {
    content: '';
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    border-width: 7px;
    border-style: solid;
    border-color: var(--glow-color) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

/* Анімація появи при наведенні (або тапі на телефоні) */
.info-tooltip:hover::after,
.info-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Мобільна адаптація: щоб текст не вилазив за екран */
@media (max-width: 768px) {
    .info-tooltip::after {
        white-space: normal;
        width: 220px;
        font-size: 0.9rem;
    }
}
/* ==========================================
   POSITIONING FOR COSMIC INSIGHT (OMEN BOX) TOOLTIP
   ========================================== */
#itOmen {
    position: relative; /* База для координат */
}

/* Ставимо іконку по центру правого краю контейнера */

/* Підказка відкривається зверху над іконкою і зміщується вліво */
#itOmen .info-tooltip::after {
    left: auto;
    right: 0;
    bottom: 160%;
    top: auto;
    transform: translateY(15px);
}

/* Золотий трикутник вказівника точно під іконку */
#itOmen .info-tooltip::before {
    left: auto;
    right: 5px;
    bottom: 120%;
    top: auto;
    border-color: var(--glow-color) transparent transparent transparent;
    transform: translateY(15px);
}

/* Анімація появления при наведенні */
#itOmen .info-tooltip:hover::after,
#itOmen .info-tooltip:hover::before {
    transform: translateY(0);
}
/* ==========================================
   TOOLTIPS FOR TWO-COLUMN GRID WIDGETS
   ========================================== */
.two-col-grid .info-tooltip::after {
    max-width: 210px; /* Зменшена ширина для комфортного читання у вузьких колонках */
}

@media (max-width: 768px) {
    .two-col-grid .info-tooltip::after {
        max-width: 190px;
    }
}
/* ==========================================
   MODAL ACTION BUTTONS TOOLTIPS
   ========================================== */
.modal-actions {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-top: 25px;
}

.btn-with-tooltip {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    gap: 8px;
}

.btn-with-tooltip .glow-btn {
    flex: 1; /* Кнопка займає весь доступний простір */
}

/* Налаштування позиціонування підказки над кнопками */
.btn-with-tooltip .info-tooltip::after {
    bottom: 140%;
    left: auto;
    right: -10px; /* Прив'язуємо правий край підказки до іконки, текст росте вліво */
    transform: translateY(10px); /* Прибрали translateX */
    max-width: 240px;
    z-index: 2050; /* Вище за модальне вікно */
}

/* Налаштовуємо золотий трикутник-вказівник */
.btn-with-tooltip .info-tooltip::before {
    bottom: 110%;
    left: auto;
    right: 5px; /* Стрілочка вказує рівно на іконку ? */
    transform: translateY(10px);
    z-index: 2050;
}

/* Анімація появи (плавний рух тільки вгору) */
.btn-with-tooltip .info-tooltip:hover::after,
.btn-with-tooltip .info-tooltip:hover::before {
    transform: translateY(0);
}

/* Адаптація для мобільних пристроїв */
@media (max-width: 768px) {
.modal-actions {
    flex-direction: column;
    gap: 15px;
}
    
    .btn-with-tooltip {
        width: 100%;
    }
}
#custom-svg-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 38px;  /* Компактний та зручний розмір курсора */
    height: 38px;
    pointer-events: none;
    z-index: 99999;
    filter: drop-shadow(0 0 5px var(--glow-color, #d4af37));
    transition: transform 0.05s ease-out, width 0.2s ease, height 0.2s ease, filter 0.2s ease;
}

#custom-svg-cursor svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* При наведенні на кнопки курсор трохи більшає і яскравіше світиться */
#custom-svg-cursor.hovering {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 0 15px var(--glow-color, #d4af37));
}

h2, h3, h4, .omen-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 10px;       
}

.info-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--glow-color);
    color: var(--glow-color);
    font-size: 0.9rem;
    font-family: sans-serif;
    font-style: normal;
    font-weight: bold;
    vertical-align: middle;
    margin-left: 0 !important;
    cursor: pointer;
    position: relative;
    box-shadow: 0 0 5px var(--glow-color-dim);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

#itOmen .info-tooltip {
    position: relative !important;
    right: auto !important;
    left: auto;
    top: auto !important;
    transform: none !important;
    margin-left: 0;
}

@media (max-width: 768px) {
  
    .info-tooltip::after,
    #itOmen .info-tooltip::after,
    .btn-with-tooltip .info-tooltip::after {
        position: fixed !important;
        left: 15px !important;
        right: 15px !important;
        bottom: 25px !important;
        top: auto !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        transform: translateY(20px) !important; 
        z-index: 999999 !important; 
        box-sizing: border-box;
        text-align: center;
    }

  
    .info-tooltip:hover::after,
    .info-tooltip:active::after,
    #itOmen .info-tooltip:hover::after,
    .btn-with-tooltip .info-tooltip:hover::after {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .info-tooltip::before,
    #itOmen .info-tooltip::before,
    .btn-with-tooltip .info-tooltip::before {
        display: none !important;
    }
}
/* ==========================================
   ZODIAC MATCH BLITZ GAME
   ========================================== */
.blitz-stats-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: #fff;
}

.blitz-stat-group {
    display: flex;
    gap: 30px;
}

.blitz-stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blitz-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    color: var(--text-muted, #aaa);
}

.blitz-stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
}

.blitz-game-board {
    display: flex;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    gap: 20px;
}

.blitz-panel {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 25px; /* Kicsit kisebb belső margó, hogy még kompaktabb legyen */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center; /* flex-start helyett center, hogy középre rendezze a gombokat */
    gap: 15px;
    /* A min-height: 400px; sort teljesen kitöröltük! */
}

.blitz-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blitz-card:hover {
    transform: translateY(-2px);
    border-color: var(--glow-color, #d4af37);
    box-shadow: 0 4px 15px var(--glow-color-dim, rgba(212,175,55,0.3));
}

.blitz-card.selected {
    border-color: var(--glow-color, #d4af37);
    box-shadow: 0 0 15px var(--glow-color, #d4af37);
    background: rgba(212, 175, 55, 0.1);
}

.blitz-card.matched {
    visibility: hidden;
    opacity: 0;
}

.blitz-icon-card {
    padding: 10px;
}

.blitz-icon-card svg {
    width: 45px;
    height: 45px;
    fill: currentColor;
    filter: drop-shadow(0 0 5px var(--glow-color-dim, rgba(212,175,55,0.5)));
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .blitz-game-board {
        flex-direction: column;
    }
    .blitz-stats-header {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
}
.blitz-card svg path,
.blitz-card svg circle,
.blitz-card svg rect,
.blitz-card svg polygon {
    fill: currentColor !important;
}

/* Ha az SVG vonalakat (stroke) is használ, azokat is átszínezzük */
.blitz-card svg [stroke]:not([stroke="none"]) {
    stroke: currentColor !important;
}
/* ==========================================
   GAME 7: TAROT MEMORY MATRIX
   ========================================== */
.tarot-memory-card {
    width: 100%; 
    height: 80px; 
    position: relative; 
    cursor: pointer;
    transform-style: preserve-3d; 
    transition: transform 0.5s;
}
.tarot-memory-card.flipped { 
    transform: rotateY(180deg); 
}
.tarot-memory-card.matched { 
    visibility: hidden; 
    opacity: 0; 
    transition: visibility 0s 0.5s, opacity 0.5s; 
}
.tmc-face {
    position: absolute; 
    width: 100%; 
    height: 100%; 
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 6px;
    font-size: 1.1rem; 
    color: #fff; 
    border: 1px solid rgba(255,255,255,0.2);
}
.tmc-back { 
    background: rgba(255,255,255,0.05); 
}
.tmc-front { 
    background: rgba(192, 132, 252, 0.2); 
    border-color: #c084fc; 
    transform: rotateY(180deg); 
    text-align: center; 
    padding: 5px;
}
/* Reszponzív fix a kvíz kártyákhoz mobilon */
@media (max-width: 768px) {
.zodiac-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    display: grid !important;
}
}
/* ==========================================
   1. MAIN ARTICLES GRID (для сторінки articles.html)
   ========================================== */
.insights-grid {
    display: grid;
    /* Автоматична сітка колонок для сторінки статей */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    width: 100%;
    margin-top: 20px;
    padding-bottom: 40px;
    box-sizing: border-box;
}

/* ==========================================
   2. CAROUSEL OVERRIDES (ТІЛЬКИ для каруселі)
   ========================================== */
/* Звертаємося напряму до ID, який використовує твій JS скрипт! */
#relatedArticlesGrid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
    overflow-x: auto !important;
    padding: 15px 5px !important;
    margin-top: 0;
    
    /* Дозволяємо JS керувати scroll-behavior (БЕЗ !important) */
    scroll-snap-type: none !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#relatedArticlesGrid::-webkit-scrollbar {
    display: none;
}

/* Жорстко фіксуємо ширину карток ВИКЛЮЧНО в каруселі */
#relatedArticlesGrid .insight-card {
    flex: 0 0 310px !important;
    width: 310px !important;
    min-width: 310px !important;
    max-width: 310px !important;
}

/* Адаптив каруселі для мобільних */
@media (max-width: 768px) {
    #relatedArticlesGrid {
        gap: 15px !important;
    }
    
    /* Звужуємо картку на телефоні, щоб було видно шматочок наступної */
    #relatedArticlesGrid .insight-card {
        flex: 0 0 280px !important;
        width: 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;
    }
}
/* ==========================================
   CAROUSEL WRAPPER & NAVIGATION BUTTONS
   ========================================== */

/* 1. Обгортка каруселі (обов'язково relative, щоб тримати кнопки) */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 2. Загальний дизайн кнопок-стрілочок */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--glow-color, #d4af37);
    color: var(--glow-color, #d4af37);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.carousel-btn:hover {
    background: var(--glow-color, #d4af37);
    color: #000;
    box-shadow: 0 0 15px var(--glow-color, #d4af37);
}

/* 3. Розставляємо їх по боках (трохи виступають за краї) */
.left-btn { 
    left: -20px; 
}

.right-btn { 
    right: -20px; 
}

/* 4. На мобільних екранах кнопки ховаємо (працює свайп пальцем) */
@media (max-width: 768px) {
    .carousel-btn { 
        display: none !important; 
    }
}
/* ==========================================
   3. UNIFIED INSIGHT CARDS (Спільний дизайн карток)
   ========================================== */
.insight-card {
    background: var(--bg-panel);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glow-color-dim);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 430px; /* Єдина висота для сітки та каруселі */
    width: 100%;
    box-sizing: border-box;
}

.insight-card:hover {
    transform: translateY(-8px);
    border-color: var(--glow-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px var(--glow-color-dim);
}

.insight-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Медіа-блок (Зображення та SVG) */
.insight-img-box {
    width: 100%;
    height: 180px;
    min-height: 180px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(circle at center, rgba(180, 140, 255, 0.15) 0%, rgba(15, 23, 42, 0.8) 100%);
    flex-shrink: 0;
}

.insight-img-box.svg-box {
    background: rgba(5, 7, 10, 0.7); /* або radial-gradient для зодіаку */
}

.insight-img-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.insight-card:hover .insight-img-box img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* Зодіакальна анімація */
.zodiac-svg-wrapper {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.zodiac-svg-wrapper .zodiac-svg-icon {
    width: 100%;
    height: 100%;
}

.insight-card[data-zodiac]:hover {
    border-color: var(--zodiac-aura, var(--glow-color));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--zodiac-aura, var(--glow-color-dim));
}

.insight-card[data-zodiac]:hover .zodiac-svg-wrapper {
    transform: scale(1.15);
    filter: drop-shadow(0 0 12px var(--zodiac-aura, var(--glow-color)));
}

/* Бейджі (Planet / Zodiac) */
.insight-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(5, 7, 10, 0.85);
    border: 1px solid var(--glow-color);
    color: var(--glow-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

/* Текстовий контент картки */
.insight-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    box-sizing: border-box;
}

.insight-body h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
    color: var(--text-main);
    margin: 0 0 8px 0;
    line-height: 1.3;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    transition: color 0.3s ease;
}

.insight-card:hover .insight-body h3 {
    color: var(--glow-color);
}

.insight-body p {
    font-family: sans-serif;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3em;
}

.insight-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
    font-family: sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.insight-footer .read-more {
    color: var(--glow-color);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================
   4. NAVIGATION BUTTONS
   ========================================== */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--glow-color, #d4af37);
    color: var(--glow-color, #d4af37);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.carousel-btn:hover {
    background: var(--glow-color, #d4af37);
    color: #000;
    box-shadow: 0 0 15px var(--glow-color, #d4af37);
}

.left-btn { left: -20px; }
.right-btn { right: -20px; }

/* ==========================================
   5. RESPONSIVE DESIGN (Адаптивність)
   ========================================== */
@media (max-width: 1024px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    .left-btn { left: -10px; }
    .right-btn { right: -10px; }
}

@media (max-width: 768px) {
    /* Ховаємо стрілки каруселі на мобільних (працює свайп) */
    .carousel-btn { 
        display: none !important; 
    }
    
    /* Відступи для каруселі на мобільному */
    .carousel-wrapper .insights-grid {
        gap: 15px !important;
        padding: 10px 0 !important;
    }
    
    /* Трохи звужуємо картки в каруселі, щоб було видно шматочок наступної */
    .carousel-wrapper .insight-card {
        flex: 0 0 280px !important;
        width: 280px !important;
        min-width: 280px !important;
    }
    
    /* Основна сітка статей (articles.html) стає в 1 колонку */
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Accessibility / SEO Fallback */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==========================================
   COOKIE BANNER
   ========================================== */
.cookie-banner { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: calc(100% - 40px); max-width: 720px; background-color: #121212; border: 1px solid rgba(212, 175, 55, 0.4); border-radius: 8px; padding: 18px 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85); z-index: 9999; opacity: 1; transition: opacity 0.4s ease, transform 0.4s ease; font-family: inherit; }
.cookie-banner:focus { outline: 2px solid #d4af37; outline-offset: 4px; }
.cookie-banner.hidden { opacity: 0; pointer-events: none; transform: translate(-50%, 20px); }
.cookie-content { display: flex; flex-direction: column; gap: 16px; align-items: center; }
@media (min-width: 680px) { .cookie-content { flex-direction: row; justify-content: space-between; } }
.cookie-text { color: #e0e0e0; font-size: 0.85rem; line-height: 1.5; margin: 0; }
.cookie-link { color: #d4af37; text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
@media (min-width: 680px) { .cookie-actions { width: auto; flex-shrink: 0; flex-wrap: nowrap; } }
.cookie-btn { flex: 1; padding: 8px 14px; font-size: 0.8rem; font-weight: 600; border-radius: 4px; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; text-align: center; }
.btn-primary { background-color: #d4af37; color: #000000; border: 1px solid #d4af37; }
.btn-primary:hover { background-color: #f1c40f; }
.btn-secondary { background-color: transparent; color: #cccccc; border: 1px solid #555555; }
.btn-secondary:hover { border-color: #d4af37; color: #ffffff; }
.btn-reject { background-color: rgba(255, 255, 255, 0.05); color: #e06c75; border: 1px solid rgba(224, 108, 117, 0.4); }
.btn-reject:hover { background-color: rgba(224, 108, 117, 0.15); border-color: #e06c75; color: #ffffff; }
