/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6c5ce7;
    --primary-dark: #5849c2;
    --secondary: #00cec9;
    --accent: #fd79a8;
    --dark: #0a0a0f;
    --dark-light: #1a1a2e;
    --dark-lighter: #2d2d44;
    --text: #ffffff;
    --text-muted: #a0a0b0;
    --gradient: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #fd79a8 100%);
    --gradient-accent: linear-gradient(135deg, #00cec9 0%, #81ecec 100%);
    --card-bg: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease, background 0.2s ease;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    background: rgba(108, 92, 231, 0.2);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
    transform: translate(-50%, -50%);
}

.cursor.active {
    transform: translate(-50%, -50%) scale(0.5);
    background: var(--primary);
}

.cursor-follower.active {
    width: 60px;
    height: 60px;
}

/* Particle Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.5;
    animation: float-particle 15s infinite;
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Mouse Trail Effect */
.trail {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--gradient);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Music Control */
.music-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1500;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 50px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.music-control:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.music-control i {
    font-size: 1.2rem;
    color: var(--primary);
}

.music-control span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.music-visualizer {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 20px;
}

.music-visualizer .bar {
    width: 3px;
    height: 100%;
    background: var(--gradient);
    border-radius: 2px;
    animation: visualizer 0.5s ease infinite alternate;
}

.music-visualizer .bar:nth-child(1) { animation-delay: 0s; }
.music-visualizer .bar:nth-child(2) { animation-delay: 0.1s; }
.music-visualizer .bar:nth-child(3) { animation-delay: 0.2s; }
.music-visualizer .bar:nth-child(4) { animation-delay: 0.3s; }
.music-visualizer .bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes visualizer {
    0% { height: 5px; }
    100% { height: 20px; }
}

.music-control.paused .music-visualizer .bar {
    animation: none;
    height: 5px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(108, 92, 231, 0.5); }
    50% { box-shadow: 0 0 40px rgba(108, 92, 231, 0.8); }
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-wallet {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-wallet:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 206, 201, 0.4);
}

.btn-wallet.connected {
    background: var(--secondary);
    color: var(--dark);
}

.btn-login {
    padding: 10px 25px;
    background: var(--gradient);
    border: none;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.4);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    color: var(--text);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu .nav-link {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    padding-top: 70px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.section {
    display: none;
    min-height: calc(100vh - 70px);
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--gradient);
    border: none;
    color: white;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Floating Cards */
.hero-visual {
    position: relative;
    height: 500px;
    perspective: 1000px;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.card-float {
    position: absolute;
    width: 200px;
    background: var(--dark-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    cursor: pointer;
    transform-style: preserve-3d;
}

.card-float:hover {
    transform: translateY(-10px) scale(1.05) rotateY(5deg);
    box-shadow: 0 30px 60px rgba(108, 92, 231, 0.3);
}

.card-cover {
    height: 250px;
    background: var(--gradient);
    opacity: 0.8;
}

.card-1 .card-cover { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.card-2 .card-cover { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.card-3 .card-cover { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }

.card-info {
    padding: 15px;
}

.card-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.card-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-1 { top: 20%; left: 5%; animation: float1 6s ease-in-out infinite; }
.card-2 { top: 10%; right: 10%; animation: float2 5s ease-in-out infinite; }
.card-3 { bottom: 10%; left: 30%; animation: float3 7s ease-in-out infinite; }

@keyframes float1 {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-20px) rotateY(5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) rotateX(0deg); }
    50% { transform: translateY(-15px) rotateX(5deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(2deg); }
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 60px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.2);
}

.feature-card:hover::before {
    opacity: 0.1;
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(10deg);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    transform: scale(1.05);
}

/* Novels Grid */
.novels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.novel-card {
    background: var(--dark-light);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.novel-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.novel-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.novel-card:hover::after {
    opacity: 0.1;
}

.novel-cover {
    height: 280px;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.novel-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, var(--dark-light));
}

.novel-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    background: var(--accent);
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.novel-info {
    padding: 20px;
    position: relative;
    z-index: 1;
}

.novel-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.novel-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.novel-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.novel-rating i {
    color: #ffd93d;
}

.novel-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.novel-tag {
    padding: 4px 10px;
    background: var(--card-bg);
    border-radius: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Animation Section */
.animation-featured {
    margin-bottom: 40px;
}

.video-player {
    max-width: 900px;
    margin: 0 auto;
}

.video-placeholder {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y=".9em" font-size="90">🎬</text></svg>') center/30% no-repeat;
    opacity: 0.1;
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
    z-index: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 0 30px 10px rgba(108, 92, 231, 0); }
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.5);
}

.video-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 1;
}

.video-badge {
    display: inline-block;
    padding: 5px 12px;
    background: var(--accent);
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.video-info h3 {
    font-size: 1.5rem;
}

/* Animation List */
.animation-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.animation-item {
    display: flex;
    gap: 15px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.animation-item:hover {
    border-color: var(--primary);
    transform: translateX(10px);
    background: rgba(108, 92, 231, 0.1);
}

.animation-thumb {
    width: 120px;
    height: 80px;
    background: var(--gradient);
    border-radius: 10px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.animation-thumb::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.animation-item:hover .animation-thumb::after {
    opacity: 1;
}

.animation-details h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.animation-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.animation-duration {
    font-size: 0.8rem;
    color: var(--secondary);
}

/* Music Section */
.music-player {
    max-width: 600px;
    margin: 0 auto 50px;
    background: var(--dark-light);
    border-radius: 25px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.music-player:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(108, 92, 231, 0.2);
}

.player-album {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.album-art {
    width: 100px;
    height: 100px;
    background: var(--gradient);
    border-radius: 15px;
    flex-shrink: 0;
    animation: rotate-album 10s linear infinite paused;
}

.album-art.playing {
    animation-play-state: running;
}

@keyframes rotate-album {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.player-info {
    text-align: left;
}

.player-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.player-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.control-btn {
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: none;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.control-btn.play-btn {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    font-size: 1.2rem;
}

.progress-bar {
    height: 6px;
    background: var(--dark-lighter);
    border-radius: 3px;
    margin-bottom: 10px;
    cursor: pointer;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 30%;
    background: var(--gradient);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.player-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Playlist */
.playlist {
    display: grid;
    gap: 10px;
}

.track-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.track-item:hover,
.track-item.active {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.1);
    transform: translateX(10px);
}

.track-number {
    width: 30px;
    color: var(--text-muted);
    font-weight: 500;
}

.track-thumb {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 10px;
}

.track-info {
    flex: 1;
}

.track-info h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.track-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.track-duration {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Subscription Section */
.payment-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

.toggle-label {
    font-weight: 500;
    color: var(--text-muted);
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--dark-lighter);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--secondary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(30px);
    background: white;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.plan-card {
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(108, 92, 231, 0.2);
}

.plan-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(108, 92, 231, 0.1) 0%, var(--dark-light) 100%);
    transform: scale(1.05);
}

.plan-card.featured:hover {
    transform: scale(1.08) translateY(-5px);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 20px;
    background: var(--gradient);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.plan-price {
    margin-bottom: 30px;
}

.plan-price span {
    font-size: 2.5rem;
    font-weight: 700;
}

.plan-price small {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.plan-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li i {
    color: var(--secondary);
}

.plan-features li.disabled {
    color: var(--text-muted);
}

.plan-features li.disabled i {
    color: var(--text-muted);
}

.btn-subscribe {
    width: 100%;
    padding: 15px;
    background: var(--card-bg);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-subscribe:hover,
.btn-subscribe.btn-featured {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    transform: scale(1.05);
}

/* NFT Section */
.nft-section {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.nft-section h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.nft-section > p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.nft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.nft-card {
    background: var(--dark-light);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nft-card:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.nft-image {
    height: 250px;
    background: var(--gradient);
    position: relative;
}

.nft-rarity {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.nft-rarity.legendary { color: #ffd93d; }
.nft-rarity.epic { color: #a29bfe; }
.nft-rarity.rare { color: #74b9ff; }

.nft-details {
    padding: 20px;
}

.nft-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.nft-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nft-price span:first-child {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.nft-price span:last-child {
    color: var(--secondary);
    font-weight: 600;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--dark-light);
    border-radius: 25px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: white;
    transform: rotate(90deg);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

/* Login Form */
.login-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.login-tab {
    flex: 1;
    padding: 12px;
    background: var(--card-bg);
    border: none;
    color: var(--text-muted);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-tab.active {
    background: var(--gradient);
    color: white;
}

.input-field {
    width: 100%;
    padding: 15px 20px;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 15px;
    color: white;
    font-size: 1rem;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.2);
}

.full-width {
    width: 100%;
}

.signup-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.signup-link a {
    color: var(--primary);
    text-decoration: none;
}

/* Social Buttons */
.btn-social {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 15px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.btn-social.google {
    background: white;
    color: #333;
}

.btn-social.kakao {
    background: #fee500;
    color: #333;
}

.btn-social.naver {
    background: #03c75a;
    color: white;
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.naver-icon {
    font-weight: 700;
}

/* Payment Modal */
.payment-content {
    max-width: 500px;
}

.payment-summary {
    text-align: center;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 15px;
    margin-bottom: 25px;
}

.payment-summary h3 {
    margin-bottom: 5px;
}

.payment-summary p {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
}

.card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.wallet-connect {
    display: grid;
    gap: 15px;
}

.btn-wallet-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 15px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-wallet-large:hover {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.1);
    transform: translateY(-2px);
}

.btn-wallet-large img {
    width: 30px;
    height: 30px;
}

.wallet-info {
    text-align: center;
    color: var(--text-muted);
    margin-top: 20px;
    font-size: 0.9rem;
}

/* Reader Modal */
.reader-modal .modal-content {
    max-width: none;
    max-height: none;
    padding: 0;
    border-radius: 0;
}

.reader-content {
    background: var(--dark);
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.reader-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background: var(--dark-light);
    border-bottom: 1px solid var(--border);
}

.reader-back {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: none;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.reader-back:hover {
    background: var(--primary);
}

.reader-header h3 {
    flex: 1;
    font-size: 1.2rem;
}

.reader-actions {
    display: flex;
    gap: 10px;
}

.reader-btn {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: none;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reader-btn:hover {
    background: var(--primary);
}

.reader-body {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 2;
}

.reader-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--dark-light);
    border-top: 1px solid var(--border);
}

.btn-chapter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--card-bg);
    border: none;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-chapter:hover {
    background: var(--primary);
    transform: scale(1.05);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dark-light);
    border: 1px solid var(--secondary);
    padding: 15px 30px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast i {
    color: var(--secondary);
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: var(--dark-light);
    border-top: 1px solid var(--border);
    padding: 60px 20px 20px;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 15px;
}

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

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-column a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==================== RESPONSIVE ==================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-visual {
        display: none;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

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

    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .plan-card.featured {
        transform: none;
    }

    .plan-card.featured:hover {
        transform: translateY(-10px);
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Hide custom cursor on mobile */
    body {
        cursor: auto;
    }

    .cursor, .cursor-follower, .trail {
        display: none !important;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-actions {
        gap: 10px;
    }

    .btn-wallet span {
        display: none;
    }

    .btn-login {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 40px 15px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .filter-bar {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .novels-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .novel-cover {
        height: 200px;
    }

    .novel-info {
        padding: 15px;
    }

    .novel-title {
        font-size: 0.95rem;
    }

    .novel-tags {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .video-placeholder {
        height: 250px;
    }

    .video-info h3 {
        font-size: 1.1rem;
    }

    .animation-list {
        grid-template-columns: 1fr;
    }

    .animation-item {
        flex-direction: column;
    }

    .animation-thumb {
        width: 100%;
        height: 150px;
    }

    .player-album {
        flex-direction: column;
        text-align: center;
    }

    .player-info {
        text-align: center;
    }

    .music-control {
        bottom: 20px;
        right: 20px;
        padding: 12px 15px;
    }

    .music-control span {
        display: none;
    }

    .modal-content {
        padding: 25px;
        margin: 10px;
        border-radius: 20px;
    }

    .card-row {
        grid-template-columns: 1fr;
    }

    .reader-body {
        padding: 20px;
        font-size: 1rem;
    }

    .reader-footer {
        flex-wrap: wrap;
        gap: 10px;
    }

    .btn-chapter {
        flex: 1;
        justify-content: center;
        padding: 10px 15px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .nav-container {
        height: 60px;
    }

    .logo-text {
        display: none;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .novels-grid {
        grid-template-columns: 1fr;
    }

    .novel-cover {
        height: 250px;
    }

    .nft-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column a:hover {
        transform: none;
    }

    .toast {
        left: 15px;
        right: 15px;
        transform: translateX(0) translateY(100px);
        text-align: center;
        justify-content: center;
    }

    .toast.show {
        transform: translateX(0) translateY(0);
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 20px 0;
    }

    .section {
        min-height: auto;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .card-float:hover,
    .novel-card:hover,
    .feature-card:hover,
    .plan-card:hover,
    .nft-card:hover,
    .animation-item:hover,
    .track-item:hover {
        transform: none;
    }

    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-subscribe:hover {
        transform: none;
    }

    /* Active states for touch */
    .novel-card:active,
    .feature-card:active,
    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.98);
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-icon {
        font-size: 1.4rem;
    }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .particle {
        display: none;
    }
}

/* Dark Mode Support (already dark, but for system preference) */
@media (prefers-color-scheme: light) {
    /* Keep dark theme regardless */
}
