html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

html:has(body:not(:target)) {
    scroll-padding-top: 0;
}

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

@font-face {
    font-family: 'Pacifico';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/static/fonts/pacifico-v23-regular.ttf') format('truetype');
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 3rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: -2;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite reverse;
    z-index: -2;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.particle {
    position: absolute;
    background: rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

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

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

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

.logo h1 {
    font-size: 4rem;
    font-weight: 700;
    background: url('https://cdn.7tv.app/paint/01J6M387YG0000HJTPW7AY3FZX/layer/01JAMR3EW9Q3R9765PKXM7M4S8/4x.avif');
    background-size: cover;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-position: center;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    display: inline-block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.tagline {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.all-in-one {
    font-family: 'Pacifico', cursive;
    font-weight: 400;
    background: linear-gradient(90deg, #9758e4 0%, rgba(255, 255, 255, 0.9) 50%, #4b79c9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease-out forwards;
}

.fade-in-delay-1 {
    animation-delay: 0.1s;
}

.fade-in-delay-2 {
    animation-delay: 0.2s;
}

.fade-in-delay-3 {
    animation-delay: 0.3s;
}

.fade-in-delay-4 {
    animation-delay: 0.4s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.particles {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.subtitle {
    color: #888;
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 3rem;
}

.get-started-btn {
    background: #374151;
    color: white;
    border: none;
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.get-started-btn:hover {
    transform: translateY(-2px);
    background: #1f2937;
}

.arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.get-started-btn:hover .arrow-icon {
    transform: translateX(4px);
}

.home-image {
    margin-top: 3rem;
    max-width: 60%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 3rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666;
    font-size: 0.9rem;
}

.widgets-section {
    background: #0a0a0a;
    padding: 5rem 2rem;
    min-height: 100vh;
}

.widget-section {
    scroll-margin-top: 100px;
}

.footer {
    background: #111111;
    padding: 3rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-category {
    color: #ffffff;
}

.footer-category h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-logos {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.social-logo {
    width: 1.2rem;
    height: 1.2rem;
    color: #888;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-logo:hover {
    color: #ffffff;
}

.social-logo svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.sticky-header.show {
    transform: translateY(0);
}

.sticky-header .logo {
    margin: 0;
    text-align: left;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.sticky-header .logo h1 {
    font-size: 2rem;
    background: url('https://cdn.7tv.app/paint/01J6M387YG0000HJTPW7AY3FZX/layer/01JAMR3EW9Q3R9765PKXM7M4S8/4x.avif');
    background-size: cover;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-position: center;
    margin: 0;
    letter-spacing: -0.02em;
    display: inline-block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.sticky-header .nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.sticky-header .nav-link {
    color: #888;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.sticky-header .nav-link:hover {
    color: #ffffff;
    background: rgba(102, 126, 234, 0.1);
}

.sticky-header .get-started-btn {
    background: #374151;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.sticky-header .get-started-btn:hover {
    transform: translateY(-2px);
    background: #1f2937;
}

.sticky-header .arrow-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.sticky-header .get-started-btn:hover .arrow-icon {
    transform: translateX(4px);
}

.widgets-container {
    max-width: 800px;
    margin: 0 auto;
}

.games-button-container {
    text-align: center;
    margin-bottom: 3rem;
}

.games-main-btn {
    background: url('https://cdn.7tv.app/paint/01HBXZS5680009NC1Q0NCNE82C/layer/01JAMR2BPQYF8Y2KQZF5Q6BDXR/4x.avif');
    background-size: cover;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 3rem;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: transparent;
    position: relative;
}

.games-main-btn .arrow-icon {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
    fill: none;
    transition: transform 0.3s ease;
}

.games-main-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.games-main-btn:hover::before {
    opacity: 1;
}

.games-main-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.games-main-btn:hover .arrow-icon {
    transform: translateX(4px);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-arrow {
    width: 20px;
    height: 20px;
    stroke: #888;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out, padding 0.2s ease-out;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer p {
    color: #ccc;
    line-height: 1.6;
    margin: 0;
    font-size: 1.1rem;
}

.faq-answer a {
    color: #888;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.faq-answer a:hover {
    color: #aaa;
}

.game-image {
    margin: 1.5rem 0;
    max-width: 60%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.game-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.game-text-content {
    max-width: 600px;
}

.game-image-container {
    max-width: 800px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.game-header .nav-icon {
    width: 32px;
    height: 32px;
    color: #ffffff;
}

.game-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.game-description {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 0;
}

.game-image {
    margin: 0;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.paints-section {
    background: #0a0a0a;
    padding: 5rem 2rem;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paints-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.paints-header {
    display: flex;
    align-items: center;
    justify-content: center;
}

.paints-header svg {
    width: 28px;
    height: 28px;
    color: #ffffff;
}

.paints-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.underlined {
    text-decoration: underline;
    text-decoration-color: #ffffff;
    text-underline-offset: 4px;
}

.external-link {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.external-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.external-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.external-link:hover svg {
    transform: translateX(2px);
}

.tv-link {
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.tv-link:hover {
    transform: scale(1.05);
}

.tv-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.tv-link:hover svg {
    transform: scale(1.1);
}

.widgets-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #ffffff;
}

.widget-item {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.widget-item:hover {
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.widget-icon {
    width: 64px;
    height: 64px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    flex-shrink: 0;
}

.widget-icon svg {
    width: 32px;
    height: 32px;
}

.widget-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.widget-description {
    color: #b0b0b0;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.widget-action {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.widget-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .get-started-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .home-image {
        max-width: 80%;
    }

    .sticky-header .logo h1 {
        font-size: 1.5rem;
    }

    .sticky-header .nav-links {
        gap: 1rem;
    }

    .sticky-header .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .sticky-header .get-started-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .widget-item {
        padding: 2rem;
    }

    .widget-header {
        gap: 1rem;
    }

    .widget-icon {
        width: 48px;
        height: 48px;
    }

    .widget-icon svg {
        width: 24px;
        height: 24px;
    }

    .widget-title {
        font-size: 1.5rem;
    }

    .game-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .game-text-content {
        text-align: center;
    }

    .game-header {
        justify-content: center;
    }

    .paints-header {
        flex-direction: column;
        gap: 1rem;
    }

    .paints-title {
        font-size: 1.8rem;
        gap: 0.5rem;
    }

    .paints-header svg {
        width: 28px;
        height: 28px;
    }

    .paints-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .widget-content-horizontal {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .preview-section-horizontal {
        height: 240px;
        min-height: 240px;
        max-height: 240px;
    }

    .preview-container-horizontal {
        height: 180px;
        min-height: 180px;
        max-height: 180px;
    }

    .input-section-horizontal {
        height: 240px;
        min-height: 240px;
        max-height: 240px;
    }

    .preview-text-horizontal {
        font-size: 1.2rem;
    }
}

.widget-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.widget-content-horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
}

.preview-section-horizontal {
    background: rgba(42, 42, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 280px;
    min-height: 280px;
    max-height: 280px;
}

.preview-section-horizontal h2 {
    text-align: left;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #fff;
}

.preview-container-horizontal {
    flex: 1;
    background: 
        linear-gradient(45deg, #2a2a2a 25%, transparent 25%),
        linear-gradient(-45deg, #2a2a2a 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #2a2a2a 75%),
        linear-gradient(-45deg, transparent 75%, #2a2a2a 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    height: 200px;
    min-height: 200px;
    max-height: 200px;
}

.preview-text-horizontal {
    font-weight: 900;
    line-height: 1.2;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    filter: drop-shadow(0 6px 24px rgba(0,0,0,0.5));
    padding: 0.5rem;
    overflow: hidden;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    box-sizing: border-box;
    display: inline-block;
    text-align: center;
    font-size: 2rem;
    transition: font-size 0.3s ease;
}

.preview-text-horizontal.timer-preview-text {
    white-space: nowrap;
    font-size: 2.5rem;
    font-family: 'Inter', sans-serif;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.input-section-horizontal {
    background: rgba(42, 42, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 280px;
    min-height: 280px;
    max-height: 280px;
    position: relative;
    z-index: 1;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-section-horizontal label {
    text-align: left;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: #fff;
    font-weight: 600;
}

.text-input-horizontal {
    flex: 1;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    resize: none;
    box-sizing: border-box;
}

.text-input-horizontal:focus {
    border-color: #9ca3af;
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.2);
}

.preview-section {
    background: rgba(42, 42, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.preview-container {
    flex: 1;
    background: 
        linear-gradient(45deg, #fff 25%, transparent 25%),
        linear-gradient(-45deg, #fff 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #fff 75%),
        linear-gradient(-45deg, transparent 75%, #fff 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    background-color: #f0f0f0;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.preview-text {
    font-weight: 900;
    line-height: 1.2;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    white-space: pre-line;
    word-wrap: normal;
    word-break: normal;
    overflow-wrap: normal;
    -webkit-font-smoothing: antialiased;
    filter: drop-shadow(0 6px 24px rgba(0,0,0,0.5));
    padding: 0.5rem;
    overflow: hidden;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    box-sizing: border-box;
    display: inline-block;
    text-align: center;
}

.right-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-section {
    background: rgba(42, 42, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.input-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.radio-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(26, 26, 26, 0.8);
    color: #b0b0b0;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: #9ca3af;
    background: rgba(26, 26, 26, 1);
    color: #fff;
}

.radio-option.selected {
    background: rgba(156, 163, 175, 0.2);
    border-color: #9ca3af;
    color: #fff;
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    cursor: pointer;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.4s;
    border-radius: 20px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 1px;
    background-color: #b0b0b0;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #10b981;
    border-color: #10b981;
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background-color: #fff;
}

.toggle-switch:hover .toggle-slider {
    background-color: rgba(156, 163, 175, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.format-toggle {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: #b0b0b0;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.format-toggle:hover {
    border-color: #9ca3af;
    background: rgba(26, 26, 26, 1);
    color: #fff;
}

.format-toggle.active {
    background: rgba(156, 163, 175, 0.2);
    border-color: #9ca3af;
    color: #fff;
}

.text-input {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    resize: vertical;
    min-height: 2.5rem;
    max-height: 200px;
}

.text-input:focus {
    border-color: #9ca3af;
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.2);
}

.font-selector {
    position: relative;
}

.font-select-button {
    width: 100%;
    padding: 0.75rem;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.font-select-button:hover {
    border-color: #9ca3af;
    background: rgba(26, 26, 26, 1);
}

.text-align-button {
    padding: 0.75rem;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.text-align-button:hover {
    border-color: #9ca3af;
    background: rgba(26, 26, 26, 1);
}

.text-align-button svg {
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
    stroke: #ffffff;
    stroke-width: 2.5;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.font-preview-text {
    flex: 1;
    text-align: left;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.url-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.url-container {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.url-display {
    flex: 1;
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #4ade80;
    word-break: break-all;
    display: flex;
    align-items: center;
}

.copy-button-icon {
    padding: 0.75rem;
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.copy-button-icon svg {
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
    stroke: #ffffff;
    stroke-width: 2;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.copy-button-icon:hover {
    border-color: #9ca3af;
    background: rgba(42, 42, 42, 1);
}

.copy-button-icon:active {
    transform: translateY(1px);
}

.copy-button-icon.copied {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.paint-button {
    padding: 0.5rem 0.75rem;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    flex-shrink: 0;
}

.paint-button:hover {
    border-color: #9ca3af;
    background: rgba(26, 26, 26, 1);
}

.paint-button.selected {
    border-color: #9ca3af;
    background: rgba(156, 163, 175, 0.2);
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.2);
}

.paint-button svg {
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(42, 42, 42, 0.95);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 300px;
}

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

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: #ffffff;
    stroke-width: 2;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.toast-text {
    font-size: 0.95rem;
    line-height: 1.4;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    padding: 2rem;
    overflow-y: auto;
}

.modal.active {
    display: block;
}

.modal-content {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: #fff;
}

.modal-close {
    background: none;
    border: none;
    color: #b0b0b0;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.paint-modal-content {
    max-width: 900px;
    position: relative;
}

.paint-modal-search {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    font-size: 1rem;
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    outline: none;
    margin-bottom: 0;
    transition: all 0.3s ease;
    height: 46px;
    box-sizing: border-box;
}

.paint-modal-search:focus {
    border-color: #9ca3af;
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.2);
}

.paint-filter-container {
    margin-bottom: 1.5rem;
}

.paint-filter-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.paint-filter-btn {
    padding: 0.75rem 1rem;
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paint-filter-btn:hover {
    border-color: #9ca3af;
    background: rgba(42, 42, 42, 1);
}

.paint-filter-btn.active {
    border-color: #9ca3af;
    background: rgba(156, 163, 175, 0.2);
    color: #fff;
}

.paint-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.paint-modal-item {
    background: rgba(42, 42, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paint-modal-item:hover {
    transform: translateY(-2px);
    border-color: #9ca3af;
    box-shadow: 0 4px 12px rgba(156, 163, 175, 0.2);
}

.paint-modal-item-preview {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1rem;
    text-align: center;
    border-radius: 12px;
    background: rgba(15, 15, 15, 0.8);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    image-rendering: auto;
}

.font-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.font-item {
    background: rgba(42, 42, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.font-item:hover {
    transform: translateX(4px);
    border-color: #9ca3af;
    box-shadow: 0 4px 12px rgba(156, 163, 175, 0.2);
}

.font-item.selected {
    border-color: #9ca3af;
    background: rgba(156, 163, 175, 0.1);
}

.font-item-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-right: 1rem;
}

.font-item-preview {
    flex: 1;
    text-align: right;
    font-size: 1.2rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}
