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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0f;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated gradient blobs background */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation-duration: 10s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    z-index: 0;
    pointer-events: none;
}

body::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.4) 0%, rgba(59, 130, 246, 0.3) 50%, transparent 100%);
    top: -100px;
    left: -100px;
    animation-name: blob1;
}

body::after {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.35) 0%, rgba(168, 85, 247, 0.25) 50%, transparent 100%);
    bottom: -150px;
    right: -150px;
    animation-name: blob2;
}

@keyframes blob1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, 100px) scale(1.1);
    }
    50% {
        transform: translate(100px, 50px) scale(0.9);
    }
    75% {
        transform: translate(-30px, 80px) scale(1.05);
    }
}

@keyframes blob2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-80px, -50px) scale(1.15);
    }
    50% {
        transform: translate(-120px, 30px) scale(0.95);
    }
    75% {
        transform: translate(-50px, -70px) scale(1.08);
    }
}

/* Additional floating blobs */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.floating-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
}

.blob3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, transparent 70%);
    top: 30%;
    right: 10%;
    animation: blob3 12.5s ease-in-out infinite;
}

.blob4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
    top: 60%;
    left: 20%;
    animation: blob4 15s ease-in-out infinite;
}

@keyframes blob3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(-60px, 80px) rotate(120deg) scale(1.1); }
    66% { transform: translate(40px, -50px) rotate(240deg) scale(0.9); }
}

@keyframes blob4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(70px, -60px) rotate(-120deg) scale(1.12); }
    66% { transform: translate(-40px, 70px) rotate(-240deg) scale(0.92); }
}

/* Зменшення розміру блобів на телефонах */
@media (max-width: 768px) {
    body::before {
        width: 250px;
        height: 250px;
        filter: blur(40px);
    }

    body::after {
        width: 300px;
        height: 300px;
        filter: blur(40px);
    }

    .blob3 {
        width: 200px;
        height: 200px;
        filter: blur(30px);
    }

    .blob4 {
        width: 175px;
        height: 175px;
        filter: blur(30px);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .container {
        padding: 48px 24px;
    }
}

/* Header Section - Apple Liquid Glass */
.header {
    text-align: center;
    margin-bottom: 48px;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.header-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: block;
    animation: logoFadeIn 1s ease-out;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

@media (min-width: 768px) {
    .header-logo {
        width: 100px;
        height: 100px;
    }
}

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

.title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2rem, 10vw, 3.5rem);
    color: #FFFFFF;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    animation: fadeInDown 0.8s ease-out 0.2s both;
}

.subtitle {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    text-align: left;
}

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

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

/* Character Cards */
.characters-section {
    margin: 48px 0;
}

.characters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 1024px) {
    .characters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

.section-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(1.5rem, 6vw, 2rem);
    color: #FFFFFF;
    margin-bottom: 32px;
    text-align: center;
    position: relative;
    padding-top: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 2px;
}

/* Apple Liquid Glass Card */
.character-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr auto;
    column-gap: 18px;
    row-gap: 10px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: visible;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    min-height: 240px;
}

/* Subtle gradient overlay */
.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 24px;
    pointer-events: none;
}

.character-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.character-card:hover::before {
    opacity: 1;
}

.character-card:active {
    transform: translateY(-4px) scale(1);
    transition: all 0.15s ease;
}

/* Тип персонажа - справа вгорі (як STEP кнопки на референсі) */
.character-type {
    grid-column: 2;
    grid-row: 1;
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #93C5FD 0%, #60A5FA 100%);
    color: #0a0a0f;
    border-radius: 100px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    justify-self: end;
    align-self: start;
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.4);
    line-height: 1.2;
    border: none;
}

/* Унікальні градієнти для кожного типу персонажа */

/* 1. Фейрі - Смарагдовий */
.type-fairy {
    background: linear-gradient(135deg, #6EE7B7 0%, #10B981 100%);
    color: #0a0a0f;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* 2. Одержимець - Темний фіолетовий */
.type-obsessed {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

/* 3. Бунтар - Вогняний корал */
.type-rebel {
    background: linear-gradient(135deg, #FB923C 0%, #DC2626 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

/* 4. Альфа - Хижацький червоний */
.type-alpha {
    background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(185, 28, 28, 0.4);
}

/* 5. Мільярдер - Темне золото */
.type-billionaire {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #0a0a0f;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.4);
}

/* 6. Босс - Антрацит */
.type-boss {
    background: linear-gradient(135deg, #6B7280 0%, #374151 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(55, 65, 81, 0.4);
}

/* 7. Антигерой - Стальний сірий */
.type-antihero {
    background: linear-gradient(135deg, #9CA3AF 0%, #6B7280 100%);
    color: #0a0a0f;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.4);
}

/* 8. Захисник - Глибокий синій */
.type-protector {
    background: linear-gradient(135deg, #3B82F6 0%, #1E40AF 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.4);
}

/* 9. Трікстер - Смарагдовий тіл (бірюзовий) */
.type-trickster {
    background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.4);
}

/* 10. Ворог - Крижаний блакит */
.type-enemy {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
    color: #0a0a0f;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

/* Заборонений - Пурпурний (унікальний для священика) */
.type-forbidden {
    background: linear-gradient(135deg, #A855F7 0%, #7C3AED 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
}

/* Контейнер для фото - зліва */
.character-image-container {
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Контейнер для імені та опису - справа */
.character-content {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    justify-content: flex-start;
    padding-top: 4px;
}

.character-name {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 6px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Тоненька розділова лінія */
.character-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(241, 233, 225, 0.5), transparent);
    opacity: 0.4;
    margin: 6px 0 8px 0;
}

.character-description {
    color: rgba(255, 255, 255, 0.65);
    font-size: clamp(0.8rem, 3.2vw, 0.9rem);
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

/* Теги внизу на всю ширину */
.character-tags {
    grid-column: 1 / 3;
    grid-row: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
    justify-content: flex-start;
    padding-top: 8px;
    border-top: 1px solid rgba(137, 138, 140, 0.25);
}

.tag {
    padding: 1px 3px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    font-size: 0.50rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: lowercase;
    line-height: 1.2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-family: 'Inter', sans-serif;
}

.tag:first-letter {
    text-transform: uppercase;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Кругле фото - більший розмір як на схемі */
.character-image {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(137, 138, 140, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.character-card:hover .character-image {
    transform: scale(1.05);
    border-color: rgba(241, 233, 225, 0.6);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* Адаптивні розміри */
@media (min-width: 375px) and (max-width: 640px) {
    .character-image {
        width: 135px;
        height: 135px;
    }
}

@media (min-width: 641px) and (max-width: 767px) {
    .character-image {
        width: 160px;
        height: 160px;
    }

    .character-card {
        padding: 22px;
        column-gap: 20px;
        min-height: 250px;
    }

    .tag {
        font-size: 0.52rem;
        padding: 1px 3px;
    }

    .character-type {
        padding: 5px 11px;
        font-size: 0.58rem;
    }
}

@media (min-width: 768px) {
    .character-image {
        width: 180px;
        height: 180px;
    }

    .character-card {
        padding: 24px;
        column-gap: 22px;
        row-gap: 12px;
        min-height: 280px;
    }

    .character-name {
        font-size: 1.5rem;
        font-weight: 700;
    }

    .character-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .character-type {
        font-size: 0.62rem;
        padding: 6px 13px;
    }
}

/* Планшети */
@media (min-width: 768px) and (max-width: 1079px) {
    .tag {
        font-size: 0.75rem;
        padding: 2px 6px;
    }
}

/* Екрани 1080px і більше */
@media (min-width: 1080px) {
    .tag {
        font-size: 0.85rem;
        padding: 3px 8px;
    }
}

/* Suggest Character Button */
.suggest-character-section {
    text-align: center;
    margin: 48px 0;
}

.suggest-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 48px;
    background: rgba(168, 85, 247, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 100px;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 16px rgba(168, 85, 247, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.suggest-button:hover {
    transform: translateY(-4px);
    background: rgba(168, 85, 247, 0.25);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow:
        0 8px 32px rgba(168, 85, 247, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.suggest-button:active {
    transform: translateY(-2px);
}

/* Rules Section - Liquid Glass */
.rules-section {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 32px 20px;
    margin: 48px 0;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(96, 165, 250, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.rules-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg,
        rgba(168, 85, 247, 0.3) 0%,
        rgba(96, 165, 250, 0.3) 50%,
        rgba(168, 85, 247, 0.3) 100%);
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: -1;
}

.rules-section:hover::before {
    opacity: 0.3;
}

.rules-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.4rem, 6vw, 1.8rem);
    color: #FFFFFF;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    padding-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.rules-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 2px;
}

.rules-content {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.95rem, 3.5vw, 1.05rem);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.rules-content p {
    margin-bottom: 16px;
}

.rules-content strong {
    color: #FFFFFF;
    font-weight: 700;
}

.premium-highlight {
    background: rgba(168, 85, 247, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 20px;
    margin: 20px 0;
    border-radius: 16px;
    box-shadow:
        0 4px 20px rgba(168, 85, 247, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .rules-section {
        padding: 48px 40px;
    }
}

/* Premium Section */
.premium-section {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 32px 20px;
    margin: 48px 0;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(168, 85, 247, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.premium-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg,
        rgba(168, 85, 247, 0.4) 0%,
        rgba(236, 72, 153, 0.4) 100%);
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: -1;
}

.premium-section:hover::before {
    opacity: 0.3;
}

.premium-benefits {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.95rem, 3.5vw, 1.05rem);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 32px;
}

.premium-benefits p {
    margin-bottom: 16px;
}

.premium-benefits strong {
    color: #FFFFFF;
    font-weight: 700;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 900px;
    margin: 32px auto;
}

@media (min-width: 768px) {
    .pricing-grid {
        gap: 24px;
    }
}

.pricing-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 20px 12px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(168, 85, 247, 0.05) 0%,
        rgba(96, 165, 250, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.pricing-card:hover::before {
    opacity: 1;
}

@media (min-width: 768px) {
    .pricing-card {
        padding: 32px 24px;
    }
}

.pricing-card.featured {
    border-color: rgba(168, 85, 247, 0.6);
    background: linear-gradient(135deg,
        rgba(168, 85, 247, 0.1) 0%,
        rgba(96, 165, 250, 0.08) 100%);
    transform: scale(1.05);
    box-shadow:
        0 8px 32px rgba(168, 85, 247, 0.3),
        0 0 40px rgba(168, 85, 247, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(168, 85, 247, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-8px);
    box-shadow:
        0 16px 56px rgba(168, 85, 247, 0.4),
        0 0 60px rgba(168, 85, 247, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.stars-image {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    display: block;
    object-fit: contain;
}

.stars-count {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stars-number {
    font-size: 1.2rem;
    font-weight: 600;
}

.stars-word {
    font-size: 0.6rem;
    font-weight: 400;
}

.price {
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 6px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-number {
    font-size: 1.6rem;
    font-weight: 800;
}

.price-currency {
    font-size: 0.8rem;
    font-weight: 600;
}

.price-description {
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
    .stars-image {
        width: 80px;
        height: 80px;
        margin-bottom: 16px;
    }

    .stars-count {
        flex-direction: row;
        gap: 6px;
        margin-bottom: 10px;
        justify-content: center;
    }

    .stars-number {
        font-size: 1.4rem;
    }

    .stars-word {
        font-size: 1.1rem;
    }

    .price-number {
        font-size: 2.2rem;
    }

    .price-currency {
        font-size: 1.1rem;
    }

    .price-description {
        font-size: 0.9rem;
    }
}

.premium-note {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
}

/* Feedback Section */
.feedback-section {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 32px 20px;
    margin: 48px 0;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(236, 72, 153, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.feedback-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg,
        rgba(236, 72, 153, 0.4) 0%,
        rgba(168, 85, 247, 0.4) 100%);
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: -1;
}

.feedback-section:hover::before {
    opacity: 0.3;
}

.feedback-content {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.feedback-content p {
    margin-bottom: 16px;
}

.feedback-content strong {
    color: #FFFFFF;
    font-weight: 600;
}

.feedback-buttons {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.feedback-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 48px;
    background: linear-gradient(135deg,
        rgba(236, 72, 153, 0.2) 0%,
        rgba(168, 85, 247, 0.2) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(236, 72, 153, 0.4);
    border-radius: 100px;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 20px rgba(236, 72, 153, 0.3),
        0 0 30px rgba(236, 72, 153, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

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

.feedback-button:hover::before {
    left: 100%;
}

.feedback-button:hover {
    transform: translateY(-6px) scale(1.05);
    background: linear-gradient(135deg,
        rgba(236, 72, 153, 0.3) 0%,
        rgba(168, 85, 247, 0.3) 100%);
    border-color: rgba(236, 72, 153, 0.6);
    box-shadow:
        0 8px 40px rgba(236, 72, 153, 0.4),
        0 0 50px rgba(236, 72, 153, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.feedback-button:active {
    transform: translateY(-3px) scale(1.02);
}

/* Roadmap Section */
.roadmap-section {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 32px 20px;
    margin: 48px 0;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(96, 165, 250, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.roadmap-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg,
        rgba(96, 165, 250, 0.4) 0%,
        rgba(168, 85, 247, 0.4) 100%);
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: -1;
}

.roadmap-section:hover::before {
    opacity: 0.3;
}

.roadmap-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.roadmap-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
    position: relative;
}

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

.roadmap-number {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        rgba(168, 85, 247, 0.2) 0%,
        rgba(96, 165, 250, 0.2) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(168, 85, 247, 0.4);
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 800;
    color: #FFFFFF;
    flex-shrink: 0;
    transition: all 0.4s ease;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.2);
    position: relative;
    z-index: 2;
}

/* Вертикальна лінія від кола до наступного кола */
.roadmap-number::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 103%;
    transform: translateX(-50%);
    width: 2px;
    height: var(--line-height, 40px);
    background: linear-gradient(180deg,
        rgba(168, 85, 247, 0.5) 0%,
        rgba(96, 165, 250, 0.5) 100%);
    z-index: 0;
}

/* Прибрати лінію після останнього елемента */
.roadmap-item:last-child .roadmap-number::after {
    display: none;
}

.roadmap-item:hover .roadmap-number {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 6px 24px rgba(168, 85, 247, 0.4);
}

.roadmap-box {
    background: rgba(168, 85, 247, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 20px;
    border-radius: 16px;
    box-shadow:
        0 4px 20px rgba(168, 85, 247, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.95rem, 3.5vw, 1.05rem);
    line-height: 1.8;
    flex: 1;
}

.roadmap-box strong {
    color: #FFFFFF;
    font-weight: 700;
}

@media (min-width: 768px) {
    .premium-section,
    .feedback-section,
    .roadmap-section {
        padding: 48px 40px;
    }
}

/* Support Button Section */
.support-section {
    text-align: center;
    margin: 48px 0;
}

.support-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 48px;
    background: rgba(96, 165, 250, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 100px;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 16px rgba(96, 165, 250, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.support-button:hover {
    transform: translateY(-4px);
    background: rgba(96, 165, 250, 0.25);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow:
        0 8px 32px rgba(96, 165, 250, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.support-button:active {
    transform: translateY(-2px);
}

/* Footer Section */
.footer-section {
    text-align: center;
    margin-top: 48px;
    padding: 32px 16px 32px;
    border-top: 1px solid rgba(137, 138, 140, 0.2);
}

.footer-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: clamp(0.85rem, 3.5vw, 0.95rem);
    margin-top: 24px;
    font-weight: 400;
    line-height: 1.6;
    padding: 0 16px;
}

/* Responsive Design */
@media (max-width: 640px) {
    .character-card {
        padding: 18px;
        column-gap: 16px;
        row-gap: 8px;
        min-height: 220px;
    }

    .character-image {
        width: 130px;
        height: 130px;
    }

    .character-tags {
        gap: 4px;
        padding-top: 7px;
    }

    .tag {
        font-size: 0.52rem;
        padding: 1px 3px;
    }

    .character-type {
        padding: 5px 10px;
        font-size: 0.55rem;
        letter-spacing: 0.5px;
    }

    .character-name {
        font-size: clamp(1.15rem, 4.5vw, 1.35rem);
        margin-bottom: 4px;
        font-weight: 700;
    }

    .character-description {
        font-size: clamp(0.75rem, 3vw, 0.85rem);
        line-height: 1.5;
    }

    .character-divider {
        margin: 4px 0 6px 0;
    }
}

/* iPhone specific optimizations */
@media (max-width: 428px) {
    .character-card {
        min-height: 210px;
    }
}

/* Дуже маленькі екрани */
@media (max-width: 360px) {
    .character-image {
        width: 110px;
        height: 110px;
    }

    .character-card {
        padding: 16px;
        min-height: 200px;
    }

    .tag {
        font-size: 0.46rem;
        padding: 1px 3px;
    }

    .character-type {
        padding: 4px 9px;
        font-size: 0.52rem;
    }
}

/* Улучшенная доступность для touch */
@media (hover: none) and (pointer: coarse) {
    .character-card {
        padding: 18px;
    }

    .footer-link,
    .character-card {
        min-height: 48px;
    }

    .tag {
        padding: 2px 3px;
    }
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Animation */
.character-card {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.character-card:nth-child(1) { animation-delay: 0.05s; }
.character-card:nth-child(2) { animation-delay: 0.1s; }
.character-card:nth-child(3) { animation-delay: 0.15s; }
.character-card:nth-child(4) { animation-delay: 0.2s; }
.character-card:nth-child(5) { animation-delay: 0.25s; }
.character-card:nth-child(6) { animation-delay: 0.3s; }
.character-card:nth-child(7) { animation-delay: 0.35s; }
.character-card:nth-child(8) { animation-delay: 0.4s; }
.character-card:nth-child(9) { animation-delay: 0.45s; }
.character-card:nth-child(10) { animation-delay: 0.5s; }

/* Оптимізація для мобільних */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Додаткові візуальні ефекти */
.character-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(241, 233, 225, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.character-card:active::after {
    width: 300px;
    height: 300px;
}

/* Забороняємо виділення тексту при дотику */
.character-card,
.footer-link {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Покращений скролбар для desktop */
@media (min-width: 1024px) {
    ::-webkit-scrollbar {
        width: 10px;
    }

    ::-webkit-scrollbar-track {
        background: rgba(6, 21, 30, 0.5);
    }

    ::-webkit-scrollbar-thumb {
        background: rgba(93, 100, 102, 0.6);
        border-radius: 5px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(137, 138, 140, 0.8);
    }
}

/* Loading спінер для lazy loading зображень */
.character-image {
    background: linear-gradient(
        90deg,
        rgba(93, 100, 102, 0.2) 0%,
        rgba(93, 100, 102, 0.3) 50%,
        rgba(93, 100, 102, 0.2) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.character-image[src] {
    animation: none;
    background: transparent;
}

/* Mobile viewport fix */
@supports (-webkit-touch-callout: none) {
    body {
        min-height: -webkit-fill-available;
    }
}

/* Pricing Card Tooltip */
.pricing-tooltip {
    position: fixed;
    bottom: 20vh;
    left: 50%;
    transform: translate(-50%, 20px) scale(0.9);
    background: rgba(168, 85, 247, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #FFFFFF;
    padding: 16px 32px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow:
        0 8px 32px rgba(168, 85, 247, 0.5),
        0 0 40px rgba(168, 85, 247, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 90vw;
    text-align: center;
    line-height: 1.5;
    white-space: normal;
}

.pricing-tooltip.show {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

/* Bounce animations */
.pricing-tooltip.bounce {
    animation: tooltipBounce 0.4s cubic-bezier(0.36, 0, 0.66, -0.56);
}

@keyframes tooltipBounce {
    0% {
        transform: translate(-50%, 0) scale(1);
    }
    50% {
        transform: translate(-50%, -20px) scale(1.05);
    }
    100% {
        transform: translate(-50%, 0) scale(1);
    }
}

/* Bounce levels */
.pricing-tooltip.bounce-level-2 {
    animation: tooltipBounce2 0.5s cubic-bezier(0.36, 0, 0.66, -0.56);
}

@keyframes tooltipBounce2 {
    0% {
        transform: translate(-50%, 0) scale(1);
    }
    50% {
        transform: translate(-50%, -40px) scale(1.15);
    }
    100% {
        transform: translate(-50%, 0) scale(1);
    }
}

.pricing-tooltip.bounce-level-3 {
    animation: tooltipBounce3 0.6s cubic-bezier(0.36, 0, 0.66, -0.56);
}

@keyframes tooltipBounce3 {
    0% {
        transform: translate(-50%, 0) scale(1);
    }
    50% {
        transform: translate(-50%, -60px) scale(1.3);
    }
    100% {
        transform: translate(-50%, 0) scale(1);
    }
}

.pricing-tooltip.bounce-level-max {
    animation: tooltipBounceMax 0.7s cubic-bezier(0.36, 0, 0.66, -0.56);
    padding: 20px 48px;
    font-size: 1.2rem;
}

@keyframes tooltipBounceMax {
    0% {
        transform: translate(-50%, 0) scale(1);
    }
    50% {
        transform: translate(-50%, -80px) scale(1.5);
    }
    100% {
        transform: translate(-50%, 0) scale(1);
    }
}

/* Size transition when returning to normal */
.pricing-tooltip.reset-size {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 16px 32px;
    font-size: 1rem;
}

.pricing-tooltip code {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: 'Inter', monospace;
    font-weight: 700;
    white-space: nowrap;
    display: inline-block;
}

.pricing-tooltip .tooltip-line {
    display: inline-block;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .pricing-tooltip {
        font-size: 0.9rem;
        padding: 14px 24px;
        max-width: 90vw;
        bottom: 15vh;
    }

    .pricing-tooltip.bounce-level-max {
        padding: 18px 32px;
        font-size: 1.05rem;
    }

    @keyframes tooltipBounceMax {
        0% {
            transform: translate(-50%, 0) scale(1);
        }
        50% {
            transform: translate(-50%, -60px) scale(1.3);
        }
        100% {
            transform: translate(-50%, 0) scale(1);
        }
    }
}

@media (max-width: 480px) {
    .pricing-tooltip {
        font-size: 0.8rem;
        padding: 12px 18px;
        max-width: 95vw;
        bottom: 12vh;
    }

    .pricing-tooltip.bounce-level-max {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
}

@media (max-width: 380px) {
    .pricing-tooltip {
        font-size: 0.75rem;
        padding: 10px 16px;
        bottom: 10vh;
    }

    .pricing-tooltip.bounce-level-max {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}
