/* Reverse Text Generator - Main Styles */

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

:root {
    --primary-color: #6366F1;
    --primary-gradient: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    --text-primary: #1A1A1A;
    --text-secondary: #6B7280;
    --bg-white: #FFFFFF;
    --bg-gray: #F9FAFB;
    --border-gray: #E5E7EB;
    --success-color: #10B981;
    --accent-color: #F59E0B;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-gray);
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
    padding: 60px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

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

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-50px, -50px) rotate(180deg); }
}

@keyframes gradientShift {
    0% {
        background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    }
    25% {
        background: linear-gradient(135deg, #764BA2 0%, #8B5CF6 100%);
    }
    50% {
        background: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 100%);
    }
    75% {
        background: linear-gradient(135deg, #06B6D4 0%, #10B981 100%);
    }
    100% {
        background: linear-gradient(135deg, #10B981 0%, #667EEA 100%);
    }
}

.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 14px;
    opacity: 0.95;
    animation: fadeInUp 0.6s ease-out;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.hero .subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    max-width: 700px;
    margin: 0 auto 60px;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out;
}

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

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 16px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 1.2s ease-out;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Main Tool Section */
.tool-section {
    padding: 60px 0;
    background: var(--bg-white);
    position: relative;
}

.tool-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.6s ease-out;
}

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

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
}

textarea {
    width: 100%;
    padding: 20px;
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    font-size: 16px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    resize: vertical;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

#output-text {
    transition: opacity 0.3s ease;
}

.char-counter {
    text-align: right;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
    transition: color 0.3s ease;
}

.char-counter.active {
    color: var(--primary-color);
}

/* Live Preview Toggle */
.preview-controls {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.preview-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
}

.preview-toggle input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 25px;
    background: var(--border-gray);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 21px;
    height: 21px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.preview-toggle input:checked + .toggle-slider {
    background: var(--primary-gradient);
}

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

.toggle-text {
    font-size: 14px;
    user-select: none;
}

.transform-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.transform-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Mode Selection */
.mode-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 30px 0 60px 0;
}

.mode-card {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: visible;
}

.mode-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.mode-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--bg-gray);
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mode-card input:checked + .mode-label {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mode-label:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.mode-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.mode-name {
    font-weight: 600;
    font-size: 14px;
}

.mode-preview {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-family: monospace;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: var(--shadow-lg);
}

.mode-preview::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(0, 0, 0, 0.9);
}

.mode-card:hover .mode-preview {
    opacity: 1;
    visibility: visible;
    bottom: -50px;
}

/* Copy Button */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.copy-btn, .clear-btn, .transform-btn {
    position: relative;
    overflow: hidden;
}

.copy-btn {
    flex: 1;
    min-width: 150px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.copy-btn.success {
    background: var(--success-color);
    animation: bounce 0.5s ease;
}

/* Clear Button */
.clear-btn {
    flex: 1;
    min-width: 150px;
    background: linear-gradient(135deg, #9CA3AF 0%, #6B7280 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
}

.clear-btn.clearing {
    background: #EF4444;
    animation: bounce 0.5s ease;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Copy Success Fly Out Animation */
.copy-success-flyout {
    position: absolute;
    background: var(--success-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
    z-index: 1000;
    white-space: nowrap;
    animation: flyOut 2s ease-out forwards;
}

@keyframes flyOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -100px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -150px) scale(1.1);
    }
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Feature Grid */
.features-section {
    padding: 80px 0;
    background: var(--bg-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.feature-example {
    background: var(--bg-gray);
    padding: 12px;
    border-radius: 8px;
    font-family: monospace;
    color: var(--primary-color);
    font-size: 14px;
}

/* Pain Points Section */
.benefits-section {
    padding: 80px 0;
    background: white;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.benefit-item {
    display: flex;
    align-items: start;
    gap: 15px;
}

.benefit-icon {
    color: var(--success-color);
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.benefit-text {
    color: var(--text-primary);
    line-height: 1.6;
}

.benefit-highlight {
    font-weight: 600;
    color: var(--primary-color);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: var(--bg-gray);
}

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

.faq-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-gray);
}

.faq-icon {
    transition: transform 0.3s ease;
    font-size: 20px;
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

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

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-answer ol {
    margin-left: 20px;
    margin-top: 10px;
    color: var(--text-secondary);
}

/* SEO Footer */
.seo-footer {
    padding: 60px 0;
    background: white;
    border-top: 1px solid var(--border-gray);
}

.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.keyword-cloud span {
    background: var(--bg-gray);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.keyword-cloud span:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
}

.seo-description {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Info Sections */
.info-section {
    padding: 60px 0;
    background: var(--bg-gray);
}

.info-content {
    max-width: 800px;
    margin: 0 auto;
}

.info-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.info-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Examples */
.examples-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-gray);
    border-radius: 12px;
}

.example-btn {
    position: relative;
    overflow: hidden;
    background: white;
    border: 2px solid var(--border-gray);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: var(--text-primary);
}

.example-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* History Panel */
.history-panel {
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-gray);
    border-radius: 12px;
    border: 1px solid var(--border-gray);
}

.history-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-align: center;
}

.history-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.history-empty {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 20px;
}

.history-item {
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-1px);
}

.history-content {
    flex: 1;
    margin-right: 10px;
}

.history-input {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 500;
}

.history-output {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: monospace;
}

.history-mode {
    background: var(--primary-gradient);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Footer */
footer {
    padding: 40px 0;
    background: var(--text-primary);
    color: white;
    text-align: center;
}

footer p {
    opacity: 0.8;
}

footer a {
    color: white;
    text-decoration: underline;
}


/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 30px 0;
    }

    .hero h1 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .hero .subtitle {
        font-size: 16px;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    /* Trust Badges - 2x2 Grid */
    .trust-badges {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 20px;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .trust-badge {
        font-size: 11px;
        padding: 6px 10px;
        text-align: center;
        justify-content: center;
    }

    .tool-section {
        padding: 30px 0;
    }

    .tool-card {
        padding: 20px;
        margin: 0 10px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    /* Mode Selection - Horizontal Scroll */
    .mode-selection {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding: 10px 0;
        margin: 20px 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        position: relative;
    }

    .mode-selection::-webkit-scrollbar {
        display: none;
    }

    .mode-card {
        flex: 0 0 auto;
        min-width: 90px;
    }

    .mode-label {
        padding: 15px 10px;
        min-height: 80px;
    }

    .mode-icon {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .mode-name {
        font-size: 12px;
    }

    /* Textarea - Reduced Initial Height */
    textarea {
        min-height: 60px;
        padding: 15px;
    }

    #input-text {
        rows: 2;
    }

    #output-text {
        rows: 2;
    }

    /* Keep Action Buttons Visible */
    .action-buttons {
        display: flex;
        flex-direction: column;
    }

    .copy-btn {
        width: 100%;
    }

    .clear-btn {
        width: 100%;
    }

    /* Examples - Horizontal Scroll */
    .examples-bar {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding: 15px 0;
        margin-top: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        position: relative;
    }

    .examples-bar::-webkit-scrollbar {
        display: none;
    }

    .examples-bar > span {
        flex: 0 0 auto;
        font-size: 12px;
        margin-right: 10px;
        align-self: center;
    }

    .example-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 12px;
        padding: 8px 16px;
    }

    /* Compact Sections */
    .info-section,
    .features-section,
    .benefits-section {
        padding: 50px 0;
    }

    .features-grid,
    .benefits-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-icon {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .feature-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    /* FAQ Optimizations */
    .faq-section {
        padding: 50px 0;
    }

    .faq-question {
        font-size: 16px;
        padding: 15px 20px;
    }

    /* SEO Footer */
    .seo-footer {
        padding: 40px 0;
    }

    .keyword-cloud {
        gap: 8px;
        margin: 20px 0;
    }

    .keyword-cloud span {
        font-size: 12px;
        padding: 6px 12px;
    }

    /* Scroll Indicators */
    .mode-selection::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 30px;
        height: 100%;
        background: linear-gradient(to left, var(--bg-white), transparent);
        pointer-events: none;
    }

    .examples-bar::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 30px;
        height: 100%;
        background: linear-gradient(to left, var(--bg-gray), transparent);
        pointer-events: none;
    }

    /* Social Sharing - Mobile */
    .social-buttons {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .social-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
        padding: 12px 20px;
    }

    /* Container Padding */
    .container {
        padding: 0 15px;
    }
}

/* Loading Animation */
.processing {
    position: relative;
    overflow: hidden;
}

.processing::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    to { left: 100%; }
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-gradient);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Save Indicator */
.save-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success-color);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

/* Social Sharing Buttons */
.social-share {
    margin-top: 20px;
    text-align: center;
}

.social-share-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: 600;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-btn.twitter {
    background: linear-gradient(135deg, #1DA1F2 0%, #0d8bd9 100%);
}

.social-btn.facebook {
    background: linear-gradient(135deg, #4267B2 0%, #365899 100%);
}

.social-btn.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #20b954 100%);
}

.social-btn.telegram {
    background: linear-gradient(135deg, #229ED9 0%, #1e8bc3 100%);
}

.social-btn.reddit {
    background: linear-gradient(135deg, #FF4500 0%, #e63d00 100%);
}

.social-btn-icon {
    font-size: 16px;
}

/* Legal Document Modal */
.legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.legal-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.legal-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.legal-modal-header {
    padding: 30px 30px 20px;
    border-bottom: 2px solid var(--border-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-gradient);
    color: white;
    border-radius: 16px 16px 0 0;
}

.legal-modal-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.legal-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.legal-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.legal-modal-body {
    padding: 30px;
    line-height: 1.7;
    color: var(--text-primary);
}

.legal-modal-body h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: var(--primary-color);
}

.legal-modal-body h3:first-child {
    margin-top: 0;
}

.legal-modal-body p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.legal-modal-body ul, .legal-modal-body ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.legal-modal-body li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.legal-highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin: 20px 0;
}

.legal-contact {
    background: var(--bg-gray);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

/* Mobile Modal */
@media (max-width: 768px) {
    .legal-modal {
        padding: 10px;
    }

    .legal-modal-content {
        max-height: 90vh;
    }

    .legal-modal-header {
        padding: 20px;
    }

    .legal-modal-title {
        font-size: 20px;
    }

    .legal-modal-body {
        padding: 20px;
    }
}