:root {
    /* Colors */
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #252525;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #3b82f6;
    /* Blue like the benchmark */
    --accent-hover: #2563eb;
    --danger-color: #ef4444;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --container-width: 1200px;

    /* Transitions */
    --transition-speed: 0.3s;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.highlight {
    color: var(--accent-color);
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-padding {
    padding: var(--spacing-lg) 0;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Header */
.header {
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Obangsaek Animated Gradient */
.obangsaek-text {
    background: linear-gradient(to right,
            #0066cc 0%,
            #cc0000 10%,
            #ffcc00 20%,
            #ffffff 30%,
            #555555 40%,
            #0066cc 50%,
            #cc0000 60%,
            #ffcc00 70%,
            #ffffff 80%,
            #555555 90%,
            #0066cc 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: flow 4s linear infinite;
    display: inline-block;
}

@keyframes flow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

/* Specific highlight color reset, or let it inherit the gradient */
.logo a .highlight {
    -webkit-text-fill-color: transparent;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-list a {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

.nav-list a:hover {
    color: var(--accent-color);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

.nav-list a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Mobile Nav Styles */
.mobile-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--bg-secondary);
    padding: 2rem 0;
    transform: translateY(-150%);
    transition: transform 0.4s ease-in-out;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 999;
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav-list {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.mobile-nav-list li a {
    display: block;
    font-size: 1.2rem;
    padding: 0.5rem;
    color: var(--text-primary);
}

.btn-login-nav {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-login-nav:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 70px;
    justify-content: center;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.centered {
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* Global Starry Background */
.star-bg-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    z-index: -1;
    pointer-events: none;
}

.star-bg-fixed::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(1px 1px at 20% 30%, #ffffff 50%, transparent),
        radial-gradient(1px 1px at 40% 70%, #ffffff 50%, transparent),
        radial-gradient(1px 1px at 60% 40%, #ffffff 50%, transparent),
        radial-gradient(2px 2px at 80% 80%, #ffffff 50%, transparent),
        radial-gradient(2px 2px at 10% 90%, #ffffff 50%, transparent),
        radial-gradient(1px 1px at 50% 50%, #ffffff 50%, transparent),
        radial-gradient(2px 2px at 90% 10%, #ffffff 50%, transparent);
    background-size: 50% 50%;
    opacity: 0.3;
    animation: stars 100s linear infinite;
}

.star-bg-fixed::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 120%, rgba(59, 130, 246, 0.2), rgba(124, 58, 237, 0.2) 40%, transparent 70%);
    z-index: 0;
}

@keyframes stars {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-100%);
    }
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

/* Intro Section */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--accent-color);
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.intro-card {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    transition: transform var(--transition-speed);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.intro-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.intro-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-image {
    height: 200px;
    background-color: var(--bg-tertiary);
    background-size: cover;
    background-position: center;
}

.img-1 {
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
}

.img-2 {
    background: linear-gradient(45deg, #1f2937, #4b5563);
}

.img-3 {
    background: linear-gradient(45deg, #111827, #374151);
}

.service-content {
    padding: 1.5rem;
}

.text-link {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.text-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    margin-bottom: 0.5rem;
}

.footer-links ul {
    display: flex;
    gap: 1.5rem;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--text-secondary);
}

.footer-social a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse Animation for CTA Button */
.pulse-btn {
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

@keyframes pulse-glow {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .nav-list {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .intro-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Rotation class for reversed cards */
.rotate-180 {
    transform: rotate(180deg);
}

/* Gateway Styles */
.gateway-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.gateway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.gateway-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 4rem 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.gateway-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: all 0.8s ease;
    pointer-events: none;
}

.gateway-card:hover {
    transform: translateY(-8px);
}

.gateway-card:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gateway-card.saju-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.15), inset 0 0 20px rgba(212, 175, 55, 0.05);
}

.gateway-card.saju-card:hover .gateway-icon {
    transform: scale(1.08);
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
}

.gateway-card.tarot-card:hover {
    border-color: rgba(179, 136, 235, 0.4);
    box-shadow: 0 20px 50px rgba(179, 136, 235, 0.15), inset 0 0 20px rgba(179, 136, 235, 0.05);
}

.gateway-card.tarot-card:hover .gateway-icon {
    transform: scale(1.08);
    filter: drop-shadow(0 0 20px rgba(179, 136, 235, 0.4));
}

.gateway-icon {
    font-size: 5rem;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
    line-height: 1;
}

.gateway-title {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 1.5px;
}

.gateway-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 300;
}

/* Manse-ryok Form Styles */
.input-container {
    max-width: 600px;
}

.saju-form {
    background-color: var(--bg-tertiary);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="time"] {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.tarot-input:focus,
.tarot-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.tarot-input:focus,
.tarot-textarea:focus {
    border-color: #B388EB;
    box-shadow: 0 0 15px rgba(179, 136, 235, 0.2);
    background-color: rgba(30, 20, 50, 0.6);
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

.result-section {
    max-width: 800px;
    margin: 2rem auto;
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 12px;
}

.full-width {
    width: 100%;
    margin-top: 1rem;
    font-size: 1.1rem;
    padding: 1rem;
}

.checkbox-group {
    margin-top: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Tarot Form Specific Styles */
.tarot-form {
    background: linear-gradient(145deg, rgba(40, 20, 60, 0.3) 0%, rgba(20, 10, 30, 0.6) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(179, 136, 235, 0.15);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 0 30px rgba(179, 136, 235, 0.05);
}

.tarot-header {
    margin-bottom: 2rem;
}

.tarot-input,
.tarot-select-wrapper select {
    width: 100%;
    padding: 1rem 1.2rem;
    background-color: rgba(15, 10, 25, 0.5);
    border: 1px solid rgba(179, 136, 235, 0.2);
    border-radius: 12px;
    color: #EEDCFF;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.tarot-textarea {
    width: 100%;
    padding: 1.2rem;
    background-color: rgba(15, 10, 25, 0.5);
    border: 1px solid rgba(179, 136, 235, 0.2);
    border-radius: 12px;
    color: #EEDCFF;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    resize: vertical;
    line-height: 1.6;
    font-family: inherit;
}

.tarot-input::placeholder,
.tarot-textarea::placeholder {
    color: rgba(238, 220, 255, 0.3);
}

.tarot-buttons button {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary-tarot {
    background: linear-gradient(135deg, #9b59b6, #6F58C9);
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.3);
}

.btn-primary-tarot:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.5);
    filter: brightness(1.1);
}

.btn-outline-tarot {
    background: transparent;
    color: #D3B8F8;
    border: 1px solid rgba(211, 184, 248, 0.4);
}

.btn-outline-tarot:hover {
    background: rgba(211, 184, 248, 0.1);
    border-color: #D3B8F8;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Tarot Draw Overlays & Cards */
.tarot-draw-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: radial-gradient(circle at 50% 100%, #1e1136 0%, #05010a 100%);
    z-index: 950;
    overflow-y: auto;
}

.tarot-deck-container {
    display: grid;
    /* Desktop: 13 columns x 6 rows = 78 cards */
    grid-template-columns: repeat(13, 1fr);
    grid-auto-rows: 1fr;
    gap: 0.8vw;
    width: 100%;
    height: calc(100vh - 250px);
    /* Leave room for header & button */
    margin: 0 auto;
    padding: 1rem 0;
    perspective: 1000px;
}

.tarot-card-back {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4b236e 0%, #1c0a2e 100%);
    border: 1px solid #D3B8F8;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 0 5px rgba(211, 184, 248, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform-style: preserve-3d;
}

/* Base font-size on viewport width so it shrinks smoothly */
.tarot-card-back::after {
    content: '✺';
    font-size: 1.5vw;
    color: rgba(211, 184, 248, 0.4);
}

.tarot-card-back:hover {
    transform: translateY(-8px) scale(1.15) rotateY(10deg);
    box-shadow: 0 10px 20px rgba(179, 136, 235, 0.4), inset 0 0 10px rgba(211, 184, 248, 0.4);
    border-color: #EEDCFF;
    z-index: 10;
}

.tarot-card-back.selected {
    transform: translateY(-12px) scale(1.2);
    box-shadow: 0 0 20px rgba(255, 224, 130, 0.6);
    border-color: #FFE082;
    z-index: 20;
}

.tarot-card-back.selected::after {
    color: #FFE082;
    text-shadow: 0 0 8px #FFE082;
}

.tarot-card-back.disabled {
    pointer-events: none;
    opacity: 0.4;
    transform: none;
}

.disable-btn {
    opacity: 0.5;
    cursor: not-allowed;
    background: #555;
    box-shadow: none;
}

/* Tarot Result Styling */
.tarot-result-overlay {
    background: radial-gradient(circle at top, #1e1136 0%, #05010a 100%) !important;
}

.tarot-result-container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(179, 136, 235, 0.15);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.tarot-cards-reveal {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.revealed-card-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 200px;
}

.revealed-card {
    width: 140px;
    height: 240px;
    background: linear-gradient(135deg, #EEDCFF 0%, #B388EB 100%);
    border: 3px solid #FFE082;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(255, 224, 130, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #1c0a2e;
    font-weight: bold;
    text-align: center;
    padding: 10px;
}

.revealed-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.revealed-card-name {
    font-size: 1.1rem;
}

.revealed-card-pos {
    color: #FFE082;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .tarot-deck-container {
        /* Mobile: 9 columns x 9 rows max = 81 (fits 78) */
        grid-template-columns: repeat(9, 1fr);
        gap: 1vw;
        width: 100%;
        height: calc(100vh - 220px);
        padding: 0.5rem;
    }

    .tarot-card-back {
        border-width: 1px;
        border-radius: 4px;
    }

    .tarot-card-back::after {
        font-size: 3vw;
    }

    .revealed-card {
        width: 100px;
        height: 170px;
    }

    .revealed-card-title {
        font-size: 1rem;
    }
}

/* Login Box Styles */
.login-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 400px;
    margin-top: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.login-box:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.input-group {
    margin-bottom: 1.2rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.input-group input[type="number"]::-webkit-outer-spin-button,
.input-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.login-links {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.login-links a {
    position: relative;
}

.login-links a:hover {
    color: var(--text-primary);
}

.sns-login {
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.sns-login p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.sns-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.sns-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sns-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.kakao {
    background-color: #FEE500;
    color: #000;
}

.naver {
    background-color: #03C75A;
    color: #fff;
}

.google {
    background-color: #fff;
    color: #000;
}

/* Result Section Styles */
.result-card {
    background-color: var(--bg-tertiary);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin: 0 auto;
}

.result-header h2 {
    color: var(--accent-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 3rem;
    white-space: pre-line;
    /* Handle newlines in text */
    text-align: left;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
}

/* Price Tag */
.price-tag {
    margin-top: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffd700;
    /* Gold color for price */
    text-align: right;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background-color: var(--bg-tertiary);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--accent-color);
    width: 90%;
    max-width: 450px;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--text-primary);
}

.payment-info,
.payment-amount {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
}

.highlight-large {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffd700;
}

.payment-methods {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: space-between;
}

.payment-method {
    flex: 1;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.payment-method:hover,
.payment-method.selected {
    border-color: var(--accent-color);
    background-color: rgba(59, 130, 246, 0.1);
}

.method-icon {
    font-size: 1.5rem;
}

/* Professional Analysis Loading */
.analysis-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a1a2e 0%, #000000 100%);
    /* Deep Navy to Black */
    z-index: 3000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #c5a059;
    /* Muted Gold */
}

.compass-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
}

.compass-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(197, 160, 89, 0.3);
    border-radius: 50%;
    animation: spin-slow 10s linear infinite;
}

.compass-ring::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #c5a059;
    border-radius: 50%;
    box-shadow: 0 0 10px #c5a059;
}

.compass-inner {
    position: absolute;
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    border: 1px dashed rgba(197, 160, 89, 0.6);
    border-radius: 50%;
    animation: spin-reverse 5s linear infinite;
}

.compass-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px #fff;
    animation: pulse-dot 2s infinite;
}

@keyframes spin-slow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    0% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes pulse-dot {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 1;
    }
}

.analysis-text {
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
}

#loadingMessage {
    font-size: 1rem;
    color: #8899a6;
    font-weight: 300;
}

/* Full Page Result Overlay - Premium Dark Envelope Feel */
.result-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    background-color: #1a1a1a !important;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(42, 42, 42, 0.8) 0%, rgba(18, 18, 18, 1) 100%),
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0V0zm20 20l20-20H0l20 20z' fill='%23000000' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E") !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    padding: 4rem 1rem !important;
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 1) !important;
}

.paper-container {
    background-image:
        /* Jujutsu Kaisen inspired pattern: Brush-like strokes, jagged edges, dark ink */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250' viewBox='0 0 250 250' opacity='0.25'%3E%3Cdefs%3E%3Cfilter id='inkBleed'%3E%3CfeGaussianBlur in='SourceGraphic' stdDeviation='1.5' result='blur'/%3E%3CfeColorMatrix in='blur' mode='matrix' values='1 0 0 0 0  0 1 0 0 0  0 0 1 0 0  0 0 0 18 -7' result='goo'/%3E%3CfeComposite in='SourceGraphic' in2='goo' operator='atop'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23inkBleed)' fill='%23000000' stroke='%23000000' stroke-width='1.5'%3E%3Ctext x='30' y='60' font-family='Gulim, Batang, serif' font-size='50' font-weight='900' transform='rotate(-8 30 60)'%3E呪%3C/text%3E%3Ctext x='150' y='40' font-family='Gulim, Batang, serif' font-size='38' font-weight='900' transform='rotate(15 150 40)'%3E術%3C/text%3E%3Ctext x='80' y='160' font-family='Gulim, Batang, serif' font-size='65' font-weight='900' transform='rotate(12 80 160)'%3E廻%3C/text%3E%3Ctext x='190' y='210' font-family='Gulim, Batang, serif' font-size='45' font-weight='900' transform='rotate(-18 190 210)'%3E戦%3C/text%3E%3Ctext x='20' y='200' font-family='Gulim, Batang, serif' font-size='35' font-weight='900' transform='rotate(5 20 200)'%3E祓%3C/text%3E%3C/g%3E%3C/svg%3E"),
        /* Subtle natural noise for fabric/silk texture */
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    background-repeat: repeat;
    color: #FDFBF7;
    /* Change text to off-white/gold to contrast with the dark red silk */
    /* Soft dark gray/black ink */
    width: 210mm;
    min-height: 297mm;
    margin: 2rem auto;
    padding: 35mm 30mm;
    /* Ample inner padding */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    font-family: 'Nanum Myeongjo', 'Batang', serif;
    position: relative;
    overflow: hidden;
    /* Thick outer frame */
    border: 4px solid var(--personal-highlight, #C5A059);
    outline: 1px solid var(--personal-highlight, #C5A059);
    outline-offset: -8px;
}

/* Inner border with thick ornaments */
.paper-container::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid var(--personal-highlight, #C5A059);
    pointer-events: none;
    z-index: 10;
    /* Intricate SVG Corner Ornaments */
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M0,0 h60 v6 h-54 v54 h-6 z M12,12 h36 v4 h-32 v32 h-4 z M24,24 h12 v4 h-8 v8 h-4 z' fill='%23FFDF73'/%3E%3Ccircle cx='48' cy='48' r='6' fill='%23FFDF73'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M60,0 v60 h-6 v-54 h-54 v-6 z M48,12 v36 h-4 v-32 h-32 v-4 z M36,24 v12 h-4 v-8 h-8 v-4 z' fill='%23FFDF73'/%3E%3Ccircle cx='12' cy='48' r='6' fill='%23FFDF73'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M0,60 v-60 h6 v54 h54 v6 z M12,48 v-36 h4 v32 h32 v4 z M24,36 v-12 h4 v8 h8 v4 z' fill='%23FFDF73'/%3E%3Ccircle cx='48' cy='12' r='6' fill='%23FFDF73'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M60,60 h-60 v-6 h54 v-54 h6 z M48,48 h-36 v-4 h32 v-32 h4 z M36,36 h-12 v-4 h8 v-8 h4 z' fill='%23FFDF73'/%3E%3Ccircle cx='12' cy='12' r='6' fill='%23FFDF73'/%3E%3C/svg%3E");
    background-position: top left, top right, bottom left, bottom right;
    background-repeat: no-repeat;
    color: var(--personal-highlight, #C5A059);
}


/* Removed the Hanja watermark in favor of the subtle cloud pattern */
.paper-container::after {
    display: none;
}

/* Ensure content stays above watermark */
.result-header,
.result-content,
.result-actions {
    position: relative;
    z-index: 1;
}

/* Fade In Up Animation for Text Rendering */
.fade-in-up {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Premium Buttons Area */
.result-actions {
    margin-top: 3rem;
    padding-top: 2.5rem;
    padding-bottom: 2rem;
    border-top: 1px dashed rgba(197, 160, 89, 0.6);
    /* Gold dashed line */
    text-align: center;
    display: block;
    /* Ensure it's not flex so children stack vertically */
}

.action-label {
    font-size: 1.1rem;
    color: var(--personal-highlight, #FFDF73) !important;
    /* Gold to pop on red */
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.action-sub-label {
    font-size: 0.95rem;
    color: var(--personal-color, #F8E5A5) !important;
    /* Lighter gold */
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.email-input-wrapper {
    display: flex;
    max-width: 450px;
    margin: 0 auto 2.5rem auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--personal-highlight, #C5A059);
}

.email-input-wrapper input {
    flex: 1;
    padding: 1rem 1.2rem;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
}

.email-input-wrapper .btn-premium {
    border-radius: 0;
    margin: 0;
    padding: 1rem 1.5rem;
    white-space: nowrap;
    width: auto;
}

.buttons-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Force specific max-width and internal flex centering to equalize button width */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 220px;
    /* Fixed equal width as requested */
    height: 55px;
    /* Fixed equal height */
    padding: 0;
    /* Remove padding because width/height handles it */
    border-radius: 50px;
    font-weight: 800;
    font-family: 'Nanum Myeongjo', 'Batang', serif;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    white-space: nowrap;
    color: #fff !important;
    background-color: #4A3A29;
    box-shadow: 0 4px 10px rgba(74, 58, 41, 0.2);
}

.btn-premium:hover {
    background-color: #312519;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 58, 41, 0.3);
}

.btn-premium.outline {
    background-color: transparent;
    color: var(--personal-highlight, #FFDF73) !important;
    /* Gold to pop on red */
    border: 1px solid var(--personal-highlight, #FFDF73);
}

.btn-premium.outline:hover {
    background-color: var(--personal-highlight, #FFDF73);
    color: var(--personal-bg, #901A1E) !important;
    /* Dark red text on hover */
}

.btn-premium.kakao {
    background-color: #FEE500;
    color: #3A2929 !important;
    border: 1px solid #FBC02D;
    box-shadow: 0 4px 10px rgba(254, 229, 0, 0.3);
}

.btn-premium.kakao:hover {
    background-color: #FDD835;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(254, 229, 0, 0.5);
}

/* Remove the blunt `!important` selector to allow custom inline colors */
.paper-container {
    color: #FDFBF7;
}

/* Red Seal (낙관) Style - Adjusting to Gold to pop on red background */
.paper-container .red-seal {
    display: inline-block;
    color: var(--personal-highlight, #FFD700) !important;
    /* Gold instead of red so it's visible on red silk */
    border: 2px solid var(--personal-highlight, #FFD700);
    border-radius: 4px;
    padding: 2px 10px;
    margin: 0 6px;
    font-size: 1.1em;
    font-family: 'Gungsuh', 'Batang', serif;
    font-weight: 800;
    transform: rotate(-3deg);
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
    background-color: transparent;
}

.result-header h2 {
    color: var(--personal-highlight, #FFDF73) !important;
    /* Bright Gold text for header */
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    border-bottom: 0;
    padding-bottom: 0;
    text-align: center;
    letter-spacing: 2px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Custom divider */
.result-header .divider {
    height: 3px;
    background-color: var(--personal-highlight, #FFDF73);
    width: 60px;
    margin: 1.5rem auto 3rem;
    border-radius: 2px;
}

.result-content {
    font-size: 12pt;
    line-height: 2.2;
    /* Ample paragraph spacing */
    letter-spacing: 0.5px;
    text-align: justify;
}

.result-content h3 {
    margin-top: 4rem;
    margin-bottom: 2rem;
    color: var(--personal-highlight, #E2C073) !important;
    /* Gold */
    font-size: 1.5rem;
    /* Slightly reduced to prevent wrapping */
    font-weight: 800;
    border-left: none;
    padding-left: 0;
    text-align: center;
    word-break: keep-all;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.result-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--personal-highlight, #E2C073) !important;
    /* Gold to match h3's base text */
    font-size: 1.35rem;
    font-weight: 800;
    /* Bolder */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.result-content p,
.result-content li {
    margin-bottom: 1.2rem;
    color: var(--personal-color, #FDFBF7) !important;
    /* Off-white text on Red */
    font-weight: 400;
    /* Normal weight since white on red is already high contrast */
}

.result-content ul,
.result-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}


@media print {
    body * {
        visibility: hidden;
    }

    .result-overlay,
    .result-overlay * {
        visibility: visible;
    }

    .result-overlay {
        position: absolute;
        left: 0;
        top: 0;
        background: white;
    }

    .paper-container {
        width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }

    .no-print {
        display: none !important;
    }
}

/* AI Loading Styles */
.ai-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.ai-spinner {
    font-size: 3rem;
    margin-bottom: 2rem;
    animation: spin-pulse 2s infinite;
}

@keyframes spin-pulse {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
        text-shadow: 0 0 20px #fff;
    }

    100% {
        transform: scale(1) rotate(360deg);
        opacity: 0.8;
    }
}

#aiLoadingText {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    min-height: 1.6em;
    /* Prevent layout shift */
}

/* Print Styles for PDF Save */
@media print {
    body * {
        visibility: hidden;
    }

    #result,
    #result * {
        visibility: visible;
    }

    #result {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        background: white;
        /* Print usually works better with light bg, or keep dark if simulating screen */
        color: black;
    }

    .result-card {
        box-shadow: none;
        border: none;
        color: black;
        background: white;
    }

    .result-header h2,
    .result-content {
        color: black;
    }

    .result-actions {
        display: none;
        /* Hide buttons in PDF */
    }

    .header,
    .footer {
        display: none;
    }
}

/* Date Select Group */
.date-select-group {
    display: flex;
    gap: 0.5rem;
}

.date-select-group select {
    flex: 1;
    padding: 0.8rem;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    /* Remove default arrow */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.date-select-group select:focus,
.full-width-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.full-width-select {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}