﻿:root {
    --bg: #050505;
    --panel: #12264a;
    --header: #080808;
    --accent: #aac500;
    --text: #e2e6f0;
    --muted: #8ea1c9;
    --border: rgba(63, 140, 255, 0.25);
    font-size: 16px;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #050505;
    background: #050505;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader {
    width: 54px;
    height: 54px;
    position: relative;
    border-radius: 4px;
    background-color: var(--loader-bg, #fff);
    background-image: radial-gradient(circle 5px, var(--loader-dot, #19191a) 100%, transparent 0),
        radial-gradient(circle 5px, var(--loader-dot, #19191a) 100%, transparent 0),
        radial-gradient(circle 5px, var(--loader-dot, #19191a) 100%, transparent 0),
        radial-gradient(circle 5px, var(--loader-dot, #19191a) 100%, transparent 0),
        radial-gradient(circle 5px, var(--loader-dot, #19191a) 100%, transparent 0),
        radial-gradient(circle 5px, var(--loader-dot, #19191a) 100%, transparent 0);
    background-repeat: no-repeat;
    animation: move 4s linear infinite, rotate 2s linear infinite;
}

@keyframes rotate {
    0%,
    20% {
        transform: rotate(0deg);
    }
    30%,
    40% {
        transform: rotate(90deg);
    }
    50%,
    60% {
        transform: rotate(180deg);
    }
    70%,
    80% {
        transform: rotate(270deg);
    }
    90%,
    100% {
        transform: rotate(360deg);
    }
}

@keyframes move {
    0%,
    9% {
        background-position: -12px -15px, -12px 0px, -12px 15px, 12px -15px,
            12px 0px, 12px 15px;
    }
    10%,
    25% {
        background-position: 0px -15px, -12px 0px, -12px 15px, 34px -15px, 12px 0px,
            12px 15px;
    }
    30%,
    45% {
        background-position: 0px -34px, -12px -10px, -12px 12px, 34px -15px,
            12px -10px, 12px 12px;
    }
    50%,
    65% {
        background-position: 0px -34px, -12px -34px, -12px 12px, 34px -12px,
            0px -10px, 12px 12px;
    }
    70%,
    85% {
        background-position: 0px -34px, -12px -34px, 0px 12px, 34px -12px, 0px -10px,
            34px 12px;
    }
    90%,
    100% {
        background-position: 0px -34px, -12px -34px, 0px 0px, 34px -12px, 0px 0px,
            34px 12px;
    }
}

.background-video,
.background-color {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-video {
    object-fit: cover;
    opacity: 0.2;
    filter: blur(8px);
}

.background-color {
    opacity: 1;
}

.site-header {
    width: 100%;
    border-radius: 0;
    margin: 0;
    background-color: #080808;
    background: #080808;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    padding: clamp(1rem, 1.2vw + 0.8rem, 1.5rem) 0;
    display: flex;
    justify-content: center;
}

.header-inner {
    width: min(900px, 100%);
    padding: 0 clamp(1.5rem, 4vw, 3.5rem);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.content-shell {
    width: min(900px, 100%);
    margin: 0 auto;
    padding: clamp(1.5rem, min(2vw, 2.5rem), 2.5rem) clamp(1.5rem, min(4vw, 3.5rem), 3.5rem) clamp(2rem, min(3vw, 3rem), 3rem);
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, min(2.5vw, 3rem), 3rem);
    flex: 1;
    max-width: 100%;
    box-sizing: border-box;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #080808;
    background: #080808;
    padding: clamp(1rem, 1.2vw + 0.8rem, 1.5rem) clamp(1.5rem, 2vw, 2rem);
    border-radius: clamp(18px, 2vw, 24px);
    margin: 0;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.footer-logo {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
}

.footer-logo .logo-nova {
    color: var(--text);
}

.footer-logo .logo-labs {
    color: var(--logo-labs);
    font-weight: 800;
}

.footer-copyright {
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    color: var(--muted);
}

.logo {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    transform: translateY(-3px) scale(1.05);
}

.logo-nova {
    color: var(--text);
}

.logo-labs {
    color: #d5f365;
    font-weight: 800;
}

.socials {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.socials a {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
}

.social-link {
    min-width: 42px;
    height: 42px;
}

.social-name {
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    font-weight: 500;
    white-space: nowrap;
    color: var(--text);
}

.notification-icon {
    min-width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 0.75rem;
    position: relative;
    cursor: pointer;
    transition: 0.2s;
}

.notification-icon:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.notification-icon:hover svg {
    color: var(--accent);
}

.notification-icon:hover .notification-text {
    color: var(--accent);
}

.notification-icon svg {
    color: rgba(255, 255, 255, 0.651);
    transform: scale(1.2);
    transition: 0.2s;
}

.notification-point {
    position: absolute;
    bottom: 5px;
    left: 5px;
    width: 6px;
    height: 6px;
    background-color: rgb(0, 255, 0);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-point::before {
    content: "";
    position: absolute;
    width: 1px;
    height: 1px;
    background-color: rgb(0, 255, 0);
    border-radius: 25px;
    animation: notificationLoop 1s 0s infinite;
}

.notification-text {
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}

@keyframes notificationLoop {
    0% {
        background-color: rgb(0, 255, 0);
        width: 1px;
        height: 1px;
    }
    100% {
        background-color: rgba(0, 255, 0, 0);
        width: 30px;
        height: 30px;
    }
}

.socials svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.6;
    fill: none;
}

.socials svg .fill {
    fill: currentColor;
    stroke: none;
}

.socials a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 25px rgba(170, 197, 0, 0.25), 0 0 50px rgba(170, 197, 0, 0.15);
    transform: translateY(-2px);
}

.socials a:hover .social-name {
    color: var(--accent);
}

/* YouTube hover - kırmızı tonlar */
.socials a[aria-label="YouTube"]:hover {
    color: var(--youtube-hover, #ff4444);
    border-color: var(--youtube-hover, #ff4444);
    box-shadow: 0 0 25px rgba(255, 68, 68, 0.4), 0 0 50px rgba(255, 68, 68, 0.2);
}

.socials a[aria-label="YouTube"]:hover .social-name {
    color: var(--youtube-hover, #ff4444);
}

/* Telegram hover - mavi tonlar */
.socials a[aria-label="Telegram"]:hover {
    color: var(--telegram-hover, #0088cc);
    border-color: var(--telegram-hover, #0088cc);
    box-shadow: 0 0 25px rgba(0, 136, 204, 0.4), 0 0 50px rgba(0, 136, 204, 0.2);
}

.socials a[aria-label="Telegram"]:hover .social-name {
    color: var(--telegram-hover, #0088cc);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 2vw, 2.5rem);
}

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

.section-title {
    font-size: 1rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--section-title, #ffffff);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title.featured span {
    animation: featuredTextGlow 2.5s ease-in-out infinite;
}

@keyframes featuredTextGlow {
    0%, 100% {
        text-shadow: 0 0 0 rgba(255, 255, 255, 0);
        filter: brightness(1);
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.4);
        filter: brightness(1.3);
    }
}

.section-icon {
    width: clamp(28px, 3vw, 32px);
    height: clamp(28px, 3vw, 32px);
    object-fit: contain;
    display: block;
}

.cards {
    display: grid;
    gap: clamp(0.75rem, min(1.2vw, 1rem), 1rem);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 100%;
}

.card {
    background: var(--header);
    border-radius: clamp(12px, min(1.5vw, 24px), 24px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 12px 24px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: clamp(200px, 25vw, 300px);
    isolation: isolate;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    padding: 0;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.card::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -25%;
    width: 70%;
    height: 60%;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--card-glow-primary, rgba(170, 197, 0, 0.15)), transparent 65%);
    filter: blur(18px);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.card-logo {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
}

.card-logo img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: clamp(120px, 15vw, 180px);
    object-fit: contain;
    object-position: top;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: transform 0.5s ease;
}

.card-title {
    font-size: clamp(0.7rem, 1.2vw, 1rem);
    font-weight: 600;
    color: var(--text);
    text-align: center;
    padding: 0 clamp(0.75rem, 1.5vw, 1.5rem) 0;
    margin: 0;
    flex: 1 1 auto;
    line-height: 1.4;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    min-height: 2.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    margin-left: clamp(0.75rem, 1.5vw, 1rem);
    margin-right: clamp(0.75rem, 1.5vw, 1rem);
    margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
    padding: clamp(0.5rem, 1vw, 0.75rem) clamp(1rem, 1.5vw, 1.5rem);
    background: var(--accent);
    color: #0c1225;
    font-weight: 700;
    font-size: clamp(0.7rem, 1.1vw, 0.95rem);
    text-decoration: none;
    border-radius: clamp(6px, 1vw, 8px);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: calc(100% - clamp(1.5rem, 3vw, 2rem));
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: clamp(36px, 4vw, 42px);
    max-height: none;
    flex-shrink: 0;
}

.card-button:hover {
    background: var(--button-hover, #C3D900);
    box-shadow: 7px 5px 56px -14px var(--accent);
    transform: translateY(-2px);
}

.card-button:active {
    transform: scale(0.97);
    box-shadow: 7px 5px 56px -10px var(--accent);
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    --glow-x: 20%;
    --glow-y: 20%;
    background: radial-gradient(circle at var(--glow-x) var(--glow-y), var(--card-glow-secondary, rgba(170, 197, 0, 0.12)) 0%, var(--card-glow-tertiary, rgba(170, 197, 0, 0.06)) 25%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease, background 0.1s linear;
    pointer-events: none;
    border-radius: inherit;
}

.card:nth-child(3n+1)::after {
    --glow-x: 25%;
    --glow-y: 30%;
}

.card:nth-child(3n+2)::after {
    --glow-x: 70%;
    --glow-y: 25%;
}

.card:nth-child(3n+3)::after {
    --glow-x: 50%;
    --glow-y: 40%;
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
}

.card:hover::after {
    opacity: 1;
}

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

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

.card:hover .card-title {
    opacity: 1;
    visibility: visible;
}

.card:hover .card-button {
    opacity: 1;
    visibility: visible;
    transform: translateY(-2px);
}

.cards.featured .card {
    animation: featuredGlow 4s ease-in-out infinite;
}

.cards.featured .card:nth-child(1) {
    animation-duration: 3.5s;
}

.cards.featured .card:nth-child(2) {
    animation-duration: 4.2s;
}

.cards.featured .card:nth-child(3) {
    animation-duration: 3.8s;
}

@keyframes featuredGlow {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 12px 24px rgba(0, 0, 0, 0.5);
    }
    50% {
        border-color: var(--card-border-hover, #aac500);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 12px 24px rgba(0, 0, 0, 0.5);
    }
}



@media (max-width: 768px) {
    /* Mobilde butonları gizle */
    .card-button {
        display: none !important;
    }

    .header-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .site-footer {
        flex-direction: column;
        gap: clamp(0.75rem, 2vw, 1rem);
        text-align: center;
    }
    
    .footer-logo {
        font-size: clamp(0.9rem, 2vw, 1.1rem);
    }
    
    .footer-copyright {
        font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    }

    .socials {
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-name {
        display: none;
    }
    
    .social-link {
        min-width: 42px;
    }
    
    .notification-text {
        display: none;
    }
    
    .notification-icon {
        min-width: 42px;
        padding: 0;
    }

    .content-shell {
        width: 100%;
        padding: 1.5rem 1rem 2rem;
    }

    .card {
        min-height: clamp(180px, 30vw, 250px);
    }

    .card-title {
        font-size: clamp(0.65rem, 2vw, 0.9rem);
        padding: 0 clamp(0.75rem, 2vw, 1.25rem) clamp(0.75rem, 2vw, 1rem);
        min-height: 2.5em;
        line-height: 1.3;
    }

    .cards {
        gap: clamp(0.75rem, 2vw, 1rem);
    }
}

@media (max-width: 480px) {
    .card {
        min-height: clamp(160px, 35vw, 220px);
    }

    .card-title {
        font-size: clamp(0.6rem, 2.5vw, 0.85rem);
        padding: 0 clamp(0.5rem, 3vw, 1rem) clamp(0.5rem, 2vw, 0.75rem);
        min-height: 2.2em;
        line-height: 1.3;
    }
    
    /* Mobilde butonları gizle */
    .card-button {
        display: none !important;
    }
}

/* 2K ve büyük ekranlar için optimizasyon */
@media (min-width: 1920px) {
    .card-button {
        padding: 0.75rem 1.5rem;
        font-size: clamp(0.85rem, 1vw, 1rem);
        width: calc(100% - clamp(1.5rem, 3vw, 2rem));
        margin: 1rem auto 1.5rem;
        min-height: 44px;
    }
    
    .card {
        border-radius: 24px;
        min-height: clamp(250px, 20vw, 350px);
    }
    
    .card-title {
        font-size: clamp(0.9rem, 1.2vw, 1.1rem);
        padding: 0 1.5rem 0;
        min-height: 3em;
    }
    
    .cards {
        gap: 1rem;
    }
}

/* Büyük ekranlar için ek optimizasyon */
@media (min-width: 2560px) {
    .card-title {
        font-size: clamp(1rem, 1.3vw, 1.2rem);
        min-height: 3.2em;
    }
    
    .card-button {
        font-size: clamp(0.9rem, 1.1vw, 1.05rem);
        min-height: 48px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    position: relative;
    background: var(--header);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: clamp(20px, 3vw, 32px);
    padding: clamp(2rem, 4vw, 4rem) clamp(2rem, 4vw, 4rem) clamp(2.5rem, 5vw, 4.5rem);
    max-width: min(600px, 90vw);
    width: 100%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    overflow: visible;
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.welcome-modal-card {
    max-width: min(500px, 90vw);
}

.welcome-modal-image {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: clamp(12px, 2vw, 16px);
    overflow: hidden;
}

.welcome-modal-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 300px;
    object-fit: cover;
}

.modal-close {
    position: absolute;
    top: clamp(1rem, 2vw, 1.5rem);
    right: clamp(1rem, 2vw, 1.5rem);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-content {
    text-align: center;
    padding-bottom: clamp(1rem, 2vw, 2rem);
}

.modal-logo {
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-logo img {
    max-width: clamp(120px, 20vw, 200px);
    height: auto;
    object-fit: contain;
}

.modal-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.modal-text {
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
}

.modal-text p {
    margin: 0;
}

.code-display {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(213, 243, 101, 0.3);
    border-radius: clamp(12px, 2vw, 20px);
    padding: clamp(2rem, 4vw, 3rem);
    margin-top: clamp(1rem, 2vw, 2rem);
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-text {
    font-size: clamp(0.8rem, 4vw, 3.5rem);
    font-weight: 800;
    color: #d5f365;
    letter-spacing: 0.1em;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 20px rgba(213, 243, 101, 0.5);
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    line-height: 1.2;
    box-sizing: border-box;
}

.modal-button {
    display: inline-block;
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: clamp(0.5rem, 1vw, 1rem);
    padding: clamp(0.75rem, 2vw, 1rem) clamp(2rem, 4vw, 3rem);
    background: #d5f365;
    color: #050505;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.25rem);
    text-decoration: none;
    border-radius: clamp(8px, 1.5vw, 12px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(213, 243, 101, 0.3);
}

.modal-button:hover {
    background: #c3d900;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(213, 243, 101, 0.5);
}

.modal-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(213, 243, 101, 0.3);
}

@media (max-width: 768px) {
    .modal-card {
        padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem) clamp(3rem, 6vw, 5rem);
        max-width: min(90vw, 500px);
    }
    
    .modal-content {
        padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
    }
    
    .modal-logo {
        margin-bottom: clamp(2rem, 4vw, 2.5rem);
    }
    
    .modal-title {
        margin-bottom: clamp(2rem, 4vw, 2.5rem);
        font-size: clamp(1rem, 2.5vw, 1.8rem) !important;
    }
    
    .code-display {
        padding: clamp(1.5rem, 4vw, 2.5rem);
        margin-top: clamp(1.5rem, 3vw, 2rem);
    }
    
    .code-text {
        font-size: clamp(0.75rem, 3vw, 2rem) !important;
        letter-spacing: 0.05em;
    }
    
    .modal-button {
        margin-top: clamp(2rem, 4vw, 3rem);
        margin-bottom: clamp(1rem, 2vw, 1.5rem);
        padding: clamp(1rem, 2.5vw, 1.25rem) clamp(2.5rem, 5vw, 3.5rem);
        font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    }
}

/* Telegram Card Styles */
.telegram-section {
    margin-top: clamp(1rem, 2vw, 1.5rem);
}

.telegram-card {
    background: var(--header);
    border-radius: clamp(12px, min(1.5vw, 24px), 24px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 12px 24px rgba(0, 0, 0, 0.5);
    padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.5rem);
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.telegram-card::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 136, 204, 0.1), transparent 70%);
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
}

.telegram-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
    border-color: rgba(0, 136, 204, 0.4);
}

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

.telegram-icon-box {
    width: clamp(80px, 12vw, 120px);
    height: clamp(80px, 12vw, 120px);
    border-radius: clamp(12px, 2vw, 20px);
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.2),
                inset 0 0 15px rgba(255, 255, 255, 0.08);
    animation: telegramGlow 4s ease-in-out infinite;
    pointer-events: none;
}

.telegram-icon-box::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: clamp(12px, 2vw, 20px);
    background: linear-gradient(135deg, #0088cc, #00aaff, #0088cc);
    background-size: 200% 200%;
    z-index: -1;
    opacity: 0.3;
    filter: blur(6px);
    animation: telegramPulse 3s ease-in-out infinite;
}

.telegram-icon-box::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: clamp(12px, 2vw, 20px);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 60%);
    z-index: 1;
    pointer-events: none;
}

@keyframes telegramGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 136, 204, 0.2),
                    inset 0 0 15px rgba(255, 255, 255, 0.08);
    }
    50% {
        box-shadow: 0 5px 18px rgba(0, 136, 204, 0.25),
                    inset 0 0 18px rgba(255, 255, 255, 0.1);
    }
}

@keyframes telegramPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.4;
    }
}

.telegram-icon {
    width: clamp(40px, 6vw, 60px);
    height: clamp(40px, 6vw, 60px);
    color: #ffffff;
    fill: currentColor;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.telegram-title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--text);
    margin: 0;
    letter-spacing: 0.05em;
    text-align: center;
    position: relative;
    z-index: 1;
}

.telegram-description {
    font-size: clamp(0.85rem, 1.3vw, 1rem);
    font-weight: 400;
    color: var(--muted);
    margin: 0;
    text-align: center;
    line-height: 1.6;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.telegram-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: clamp(0.75rem, 2vw, 1rem);
    width: 100%;
    position: relative;
    z-index: 1;
    margin-top: clamp(0.5rem, 1vw, 1rem);
}

.telegram-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 1.5vw, 0.75rem);
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 3vw, 1.5rem);
    border-radius: clamp(8px, 1.5vw, 12px);
    font-weight: 600;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.contact-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.1);
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.group-btn {
    background: #0088cc;
    color: #ffffff;
    border-color: #0088cc;
}

.group-btn:hover {
    background: #0077b3;
    border-color: #0077b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
}

.btn-icon {
    width: clamp(18px, 2.5vw, 22px);
    height: clamp(18px, 2.5vw, 22px);
    fill: currentColor;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .telegram-card {
        padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2rem);
        gap: clamp(1rem, 3vw, 1.5rem);
    }
    
    .telegram-icon-box {
        width: clamp(70px, 15vw, 100px);
        height: clamp(70px, 15vw, 100px);
    }
    
    .telegram-icon {
        width: clamp(35px, 8vw, 50px);
        height: clamp(35px, 8vw, 50px);
    }
    
    .telegram-description {
        font-size: clamp(0.8rem, 2vw, 0.95rem);
        line-height: 1.5;
    }
    
    .telegram-buttons {
        grid-template-columns: 1fr;
        gap: clamp(0.75rem, 2.5vw, 1rem);
    }
    
    .telegram-btn {
        padding: clamp(0.875rem, 2.5vw, 1.125rem) clamp(1.25rem, 4vw, 1.75rem);
        font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    }
}
