:root { 
    --accent: #d4af37; 
    --bg: #030305; 
    --glass: rgba(255, 255, 255, 0.05); 
}

* {
    box-sizing: border-box;
}

body { 
    margin: 0; 
    background: var(--bg); 
    color: #fff; 
    font-family: 'Inter', sans-serif; 
    overflow-x: hidden; 
}

#particles-js { 
    position: fixed; 
    inset: 0; 
    z-index: -1; 
}

#particles-js canvas { 
    filter: drop-shadow(0 0 12px var(--accent)); 
}

/* ===== WELCOME SCREEN — FULL-PAGE LANDING ===== */
.welcome-overlay {
    position: fixed;
    inset: 0;
    background: #030305;
    z-index: 2000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Decorative gold glow layer */
.welcome-overlay::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 50vh;
    background: radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Top border line */
.welcome-overlay::before {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    flex-shrink: 0;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 30%, var(--accent) 70%, transparent 100%);
}

.welcome-card {
    width: 100%;
    max-width: 900px;
    padding: 60px 70px 50px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Star / icon accent above title */
.welcome-card::before {
    content: '✦';
    display: block;
    font-size: 1.4rem;
    color: var(--accent);
    opacity: 0.6;
    margin-bottom: 18px;
    letter-spacing: 0.2em;
}

.welcome-card h1 {
    font-family: 'Cinzel';
    font-size: 3rem;
    letter-spacing: 12px;
    color: var(--accent);
    margin: 0 0 14px;
    text-shadow: 0 0 40px rgba(212,175,55,0.4);
}

.welcome-subtitle {
    font-size: 0.78rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0;
}

/* Divider after subtitle */
.welcome-subtitle::after {
    content: '';
    display: block;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 30px auto 0;
}

.welcome-content {
    margin: 30px 0 0;
    text-align: left;
    line-height: 1.8;
    width: 100%;
}

.welcome-content > p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 0;
    text-align: center;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 36px;
    width: 100%;
}

.welcome-box {
    background: rgba(255,255,255,0.03);
    padding: 24px 22px;
    border-radius: 14px;
    border: 1px solid rgba(212,175,55,0.15);
    text-align: left;
    line-height: 1.7;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    transition: border-color 0.3s;
}

.welcome-box:hover {
    border-color: rgba(212,175,55,0.35);
}

.welcome-box label {
    display: block;
    color: var(--accent);
    font-size: 0.62rem;
    letter-spacing: 2.5px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.welcome-box label + label {
    margin-top: 18px;
}

/* CTA area */
.welcome-checkbox {
    margin: 36px 0 20px;
    text-align: center;
}

.welcome-checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: rgba(255,255,255,0.55);
    font-size: 0.82rem;
    justify-content: center;
}

.welcome-checkbox input[type="checkbox"] {
    width: 17px;
    height: 17px;
    cursor: pointer;
    accent-color: var(--accent);
}

.welcome-clear-btn {
    background: transparent;
    border: none;
    color: rgba(212, 175, 55, 0.35);
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.68rem;
    letter-spacing: 1px;
    margin-top: 20px;
    transition: color 0.3s;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.welcome-clear-btn:hover {
    color: rgba(212, 175, 55, 0.7);
}

/* ===== MAIN CONTAINER ===== */
.app-container { 
    max-width: 800px; 
    margin: 0 auto; 
    padding: 36px 20px; 
    text-align: center; 
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.sacred-title { 
    font-family: 'Cinzel'; 
    font-size: 2.2rem; 
    letter-spacing: 10px; 
    color: var(--accent); 
    margin-bottom: 6px; 
    line-height: 1.2;
}

.tagline { 
    font-size: 0.68rem; 
    letter-spacing: 4px; 
    opacity: 0.6; 
    margin-bottom: 14px; 
}

/* Install Button */
header .install-button {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 10px auto 20px auto;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

header .install-button:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

header .install-button.pulse {
    animation: pulse-button 2s infinite;
}

@keyframes pulse-button {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    50% { box-shadow: 0 0 0 8px rgba(212, 175, 55, 0); }
}

.install-icon { font-size: 1rem; }

/* Animated Info Button */
.btn-info-animated {
    position: relative;
    background: transparent;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: rgba(212, 175, 55, 0.6);
    padding: 7px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-info-animated:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.15));
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
    border-color: #ffd700;
}

.btn-info-animated .btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
    animation: slideGlow 3s infinite;
}

@keyframes slideGlow {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.btn-info-animated .btn-text {
    position: relative;
    z-index: 1;
}

/* ===== SEARCH SECTION ===== */
.search-section input { 
    background: transparent; 
    border: none; 
    border-bottom: 2px solid var(--accent); 
    color: #fff; 
    font-size: 3.5rem; 
    width: 280px; 
    text-align: center; 
    outline: none; 
    margin-bottom: 20px; 
}

.search-section input::placeholder {
    font-size: 1rem;
    letter-spacing: 3px;
    color: rgba(212, 175, 55, 0.4);
    font-family: 'Cinzel', serif;
    animation: placeholderPulse 2.5s ease-in-out infinite;
}

@keyframes placeholderPulse {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 0.9; }
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] { -moz-appearance: textfield; }

.btn-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 320px;
    margin: 0 auto;
}

.btn-main { 
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.08));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--accent); 
    color: var(--accent); 
    padding: 9px 16px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 2px; 
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.08);
    flex: 1;
}

.btn-main:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.4), rgba(212, 175, 55, 0.25));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    border-color: #ffd700;
}

.btn-sub { 
    background: rgba(212, 175, 55, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.4); 
    color: var(--accent); 
    padding: 9px 16px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-size: 0.78rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.04);
    flex: 1;
}

.btn-sub:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--accent);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.15);
    transform: translateY(-1px);
}

.hidden { display: none; }

/* ===== PORTAL CARD ===== */
.portal-card { 
    background: var(--glass); 
    backdrop-filter: blur(35px); 
    border: 1px solid rgba(212, 175, 55, 0.2); 
    border-radius: 28px; 
    padding: 32px; 
    text-align: center; 
}

.card-top { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 18px; 
}

.hz-badge { 
    padding: 7px 16px; 
    border: 1px solid var(--accent); 
    color: var(--accent); 
    border-radius: 20px; 
    font-weight: 600; 
    font-size: 0.9rem; 
    letter-spacing: 1px; 
}

.num-badge { 
    padding: 7px 16px; 
    border: 1px solid var(--accent); 
    color: var(--accent); 
    border-radius: 20px; 
    font-weight: 600; 
    font-size: 1.4rem; 
    letter-spacing: 2px; 
}

/* ===== GEOMETRY VISUAL ===== */
.geo-visual-container { 
    width: 180px; 
    height: 220px; 
    margin: 18px auto; 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

.shape-canvas { 
    width: 180px; 
    height: 180px; 
    animation: geo-pulse 4s infinite ease-in-out; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

@keyframes geo-pulse { 
    0%, 100% { transform: scale(1); filter: brightness(1) drop-shadow(0 0 8px var(--accent)); } 
    50% { transform: scale(1.08); filter: brightness(1.5) drop-shadow(0 0 15px var(--accent)); } 
}

.geo-svg { 
    width: 100%; 
    height: 100%; 
    color: var(--accent);
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.6));
}

.geometry-name-display {
    font-family: 'Cinzel';
    font-size: 1.1rem;
    letter-spacing: 3px;
    color: var(--accent);
    text-align: center;
    margin-top: 15px;
    opacity: 0;
    animation: fadeInName 1s ease-in-out 0.5s forwards;
}

@keyframes fadeInName {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== RESONANCE TITLE ===== */
.resonance-title {
    font-family: 'Cinzel';
    font-size: 1.4rem;
    letter-spacing: 4px;
    color: var(--accent);
    margin: 14px 0;
}

/* ===== PREVIEW CONTENT ===== */
.preview-content {
    max-width: 640px;
    margin: 0 auto 24px;
    line-height: 1.8;
    color: #ccc;
    font-size: 0.93rem;
    text-align: center;
    padding: 0 8px;
}

/* ===== FREQUENCY SECTION ===== */
.frequency-section {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 18px;
    padding: 18px;
    margin: 18px 0;
}

.frequency-title {
    font-family: 'Cinzel';
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 12px;
}

.visualiser-container { 
    width: 100%; 
    height: 60px; 
    margin-bottom: 12px; 
    background: rgba(0,0,0,0.5); 
    border-radius: 10px; 
    overflow: hidden;
}

#waveform { 
    width: 100%; 
    height: 100%; 
    background: #000000;
}

.frequency-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(212, 175, 55, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.volume-control label {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 600;
}

.volume-slider {
    width: 120px;
    height: 6px;
    border-radius: 5px;
    background: rgba(212, 175, 55, 0.2);
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

#volumeValue {
    font-size: 0.85rem;
    color: var(--accent);
    min-width: 35px;
    font-weight: 600;
}

.play-pause-btn {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.15));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 12px 35px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

.play-pause-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.4), rgba(212, 175, 55, 0.25));
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.play-pause-btn.playing {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.5), rgba(212, 175, 55, 0.35));
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(212, 175, 55, 0.5); }
    50% { box-shadow: 0 0 25px rgba(212, 175, 55, 0.9); }
}

/* ===== DRAWER BUTTONS ===== */
.drawer-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.drawer-btn {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.drawer-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
}

.drawer-btn-icon {
    font-size: 1.2rem;
    color: var(--accent);
    min-width: 24px;
    text-align: center;
}

.drawer-btn-text {
    flex: 1;
    font-family: 'Cinzel';
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #fff;
}

.drawer-btn-arrow {
    font-size: 1.2rem;
    color: var(--accent);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.drawer-btn:hover .drawer-btn-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* ===== FULL-SCREEN DRAWERS ===== */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0c 0%, #050507 100%);
    z-index: 3000;
    transition: right 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.drawer.active {
    right: 0;
}

.drawer-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.drawer-header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0,0,0,0.5);
    flex-shrink: 0;
}

.drawer-close {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.drawer-close:hover {
    background: var(--accent);
    color: #000;
}

.drawer-title {
    font-family: 'Cinzel';
    font-size: 1.4rem;
    letter-spacing: 4px;
    color: var(--accent);
    flex: 1;
    margin: 0;
}

.drawer-number {
    padding: 8px 18px;
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    -webkit-overflow-scrolling: touch;
}

/* ===== DRAWER CONTENT STYLES ===== */
.dive-text {
    font-size: 1.1rem;
    line-height: 2;
    color: #ddd;
    margin-bottom: 40px;
}

.meanings-title {
    font-family: 'Cinzel';
    font-size: 1.1rem;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.meaning-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.meaning-list li {
    padding: 15px 0;
    padding-left: 30px;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    line-height: 1.7;
    color: #ccc;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.meaning-list li::before {
    content: '◈';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.action-list li::before {
    content: '⚡';
}

.drawer-intro {
    color: rgba(255,255,255,0.6);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* ===== GEOMETRY DRAWER ===== */
.drawer-geo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.drawer-geo-visual {
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: geo-pulse 4s infinite ease-in-out;
}

.geo-name-badge {
    font-family: 'Cinzel';
    font-size: 1.5rem;
    letter-spacing: 4px;
    color: var(--accent);
    margin-top: 20px;
    padding: 15px 30px;
    border: 2px solid var(--accent);
    border-radius: 15px;
    background: rgba(212, 175, 55, 0.05);
}

.geo-description {
    font-size: 1.1rem;
    line-height: 2;
    color: #ccc;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== VIBRATIONAL DRAWER ===== */
.vibe-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.vibe-card {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
}

.vibe-card label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 15px;
    font-weight: bold;
}

.vibe-value {
    font-size: 1.3rem;
    color: #fff;
    font-weight: 300;
    display: block;
    margin-bottom: 15px;
}

.vibe-description {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.6);
    margin-top: 15px;
    text-align: center;
    text-wrap: balance;
    word-spacing: 0.05em;
}

/* ===== ACTION DRAWER EXPANDED ===== */
.action-intro-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.action-intro-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
    text-align: center;
    text-wrap: balance;
}

.action-section-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.action-list li {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 18px 20px 18px 45px;
    margin-bottom: 12px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
    text-wrap: balance;
}

.action-list li:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.3);
}

.action-reminder-box {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.action-reminder-icon {
    color: var(--accent);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.action-reminder-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
    font-style: italic;
    text-wrap: balance;
}

/* ===== EXPORT BUTTON STYLE ===== */
.drawer-btn.export-btn {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.08));
    grid-column: 1 / -1;
}

/* When export + journal sit side by side, each takes one grid cell */
.drawer-btn.half-btn {
    grid-column: auto;
}

/* ===== EXPORT MODAL ===== */
.export-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.export-modal.active {
    display: flex;
}

.export-modal-content {
    background: #08080a;
    border: 1px solid var(--accent);
    border-radius: 25px;
    padding: 30px;
    width: fit-content;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.export-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.export-modal-close:hover {
    background: var(--accent);
    color: #000;
}

.export-modal-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    letter-spacing: 4px;
    color: var(--accent);
    text-align: center;
    margin-bottom: 25px;
    padding-right: 50px;
    padding-left: 50px;
}

/* ===== EXPORT CARD DESIGN ===== */
.export-card-preview {
    background: #000;
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 25px;
}

/* ===== EXPORT MODE TOGGLE ===== */
.export-mode-toggle {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.export-mode-btn {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: rgba(212, 175, 55, 0.6);
    padding: 9px 22px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-family: 'Cinzel', serif;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 7px;
}

.export-mode-btn .mode-icon {
    font-size: 0.7rem;
    opacity: 0.7;
}

.export-mode-btn.active {
    background: rgba(212, 175, 55, 0.18);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

.export-mode-btn:hover:not(.active) {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.5);
    color: rgba(212, 175, 55, 0.85);
}

/* ===== EXPORT CARD — SHARED BASE ===== */
.export-card {
    background: linear-gradient(135deg, #0a0a0c 0%, #050507 100%);
    border: 2px solid var(--accent);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.export-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    z-index: 1;
}

/* ===== SHARED INNER ELEMENTS ===== */
.export-card-logo {
    font-family: 'Cinzel', serif;
    letter-spacing: 3px;
    color: var(--accent);
    opacity: 0.8;
    text-align: center;
}

.export-card-number {
    font-family: 'Cinzel', serif;
    font-weight: bold;
    color: var(--accent);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
    line-height: 1;
}

.export-card-title {
    font-family: 'Cinzel', serif;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.4;
}

.export-card-geometry {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.export-geo-shape {
    margin: 0 auto;
}

.export-geo-shape svg {
    width: 100%;
    height: 100%;
    color: var(--accent);
}

.export-geo-name {
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
    opacity: 0.8;
}

.export-card-footer {
    letter-spacing: 2px;
    color: rgba(212, 175, 55, 0.5);
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.export-card-divider {
    display: none;
}

.export-card-message {
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(212, 175, 55, 0.05);
    border-radius: 10px;
    border-left: 2px solid rgba(212, 175, 55, 0.3);
}

.export-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.export-card-item {
    background: rgba(212, 175, 55, 0.07);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 8px;
}

.export-card-item label {
    display: block;
    letter-spacing: 2px;
    color: var(--accent);
    opacity: 0.9;
}

.export-card-item span {
    color: #fff;
}

.export-card-actions {
    background: rgba(212, 175, 55, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.export-card-actions-title {
    letter-spacing: 2px;
    color: var(--accent);
    text-align: center;
    opacity: 0.9;
}

.export-card-actions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.export-card-actions li {
    color: rgba(255, 255, 255, 0.78);
    position: relative;
    line-height: 1.35;
    break-inside: avoid;
}

.export-card-actions li::before {
    content: '◈';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ===== LANDSCAPE MODE ===== */
.export-card.landscape {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 620px;
    min-height: 400px;
}

.export-card.landscape .export-card-left {
    width: 36%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 22px 16px 16px;
    text-align: center;
    border-right: 1px solid rgba(212, 175, 55, 0.2);
    background: linear-gradient(180deg, rgba(212,175,55,0.04) 0%, transparent 100%);
}

.export-card.landscape .export-card-logo { font-size: 0.6rem; width: 100%; margin-bottom: 4px; }
.export-card.landscape .export-card-number { font-size: 2.8rem; margin: 4px 0; }
.export-card.landscape .export-card-title { font-size: 0.72rem; letter-spacing: 1.5px; margin-bottom: 6px; }

.export-card.landscape .export-card-geometry {
    flex: 1;
    justify-content: center;
    padding: 8px 0;
    gap: 6px;
}

.export-card.landscape .export-geo-shape { width: 100px; height: 100px; }
.export-card.landscape .export-geo-name { font-size: 0.58rem; margin-top: 4px; }
.export-card.landscape .export-card-footer { font-size: 0.55rem; padding-top: 10px; width: 100%; margin-top: 6px; }

.export-card.landscape .export-card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px 18px 16px;
    gap: 12px;
    min-width: 0;
}

.export-card.landscape .export-card-message { font-size: 0.72rem; padding: 11px 13px; flex-shrink: 0; }
.export-card.landscape .export-card-item { padding: 8px 9px; }
.export-card.landscape .export-card-item label { font-size: 0.47rem; margin-bottom: 3px; }
.export-card.landscape .export-card-item span { font-size: 0.72rem; }
.export-card.landscape .export-card-actions { padding: 9px 11px; flex-shrink: 0; }
.export-card.landscape .export-card-actions-title { font-size: 0.52rem; margin-bottom: 7px; }
.export-card.landscape .export-card-actions ul { columns: 2; column-gap: 14px; }
.export-card.landscape .export-card-actions li { font-size: 0.65rem; padding: 3px 0 3px 15px; }
.export-card.landscape .export-card-actions li::before { font-size: 0.52rem; top: 4px; }

/* ===== PORTRAIT MODE ===== */
.export-card.portrait {
    display: flex;
    flex-direction: column;
    width: 360px;
}

.export-card.portrait .export-card-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 20px 16px;
    text-align: center;
    border-right: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    background: linear-gradient(180deg, rgba(212,175,55,0.06) 0%, transparent 100%);
    gap: 6px;
}

.export-card.portrait .export-card-logo { font-size: 0.58rem; }
.export-card.portrait .export-card-number { font-size: 3rem; margin: 2px 0; }
.export-card.portrait .export-card-title { font-size: 0.7rem; letter-spacing: 1.5px; margin: 0; }

.export-card.portrait .export-card-geometry { padding: 8px 0 4px; gap: 6px; }
.export-card.portrait .export-geo-shape { width: 90px; height: 90px; }
.export-card.portrait .export-geo-name { font-size: 0.58rem; }
.export-card.portrait .export-card-footer { font-size: 0.55rem; padding-top: 10px; width: 100%; margin-top: 4px; }

.export-card.portrait .export-card-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 16px 18px 16px;
    gap: 12px;
}

.export-card.portrait .export-card-message { font-size: 0.72rem; padding: 11px 13px; }
.export-card.portrait .export-card-item { padding: 8px 10px; }
.export-card.portrait .export-card-item label { font-size: 0.47rem; margin-bottom: 3px; }
.export-card.portrait .export-card-item span { font-size: 0.72rem; }
.export-card.portrait .export-card-actions { padding: 10px 12px; }
.export-card.portrait .export-card-actions-title { font-size: 0.52rem; margin-bottom: 7px; }
.export-card.portrait .export-card-actions ul { columns: 1; }
.export-card.portrait .export-card-actions li { font-size: 0.67rem; padding: 4px 0 4px 15px; }
.export-card.portrait .export-card-actions li::before { font-size: 0.52rem; top: 5px; }

/* ===== EXPORT BUTTONS ===== */
.export-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.export-btn-action {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 15px 25px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.export-btn-action:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

/* ===== TEXT ORPHAN PREVENTION ===== */
.dive-text,
.geo-description,
.drawer-intro,
.meaning-list li,
.vibe-description {
    text-wrap: balance;
    word-spacing: 0.05em;
}

.preview-content p {
    text-wrap: pretty;
    overflow-wrap: break-word;
    word-break: normal;
}

@supports not (text-wrap: balance) {
    .dive-text,
    .geo-description,
    .drawer-intro,
    .meaning-list li,
    .vibe-description {
        text-align: justify;
        hyphens: auto;
    }
}

/* ===== BINAURAL BEAT INDICATOR ===== */
.play-btn.binaural {
    background: linear-gradient(135deg, rgba(147, 112, 219, 0.3), rgba(212, 175, 55, 0.2));
    border-color: #9370db;
}

.play-btn.binaural:hover {
    background: linear-gradient(135deg, rgba(147, 112, 219, 0.5), rgba(212, 175, 55, 0.3));
    box-shadow: 0 8px 25px rgba(147, 112, 219, 0.4);
}

.hz-badge.binaural {
    border-color: #9370db;
    color: #9370db;
}

.binaural-notice {
    background: linear-gradient(135deg, rgba(147, 112, 219, 0.15), rgba(147, 112, 219, 0.05));
    border: 1px solid rgba(147, 112, 219, 0.4);
    border-radius: 12px;
    padding: 15px 20px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.binaural-notice-icon {
    font-size: 1.5rem;
}

.binaural-notice-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.binaural-notice-text strong {
    color: #9370db;
}

/* ===== FOOTER ===== */
.app-footer {
    margin-top: 50px;
    padding: 25px 20px 20px;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

.footer-links {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-btn {
    background: rgba(212, 175, 55, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(212, 175, 55, 0.4);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.footer-btn:hover {
    border-color: var(--accent);
    background: rgba(212, 175, 55, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.footer-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #ffd700;
    text-decoration: underline;
}

.footer-divider {
    color: rgba(212, 175, 55, 0.5);
    font-size: 1.2rem;
}

.footer-copyright {
    margin-top: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

.footer-copyright a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: #ffd700;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .sacred-title {
        font-size: 1.8rem;
        letter-spacing: 5px;
    }
    
    .tagline {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }
    
    .welcome-card {
        padding: 40px 24px 40px;
    }
    
    .welcome-card h1 {
        font-size: 2rem;
        letter-spacing: 7px;
    }
    
    .welcome-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-info-animated {
        padding: 12px 25px;
        font-size: 0.75rem;
    }
    
    .search-section input {
        font-size: 3rem;
        width: 260px;
    }

    .search-section input::placeholder {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .btn-main, .btn-sub {
        padding: 9px 20px;
        font-size: 0.75rem;
        width: 100%;
    }
    
    .portal-card {
        padding: 30px 20px;
        border-radius: 25px;
    }
    
    .card-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    .hz-badge, .num-badge {
        padding: 10px 18px;
        font-size: 1rem;
    }
    
    .geo-visual-container {
        width: 180px;
        height: 230px;
    }
    
    .shape-canvas {
        width: 180px;
        height: 180px;
    }
    
    .resonance-title {
        font-size: 1.4rem;
        letter-spacing: 3px;
    }
    
    .preview-content {
        font-size: 0.95rem;
    }
    
    .frequency-section {
        padding: 20px 15px;
    }
    
    .drawer-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .drawer-btn {
        padding: 18px 15px;
    }
    
    .drawer-btn-text {
        font-size: 0.8rem;
    }
    
    /* Drawer Mobile */
    .drawer-header {
        padding: 20px 15px;
        gap: 12px;
    }
    
    .drawer-close {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .drawer-title {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .drawer-number {
        padding: 6px 12px;
        font-size: 1rem;
    }
    
    .drawer-body {
        padding: 20px 15px;
    }
    
    .dive-text {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .drawer-geo-visual {
        width: 220px;
        height: 220px;
    }
    
    .geo-name-badge {
        font-size: 1.2rem;
        padding: 12px 20px;
    }
    
    .geo-description {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .vibe-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .vibe-card {
        padding: 25px 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-divider {
        display: none;
    }
    
    /* Export Modal Mobile — keeps landscape layout */
    .export-modal-content {
        padding: 16px 12px;
        border-radius: 16px;
        max-width: 98vw;
        width: fit-content;
    }

    .export-modal-title {
        font-size: 0.85rem;
        letter-spacing: 2px;
        margin-top: 8px;
        padding-right: 45px;
        padding-left: 10px;
        text-align: left;
    }

    .export-card {
        flex-direction: row;
        min-height: 300px;
    }

    .export-card-left {
        width: 34%;
        padding: 14px 10px 12px;
    }

    .export-card-number {
        font-size: 2rem;
    }

    .export-card-title {
        font-size: 0.65rem;
    }

    .export-geo-shape {
        width: 80px;
        height: 80px;
    }

    .export-card-right {
        padding: 14px 12px 12px;
        gap: 10px;
    }

    .export-card-message {
        font-size: 0.67rem;
        line-height: 1.5;
        padding: 10px;
    }

    .export-card-item label {
        font-size: 0.44rem;
    }

    .export-card-item span {
        font-size: 0.67rem;
    }

    .export-card-actions ul {
        columns: 1;
    }

    .export-card-actions li {
        font-size: 0.62rem;
    }

    .export-buttons {
        flex-direction: column;
    }

    .export-btn-action {
        width: 100%;
        justify-content: center;
    }
    
    /* Action Drawer Mobile */
    .action-intro-box {
        padding: 20px 15px;
    }
    
    .action-intro-text {
        font-size: 0.9rem;
    }
    
    .action-reminder-box {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
}

@media (max-width: 400px) {
    .app-container {
        padding: 40px 15px;
    }

    .card-top {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .vibe-grid {
        grid-template-columns: 1fr;
    }
    
    .sacred-title {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }
    
    .search-section input {
        font-size: 2.5rem;
        width: 240px;
    }

    .search-section input::placeholder {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }
}

/* Prevent body scroll when drawer is open */
body.drawer-open {
    overflow: hidden;
}
/* Welcome screen — constrain Enter Portal button */
.welcome-card .btn-main {
    flex: none;
    width: auto;
    min-width: 240px;
    padding: 14px 48px;
    font-size: 0.82rem;
    letter-spacing: 3px;
}

/* Scrollbar styling for welcome overlay */
.welcome-overlay::-webkit-scrollbar {
    width: 6px;
}

.welcome-overlay::-webkit-scrollbar-track {
    background: transparent;
}

.welcome-overlay::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.4);
    border-radius: 10px;
}

.welcome-overlay::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}
/* ===== JOURNAL ===== */
.journal-number-badge {
    display: inline-block;
    padding: 4px 14px;
    border: 1px solid var(--accent);
    border-radius: 20px;
    color: var(--accent);
    font-size: 0.8rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.journal-entry-form {
    background: rgba(212, 175, 55, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.journal-entry-form h3 {
    font-family: 'Cinzel', serif;
    color: var(--accent);
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin: 0 0 14px 0;
}

.journal-textarea {
    width: 100%;
    min-height: 150px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    color: #ddd;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 14px 16px;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.journal-textarea:focus {
    border-color: rgba(212, 175, 55, 0.5);
}

.journal-textarea::placeholder {
    color: rgba(255,255,255,0.2);
    font-style: italic;
}

.journal-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.journal-save-btn {
    padding: 10px 22px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 8px;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.journal-save-btn:hover {
    background: #ffd700;
    transform: translateY(-1px);
}

.journal-export-btn {
    padding: 10px 22px;
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 8px;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.journal-export-btn:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: var(--accent);
}

.journal-entries-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.journal-entries-header h3 {
    font-family: 'Cinzel', serif;
    color: var(--accent);
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin: 0;
}

.journal-clear-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.25);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.journal-clear-btn:hover {
    border-color: rgba(255,80,80,0.4);
    color: rgba(255,80,80,0.6);
}

.journal-empty {
    text-align: center;
    color: rgba(255,255,255,0.2);
    font-style: italic;
    padding: 40px 20px;
    font-size: 0.9rem;
    line-height: 1.8;
}

.journal-entry-card {
    background: rgba(212, 175, 55, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 14px;
    transition: border-color 0.3s ease;
}

.journal-entry-card:hover {
    border-color: rgba(212, 175, 55, 0.25);
}

.journal-entry-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.journal-entry-number {
    font-family: 'Cinzel', serif;
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 2px;
    padding: 3px 10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
}

.journal-entry-date {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.25);
}

.journal-entry-title {
    font-size: 0.72rem;
    color: rgba(212, 175, 55, 0.45);
    font-family: 'Cinzel', serif;
    margin-left: auto;
}

.journal-entry-text {
    color: #bbb;
    font-size: 0.9rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.journal-entry-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.journal-delete-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.15);
    font-size: 0.7rem;
    cursor: pointer;
    letter-spacing: 1px;
    padding: 4px 8px;
    transition: color 0.3s ease;
}

.journal-delete-btn:hover {
    color: rgba(255,80,80,0.6);
}

.journal-saved-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: rgba(212, 175, 55, 0.92);
    color: #000;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.journal-saved-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ===== JOURNAL SELECT BAR ===== */
.journal-select-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: rgba(212, 175, 55, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 10px;
}

.journal-select-all {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: rgba(212, 175, 55, 0.7);
    user-select: none;
}

.journal-select-all input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.journal-select-all input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.journal-select-all input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: 2px solid #000;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.journal-select-all input[type="checkbox"]:indeterminate {
    background: rgba(212, 175, 55, 0.3);
    border-color: var(--accent);
}

.journal-select-all input[type="checkbox"]:indeterminate::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 6px;
    width: 8px;
    height: 2px;
    background: var(--accent);
}

.journal-export-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.journal-theme-btn {
    padding: 7px 14px;
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 6px;
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.journal-theme-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--accent);
}

.journal-theme-dark-btn {
    color: rgba(212, 175, 55, 0.6);
    border-color: rgba(212, 175, 55, 0.2);
}

/* ===== JOURNAL ENTRY CHECKBOX ===== */
.journal-checkbox-wrap {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.journal-checkbox-wrap input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.journal-checkbox-wrap input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.journal-checkbox-wrap input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: 2px solid #000;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* ===== FULL ACTIONS LAYOUT ===== */
.actions-full {
    list-style: none;
    padding: 0;
    margin: 0;
}

.action-intro {
    font-size: 1rem;
    line-height: 1.85;
    color: #ccc;
    margin: 0 0 28px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.action-step {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.action-step:last-of-type {
    border-bottom: none;
}

.action-step-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 10px;
}

.action-step-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    font-size: 0.75rem;
    font-family: 'Cinzel', serif;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.action-step-title {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    color: var(--accent);
    line-height: 1.5;
}

.action-step-body {
    font-size: 0.95rem;
    line-height: 1.85;
    color: #bbb;
    margin: 0;
    padding-left: 40px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.action-closing {
    font-size: 0.95rem;
    line-height: 1.85;
    color: #ccc;
    margin: 28px 0 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    font-style: italic;
}

/* ===== DECODE BUTTON NUDGE ===== */
@keyframes btnNudge {
    0%   { transform: translateY(0);    box-shadow: 0 2px 10px rgba(212,175,55,0.08); border-color: var(--accent); }
    15%  { transform: translateY(-4px); box-shadow: 0 0 28px rgba(212,175,55,0.7);   border-color: #ffd700; background: linear-gradient(135deg,rgba(212,175,55,0.5),rgba(212,175,55,0.3)); }
    30%  { transform: translateY(-1px); box-shadow: 0 0 14px rgba(212,175,55,0.4);   border-color: var(--accent); }
    45%  { transform: translateY(-4px); box-shadow: 0 0 28px rgba(212,175,55,0.7);   border-color: #ffd700; background: linear-gradient(135deg,rgba(212,175,55,0.5),rgba(212,175,55,0.3)); }
    60%  { transform: translateY(-1px); box-shadow: 0 0 14px rgba(212,175,55,0.4); }
    75%  { transform: translateY(-3px); box-shadow: 0 0 20px rgba(212,175,55,0.5);   border-color: #ffd700; }
    100% { transform: translateY(0);    box-shadow: 0 2px 10px rgba(212,175,55,0.08); border-color: var(--accent); }
}

.btn-nudge {
    animation: btnNudge 0.9s ease forwards !important;
}