/* Twilight Style - CardWorldTGC */

:root {
    /* Dark Mode Colors */
    --bg-primary: #0a0e27;
    --bg-secondary: #141b2d;
    --bg-surface: #1e293b;
    --card-bg: var(--bg-secondary);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #1e293b;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --shadow: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-surface: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Header */
.header {
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.95) 0%, rgba(20, 27, 45, 0.9) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
    padding: 0.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 0, 0, 0.2);
}

/* Dark theme header - daha koyu ve tasarımla uyumlu */
[data-theme="dark"] .header,
:not([data-theme]) .header {
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.98) 0%, rgba(20, 27, 45, 0.95) 100%);
    border-bottom: 2px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(242, 244, 255, 0.9) 100%);
    border-bottom: 2px solid rgba(99, 102, 241, 0.35);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0.125rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Sol / Orta / Sağ Bloklar */
.header-left,
.header-center,
.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* SOL BLOK */
.header-left {
    flex: 0 0 auto;
    padding-left: 0.75rem;
    gap: 1.25rem;
}

.header-left-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ORTA BLOK (home + arama + dil) */
.header-center {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* SAĞ BLOK (kartlar/haberler + nav + arama + dil) */
.header-right {
    flex: 0 0 auto;
    gap: 1rem;
    padding-right: 1.5rem;
}

.header-container > nav {
    grid-column: 5;
    justify-self: end;
    display: flex;
    align-items: center;
}

.header-container > nav > .nav-menu {
    display: flex;
    gap: 0.75rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    min-width: 0;
    position: relative;
    z-index: 1;
}


.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-image {
    height: 100px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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


.header-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid transparent;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    color: var(--text-primary);
}

.header-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    color: inherit;
}

.pill-label {
    color: inherit;
}

.header-pill.badge-1 {
    background: linear-gradient(135deg, #fff3c4, #ffe59a);
    border-color: #f4c74b;
    color: #9a6a02;
}

.header-pill.badge-2 {
    background: linear-gradient(135deg, #d6dcff, #c2ccff);
    border-color: #9db1ff;
    color: #3c55c7;
}

.header-pill.badge-3 {
    background: linear-gradient(135deg, #d9f6e9, #c2f0dc);
    border-color: #8fd8b1;
    color: #1b9f6d;
}

.header-pill.badge-4 {
    background: linear-gradient(135deg, #d9ecff, #c6e4ff);
    border-color: #94caff;
    color: #1f7ecb;
}

.header-pill.badge-5 {
    background: linear-gradient(135deg, #ffe3f3, #ffd3eb);
    border-color: #f1a6cf;
    color: #c01f6f;
}

.header-pill svg {
    color: inherit;
}

.lang-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(99, 102, 241, 0.1);
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.menu-toggle:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.menu-toggle:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.menu-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 999px;
    transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
}

.nav-menu li {
    display: flex;
}

/* Ensure Login and Register buttons stay side by side */
.nav-menu li {
    flex-shrink: 0;
}

/* Theme Toggle variations */
.theme-toggle--brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle--mobile {
    display: none;
}

.theme-toggle--desktop {
    display: none;
}

.nav-menu a:not(.header-pill) {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-menu a:not(.header-pill):hover {
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.nav-menu a:not(.header-pill)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-menu a:not(.header-pill):hover::after {
    width: 60%;
}

.nav-menu .header-pill {
    position: relative;
    padding: 0.6rem 1.05rem;
    background-clip: padding-box;
}

.nav-menu .header-pill::after {
    display: none;
}

.nav-menu .icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.nav-menu .icon-link:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.nav-menu .icon-link svg {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu .icon-link:hover svg {
    transform: scale(1.1);
}

.nav-menu .icon-link::after {
    display: none;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-selector--compact {
    display: flex;
    align-items: center;
}

.lang-button--compact {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    gap: 0.35rem;
    /* Dark theme: açık sarı */
    background: rgba(255, 235, 59, 0.2);
    border: 1px solid rgba(255, 235, 59, 0.4);
    color: #ffeb3b;
    cursor: pointer;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

/* Dark theme - açık sarı renk */
[data-theme="dark"] .lang-button--compact,
:not([data-theme]) .lang-button--compact {
    background: rgba(255, 235, 59, 0.2);
    border-color: rgba(255, 235, 59, 0.4);
    color: #ffeb3b;
}

[data-theme="dark"] .lang-button--compact:hover,
:not([data-theme]) .lang-button--compact:hover {
    background: rgba(255, 235, 59, 0.3);
    border-color: rgba(255, 235, 59, 0.6);
    color: #fff176;
    box-shadow: 0 4px 12px rgba(255, 235, 59, 0.3);
}

.lang-button--compact .lang-icon {
    width: 14px;
    height: 14px;
    color: inherit;
    pointer-events: none;
}

.lang-button--compact .lang-text {
    display: none;
}

/* Prominent language button - belirgin dil seçeneği */
.lang-button--prominent {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    background: rgba(255, 235, 59, 0.25);
    border: 2px solid rgba(255, 235, 59, 0.5);
    color: #ffeb3b;
    cursor: pointer;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(255, 235, 59, 0.2);
}

.lang-button--prominent:hover {
    background: rgba(255, 235, 59, 0.35);
    border-color: rgba(255, 235, 59, 0.7);
    color: #fff176;
    box-shadow: 0 4px 16px rgba(255, 235, 59, 0.4);
    transform: translateY(-2px);
}

.lang-button--prominent .lang-icon {
    width: 18px;
    height: 18px;
    color: inherit;
    pointer-events: none;
}

.lang-button--prominent .lang-text {
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.5px;
}

[data-theme="light"] .lang-button--prominent {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.35);
    color: #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .lang-button--prominent:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
    color: #4f46e5;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.language-selector--prominent {
    margin-left: 0.75rem;
}

/* Icon-only language selector */
.language-selector--icon-only {
    flex-shrink: 0;
}

.lang-button--icon-only {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    background: rgba(255, 235, 59, 0.2);
    border: 2px solid rgba(255, 235, 59, 0.4);
    color: #ffeb3b;
    cursor: pointer;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(255, 235, 59, 0.2);
}

.lang-button--icon-only:hover {
    background: rgba(255, 235, 59, 0.3);
    border-color: rgba(255, 235, 59, 0.6);
    color: #fff176;
    box-shadow: 0 4px 16px rgba(255, 235, 59, 0.4);
    transform: translateY(-2px);
}

.lang-button--icon-only .lang-icon {
    width: 20px;
    height: 20px;
    color: inherit;
    pointer-events: none;
}

.lang-button--icon-only .lang-text {
    display: none;
}

[data-theme="light"] .lang-button--icon-only {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.35);
    color: #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .lang-button--icon-only:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
    color: #4f46e5;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.lang-button:hover,
.lang-button--compact:hover {
    transform: translateY(-2px);
}

[data-theme="light"] .lang-button,
[data-theme="light"] .lang-button--compact {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.25);
    color: #6366f1;
}

[data-theme="light"] .lang-button:hover,
[data-theme="light"] .lang-button--compact:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: #4f46e5;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.5rem;
    min-width: 180px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    backdrop-filter: blur(20px);
}

/* Custom scrollbar for language dropdown */
.lang-dropdown::-webkit-scrollbar {
    width: 6px;
}

.lang-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.lang-dropdown::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.lang-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

.language-selector--compact .lang-dropdown {
    left: 0;
    right: auto;
}

/* Language Selector - Right side */
.language-selector--right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.language-selector--right .lang-dropdown {
    right: 0;
    left: auto;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 0.6rem 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
}

.lang-option:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
}

.lang-option.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-weight: 600;
}

.theme-toggle {
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.theme-toggle--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Ensure theme toggle keeps pill background when using header-pill styles */
.theme-toggle.header-pill.badge-3 {
    background: linear-gradient(135deg, #e9d5ff, #ddd6fe);
    border-color: #a78bfa;
    color: #6d28d9;
}

.theme-toggle .pill-icon {
    width: 32px;
    height: 32px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle .pill-icon svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

/* Logout Button */
.logout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--error);
    padding: 0.6rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.logout-button:hover {
    background: var(--error);
    border-color: var(--error);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Home Button Standalone */
.home-button-standalone {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: 2px solid rgba(99, 102, 241, 0.5);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
    flex-shrink: 0;
}

.home-button-standalone:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
    border-color: rgba(99, 102, 241, 0.8);
}

.home-button-standalone:active {
    transform: translateY(0);
}

.home-button-standalone svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

[data-theme="light"] .home-button-standalone {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

[data-theme="light"] .home-button-standalone:hover {
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.6);
}

/* Header Search */
.header-search-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 auto;
    min-width: 0;
}

.header-search {
    flex: 0 0 auto;
    min-width: 350px;
    max-width: 650px;
}

.header-search .search-box {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 0.5rem;
}

.search-input-wrapper {
    flex: 1 1 auto;
    min-width: 0;
}

/* Header Main Links (Kartlar + Haberler) */
.header-main-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    flex-direction: row;
}

/* Header Cards Button */

.cards-button {
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.search-input {
    width: 100%;
    padding: 0.7rem 3rem 0.7rem 1rem;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(99, 102, 241, 0.45);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.85rem;
    min-height: 48px;
    height: 48px;
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


[data-theme="light"] .search-input {
    background: rgba(226, 231, 255, 0.9);
}

.search-input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18), 0 6px 24px rgba(99, 102, 241, 0.28);
    background: rgba(30, 41, 59, 0.82);
}

[data-theme="light"] .search-input:focus {
    background: rgba(232, 236, 255, 0.95);
}

.search-button {
    position: absolute;
    right: 0.3rem;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: white;
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.search-button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.5);
}

.image-search-button {
    position: absolute;
    right: 4.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.search-loading {
    position: absolute;
    right: 4.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: search-spin 0.8s linear infinite;
    z-index: 11;
    display: none;
}

.search-loading.active {
    display: block;
}

@keyframes search-spin {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

.image-search-button:hover {
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.image-search-button:active {
    transform: translateY(-50%) scale(0.95);
}

/* Search Autocomplete */
.search-autocomplete {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .search-autocomplete {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .search-autocomplete {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-header {
    padding: 0.75rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.autocomplete-similarity {
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: rgba(99, 102, 241, 0.1);
}

.autocomplete-image {
    width: 70px;
    height: 98px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background-color: var(--bg-secondary);
    min-height: 98px;
}

.autocomplete-image-placeholder {
    width: 70px;
    height: 98px;
    background: var(--bg-primary);
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.autocomplete-info {
    flex: 1;
    min-width: 0;
}

.autocomplete-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-set {
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.autocomplete-meta-badge {
    padding: 0.25rem 0.6rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.autocomplete-meta-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.autocomplete-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-top: 0.25rem;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 2.5rem auto 3.5rem;
    padding: 0;
    height: 380px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: #0a0e27;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.8s;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 3rem 2rem;
    z-index: 1;
    pointer-events: none;
    will-change: opacity, visibility;
}

.slide:not(.slide-with-image) {
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.95) 0%,
        rgba(139, 92, 246, 0.95) 50%,
        rgba(99, 102, 241, 0.95) 100%);
}

.slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
    pointer-events: auto;
}

.slide-with-image {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
    pointer-events: none;
}

.slide-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.slide:not(.slide-with-image) .slide-content {
    z-index: 10;
}


.slide h2,
.slide-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 
                 0 4px 12px rgba(0, 0, 0, 0.5),
                 0 8px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.slide.active h2,
.slide.active .slide-content h2 {
    animation: fadeInUp 0.8s ease;
}

.slide p,
.slide-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 
                 0 4px 12px rgba(0, 0, 0, 0.5);
}

.slide.active p,
.slide.active .slide-content p {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.slide-button {
    background: white;
    color: var(--accent-primary);
    padding: 1rem 2.25rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    border: 2px solid transparent;
    margin: 0 auto;
    display: inline-block;
}

.slide.active .slide-button {
    animation: fadeInUp 0.8s ease 0.4s both;
}

.slide-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, #f0f0f0, white);
}

.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* Slider Navigation Arrows (Desktop) */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}

.hero-slider:hover .slider-nav {
    opacity: 1;
    pointer-events: auto;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.slider-nav.prev {
    left: 1.5rem;
}

.slider-nav.next {
    right: 1.5rem;
}

.slider-nav svg {
    width: 24px;
    height: 24px;
}

/* Main Content */
.main-content {
    width: 100%;
    max-width: 1800px;
    margin: 10px auto;
    padding: 0 2rem;
}

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent-primary);
}

.breadcrumb-sep {
    opacity: 0.65;
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 800;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .card {
    border: 2px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                0 0 15px rgba(99, 102, 241, 0.1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.3);
    border-color: var(--accent-primary);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.footer {
    background: rgba(20, 27, 45, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 6rem;
    padding: 4rem 0 2rem;
}

[data-theme="light"] .footer {
    background: rgba(248, 250, 252, 0.8);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .header-search {
        min-width: 365px;
        max-width: 665px;
    }
    
    .footer-content {
        grid-template-columns: 20% 30% 1fr;
    }
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-title-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}

[data-theme="light"] .footer-title-pill {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section-types .footer-type-badges,
.footer-section-categories .footer-category-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    padding: 0.25rem 0 0;
}

.footer-type-pill,
.footer-category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.05rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid transparent;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-type-pill:hover,
.footer-category-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.footer-type-pill.badge-1 {
    background: linear-gradient(135deg, #fff3c4, #ffe59a);
    border-color: #f4c74b;
    color: #9a6a02;
}

.footer-type-pill.badge-2 {
    background: linear-gradient(135deg, #e8ebff, #d7deff);
    border-color: #b9c6ff;
    color: #4a5cd1;
}

.footer-type-pill.badge-3 {
    background: linear-gradient(135deg, #d9f6e9, #c2f0dc);
    border-color: #8fd8b1;
    color: #1b9f6d;
}

.footer-type-pill.badge-4 {
    background: linear-gradient(135deg, #d9ecff, #c6e4ff);
    border-color: #94caff;
    color: #1f7ecb;
}

.footer-type-pill.badge-5 {
    background: linear-gradient(135deg, #ffe3f3, #ffd3eb);
    border-color: #f1a6cf;
    color: #c01f6f;
}


.footer-section ul li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li a svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-primary);
}

.footer-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

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

.footer-legal-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
}

.footer-legal-inline a {
    color: var(--text-secondary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-inline a:hover {
    color: var(--accent-primary);
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.auth-card {
    background: rgba(20, 27, 45, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3.5rem;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease;
}

[data-theme="dark"] .auth-card {
    border: 2px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 40px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .auth-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label,
.form-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-readonly {
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.form-input {
    padding: 1rem 1.25rem;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

[data-theme="light"] .form-input {
    background: rgba(241, 245, 249, 0.8);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 8px 25px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.7);
}

[data-theme="light"] .form-input:focus {
    background: rgba(255, 255, 255, 0.95);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    height: 52px;
}

.password-input-wrapper .form-input {
    padding-right: 3.75rem;
    width: 100%;
    height: 100%;
}

.password-toggle {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    cursor: pointer;
    border: 1.5px solid rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
    transition: all 0.25s ease;
    z-index: 10;
}

[data-theme="light"] .password-toggle {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.06);
}

.password-toggle:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.15);
}

.password-toggle:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.password-toggle.is-visible {
    color: var(--accent-primary);
    border-color: rgba(99, 102, 241, 0.6);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.18));
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.18);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"],
.form-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-primary);
    flex-shrink: 0;
}

.checkbox-label span {
    line-height: 1.5;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    text-decoration: none;
}

.create-collection-link {
    text-decoration: underline !important;
}

.create-collection-link:hover {
    text-decoration: underline !important;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    text-decoration: none;
}

.btn-block {
    width: 100%;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.auth-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--error);
    color: var(--error);
    backdrop-filter: blur(10px);
    border-radius: 12px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--success);
    color: var(--success);
    backdrop-filter: blur(10px);
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
        row-gap: 0.75rem;
    }
    
    .header-left {
        flex: 0 0 auto;
    }
    
    .header-center {
        order: 3;
        width: 100%;
        flex: 1 1 auto;
    }
    
    .header-right {
        order: 2;
        margin-left: auto;
        flex: 0 0 auto;
    }

    .header-container > nav {
        grid-column: 1 / -1;
        order: 4;
        justify-self: stretch;
    }

    .nav-menu {
        order: 2;
        justify-content: center;
    }

    .header-actions {
        order: 3;
    }
    
    /* Slider adjustments for tablets */
    .hero-slider {
        height: 350px;
        margin: 2rem auto 3rem;
    }
    
    .slide {
        padding: 2.5rem 1.5rem;
    }
    
    .slide h2,
    .slide-content h2 {
        font-size: 2.5rem;
    }
    
    .slide p,
    .slide-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }
    
    .header-left {
        width: 100%;
        order: 1;
        justify-content: space-between;
        align-items: center;
        display: flex;
    }
    
    .header-brand {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: auto;
        gap: 0.75rem;
        flex-wrap: nowrap;
        padding: 0;
        position: relative;
        flex: 1 1 auto;
    }
    
    .logo {
        order: 2;
        flex-shrink: 0;
        min-width: 0;
        margin: 0;
    }
    
    .logo-image {
        height: 110px;
        max-width: 100%;
        object-fit: contain;
    }
    
    .header-left-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
    }
    
    .language-selector--right {
        display: flex !important;
    }
    
    .lang-button--compact {
        min-width: 36px;
        height: 36px;
        padding: 0.35rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .lang-button--compact .lang-icon {
        width: 14px;
        height: 14px;
    }
    
    .header-brand .theme-toggle--brand {
        order: 1;
        flex-shrink: 0;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.35rem;
        min-width: 36px;
        height: 36px;
        position: static;
        margin: 0;
        margin-left: 0;
    }
    
    .header-brand .theme-toggle--brand .pill-icon {
        width: 16px;
        height: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .header-brand .theme-toggle--brand .pill-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .theme-toggle--brand .pill-icon {
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .theme-toggle--brand .pill-icon svg {
        width: 11px;
        height: 11px;
    }
    
    .header-left-actions .menu-toggle {
        display: flex !important;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        min-width: 44px;
        padding: 0.5rem;
        position: static;
        margin: 0;
    }
    
    .menu-toggle-bar {
        width: 100%;
        height: 2px;
    }
    
    .header-actions {
        display: none !important;
    }
    
    .header-center {
        order: 3;
        width: 100%;
        flex: 1 1 auto;
        flex-direction: row;
        gap: 0.5rem;
        align-items: stretch;
        justify-content: center;
    }
    
    .header-right {
        order: 4;
        width: 100%;
        justify-content: center;
        flex: 0 0 auto;
        flex-direction: column;
        gap: 0.75rem;
        position: relative;
    }
    
    .header-right > nav {
        position: relative;
        width: 100%;
    }
    
    .header-search {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .header-search .search-box {
        display: flex;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .search-input-wrapper {
        flex: 1 1 auto;
        min-width: 0;
        position: relative;
    }
    
    .search-input {
        padding: 0.75rem 3rem 0.75rem 1rem;
        font-size: 0.95rem;
        min-height: 44px;
        width: 100%;
    }
    
    .image-search-button {
        right: 0.5rem;
        padding: 0.4rem;
        width: 32px;
        height: 32px;
    }
    
    .image-search-button svg {
        width: 16px;
        height: 16px;
    }
    
    .search-loading {
        right: 0.5rem;
    }
    
    .home-button-standalone {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        min-width: 44px;
    }
    
    .home-button-standalone svg {
        width: 18px;
        height: 18px;
    }
    
    .search-button {
        position: static;
        transform: none;
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
        white-space: nowrap;
        flex-shrink: 0;
        height: auto;
        min-height: 44px;
    }
    
    .search-button:hover {
        transform: none;
    }
    
    .header-main-links {
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .header-container > nav {
        flex: 1 1 auto;
    }
    
    .language-selector--right {
        flex-shrink: 0;
        align-self: flex-end;
        margin-top: -0.5rem;
    }
    
    /* Dark gradient header for mobile */
    .header {
        background: linear-gradient(180deg, 
            rgba(10, 14, 39, 0.98) 0%, 
            rgba(20, 27, 45, 0.95) 50%,
            rgba(30, 41, 59, 0.92) 100%);
        backdrop-filter: blur(25px) saturate(200%);
        -webkit-backdrop-filter: blur(25px) saturate(200%);
        border-bottom: 2px solid rgba(99, 102, 241, 0.4);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.15);
    }
    
    /* Dark theme mobile header - daha koyu */
    [data-theme="dark"] .header,
    :not([data-theme]) .header {
        background: linear-gradient(180deg, 
            rgba(10, 14, 39, 0.98) 0%, 
            rgba(20, 27, 45, 0.96) 50%,
            rgba(30, 41, 59, 0.94) 100%);
        border-bottom: 2px solid rgba(99, 102, 241, 0.5);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6), 0 0 40px rgba(99, 102, 241, 0.2);
    }
    
    [data-theme="light"] .header {
        background: linear-gradient(180deg, 
            rgba(99, 102, 241, 0.12) 0%, 
            rgba(139, 92, 246, 0.15) 50%,
            rgba(99, 102, 241, 0.1) 100%);
        border-bottom: 2px solid rgba(99, 102, 241, 0.3);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    }

    /* Language selector - right side on mobile */
    .language-selector--right {
        display: flex !important;
    }
    
    .lang-button--compact {
        padding: 0.35rem;
        font-size: 0.7rem;
        gap: 0;
        min-width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    [data-theme="dark"] .lang-button--compact,
    :not([data-theme]) .lang-button--compact {
        background: rgba(255, 235, 59, 0.2);
        border-color: rgba(255, 235, 59, 0.4);
        color: #ffeb3b;
    }
    
    [data-theme="dark"] .lang-button--compact:hover,
    :not([data-theme]) .lang-button--compact:hover {
        background: rgba(255, 235, 59, 0.3);
        border-color: rgba(255, 235, 59, 0.6);
        color: #fff176;
    }
    
    .lang-button--compact .lang-icon {
        width: 14px;
        height: 14px;
        color: inherit;
    }
    
    .lang-button--compact .lang-text {
        display: none;
    }
    
    /* Theme toggle - show in header-brand on all screens */
    .theme-toggle--brand {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        order: 3;
        padding: 0.35rem;
        flex-shrink: 0;
        min-width: 36px;
        height: 36px;
    }
    
    .theme-toggle--brand .pill-icon {
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .theme-toggle--brand .pill-icon svg {
        width: 11px;
        height: 11px;
    }
    
    /* Hide desktop theme toggle on mobile */
    .theme-toggle--desktop {
        display: none !important;
    }
    
    .menu-toggle {
        order: 4;
        display: flex !important;
        width: 36px;
        height: 36px;
        min-width: 36px;
        padding: 6px;
    }
    
    .menu-toggle-bar {
        width: 100%;
        height: 2px;
    }
    
    /* Language dropdown - more compact on mobile */
    .lang-dropdown {
        min-width: 140px;
        padding: 0.4rem;
        border-radius: 8px;
    }
    
    .lang-option {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        border-radius: 6px;
    }
    
    .language-selector--right .lang-dropdown {
        right: 0;
        left: auto;
        min-width: 140px;
    }

    .header-actions {
        display: none !important;
    }

    .menu-toggle {
        display: flex !important;
        width: 44px;
        height: 44px;
        min-width: 44px;
        flex-shrink: 0;
    }

    .cards-button,
    .news-button {
        flex: 1 1 auto;
        justify-content: center;
        min-width: 0;
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }
    
    .cards-button .pill-label,
    .news-button .pill-label {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .header-container {
        position: relative;
    }

    .header-right > nav > .nav-menu {
        order: 4;
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        width: 100%;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        list-style: none;
        margin: 0;
    }
    
    .header-right > nav > .nav-menu.is-open {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        animation: slideDownMenu 0.3s ease forwards;
    }
    
    @keyframes slideDownMenu {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-menu a {
        width: 100%;
        text-align: left;
        padding: 0.75rem 1rem !important;
    }
    
    /* Login and Register buttons side by side on mobile */
    .nav-menu li:has(.header-pill.badge-4),
    .nav-menu li:has(.header-pill.badge-5) {
        width: calc(50% - 0.25rem);
        display: flex;
        flex-shrink: 0;
    }
    
    .nav-menu li:has(.header-pill.badge-4) .header-pill,
    .nav-menu li:has(.header-pill.badge-5) .header-pill {
        width: 100%;
    }
    
    .nav-menu .header-pill {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 0.5rem !important;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .nav-menu .header-pill .pill-label {
        display: inline;
    }
    
    .nav-menu .header-pill .pill-icon {
        display: inline-flex;
        width: 22px;
        height: 22px;
    }
    
    .nav-menu .header-pill .pill-icon svg {
        width: 14px;
        height: 14px;
    }

    .category-header {
        padding: 0.65rem 1rem;
        gap: 0.75rem;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        width: 100%;
    }

    .view-all-link {
        width: auto;
        padding: 0.5rem;
        min-width: 36px;
        justify-content: center;
        gap: 0;
    }
    
    .view-all-text {
        display: none;
    }
    
    .view-all-arrow {
        display: inline;
        font-size: 1.2rem;
        font-weight: bold;
    }

    .section-title {
        width: auto;
        text-align: left;
        justify-content: center;
        padding: 0.35rem 0.85rem;
        font-size: 1.2rem;
    }

    .footer-logo {
        height: 50px;
    }

    /* Prevent horizontal overflow on mobile */
    .hero-slider {
        padding: 0;
        margin: 1.5rem 0 2rem;
        height: 350px;
        border-radius: 16px;
    }
    
    .slide {
        padding: 2rem 1.25rem;
    }
    
    .slide-content {
        align-items: center;
        text-align: center;
        padding: 1.5rem 1rem;
        max-width: 100%;
    }

    .main-content {
        padding: 0 1rem;
        margin: 10px auto;
    }

    .slide h2,
    .slide-content h2 {
        font-size: 1.75rem;
        line-height: 1.1;
        margin-bottom: 0.85rem;
    }

    .slide p,
    .slide-content p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
        line-height: 1.4;
    }

    .slide-button {
        padding: 0.8rem 1.6rem;
        font-size: 0.9rem;
    }
    
    .slider-dots {
        bottom: 1rem;
        gap: 0.4rem;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .dot.active {
        width: 24px;
    }
    
    /* Hide navigation arrows on mobile */
    .slider-nav {
        display: none;
    }

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

    .card-grid .tcg-card {
        max-width: 100%;
        margin: 0 auto;
    }

    .auth-card {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }
    
    .auth-container {
        padding: 1rem;
    }

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

@media (max-width: 480px) {
    .search-input {
        padding: 0.85rem 3.5rem 0.85rem 3rem;
        font-size: 1.1rem;
        min-height: 48px;
    }
    
    .home-button {
        left: 0.5rem;
        padding: 0.6rem;
    }
    
    .home-button svg {
        width: 20px;
        height: 20px;
    }

    .search-button {
        padding: 0.75rem 1.2rem;
        font-size: 1rem;
    }
    
    .filters-section {
        padding: 1.25rem;
        margin: 0 -0.75rem 1.5rem;
        width: calc(100% + 1.5rem);
        border-radius: 20px;
    }
    
    .filter-label {
        font-size: 0.95rem;
    }
    
    .filter-select,
    .filter-input,
    .search-input-main {
        font-size: 1.15rem;
        padding: 0.9rem 1.2rem;
        min-height: 48px;
    }
    
    .search-button-main,
    .clear-button {
        font-size: 1.05rem;
        padding: 0.9rem 1.5rem;
        min-height: 48px;
    }
    
    .logo-image {
        height: 65px;
    }

    .hero-slider {
        height: 280px;
        border-radius: 12px;
        margin: 1rem 0 1.5rem;
    }
    
    .slide {
        padding: 1.5rem 1rem;
    }
    
    .slide-overlay {
        background: transparent;
    }
    
    .slide h2,
    .slide-content h2 {
        font-size: 1.4rem;
        margin-bottom: 0.65rem;
    }
    
    .slide p,
    .slide-content p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .slide-button {
        padding: 0.7rem 1.4rem;
        font-size: 0.8rem;
    }
    
    .cards-carousel {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.25rem;
    }
}

/* Large screens optimization */
@media (min-width: 1441px) {
    .hero-slider {
        max-width: 1600px;
        height: 420px;
    }
    
    .slide h2,
    .slide-content h2 {
        font-size: 3.5rem;
    }
    
    .slide p,
    .slide-content p {
        font-size: 1.35rem;
    }
    
    .slide-button {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }
}

/* Category Sections */
.category-section {
    margin-bottom: 4rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0.65rem 1.25rem;
    background: linear-gradient(180deg, rgba(244, 246, 252, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    gap: 1rem;
    text-align: left;
    flex-wrap: nowrap;
    width: 100%;
}

[data-theme="dark"] .category-header {
    background: linear-gradient(180deg, rgba(20, 27, 45, 0.95) 0%, rgba(30, 41, 59, 0.98) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.1);
}

/* Category header specific section title */
.category-header .section-title {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    line-height: 1.3;
    font-size: 1.25rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.18));
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.12);
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
    -webkit-background-clip: border-box;
    background-clip: border-box;
}

[data-theme="dark"] .category-header .section-title {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.3));
    border: 1px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.2), 0 0 15px rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.25);
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.15);
    white-space: nowrap;
    flex-shrink: 0;
}

.view-all-text {
    display: inline;
}

.view-all-arrow {
    display: inline;
}

.view-all-link:hover {
    color: var(--accent-secondary);
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.35);
    transform: translateX(5px);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.25);
}

/* Cards Carousel */
.cards-carousel {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    padding: 0 3rem;
}

/* TCG Card Styles */
.tcg-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    animation: cardFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

/* Card entrance animation */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Stagger animation for multiple cards */
.cards-grid-page .tcg-card:nth-child(1) { animation-delay: 0.05s; }
.cards-grid-page .tcg-card:nth-child(2) { animation-delay: 0.1s; }
.cards-grid-page .tcg-card:nth-child(3) { animation-delay: 0.15s; }
.cards-grid-page .tcg-card:nth-child(4) { animation-delay: 0.2s; }
.cards-grid-page .tcg-card:nth-child(5) { animation-delay: 0.25s; }
.cards-grid-page .tcg-card:nth-child(6) { animation-delay: 0.3s; }
.cards-grid-page .tcg-card:nth-child(7) { animation-delay: 0.35s; }
.cards-grid-page .tcg-card:nth-child(8) { animation-delay: 0.4s; }
.cards-grid-page .tcg-card:nth-child(9) { animation-delay: 0.45s; }
.cards-grid-page .tcg-card:nth-child(10) { animation-delay: 0.5s; }
.cards-grid-page .tcg-card:nth-child(11) { animation-delay: 0.55s; }
.cards-grid-page .tcg-card:nth-child(12) { animation-delay: 0.6s; }
.cards-grid-page .tcg-card:nth-child(n+13) { animation-delay: 0.65s; }

/* Dark mode card borders */
[data-theme="dark"] .tcg-card {
    border: 2px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(99, 102, 241, 0.1);
}

.tcg-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.3);
    border-color: var(--accent-primary);
}

/* Mobile touch animations */
@media (max-width: 768px) {
    .tcg-card {
        animation: cardFadeInMobile 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }
    
    @keyframes cardFadeInMobile {
        from {
            opacity: 0;
            transform: translateY(15px) scale(0.97);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
    
    /* Touch feedback animation */
    .tcg-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Card image animation on load */
    .tcg-card-image img {
        animation: imageFadeIn 0.6s ease forwards;
        opacity: 0;
    }
    
    @keyframes imageFadeIn {
        from {
            opacity: 0;
            transform: scale(1.1);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }
    
    /* Card actions animation */
    .tcg-card-actions {
        animation: actionsSlideIn 0.4s ease 0.3s forwards;
        opacity: 0;
        transform: translateY(10px);
    }
    
    @keyframes actionsSlideIn {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Card info animation */
    .tcg-card-info {
        animation: infoFadeIn 0.5s ease 0.2s forwards;
        opacity: 0;
    }
    
    @keyframes infoFadeIn {
        to {
            opacity: 1;
        }
    }
}

[data-theme="dark"] .tcg-card:hover {
    border: 2px solid rgba(99, 102, 241, 0.8);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5),
                0 0 30px rgba(99, 102, 241, 0.3);
}

.tcg-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 245 / 342;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-secondary));
}

[data-theme="dark"] .tcg-card-image {
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.tcg-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tcg-card:hover .tcg-card-image img {
    transform: scale(1.1);
}

.tcg-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tcg-card:hover .tcg-card-overlay {
    opacity: 1;
}

.tcg-card-button {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.tcg-card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.tcg-card-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 0;
    margin: 0.75rem 0;
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.tcg-card-actions .card-action-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    flex-shrink: 0;
}

.tcg-card-info {
    padding: 1.5rem;
}

[data-theme="dark"] .tcg-card-info {
    background: rgba(10, 14, 39, 0.5);
}

.tcg-card-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tcg-card-name a {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.tcg-card-name a:hover {
    text-decoration: none !important;
    color: var(--accent-primary);
}

.tcg-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.tcg-card-set {
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.tcg-card-rarity {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    white-space: nowrap;
}

.tcg-card-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 0.375rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.tcg-card-price .price-value {
    font-weight: 600;
    font-size: 1rem;
    color: var(--accent-primary);
}

.tcg-card-price .price-source {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(99, 102, 241, 0.2);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

[data-theme="light"] .tcg-card-price {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .tcg-card-price .price-value {
    color: var(--accent-primary);
}

[data-theme="light"] .tcg-card-price .price-source {
    background: rgba(99, 102, 241, 0.15);
    color: var(--text-secondary);
}

.tcg-card-hp {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, 
        rgba(255, 240, 245, 0.95) 0%, 
        rgba(240, 248, 255, 0.95) 25%,
        rgba(245, 240, 255, 0.95) 50%,
        rgba(255, 245, 250, 0.95) 75%,
        rgba(240, 245, 255, 0.95) 100%);
    border-radius: 20px;
    margin: 4rem 3rem;
    border: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow: 
        0 20px 60px rgba(139, 92, 246, 0.15),
        0 0 40px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(139, 92, 246, 0.1) 0%, 
        rgba(99, 102, 241, 0.05) 30%,
        transparent 70%);
    animation: shimmerCTA 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmerCTA {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(30%, 30%) rotate(180deg);
    }
}

.cta-section > * {
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, 
        rgba(30, 20, 50, 0.95) 0%, 
        rgba(25, 30, 60, 0.95) 25%,
        rgba(40, 25, 55, 0.95) 50%,
        rgba(35, 30, 65, 0.95) 75%,
        rgba(30, 35, 60, 0.95) 100%);
    border: 2px solid rgba(99, 102, 241, 0.4);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(139, 92, 246, 0.3);
}

[data-theme="dark"] .cta-section::before {
    background: radial-gradient(circle, 
        rgba(139, 92, 246, 0.2) 0%, 
        rgba(99, 102, 241, 0.1) 30%,
        transparent 70%);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 1400px) {
    .cards-carousel {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .cards-carousel {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .category-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.5rem 0.5rem;
        flex-wrap: nowrap;
        width: 100%;
    }
    
    .view-all-text {
        display: none !important;
    }
    
    .view-all-arrow {
        display: inline !important;
        font-size: 1.2rem;
        font-weight: bold;
    }
    
    .view-all-link {
        padding: 0.5rem;
        min-width: 36px;
        justify-content: center;
        gap: 0;
    }
    
    .section-title {
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 1rem;
        padding: 0.4rem 0.75rem;
    }
    
    .view-all-link {
        flex-shrink: 0;
    }
    
    .cards-carousel {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 0.25rem;
    }

    .tcg-card {
        max-width: 100%;
        margin: 0 auto;
        width: 99%;
    }
    
    .tcg-card-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    .cta-section {
        padding: 2rem 1.5rem;
        margin: 2rem 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
}

/* Cards Page Styles */
.cards-page {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

/* Cards Header Box - Colorful Box */
.cards-header-box {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    border-radius: 30px;
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3), 0 4px 16px rgba(139, 92, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.cards-header-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmerHeader 3s ease-in-out infinite;
}

@keyframes shimmerHeader {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.cards-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cards-header-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.cards-header-subtitle {
    font-size: 1.1rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.page-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Filters Section */
.filters-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    width: 98%;
    margin-left: auto;
    margin-right: auto;
}

[data-theme="dark"] .filters-section {
    border: 2px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 20px rgba(99, 102, 241, 0.1);
}

.filters-form {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-group {
    display: flex;
    gap: 0.75rem;
}

.search-input-main {
    flex: 1;
    padding: 0.65rem 1rem;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input-main:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-button-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.filter-options {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 150px;
}

.filter-group:last-child {
    flex: 0 0 auto;
}

.filter-group.is-active .filter-label {
    color: var(--accent-primary);
}

.filter-group.is-active .filter-select,
.filter-group.is-active .search-input-main {
    border-color: rgba(99, 102, 241, 0.7);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.filter-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select,
.filter-input {
    padding: 0.55rem 0.75rem;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
}

.filter-input {
    cursor: text;
    min-width: 200px;
    width: 100%;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filter-group.is-active .filter-input {
    border-color: rgba(99, 102, 241, 0.7);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.price-filter-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.price-input {
    flex: 1;
    min-width: 0;
}

.price-separator {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.clear-button {
    padding: 0.55rem 0.9rem;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    white-space: nowrap;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.clear-button:hover {
    border-color: var(--error);
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

/* Responsive filters */
@media (max-width: 768px) {
    .filters-section {
        padding: 1.5rem;
        margin: 0 -0.5rem 1.5rem;
        border-radius: 20px;
        width: calc(100% + 1rem);
        max-width: none;
    }
    
    .filters-form {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .filter-options {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .filter-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .filter-select,
    .filter-input {
        padding: 0.85rem 1rem;
        font-size: 1.1rem;
        min-height: 48px;
    }
    
    .filter-input {
        min-width: 100%;
    }
    
    .search-input-main {
        padding: 0.85rem 1.2rem;
        font-size: 1.1rem;
        min-height: 48px;
    }
    
    .search-button-main {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    .clear-button {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }
}

/* Cards Grid */
.cards-grid-page {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.75rem;
    margin-bottom: 2rem;
}

.tcg-card-year {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.tcg-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.tcg-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 0;
    flex-wrap: wrap;
}

.pagination-link {
    padding: 0.65rem 1.2rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.pagination-link:hover {
    border-color: var(--accent-primary);
    background: var(--bg-surface);
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.pagination-link-disabled {
    padding: 0.65rem 1.2rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0.5rem;
}

.pagination-number {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    border-color: var(--accent-primary);
    background: var(--bg-surface);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.pagination-number-active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    cursor: default;
}

.pagination-number-active:hover {
    transform: none;
    color: white;
}

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: var(--text-muted);
    font-weight: 600;
}

.pagination-info {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: 1rem;
    white-space: nowrap;
}

.pagination-link-first,
.pagination-link-last {
    padding: 0.65rem;
}

@media (max-width: 768px) {
    .pagination {
        gap: 0.5rem;
        padding: 1.5rem 0;
    }
    
    .pagination-link {
        padding: 0.55rem 1rem;
        font-size: 0.85rem;
    }
    
    .pagination-number {
        min-width: 36px;
        height: 36px;
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .pagination-info {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0 0 0;
    }
    
    .pagination-numbers {
        order: -1;
        width: 100%;
        justify-content: center;
        margin: 0 0 0.5rem 0;
    }
}

/* Card Detail Page */
.card-detail-page {
    width: 100%;
    padding: 2rem;
}

.card-detail-container {
    max-width: 1400px;
    margin: 0 auto;
}

.back-button {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.back-button:hover {
    border-color: var(--accent-primary);
    transform: translateX(-4px);
}

.card-detail-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 1.5rem;
}

.card-detail-image-section {
    position: sticky;
    top: 100px;
    height: fit-content;
    transform-style: preserve-3d;
    perspective: 2000px;
}

.card-detail-image {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 0.75rem;
    box-shadow: 0 6px 26px rgba(0, 0, 0, 0.18);
    perspective: 1500px;
    transform-style: preserve-3d;
    transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    --glow-x: 50%;
    --glow-y: 50%;
    --glow-opacity: 0;
}

[data-theme="dark"] .card-detail-image {
    border: 2px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3), 0 0 22px rgba(99, 102, 241, 0.12);
}

/* Animated glow effect */
.card-detail-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background: radial-gradient(
        circle 400px at var(--glow-x) var(--glow-y),
        rgba(99, 102, 241, calc(var(--glow-opacity) * 0.4)),
        rgba(139, 92, 246, calc(var(--glow-opacity) * 0.2)),
        transparent 70%
    );
    opacity: var(--glow-opacity);
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

[data-theme="light"] .card-detail-image::before {
    background: radial-gradient(
        circle 400px at var(--glow-x) var(--glow-y),
        rgba(167, 139, 250, calc(var(--glow-opacity) * 0.3)),
        rgba(196, 181, 253, calc(var(--glow-opacity) * 0.15)),
        transparent 70%
    );
}

/* Shine/reflection effect */
.card-detail-image::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: translateX(var(--glow-x)) translateY(var(--glow-y)) rotate(45deg);
    opacity: calc(var(--glow-opacity) * 0.3);
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
    animation: shine 3s infinite;
}

@keyframes shine {
    0%, 100% {
        opacity: calc(var(--glow-opacity) * 0.1);
    }
    50% {
        opacity: calc(var(--glow-opacity) * 0.3);
    }
}

.card-detail-image img {
    width: 100%;
    border-radius: 12px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
    position: relative;
    z-index: 0;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card-detail-image.tilting {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 
                0 0 40px rgba(99, 102, 241, 0.15),
                0 0 80px rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.5);
}

[data-theme="dark"] .card-detail-image.tilting {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 
                0 0 50px rgba(99, 102, 241, 0.2),
                0 0 100px rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.6);
}

/* Enhanced entrance animation */
@keyframes cardDetailEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-detail-image-section {
    animation: cardDetailEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.card-detail-info-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-detail-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
}

.compact-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    font-size: 1.1rem;
    margin-bottom: 0;
    flex-shrink: 0;
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.1);
    border: 2px solid rgba(167, 139, 250, 0.3);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.compact-back:hover {
    background: rgba(167, 139, 250, 0.2);
    border-color: rgba(167, 139, 250, 0.5);
    color: #8b5cf6;
    transform: translateY(-2px);
}

.card-name-box {
    display: flex;
    align-items: center;
    height: 42px;
    background: #fef3c7;
    border: 2px solid rgba(251, 191, 36, 0.5);
    border-radius: 10px;
    padding: 0 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(251, 191, 36, 0.2);
    flex: 1;
    min-width: 0;
}

[data-theme="dark"] .card-name-box {
    background: #78350f;
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(251, 191, 36, 0.3);
}

.card-detail-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none !important;
}

.card-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.card-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
}

.card-action-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.card-action-btn:active {
    transform: translateY(0);
}

.card-action-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.like-btn.active {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.favorite-btn.active {
    background: #fbbf24;
    border-color: #fbbf24;
    color: white;
}

.wishlist-btn.active {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: white;
}

.add-to-list-btn.active {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

/* Tooltip Styles */
.card-action-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateX(-50%) translateY(-4px);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.card-action-btn::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--bg-surface);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1001;
}

.card-action-btn:hover::before,
.card-action-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.card-action-btn:hover::after {
    transform: translateX(-50%);
}

.card-detail-level {
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-radius: 8px;
    font-weight: 700;
}

.card-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    padding: 0.85rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
}

[data-theme="dark"] .card-detail-meta {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.meta-value {
    color: var(--text-primary);
    font-weight: 600;
}

.rarity-badge {
    padding: 0.35rem 0.65rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-radius: 8px;
    display: inline-block;
    width: fit-content;
}

.card-stats {
    display: flex;
    gap: 1rem;
    padding: 0.85rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.stat-value {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
}

.hp-stat .stat-value {
    font-size: 1.25rem;
    color: var(--accent-primary);
}

.type-badge {
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.type-badge.fire { background: linear-gradient(135deg, #ff6b35, #f7931e); }
.type-badge.water { background: linear-gradient(135deg, #4a90e2, #357abd); }
.type-badge.grass { background: linear-gradient(135deg, #7ec850, #5ba02e); }
.type-badge.lightning { background: linear-gradient(135deg, #ffd700, #ffb700); color: #333; }
.type-badge.psychic { background: linear-gradient(135deg, #a13ea1, #7b2f7b); }
.type-badge.fighting { background: linear-gradient(135deg, #ff8b00, #d67000); }
.type-badge.colorless { background: linear-gradient(135deg, #9da3a8, #797f86); }
.type-badge.darkness { background: linear-gradient(135deg, #5a4a6a, #3d2f4a); }
.type-badge.dragon { background: linear-gradient(135deg, #7038f8, #4a1fa8); }
.type-badge.fairy { background: linear-gradient(135deg, #f4b5e4, #e89ac8); }
.type-badge.metal { background: linear-gradient(135deg, #b8b8d0, #8d8da8); }

.card-section {
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 14px;
}

[data-theme="dark"] .card-section {
    border-color: rgba(99, 102, 241, 0.2);
}

/* Statistics Section */
.statistics-section {
    padding: 1rem;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

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

/* Card detail page specific section title */
.card-detail-page .section-title,
.card-detail-section .section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--accent-primary);
}

.ability-item, .attack-item {
    padding: 0.75rem;
    background: var(--bg-surface);
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.ability-header, .attack-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ability-name, .attack-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.ability-type {
    padding: 0.25rem 0.75rem;
    background: var(--accent-primary);
    color: white;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ability-text, .attack-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.attack-name-cost {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.energy-cost {
    display: flex;
    gap: 0.25rem;
}

.energy-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    color: white;
}

.energy-icon.fire { background: #ff6b35; }
.energy-icon.water { background: #4a90e2; }
.energy-icon.grass { background: #7ec850; }
.energy-icon.lightning { background: #ffd700; color: #333; }
.energy-icon.psychic { background: #a13ea1; }
.energy-icon.fighting { background: #ff8b00; }
.energy-icon.colorless { background: #9da3a8; }

.attack-damage {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--error);
}

.weakness-resistance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.wr-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.wr-badge {
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
}

/* Compact tweaks for card tiles only on /cards page (avoid changing homepage cards too much) */
.cards-page .tcg-card-info {
    padding: 1.5rem;
}

.cards-page .tcg-card-name {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.cards-page .tcg-card-button {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

.cards-page .tcg-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Details/summary compact sections on card detail */
details.card-section {
    padding: 0;
}

details.card-section > summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
}

details.card-section > summary::-webkit-details-marker {
    display: none;
}

details.card-section[open] > summary {
    border-bottom: 1px solid var(--border-color);
}

details.card-section .details-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--accent-primary);
}

details.card-section .details-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
}

details.card-section .details-pill {
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
}

details.card-section .details-chevron {
    transition: transform 0.2s ease;
    opacity: 0.9;
}

details.card-section[open] .details-chevron {
    transform: rotate(180deg);
}

.collection-card-details .details-chevron {
    transition: transform 0.2s ease;
    opacity: 0.7;
    flex-shrink: 0;
}

.collection-card-details[open] .details-chevron {
    transform: rotate(180deg);
}

details.card-section .details-body {
    padding: 1rem;
}

.weakness-badge {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
    border: 2px solid var(--error);
}

.resistance-badge {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 2px solid var(--success);
}

.flavor-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.flavor-text {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.notes-section {
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
}

.collection-note-item {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.collection-note-item:last-child {
    margin-bottom: 0;
}

.note-collection-name {
    margin-bottom: 0.75rem;
    color: var(--accent-primary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.note-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.note-text {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
}

.additional-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-item {
    display: flex;
    gap: 0.5rem;
}

.info-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.info-value {
    color: var(--text-primary);
}

.card-actions {
    display: flex;
    gap: 1rem;
}

.action-button {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

/* Related cards on detail page */
.related-cards-section {
    margin-top: 1.25rem;
}

.related-cards-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.related-title-box {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    padding: 0.6rem 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.related-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.related-subtitle {
    margin-left: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-primary);
    opacity: 0.95;
}

.related-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 0.95rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    color: white;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.related-view-all:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(99, 102, 241, 0.35);
    opacity: 0.98;
}

.related-view-all:active {
    transform: translateY(0);
}

.related-view-all:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), 0 10px 26px rgba(99, 102, 241, 0.35);
}

@media (max-width: 768px) {
    .related-cards-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .related-view-all {
        width: 100%;
    }

    .related-title-box {
        width: 100%;
        justify-content: space-between;
    }
}
.related-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.tcg-card.tcg-card--mini {
    border-radius: 14px;
}

.tcg-card.tcg-card--mini .tcg-card-info {
    padding: 0.7rem;
}

.tcg-card.tcg-card--mini .tcg-card-name {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.tcg-card.tcg-card--mini .tcg-card-name a {
    text-decoration: none !important;
    color: inherit;
}

.tcg-card.tcg-card--mini .tcg-card-name a:hover {
    text-decoration: none !important;
    color: var(--accent-primary);
}

.tcg-card.tcg-card--mini .tcg-card-meta {
    font-size: 0.8rem;
    margin-bottom: 0;
}

@media (max-width: 1200px) {
    .related-cards-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

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

/* Price box on card detail */
.price-variant {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.price-variant:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.price-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.price-cardmarket {
    border-color: rgba(16, 185, 129, 0.45);
    color: #10b981;
}

.price-tcgplayer {
    border-color: rgba(99, 102, 241, 0.45);
    color: var(--accent-primary);
}

.price-fetched {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.price-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
}

.price-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.2rem;
}

.price-value {
    font-weight: 900;
    font-size: 1rem;
    color: var(--text-primary);
}

.price-empty {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

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

.primary-button {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.secondary-button {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.secondary-button:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1600px) {
    .cards-grid-page {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1400px) {
    .cards-grid-page {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .cards-grid-page {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .card-detail-grid {
        grid-template-columns: 400px 1fr;
    }
}

@media (max-width: 768px) {
    .cards-page, .card-detail-page {
        padding: 1.5rem;
    }
    
    .cards-header-box {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }
    
    .cards-header-title {
        font-size: 2rem;
    }
    
    .cards-header-subtitle {
        font-size: 1rem;
    }
}

/* News Page Styles */
.news-page {
    width: 100%;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.news-header-box {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    border-radius: 30px;
    padding: 2.5rem 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3), 0 4px 16px rgba(139, 92, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.news-header-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmerNews 3s ease-in-out infinite;
}

@keyframes shimmerNews {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.news-header-content {
    position: relative;
    z-index: 1;
}

.news-header-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.news-header-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.news-header-count {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.news-card {
    background: var(--bg-surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
}

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-secondary);
    position: relative;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-video-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 0, 0, 0.9);
    color: white;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.news-card-content {
    padding: 1.5rem;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    gap: 1rem;
}

.news-card-date {
    flex: 1;
}

.news-card-source {
    color: var(--accent-primary);
    font-weight: 600;
}

/* News Detail Page */
.news-detail-page {
    width: 100%;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.news-detail-container {
    background: var(--bg-surface);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px var(--shadow);
    border: 1px solid var(--border-color);
}

.news-article {
    width: 100%;
}

.news-article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.news-article-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.news-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.news-article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-article-meta strong {
    color: var(--text-primary);
    font-weight: 600;
}

.news-article-meta a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-article-meta a:hover {
    color: var(--accent-secondary);
}

.news-article-image {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
}

.news-article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-article-video-thumbnail {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.video-thumbnail-link {
    display: block;
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 15px;
}

.video-thumbnail-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-thumbnail-link:hover .video-thumbnail-image {
    transform: scale(1.05);
}

.video-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: background 0.3s ease;
    border-radius: 15px;
}

.video-thumbnail-link:hover .video-thumbnail-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.video-play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.video-thumbnail-link:hover .video-play-button {
    transform: scale(1.1);
    background: rgba(255, 0, 0, 1);
}

.video-play-button svg {
    margin-left: 4px; /* Center the play icon */
}

.video-thumbnail-text {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.news-article-image a {
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.news-article-image a:hover {
    opacity: 0.9;
}

/* Video thumbnails in article content */
.news-content-video-thumbnail {
    width: 100%;
    margin: 2rem 0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.content-video-thumbnail-link {
    display: block;
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 15px;
}

.content-video-thumbnail-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.content-video-thumbnail-link:hover .content-video-thumbnail-image {
    transform: scale(1.05);
}

.content-video-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: background 0.3s ease;
    border-radius: 15px;
}

.content-video-thumbnail-link:hover .content-video-thumbnail-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.content-video-play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.content-video-thumbnail-link:hover .content-video-play-button {
    transform: scale(1.1);
    background: rgba(255, 0, 0, 1);
}

.content-video-play-button svg {
    margin-left: 3px; /* Center the play icon */
}

.content-video-thumbnail-text {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.news-article-content {
    line-height: 1.8;
}

.news-article-body {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.news-article-body p {
    margin-bottom: 1.5rem;
}

.news-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.news-article-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

/* Header News Button */

.news-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.news-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.5);
}

@media (max-width: 768px) {
    .news-page {
        padding: 1.5rem;
    }

    .news-header-box {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }

    .news-header-title {
        font-size: 2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-detail-page {
        padding: 1.5rem;
    }

    .news-detail-container {
        padding: 1.5rem;
    }

    .news-article-title {
        font-size: 1.75rem;
    }

    .news-article-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cards-grid-page {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-options {
        flex-direction: column;
        gap: 0.9rem;
    }
    
    .card-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .card-detail-image-section {
        position: static;
        top: auto;
    }

    .card-detail-image {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .card-detail-header {
        gap: 0.5rem;
    }

    .card-name-box {
        flex: 1 1 100%;
        order: 2;
        height: auto;
        min-height: 42px;
    }

    .card-detail-name {
        font-size: 1.2rem;
        white-space: normal;
    }

    .compact-back {
        order: 1;
    }

    .card-header-actions {
        order: 3;
        width: 100%;
        justify-content: flex-end;
        margin-top: 0.5rem;
    }

    .card-detail-level {
        order: 4;
        width: 100%;
    }
    
    .card-stats {
        flex-wrap: wrap;
    }
    
    .weakness-resistance-grid {
        grid-template-columns: 1fr;
    }
}

/* Ensure nav is in grid and aligned */
.header-container > nav {
    justify-self: end;
    display: flex;
    align-items: center;
}

@media (max-width: 480px) {
    .tcg-card.tcg-card--mini {
        flex: 0 0 160px;
    }
    
    .header-container {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }
    
    .logo-image {
        height: 75px;
    }
    
    .header-brand {
        gap: 0.3rem;
    }
    
    .theme-toggle--brand {
        width: 32px;
        height: 32px;
        min-width: 32px;
        padding: 0.3rem;
        left: 0 !important;
        margin-left: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .theme-toggle--brand .pill-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .menu-toggle {
        width: 32px;
        height: 32px;
        min-width: 32px;
        padding: 0.3rem;
        right: 5px !important;
    }
    
    .header-main-links {
        gap: 0.4rem;
    }
    
    .cards-button,
    .news-button {
        padding: 0.55rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .cards-button .pill-icon,
    .news-button .pill-icon {
        width: 20px;
        height: 20px;
    }
    
    .cards-button .pill-icon svg,
    .news-button .pill-icon svg {
        width: 12px;
        height: 12px;
    }
    
    .home-button-standalone {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    
    .search-input {
        padding: 0.65rem 2.5rem 0.65rem 0.85rem;
        font-size: 0.9rem;
        min-height: 40px;
    }
    
    .search-button {
        padding: 0.55rem 1rem;
        font-size: 0.85rem;
        min-height: 40px;
    }
    
    .image-search-button {
        right: 0.4rem;
        width: 28px;
        height: 28px;
        padding: 0.3rem;
    }
    
    .image-search-button svg {
        width: 14px;
        height: 14px;
    }
}

/* Profile Page */
.profile-section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.profile-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.profile-avatar-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-primary);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.avatar-upload-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    min-width: 250px;
}

.avatar-upload-form .file-input {
    padding: 0.75rem;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-upload-form .file-input:hover {
    border-color: var(--accent-primary);
    background: var(--card-bg);
}

.avatar-upload-form .btn {
    width: auto;
    align-self: flex-start;
}

@media (max-width: 768px) {
    .profile-avatar-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .avatar-upload-form {
        width: 100%;
    }
    
    .avatar-upload-form .btn {
        width: 100%;
    }
}

/* Cookie Bar */
.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 2px solid var(--border-color);
    padding: 1rem 1.5rem;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: block;
}

[data-theme="dark"] .cookie-bar {
    background: rgba(30, 41, 59, 0.95);
    border-top-color: rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .cookie-bar {
    background: rgba(255, 255, 255, 0.95);
    border-top-color: rgba(0, 0, 0, 0.1);
}

.cookie-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-bar-text {
    flex: 1;
    min-width: 250px;
}

.cookie-bar-text p {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-bar-link {
    color: var(--accent-primary);
    text-decoration: underline;
    margin-left: 0.25rem;
}

.cookie-bar-link:hover {
    color: var(--accent-secondary);
}

.cookie-bar-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-bar-button {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cookie-bar-accept-all {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
}

.cookie-bar-accept-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.cookie-bar-customize {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.cookie-bar-customize:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.cookie-bar-decline-all {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.cookie-bar-decline-all:hover {
    background: var(--bg-primary);
    border-color: var(--error);
    color: var(--error);
}

/* Cookie Modal */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.cookie-modal-content {
    position: relative;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 10002;
}

[data-theme="dark"] .cookie-modal-content {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .cookie-modal-content {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.1);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.cookie-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.cookie-modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    line-height: 1;
}

.cookie-modal-close:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.cookie-modal-body {
    padding: 1.5rem;
}

.cookie-modal-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-surface);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.cookie-category-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

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

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 2px solid var(--border-color);
    justify-content: flex-end;
}

.cookie-modal-button {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cookie-modal-save {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
}

.cookie-modal-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.cookie-modal-cancel {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.cookie-modal-cancel:hover {
    background: var(--bg-surface);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

/* Cookie settings floating button (visible after consent decision) */
.cookie-settings-fab {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 10002;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    border: 2px solid rgba(99, 102, 241, 0.25);
    background: rgba(20, 27, 45, 0.85);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .cookie-settings-fab {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(99, 102, 241, 0.25);
    color: var(--text-primary);
}

.cookie-settings-fab:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

@media (max-width: 768px) {
    .cookie-bar-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-bar-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-bar-button {
        width: 100%;
    }

    /* Hide cookie settings controls on mobile */
    .cookie-settings-fab,
    .cookie-bar-customize {
        display: none;
    }
    
    .cookie-modal-content {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .cookie-category-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-modal-button {
        width: 100%;
    }
}

/* Legal Pages */
.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Admin pages need more width for tables */
.page-container.admin-page {
    max-width: 1600px;
}

/* Collections page needs more width for cards grid */
.page-container.collections-page {
    max-width: 1600px;
}

.page-content {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-content h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.page-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.page-section {
    margin-bottom: 2rem;
}

.page-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.page-section:first-of-type h2 {
    margin-top: 0;
}

.page-section p {
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.page-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.page-section li {
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.page-section strong {
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .page-container {
        padding: 1rem;
    }
    
    .page-content {
        padding: 1.5rem;
    }
    
    .page-content h1 {
        font-size: 1.5rem;
    }
    
    .page-section h2 {
        font-size: 1.25rem;
    }
    
    /* Admin pages responsive */
    .page-container.admin-page,
    .page-container.collections-page {
        max-width: 100%;
        padding: 1rem;
    }
    
    .admin-table-container {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .admin-table {
        min-width: 1000px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
}

/* RTL Support for Arabic */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .header-container {
    direction: rtl;
}

[dir="rtl"] .header-brand {
    flex-direction: row-reverse;
}

[dir="rtl"] .lang-dropdown {
    left: auto;
    right: 0;
}

[dir="rtl"] .language-selector--compact .lang-dropdown {
    left: auto;
    right: 0;
}

[dir="rtl"] .nav-menu {
    direction: rtl;
}

[dir="rtl"] .header-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .page-section ul {
    margin-left: 0;
    margin-right: 1.5rem;
}

[dir="rtl"] .search-box {
    direction: rtl;
}

[dir="rtl"] .filters-grid {
    direction: rtl;
}

[dir="rtl"] .card-grid {
    direction: rtl;
}

/* Collections Page */
.collections-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3), 0 4px 16px rgba(139, 92, 246, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.collections-page .page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: shimmerCollections 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmerCollections {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.collections-page .page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: shine 3s infinite;
    pointer-events: none;
}

[data-theme="dark"] .collections-page .page-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4), 0 4px 16px rgba(139, 92, 246, 0.3),
                0 0 20px rgba(99, 102, 241, 0.2);
}

.collections-page .page-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4), 0 6px 20px rgba(139, 92, 246, 0.3);
}

.collections-page .page-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.collections-page .page-header .btn-secondary {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
}

.collections-page .page-header .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-surface);
    border-radius: 16px;
    border: 2px dashed var(--border-color);
}

.empty-icon {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.empty-state h2 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.collection-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.collection-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
    border-color: var(--accent-primary);
}

.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.collection-name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    flex: 1;
}

.collection-name a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.collection-name a:hover {
    color: var(--accent-primary);
}

.collection-actions {
    display: flex;
    gap: 0.5rem;
}

.icon-button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.icon-button:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.collection-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.collection-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.collection-privacy {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.privacy-public {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.privacy-private {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.privacy-unlisted {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Collection Selection Modal */
.collections-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 350px;
    overflow-y: auto;
    padding: 0.5rem 0;
    margin-top: 1rem;
}

.collection-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.collection-checkbox-item:hover {
    border-color: var(--accent-primary);
    background: var(--bg-secondary);
}

.collection-checkbox-item input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-primary);
    flex-shrink: 0;
}

.collection-checkbox-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.collection-checkbox-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.collection-checkbox-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.collection-checkbox-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.collection-item-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.modal-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Create Collection Inline */
.create-collection-inline {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px dashed var(--border-color);
}

.btn-create-collection {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-create-collection:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-create-collection svg {
    transition: transform 0.3s ease;
}

.btn-create-collection:hover svg {
    transform: rotate(90deg);
}

.create-collection-form {
    margin-top: 1rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    animation: slideDownForm 0.3s ease;
}

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

.create-collection-form .form-group {
    margin-bottom: 1rem;
}

.create-collection-form .form-group:last-of-type {
    margin-bottom: 0;
}

.create-collection-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.create-collection-form .form-input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.create-collection-form .form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.loading-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.create-collection-link {
    text-decoration: underline;
}

.create-collection-link:hover {
    text-decoration: underline;
}

/* Collections Statistics */
.collections-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s;
}

.stat-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--accent-primary);
    color: white;
    flex-shrink: 0;
}

.stat-icon-likes {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-icon-favorites {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #d97706;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .collections-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

.collection-card-count {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.collection-card-count svg {
    flex-shrink: 0;
    color: var(--accent-primary);
    opacity: 0.8;
}

.collection-date {
    color: var(--text-muted);
}

.collection-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.collection-footer .btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: var(--bg-surface);
    border-radius: 20px;
    border: 2px solid var(--border-color);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-body {
    padding: 1.5rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-content form {
    padding: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Admin Dashboard */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
    border-color: var(--accent-primary);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-users {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
}

.stat-icon-collections {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-icon-cards {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-secondary);
}

.stat-icon-active {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

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

.stat-link {
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    font-size: 0.85rem;
    color: var(--accent-primary);
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.stat-card:hover .stat-link {
    opacity: 1;
}

.admin-actions-section {
    margin-top: 3rem;
}

.admin-actions-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.admin-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
    border-color: var(--accent-primary);
}

.action-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.action-card h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.action-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Admin Table */
.admin-table-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow-x: auto;
    margin-top: 2rem;
    width: 100%;
}

.admin-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
}

.admin-table thead {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.admin-table tbody tr {
    transition: background-color 0.2s;
}

.admin-table tbody tr:hover {
    background: var(--bg-secondary);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.text-center {
    text-align: center;
    padding: 2rem !important;
    color: var(--text-secondary);
}

.roles-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
}

.role-superadmin {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.role-admin {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.role-moderator {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.role-user {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-secondary);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.status-active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-banned {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-deleted {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-muted);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.date-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.icon-button-danger {
    color: var(--error);
}

.icon-button-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
}

/* Admin Sliders */
.slider-thumbnail {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.slider-image-link {
    display: inline-block;
    transition: transform 0.2s;
}

.slider-image-link:hover {
    transform: scale(1.1);
}

.slider-text-cell {
    max-width: 200px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.slider-text-cell strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.slider-text-cell .text-muted {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.link-text {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.85rem;
    word-break: break-all;
}

.link-text:hover {
    text-decoration: underline;
}

.admin-form-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.admin-form-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.admin-form {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-top: 1.5rem;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.form-input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

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

.form-input[type="number"] {
    width: 100%;
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .admin-form {
        padding: 1.5rem;
    }
    
    .slider-text-cell {
        max-width: 100%;
    }
}

/* Collections Page - Favorites & Likes */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.section-header:first-of-type {
    margin-top: 2rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.section-count {
    background: var(--bg-surface);
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.cards-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.card-mini-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.card-mini {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.card-mini:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-primary);
}

.card-mini-image {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background: var(--bg-secondary);
    padding: 0.5rem;
}

.card-mini-placeholder {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.card-mini-info {
    padding: 0.75rem;
    background: var(--bg-surface);
}

.card-mini-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.card-mini-quantity {
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0.15rem 0.5rem;
    background: var(--accent-primary);
    color: white;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-mini-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.5rem;
    margin-top: 0.25rem;
}

.card-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-action-btn:hover:not(.disabled) {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.card-action-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

.card-info-section {
    margin-bottom: 1.5rem;
}

.card-info-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-value {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.card-notes-display {
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
}

.card-links-display {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 0.5rem;
}

.card-link-item:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.text-muted {
    color: var(--text-muted);
    font-style: italic;
}

.collection-description-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-surface);
    border-radius: 8px;
    border-left: 3px solid var(--accent-primary);
}

.collection-description-section p {
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

.collection-meta-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* Collection Card List Layout */
.cards-list-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.collection-card-list-item {
    display: flex;
    gap: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    align-items: flex-start;
}

.collection-card-list-item:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.card-list-image {
    flex-shrink: 0;
    width: 120px;
    height: 160px;
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.card-list-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

.card-list-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.card-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.card-list-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.btn-remove-from-collection {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: var(--error);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.btn-remove-from-collection:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-remove-from-collection-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.btn-remove-from-collection-small:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--error);
}

.card-list-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.card-list-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
    min-width: 0;
}

.card-list-name a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-list-name a:hover {
    color: var(--accent-primary);
}

.card-list-quantity {
    padding: 0.25rem 0.65rem;
    background: var(--accent-primary);
    color: white;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Collection Card Item Details - Accordion (List Layout) */
.collection-card-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.collection-card-details,
.collection-card-details-list {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.collection-card-details-list {
    margin-top: 0;
    border: none;
    background: transparent;
}

.collection-card-details[open],
.collection-card-details-list[open] {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.collection-card-details-list[open] {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
}

.card-details-summary,
.card-details-summary-list {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    transition: all 0.2s ease;
}

.card-details-summary-list {
    padding: 0.5rem 0.75rem;
    background: transparent;
    border-radius: 6px;
}

.card-details-summary::-webkit-details-marker,
.card-details-summary-list::-webkit-details-marker {
    display: none;
}

.card-details-summary:hover,
.card-details-summary-list:hover {
    background: rgba(99, 102, 241, 0.05);
}

.collection-card-details[open] .card-details-summary,
.collection-card-details-list[open] .card-details-summary-list {
    border-bottom: 1px solid var(--border-color);
    background: rgba(99, 102, 241, 0.08);
}

.collection-card-details-list[open] .card-details-summary-list {
    margin-bottom: 0.5rem;
}

.card-details-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-details-title svg {
    color: var(--accent-primary);
    flex-shrink: 0;
}

.card-details-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-detail-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.card-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.card-detail-row-inline {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.card-detail-inline-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex: 1;
}

.card-detail-inline-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.card-detail-inline-item svg {
    flex-shrink: 0;
    color: var(--accent-primary);
    opacity: 0.8;
}

.card-detail-inline-item strong {
    font-weight: 600;
    color: var(--text-secondary);
}

.card-detail-value-inline {
    color: var(--text-primary);
    margin-left: 0.25rem;
}

.card-detail-inline-separator {
    color: var(--text-muted);
    font-weight: 300;
    margin: 0 0.25rem;
}

.btn-edit-notes-inline {
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-edit-notes-inline:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
}

.btn-remove-from-collection-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: var(--error);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-remove-from-collection-inline:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.card-detail-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.card-detail-label svg {
    flex-shrink: 0;
    color: var(--accent-primary);
}

.card-detail-value {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.card-notes-text {
    margin: 0;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    white-space: pre-wrap;
}

.btn-edit-notes,
.btn-add-link {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-edit-notes:hover,
.btn-add-link:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.card-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.65rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 6px;
    color: #fbbf24;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.premium-badge svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cards-grid-mini {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .card-mini-image {
        height: 140px;
    }
    
    .card-mini-placeholder {
        height: 140px;
    }
    
    .section-header h2 {
        font-size: 1.25rem;
    }
    
    .collection-card-list-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .card-list-image {
        width: 100%;
        height: 200px;
    }
    
    .card-list-name {
        font-size: 1rem;
    }
}

[dir="rtl"] .footer {
    direction: rtl;
    text-align: right;
}

/* Site Pages Styles */
.page-content-wrapper {
    padding: 2rem 1rem;
}

.page-card {
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.page-header {
    padding: 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .page-header {
    border: 2px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(99, 102, 241, 0.1);
}

.page-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
    border-color: var(--accent-primary);
}

.page-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.page-updated {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.95);
}

.page-updated svg {
    flex-shrink: 0;
}

.page-body {
    padding: 2rem;
}

.page-section-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.page-section-card:last-child {
    margin-bottom: 0;
}

.page-section-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.page-section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-primary);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.page-section-content {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.page-section-content p {
    margin: 0 0 1rem 0;
}

.page-section-content p:last-child {
    margin-bottom: 0;
}

.page-section-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.page-section-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--bg-surface);
    border-radius: 8px;
    border-left: 3px solid var(--accent-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: all 0.2s ease;
}

.page-section-list li:last-child {
    margin-bottom: 0;
}

.page-section-list li:hover {
    background: var(--bg-secondary);
    transform: translateX(4px);
    border-left-color: var(--accent-primary);
}

.page-section-list li svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .page-content-wrapper {
        padding: 1rem 0.5rem;
    }
    
    .page-header {
        padding: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-body {
        padding: 1.5rem;
    }
    
    .page-section-card {
        padding: 1rem;
    }
    
    .page-section-title {
        font-size: 1.25rem;
    }
    
    .section-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

[dir="rtl"] .footer-grid {
    direction: rtl;
}

