/* Base Styles & Variables */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #10b981;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #f3f4f6;
    --panel-bg: rgba(255, 255, 255, 0.8);
    --shadow-color: rgba(0, 0, 0, 0.05);
    --border-color: rgba(229, 231, 235, 0.8);
    --error-color: #ef4444;
    --success-color: #10b981;
    --border-radius: 12px;
    --transition-speed: 0.3s;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Dark Mode */
[data-theme="dark"] {
    --primary-color: #6366f1;
    --primary-hover: #818cf8;
    --text-color: #f9fafb;
    --text-light: #d1d5db;
    --bg-color: #111827;
    --panel-bg: rgba(31, 41, 55, 0.8);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --border-color: rgba(55, 65, 81, 0.8);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    background-image:
        radial-gradient(at 80% 20%, rgba(79, 70, 229, 0.15) 0px, transparent 50%),
        radial-gradient(at 20% 80%, rgba(16, 185, 129, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
}

button,
input,
select {
    font-family: inherit;
}

.font-sans {
    font-family: var(--font-family);
}

.hidden {
    display: none !important;
}

/* App Container */
.app-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
}

@media (min-width: 768px) {
    .app-container {
        max-width: 1440px;
        padding: 2rem 1rem;
    }
}

/* Header Styles */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.logo-container h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

@media (min-width: 768px) {
    .logo-container h1 {
        font-size: 1.8rem;
    }
}

.logo-tagline {
    font-size: 0.875rem;
    color: var(--text-light);
}

@media (min-width: 768px) {
    .logo-tagline {
        font-size: 1rem;
    }
}

.theme-toggle {
    position: relative;
}

#themeToggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

#themeToggle:hover {
    transform: rotate(15deg);
    color: var(--primary-color);
}

#themeToggle .fa-moon {
    display: inline-block;
}

#themeToggle .fa-sun {
    display: none;
}

[data-theme="dark"] #themeToggle .fa-moon {
    display: none;
}

[data-theme="dark"] #themeToggle .fa-sun {
    display: inline-block;
}

/* Main Content Layout */
.app-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .app-main {
        grid-template-columns: 1fr 1fr;
    }
}

/* Panel Styles */
.panel {
    background: var(--panel-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px var(--shadow-color);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: panelFadeIn 0.6s ease-out;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

@media (min-width: 768px) {
    .panel {
        padding: 1.5rem;
    }
}

.panel:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.panel-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.file-status {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Upload Panel */
.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

@media (min-width: 768px) {
    .drop-zone {
        padding: 2rem;
    }
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(79, 70, 229, 0.05);
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

@media (min-width: 768px) {
    .drop-zone-content {
        gap: 0.75rem;
    }
}

.drop-zone-content i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .drop-zone-content i {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
}

.drop-zone-content p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .drop-zone-content p {
        font-size: 1rem;
    }
}

.file-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.file-input-label {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .file-input-label {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
}

.file-input-label:hover {
    background-color: var(--primary-hover);
}

.file-size-limit {
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* SVG Preview */
.svg-preview-container {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-top: 1rem;
    flex-grow: 1;
    animation: fadeIn 0.5s ease;
    max-height: 30vh;
    overflow: auto;
    width: 100%;
}

@media (min-width: 768px) {
    .svg-preview-container {
        max-height: 40vh;
    }
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.preview-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

@media (min-width: 768px) {
    .file-info {
        flex-direction: row;
        gap: 1rem;
        font-size: 0.875rem;
    }
}

.svg-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 0.375rem;
    width: 100%;
}

.svg-preview svg {
    max-width: 100%;
    max-height: 200px;
}

/* Output Panel */
.output-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    width: 100%;
}

@media (min-width: 768px) {
    .output-actions {
        gap: 0.75rem;
        flex-wrap: nowrap;
    }
}

.action-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .action-button {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

.action-button:hover:not(:disabled) {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.action-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.action-button i {
    font-size: 0.875rem;
}

.export-count {
    font-size: 0.75rem;
    color: var(--text-light);
    white-space: nowrap;
}

/* Options Bar */
.options-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 0.375rem;
    width: 100%;
}

@media (min-width: 768px) {
    .options-bar {
        gap: 1rem;
        padding: 1rem;
    }
}

.option-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .option-group {
        gap: 0.5rem;
    }
}

.option-group label {
    font-size: 0.75rem;
    color: var(--text-light);
}

@media (min-width: 768px) {
    .option-group label {
        font-size: 0.875rem;
    }
}

.select-input {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    color: var(--text-color);
    cursor: pointer;
}

@media (min-width: 768px) {
    .select-input {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .checkbox-group {
        gap: 0.5rem;
    }
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 0.875rem;
    height: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    background-color: white;
    cursor: pointer;
    position: relative;
}

@media (min-width: 768px) {
    .checkbox-group input[type="checkbox"] {
        width: 1rem;
        height: 1rem;
    }
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '✓';
    color: white;
    position: absolute;
    font-size: 0.625rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (min-width: 768px) {
    .checkbox-group input[type="checkbox"]:checked::after {
        font-size: 0.75rem;
    }
}

/* Code Output Container */
.code-output-container {
    flex-grow: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #282c34;
    max-height: 30vh;
    overflow-y: auto;
    width: 100%;
}

@media (min-width: 768px) {
    .code-output-container {
        max-height: 50vh;
    }
}

.code-output-container pre {
    margin: 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    padding: 0.75rem;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (min-width: 768px) {
    .code-output-container pre {
        font-size: 0.875rem;
        padding: 1rem;
    }
}

.code-output-container code {
    font-family: inherit;
    color: #abb2bf;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
    padding: 1rem;
}

.modal-content {
    background-color: var(--panel-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 1.5rem;
    width: 100%;
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    animation: slideUp 0.4s ease;
}

@media (min-width: 768px) {
    .modal-content {
        padding: 2rem;
        max-width: 600px;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .modal-header h2 {
        font-size: 1.5rem;
    }
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: var(--text-color);
}

.modal-body {
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .modal-body {
        font-size: 0.9375rem;
    }
}

.modal-body p {
    margin-bottom: 1.5rem;
}

/* Pricing Table */
.pricing-table {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .pricing-table {
        flex-direction: row;
        gap: 2rem;
    }
}

.pricing-column {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 0.75rem;
    padding: 1.25rem;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 768px) {
    .pricing-column {
        padding: 1.5rem;
    }
}

.pricing-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.pricing-column h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-align: center;
}

.pricing-column ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.pricing-column li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.pricing-column li i {
    color: var(--success-color);
    font-size: 0.875rem;
}

.pricing-column li.disabled {
    color: var(--text-light);
}

.pricing-column li.disabled i {
    color: var(--error-color);
}

.pricing-column .price {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .pricing-column .price {
        font-size: 2rem;
    }
}

.pricing-column .price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-light);
}

.plan-button {
    display: block;
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.plan-button.current {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
}

.plan-button.upgrade {
    background-color: var(--primary-color);
    border: none;
    color: white;
}

.plan-button.upgrade:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 1;
}

.featured-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    white-space: nowrap;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideInRight 0.4s ease, fadeOut 0.4s ease 2.6s forwards;
    max-width: calc(100% - 2rem);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .toast {
        bottom: 2rem;
        right: 2rem;
        padding: 1rem 2rem;
        max-width: 90%;
        font-size: 1rem;
    }
}

.toast-success {
    background-color: var(--success-color);
}

.toast-error {
    background-color: var(--error-color);
}

.export-count-warning {
    color: var(--secondary-color);
}

.export-count-limit {
    color: var(--error-color);
    font-weight: bold;
}

/* Additional Animations */
.theme-toggle-active {
    animation: spin 0.5s ease;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    40% {
        transform: scale(1.1);
    }

    80% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blinkCursor {
    from {
        border-right-color: var(--primary-color);
    }

    to {
        border-right-color: transparent;
    }
}

/* Dark mode adjustments for about section */
[data-theme="dark"] .about-tool-features {
    background-color: rgba(31, 41, 55, 0.3);
}

[data-theme="dark"] .feature-step {
    background-color: rgba(31, 41, 55, 0.6);
}

[data-theme="dark"] .keyword-tag {
    background-color: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .toggle-about-button {
    background: linear-gradient(to top, var(--panel-bg) 60%, transparent);
}

/* About Tool Section - Modern Bottom Version */
.modern-bottom-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
    position: relative;
    border-radius: var(--border-radius);
    overflow: visible;
}

.section-accent-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    z-index: 2;
}

.about-tool-container {
    background: var(--panel-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px var(--shadow-color);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.about-tool-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.about-header-content {
    flex: 1;
    min-width: 0;
}

.about-header-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 0.5rem;
}

.modern-highlight {
    display: block;
    font-size: 1.25rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 0.25rem;
}

.feature-steps.modern-cards {
    gap: 1.5rem;
}

.modern-cards .feature-step {
    flex-direction: column;
    border-radius: 1.25rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: visible;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    padding-top: 3rem;
    transform-origin: center bottom;
}

.modern-cards .step-number {
    position: absolute;
    top: -25px;
    left: 25px;
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-cards .step-content {
    padding: 1.75rem;
    width: 100%;
}

.modern-cards .step-content h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    position: relative;
    font-weight: 600;
}

.modern-cards .step-content h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.modern-cards .step-content p {
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.modern-cards .step-content ul {
    margin-top: 0.75rem;
    padding-left: 1.25rem;
}

.modern-cards .step-content ul li {
    margin-bottom: 0.5rem;
    position: relative;
}

.step-note {
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: rgba(79, 70, 229, 0.08);
    border-left: 3px solid var(--primary-color);
}

.modern-cards .feature-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(79, 70, 229, 0.3);
}

.modern-cards .feature-step:hover .step-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.modern-cards .feature-step:nth-child(odd):hover {
    transform: translateY(-8px) rotate(-1deg);
}

.modern-cards .feature-step:nth-child(even):hover {
    transform: translateY(-8px) rotate(1deg);
}

/* Dark mode adjustments */
[data-theme="dark"] .modern-cards .feature-step {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(55, 65, 81, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .modern-cards .feature-step:hover {
    border-color: rgba(79, 70, 229, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(79, 70, 229, 0.15);
}

[data-theme="dark"] .step-note {
    background: rgba(79, 70, 229, 0.15);
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .feature-steps.modern-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .modern-cards .feature-step {
        height: 100%;
    }
}

/* About Tool Section */
.about-tool-section {
    margin-bottom: 2.5rem;
    overflow: hidden;
    position: relative;
}

.about-tool-container {
    background: var(--panel-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px var(--shadow-color);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.about-tool-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-radius: var(--border-radius);
    z-index: -1;
    opacity: 0.5;
}

.about-tool-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
}

.about-tool-header h2 {
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.about-tool-tagline {
    font-size: 1.125rem;
    color: var(--text-color);
    line-height: 1.6;
    max-width: 90%;
    font-weight: 500;
}

.about-tool-content {
    max-height: 250px;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.about-tool-content.expanded {
    max-height: 2500px;
}

.about-tool-description {
    margin-bottom: 2rem;
}

.about-tool-description p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.about-tool-features {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 0.75rem;
    color: white;
    font-size: 1rem;
}

.feature-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .feature-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-step {
    display: flex;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    padding: 1rem;
    min-width: 3rem;
}

.step-content {
    padding: 1rem;
    flex: 1;
}

.step-content h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.step-content p {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.step-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    font-size: 0.875rem;
}

.step-note {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.75rem !important;
}

.about-tool-advantages {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(to right, rgba(79, 70, 229, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 1rem;
}

.advantages-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.advantages-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    margin-right: 0.75rem;
    color: white;
    font-size: 1rem;
}

.advantages-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .advantages-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.advantages-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
}

.advantages-list li i {
    color: var(--success-color);
    font-size: 1rem;
}

.about-tool-keywords {
    margin-bottom: 2rem;
}

.keywords-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.keywords-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 0.75rem;
    color: white;
    font-size: 1rem;
}

.keywords-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.keyword-tag {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    display: inline-block;
    border: 1px solid rgba(79, 70, 229, 0.2);
    transition: all 0.3s ease;
}

.keyword-tag:hover {
    background-color: #fff;
    color: #4f46e5;
    transform: translateY(-2px);
}

.toggle-about-button {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, var(--panel-bg) 60%, transparent);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.toggle-about-button i {
    transition: transform 0.3s ease;
}

.toggle-about-button:hover {
    color: var(--primary-hover);
}

.toggle-about-button .hide-text {
    display: none;
}

.about-tool-content.expanded .toggle-about-button .show-text {
    display: none;
}

.about-tool-content.expanded .toggle-about-button .hide-text {
    display: inline;
}

.about-tool-content.expanded .toggle-about-button i {
    transform: rotate(180deg);
}

/* Modern highlight styles */
.highlight-text {
    background: linear-gradient(104deg, rgba(79, 70, 229, 0.15) 0%, rgba(79, 70, 229, 0.3) 100%);
    color: #4f46e5;
    font-weight: 600;
    padding: 0.2em 0.4em;
    border-radius: 0.3em;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.15);
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.highlight-text:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* Dark mode styles for highlight-text */
[data-theme="dark"] .highlight-text {
    background: linear-gradient(104deg, rgba(79, 70, 229, 0.3) 0%, rgba(79, 70, 229, 0.5) 100%);
    color: #a5b4fc;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.3);
}

/* Modern cards and step styles */
.modern-cards .feature-step:nth-child(odd):hover {
    transform: translateY(-8px) rotate(-1deg);
}

.modern-cards .feature-step:nth-child(even):hover {
    transform: translateY(-8px) rotate(1deg);
}

/* Dark mode adjustments */
[data-theme="dark"] .modern-cards .feature-step {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(55, 65, 81, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .modern-cards .feature-step:hover {
    border-color: rgba(79, 70, 229, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(79, 70, 229, 0.15);
}

[data-theme="dark"] .step-note {
    background: rgba(79, 70, 229, 0.15);
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .feature-steps.modern-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .modern-cards .feature-step {
        height: 100%;
    }
}

/* Modern list styles */
.advantages-list.modern-list {
    gap: 1rem;
}

.modern-list li {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.modern-list li:hover {
    transform: translateX(5px);
    background-color: rgba(255, 255, 255, 0.7);
}

.modern-check {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.modern-check i {
    color: white;
    font-size: 0.75rem;
}

/* Modern tags styles */
.keywords-tags.modern-tags {
    gap: 0.8rem;
}

.modern-tags .keyword-tag {
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(79, 70, 229, 0.2);
    font-weight: 500;
    padding: 0.6rem 1.25rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modern-tags .keyword-tag:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.2);
    color: #4f46e5;
    background-color: #fff;
}

/* Toggle button styles */
.toggle-about-button.modern-toggle {
    background: linear-gradient(to top, var(--panel-bg) 50%, transparent);
    padding: 1.5rem 1rem 1rem;
    font-weight: 600;
}

.toggle-about-button.modern-toggle:hover {
    transform: translateY(-2px);
}

.toggle-about-button.modern-toggle i {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 5px;
}

/* Dark mode adjustments for modern elements */
[data-theme="dark"] .modern-list li {
    background-color: rgba(31, 41, 55, 0.5);
    border-color: rgba(55, 65, 81, 0.5);
}

[data-theme="dark"] .modern-list li:hover {
    background-color: rgba(31, 41, 55, 0.7);
}

[data-theme="dark"] .modern-tags .keyword-tag {
    background: rgba(31, 41, 55, 0.5);
}

[data-theme="dark"] .modern-tags .keyword-tag:hover {
    background-color: #fff;
    color: #4f46e5;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Modern highlight styles */
.highlight-text {
    background: linear-gradient(104deg, rgba(79, 70, 229, 0.15) 0%, rgba(79, 70, 229, 0.3) 100%);
    color: #4f46e5;
    font-weight: 600;
    padding: 0.2em 0.4em;
    border-radius: 0.3em;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.15);
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.highlight-text:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* Dark mode styles for highlight-text */
[data-theme="dark"] .highlight-text {
    background: linear-gradient(104deg, rgba(79, 70, 229, 0.3) 0%, rgba(79, 70, 229, 0.5) 100%);
    color: #a5b4fc;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.3);
}

/* Advertisement Banner Styles */
.ad-banner {
    width: 100%;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

.ad-banner-top {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.ad-banner-bottom {
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px var(--shadow-color);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12) 0%, rgba(16, 185, 129, 0.12) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    max-width: 1440px;
}

.ad-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1440px;
    margin: 0 auto;
}

.ad-text {
    flex: 1;
    min-width: 200px;
}

.ad-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: rgba(79, 70, 229, 0.1);
    border-radius: 4px;
}

.ad-text h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.ad-text p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.ad-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ad-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(79, 70, 229, 0.3);
    border: none;
    white-space: nowrap;
}

.ad-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.4);
}

.ad-close {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: var(--text-light);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.ad-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

/* Dark mode adjustments for ads */
[data-theme="dark"] .ad-banner {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .ad-banner-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .ad-label {
    background-color: rgba(79, 70, 229, 0.2);
}

[data-theme="dark"] .ad-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments for ads */
@media (min-width: 768px) {
    .ad-banner {
        padding: 0.75rem 2rem;
    }

    .ad-text h3 {
        font-size: 1.125rem;
    }

    .ad-text p {
        font-size: 0.9375rem;
    }

    .ad-button {
        padding: 0.5rem 1.25rem;
        font-size: 0.9375rem;
    }
}

/* Small Modern Footer Styles */
.modern-footer-small {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--panel-bg);
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-content-small {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-content-small {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-branding-small h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.footer-branding-small .social-links {
    margin-top: 0.75rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-branding-small .social-links {
        justify-content: flex-start;
    }
}

.footer-copyright-small {
    color: var(--text-light);
    font-size: 0.8125rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-copyright-small {
        align-items: flex-end;
    }
}

.footer-copyright-small p {
    margin: 0;
}

.footer-copyright-small i {
    color: #e53e3e;
    font-size: 0.75rem;
    margin: 0 0.25rem;
    animation: heartbeat 1.5s infinite;
}

/* Dark mode adjustments */
[data-theme="dark"] .modern-footer-small {
    background: rgba(31, 41, 55, 0.9);
}

/* Social links styles */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

[data-theme="dark"] .social-links a {
    background-color: rgba(79, 70, 229, 0.2);
}

[data-theme="dark"] .social-links a:hover {
    background-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.5);
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.25);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.25);
    }

    60% {
        transform: scale(1);
    }
}

/* Modern footer styles */