* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #020617;
    color: #e5e7eb;
    overflow-x: hidden;
}

.page {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: radial-gradient(circle at 30% 0, #4f46e5, #111827);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #1f2937;
}

.brand-title {
    font-weight: 600;
    font-size: 16px;
}

.brand-sub {
    font-size: 12px;
    color: #9ca3af;
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #374151;
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-dropdown-btn:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: #4b5563;
}

.lang-dropdown-btn svg {
    width: 10px;
    height: 10px;
    transition: transform 0.2s;
}

.lang-dropdown.is-open .lang-dropdown-btn svg {
    transform: rotate(180deg);
}

.lang-name {
    font-weight: 500;
    font-size: 13px;
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    width: max-content;
    max-height: 400px;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #374151;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

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

.lang-dropdown-item {
    display: block;
    padding: 10px 16px;
    color: #e5e7eb;
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(55, 65, 81, 0.3);
    white-space: nowrap;
    font-size: 13px;
}

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

.lang-dropdown-item:hover {
    background: rgba(79, 70, 229, 0.1);
}

.lang-dropdown-item.is-active {
    background: rgba(79, 70, 229, 0.2);
    color: #818cf8;
}


.layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 20px;
}

@media (max-width: 800px) {
    .layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.card,
.side-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.3) 100%);
    border-radius: 24px;
    border: 1px solid #1f2937;
    padding: 32px;
    backdrop-filter: blur(10px);
}

.converter-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.1), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.converter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #4f46e5, #6366f1, #8b5cf6, transparent);
    animation: slideAccent 8s ease-in-out infinite;
}

@keyframes slideAccent {
    0%, 100% {
        left: -100%;
        opacity: 0.4;
    }
    50% {
        left: 100%;
        opacity: 0.8;
    }
}

.converter-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.converter-icon-badge {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.25) 0%, rgba(99, 102, 241, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a5b4fc;
    flex-shrink: 0;
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
        0 4px 12px rgba(79, 70, 229, 0.3);
}

.converter-icon-badge::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.5), rgba(99, 102, 241, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
}

h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    color: #e5e7eb;
}

.subtitle {
    margin: 0;
    font-size: 15px;
    color: #9ca3af;
    line-height: 1.5;
}

.convert-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.dropzone {
    position: relative;
    border-radius: 20px;
    border: 2px dashed #374151;
    background:
        radial-gradient(ellipse at top, rgba(79, 70, 229, 0.03) 0%, transparent 50%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.2) 100%);
    padding: 48px 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.02);
}

.dropzone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(79, 70, 229, 0.12) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.dropzone::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #4f46e5, #6366f1, #8b5cf6);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.dropzone:hover {
    border-color: transparent;
    background:
        radial-gradient(ellipse at top, rgba(79, 70, 229, 0.08) 0%, transparent 60%),
        linear-gradient(135deg, rgba(79, 70, 229, 0.12) 0%, rgba(15, 23, 42, 0.3) 100%);
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05),
        0 12px 40px rgba(79, 70, 229, 0.15);
}

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

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

.dropzone.dragover {
    border-color: transparent;
    background:
        radial-gradient(ellipse at center, rgba(79, 70, 229, 0.15) 0%, transparent 70%),
        linear-gradient(135deg, rgba(79, 70, 229, 0.2) 0%, rgba(15, 23, 42, 0.4) 100%);
    transform: scale(1.01);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.08),
        0 0 0 3px rgba(79, 70, 229, 0.3),
        0 20px 50px rgba(79, 70, 229, 0.25);
}

.dropzone.dragover::after {
    opacity: 1;
    animation: rotateBorder 2s linear infinite;
}

.dropzone.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    animation: shake 0.5s;
}

.dropzone.error .dropzone-title {
    color: #ef4444;
}

.dropzone.error .dropzone-sub {
    color: #fca5a5;
}

.dropzone.error .dropzone-icon {
    color: #ef4444;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes rotateBorder {
    from {
        filter: hue-rotate(0deg);
    }
    to {
        filter: hue-rotate(360deg);
    }
}

.file-input {
    display: none;
}

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

.dropzone-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(99, 102, 241, 0.1) 100%);
    margin-bottom: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
        0 4px 12px rgba(79, 70, 229, 0.2);
}

.dropzone-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, #4f46e5, #6366f1, #8b5cf6);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.dropzone:hover .dropzone-icon-wrapper {
    transform: scale(1.15) rotate(-8deg);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
        0 8px 24px rgba(79, 70, 229, 0.4);
}

.dropzone:hover .dropzone-icon-wrapper::before {
    opacity: 1;
}

.dropzone.dragover .dropzone-icon-wrapper {
    transform: scale(1.2) rotate(0deg);
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1.2) rotate(0deg);
    }
    50% {
        transform: scale(1.25) rotate(5deg);
    }
}

.dropzone-icon {
    color: #818cf8;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(79, 70, 229, 0.3));
}

.dropzone:hover .dropzone-icon {
    color: #a5b4fc;
    filter: drop-shadow(0 4px 8px rgba(79, 70, 229, 0.5));
}

.dropzone.dragover .dropzone-icon {
    color: #c7d2fe;
}

.dropzone-title {
    font-weight: 600;
    font-size: 16px;
    color: #e5e7eb;
    margin-bottom: 8px;
}

.dropzone-sub {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.dropzone-formats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}

.format-badge {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(99, 102, 241, 0.15));
    color: #a5b4fc;
    border: 1px solid rgba(79, 70, 229, 0.4);
    letter-spacing: 0.8px;
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
        0 2px 8px rgba(79, 70, 229, 0.2);
    transition: all 0.3s ease;
}

.format-badge:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
        0 4px 12px rgba(79, 70, 229, 0.4);
}

/* File selected state */
.dropzone.file-selected {
    border-color: transparent;
    background:
        radial-gradient(ellipse at top, rgba(34, 197, 94, 0.08) 0%, transparent 60%),
        linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(15, 23, 42, 0.3) 100%);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05),
        0 0 0 2px rgba(34, 197, 94, 0.2),
        0 8px 32px rgba(34, 197, 94, 0.15);
}

.dropzone.file-selected::after {
    opacity: 1;
    background: linear-gradient(135deg, #10b981, #22c55e, #34d399);
}

.dropzone.file-selected .dropzone-icon-wrapper {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(16, 185, 129, 0.15) 100%);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
        0 8px 24px rgba(34, 197, 94, 0.3);
}

.dropzone.file-selected .dropzone-icon {
    color: #6ee7b7;
}

.btn-primary {
    border: none;
    border-radius: 999px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.btn-convert {
    position: relative;
    border: none;
    border-radius: 999px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #8b5cf6 100%);
    background-size: 200% 100%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    overflow: hidden;
}

.btn-convert::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-convert:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.5);
    background-position: 100% 0;
}

.btn-convert:hover::before {
    transform: translateX(100%);
}

.btn-convert:active {
    transform: translateY(-1px);
}

.btn-convert-icon {
    transition: transform 0.3s ease;
}

.btn-convert:hover .btn-convert-icon {
    transform: translateX(4px);
}

.converter-features {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    font-size: 13px;
    color: #9ca3af;
}

.feature-item svg {
    color: #4f46e5;
    flex-shrink: 0;
}

.hint {
    font-size: 12px;
    color: #9ca3af;
}

.side-card {
    position: relative;
    padding-left: 35px;
}

.side-title {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 700;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.side-title::before {
    content: '✨';
    font-size: 20px;
}

.side-card h2 {
    margin-top: 0;
    font-size: 18px;
    font-weight: 700;
    color: #e5e7eb;
}

.side-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: #e5e7eb;
}

.side-card ul,
.side-card ol {
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.8;
}

.side-card li {
    margin-bottom: 12px;
    color: #9ca3af;
}

.side-card li strong {
    color: #e5e7eb;
    font-weight: 600;
}

.faq-section {
    margin-top: 48px;
}

.faq-container {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.3) 100%);
    border-radius: 24px;
    border: 1px solid #1f2937;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.faq-title {
    margin: 0 0 32px;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    color: #e5e7eb;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.faq-item {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.2) 100%);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #1f2937;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(79, 70, 229, 0.5);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(15, 23, 42, 0.3) 100%);
    transform: translateX(4px);
}

.faq-question {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: #e5e7eb;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.faq-question::before {
    content: '?';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.faq-answer {
    margin: 0;
    padding-left: 36px;
}

.faq-answer p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #9ca3af;
}

.footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #111827;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
}

.error-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.2) 0%, rgba(153, 27, 27, 0.1) 100%);
    border: 1px solid rgba(220, 38, 38, 0.4);
    border-radius: 16px;
    padding: 16px 20px;
    margin-top: 16px;
    font-size: 14px;
    color: #fecaca;
    backdrop-filter: blur(10px);
}

.error-banner svg {
    color: #f87171;
    flex-shrink: 0;
}

.ad-slot {
    margin-top: 16px;
    padding: 20px;
    background: #0a0f1e;
    border-radius: 12px;
    border: 1px dashed #374151;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 640px) {
    .faq-container {
        padding: 24px 20px;
    }

    .faq-title {
        font-size: 22px;
    }

    .faq-item {
        padding: 20px;
    }

    .converter-card,
    .side-card {
        padding: 24px;
    }

    .converter-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    h1 {
        font-size: 24px;
    }

    .dropzone {
        padding: 36px 24px;
    }

    .dropzone-icon-wrapper {
        width: 80px;
        height: 80px;
    }

    .btn-convert {
        padding: 14px 28px;
        font-size: 15px;
    }

    .layout {
        gap: 16px;
    }
}

/* Global Link Styles */
a {
    color: #818cf8;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #a5b4fc;
}

/* Home Page Styles */
.hero-section {
    text-align: center;
    padding: 60px 20px 40px;
    margin-bottom: 48px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: #a5b4fc;
    margin-bottom: 24px;
}

.hero-badge svg {
    color: #818cf8;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 20px;
    background: linear-gradient(135deg, #e5e7eb 0%, #818cf8 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 18px;
    color: #9ca3af;
    margin: 0 auto;
    max-width: 600px;
    line-height: 1.6;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 32px;
    text-align: center;
    color: #e5e7eb;
}

.section-title-main {
    position: relative;
}

.section-title-main::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    border-radius: 2px;
}

/* Tools Section */
.tools-section {
    margin-bottom: 80px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

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

.tool-card {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.3) 100%);
    border: 1px solid #1f2937;
    border-radius: 20px;
    padding: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.tool-card-featured {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(15, 23, 42, 0.4) 100%);
    border-color: rgba(79, 70, 229, 0.3);
}

.tool-card-featured::before {
    opacity: 1;
}

.tool-card:hover {
    border-color: #4f46e5;
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.3);
}

.tool-card-coming {
    opacity: 0.6;
    cursor: not-allowed;
}

.tool-card-coming:hover {
    transform: none;
    box-shadow: none;
    border-color: #1f2937;
}

.tool-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.tool-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
}

.tool-icon {
    font-size: 32px;
    line-height: 1;
}

.tool-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
}

.tool-badge-soon {
    background: rgba(79, 70, 229, 0.2);
    color: #818cf8;
    border: 1px solid rgba(79, 70, 229, 0.3);
}

.tool-title {
    font-size: 20px;
    margin: 0 0 12px;
    font-weight: 700;
    color: #e5e7eb;
}

.tool-description {
    font-size: 14px;
    color: #9ca3af;
    margin: 0 0 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.tool-stats {
    display: flex;
    gap: 16px;
    margin-top: auto;
}

.tool-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
}

.tool-stat svg {
    color: #4f46e5;
}

.tool-arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    font-size: 24px;
    color: #4f46e5;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.tool-card:hover .tool-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Tool Categories */
.tools-section {
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.tools-section .section-title {
    margin-bottom: 0;
    grid-column: 1 / -1;
}

.tools-section .tool-category {
    grid-column: span 1;
}

@media (min-width: 769px) {
    .tools-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tools-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.tool-category {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
}

.tool-category:hover {
    border-color: #374151;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.category-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(99, 102, 241, 0.05));
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 12px;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    color: #e5e7eb;
    margin: 0;
}

.category-tools {
    display: grid;
    gap: 8px;
}

.category-tool-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #1f2937;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.category-tool-active {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(99, 102, 241, 0.05));
    border-color: rgba(79, 70, 229, 0.3);
    cursor: pointer;
}

.category-tool-active:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(99, 102, 241, 0.1));
    border-color: rgba(79, 70, 229, 0.5);
    transform: translateX(4px);
}

.category-tool-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tool-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
    flex: 1;
}

.tool-item-badge {
    font-size: 11px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    margin-right: 8px;
}

.tool-item-badge-soon {
    background: linear-gradient(135deg, #374151, #4b5563);
    color: #9ca3af;
}

.tool-item-arrow {
    opacity: 0;
    transition: all 0.2s;
    color: #818cf8;
}

.category-tool-active:hover .tool-item-arrow {
    opacity: 1;
}

/* About Section */
.about-section {
    margin-bottom: 60px;
}

.about-container {
    background: #020617;
    border: 1px solid #1f2937;
    border-radius: 20px;
    padding: 32px;
}

.about-content p {
    font-size: 14px;
    line-height: 1.7;
    color: #9ca3af;
    margin: 0 0 16px;
}

.about-subtitle {
    font-size: 18px;
    margin: 24px 0 16px;
    color: #e5e7eb;
}

.about-features {
    padding-left: 20px;
    margin: 0;
}

.about-features li {
    font-size: 14px;
    line-height: 1.7;
    color: #9ca3af;
    margin-bottom: 12px;
}

.about-features li strong {
    color: #e5e7eb;
}

/* Articles Section */
.articles-section {
    margin-bottom: 40px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.article-card {
    background: #020617;
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.article-card:hover {
    border-color: #374151;
}

.article-title {
    font-size: 16px;
    margin: 0 0 12px;
    font-weight: 600;
    color: #e5e7eb;
}

.article-excerpt {
    font-size: 13px;
    color: #9ca3af;
    margin: 0 0 16px;
    line-height: 1.6;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #818cf8;
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.2s ease;
}

.article-link:hover {
    color: #a5b4fc;
    gap: 8px;
}

.article-link::after {
    content: '→';
}

@media (max-width: 640px) {
    .hero-section {
        padding: 40px 20px 30px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

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

    .about-container {
        padding: 24px;
    }

    .tools-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .tool-arrow {
        display: none;
    }
}

/* Footer improvements for AdSense compliance */
.footer {
    margin-top: 60px;
    padding: 24px 0;
    border-top: 1px solid #1f2937;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 12px;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #818cf8;
}

.footer-divider {
    color: #4b5563;
    user-select: none;
}

.footer-copyright {
    display: block;
    color: #6b7280;
    font-size: 12px;
}

/* Legal pages styling */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
}

.legal-page h1 {
    font-size: 32px;
    margin-bottom: 8px;
    color: #f9fafb;
}

.legal-page .updated-date {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 24px;
    display: block;
}

.legal-page .intro {
    font-size: 16px;
    line-height: 1.6;
    color: #d1d5db;
    margin-bottom: 32px;
    padding: 16px;
    background: rgba(79, 70, 229, 0.1);
    border-left: 3px solid #4f46e5;
    border-radius: 4px;
}

.legal-page h2 {
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 12px;
    color: #f3f4f6;
}

.legal-page h3 {
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 10px;
    color: #e5e7eb;
}

.legal-page p {
    line-height: 1.7;
    margin-bottom: 16px;
    color: #d1d5db;
}

.legal-page ul {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-page li {
    line-height: 1.7;
    margin-bottom: 8px;
    color: #d1d5db;
}

.legal-page a {
    color: #818cf8;
    text-decoration: underline;
}

.legal-page a:hover {
    color: #a5b4fc;
}

.contact-box {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
}

.contact-box h3 {
    margin-top: 0;
    color: #818cf8;
}

.contact-box p {
    margin: 8px 0;
}

@media (max-width: 640px) {
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-divider {
        display: none;
    }
    
    .legal-page {
        padding: 16px;
    }
    
    .legal-page h1 {
        font-size: 26px;
    }
}

/* Light theme support for legal pages */
[data-theme="light"] {
    background: #f9fafb;
    color: #111827;
}

[data-theme="light"] .legal-page h1 {
    color: #111827;
}

[data-theme="light"] .legal-page h2 {
    color: #1f2937;
}

[data-theme="light"] .legal-page h3 {
    color: #374151;
}

[data-theme="light"] .legal-page p,
[data-theme="light"] .legal-page li {
    color: #4b5563;
}

[data-theme="light"] .legal-page .intro {
    background: rgba(79, 70, 229, 0.05);
    border-left: 3px solid #4f46e5;
    color: #374151;
}

[data-theme="light"] .legal-page a {
    color: #4f46e5;
}

[data-theme="light"] .legal-page a:hover {
    color: #6366f1;
}

[data-theme="light"] .contact-box {
    background: rgba(249, 250, 251, 0.9);
    border: 1px solid #e5e7eb;
}

[data-theme="light"] .contact-box h3 {
    color: #4f46e5;
}

[data-theme="light"] .contact-box p {
    color: #4b5563;
}

[data-theme="light"] .footer {
    border-top: 1px solid #e5e7eb;
}

[data-theme="light"] .footer-link {
    color: #6b7280;
}

[data-theme="light"] .footer-link:hover {
    color: #4f46e5;
}

[data-theme="light"] .footer-divider {
    color: #d1d5db;
}

[data-theme="light"] .footer-copyright {
    color: #9ca3af;
}
