/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --text-dark: #1a202c;
    --text-light: #4a5568;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #48bb78;
    --error-color: #f56565;
    --warning-color: #ed8936;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    height: 40px;
    width: auto;
}


.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
}

.nav-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* Advanced Options Section */
.advanced-options-section {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--border-color);
}

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

.advanced-header h3 {
    margin: 0;
    font-size: 1.125rem;
    color: var(--text-dark);
}

.btn-toggle {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-toggle:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.api-config-section {
    margin-top: 1rem;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

/* Tool Section */
.tool-section {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

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

.tool-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.tool-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

/* Controls */
.controls {
    margin-bottom: 2rem;
}

.control-group-main {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn-action {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary-action {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
}

.btn-secondary-action {
    background: #6c757d;
    color: white;
    border: none;
}

.prompt-section {
    margin-bottom: 1.5rem;
}

.prompt-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prompt-input-large {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.prompt-input-large:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.prompt-input-large::placeholder {
    color: #a0aec0;
}

.prompt-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-generate {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-cancel {
    background: #6c757d;
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #5a6268;
}

.control-options {
    display: flex;
    justify-content: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.control-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

input[type="range"] {
    width: 200px;
    height: 6px;
    border-radius: 5px;
    background: #cbd5e0;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Canvas Container */
.canvas-container {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: var(--bg-light);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.canvas-wrapper {
    position: relative;
    display: inline-block;
}

#imageCanvas {
    display: block;
    max-width: 100%;
    height: auto;
    cursor: crosshair;
    position: relative;
    z-index: 1;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#controlCanvas {
    position: absolute;
    top: 0;
    left: 0;
    cursor: crosshair;
    pointer-events: all;
    z-index: 10;
    border-radius: 12px;
}

#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-align: center;
}

#loading.hidden {
    display: none;
}

.spinner {
    border: 4px solid var(--bg-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.help-text {
    text-align: center;
    padding: 1rem;
    background: #e6f3ff;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    color: var(--text-dark);
}

/* Status Messages */
.status-message {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 1rem;
}

.status-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-message.hidden {
    display: none;
}

/* Utility classes for visibility */
.hidden {
    display: none !important;
}

.prompt-section-hidden {
    display: none;
}

.api-config-hidden {
    display: none;
}

.file-input-hidden {
    display: none;
}

/* Payment required elements */
.payment-required {
    display: none !important;
}

.payment-required.show {
    display: inline-flex !important;
}

.payment-required.show-block {
    display: block !important;
}

.payment-required.show-inline {
    display: inline-block !important;
}

.payment-required-modal {
    display: none !important;
}

.payment-required-modal.show {
    display: flex !important;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

.modal-large {
    max-width: 800px;
}

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

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.modal-body {
    padding: 2rem;
}

.integration-info {
    margin-bottom: 2rem;
}

.info-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-content h3 {
    margin: 0 0 0.5rem 0;
    color: #856404;
    font-size: 1.125rem;
}

.info-content p {
    margin: 0;
    color: #856404;
    line-height: 1.6;
}

.guide-link-box {
    background: #e7f3ff;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.guide-link-box p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.6;
}

.guide-link-box a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.guide-link-box a:hover {
    border-bottom-color: var(--primary-color);
}

.divider {
    height: 2px;
    background: var(--border-color);
    margin: 2rem 0;
}

.prompt-section-modal {
    margin-top: 1.5rem;
}

.prompt-section-modal h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.api-config-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.25rem;
}

.required {
    color: #f56565;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.mt-2 {
    margin-top: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Features Section */
.features-section {
    background: white;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Guide Section */
.guide-section {
    background: white;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.guide-intro {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.guide-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.guide-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.guide-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.guide-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.guide-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.guide-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0;
}

.guide-content {
    color: var(--text-dark);
    line-height: 1.8;
}

.guide-content h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.guide-content h4:first-child {
    margin-top: 0;
}

.guide-content ol,
.guide-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.guide-content li {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.guide-content li strong {
    color: var(--text-dark);
}

.guide-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.guide-content a:hover {
    border-bottom-color: var(--primary-color);
}

.code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 1rem 0;
    border-left: 4px solid var(--primary-color);
}

.code-block code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-family: inherit;
}

.guide-content code {
    background: rgba(102, 126, 234, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: var(--primary-color);
}

.guide-content pre {
    margin: 1rem 0;
}

.tips-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px solid var(--primary-color);
}

.tips-card .guide-icon {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.tips-card h4 {
    color: var(--secondary-color);
}

/* Payment Modal Styles - Professional Design */
.modal-payment {
    max-width: 580px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.payment-info {
    padding: 0;
}

/* Grant Access Section */
.grant-access-section {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(0, 86, 179, 0.05) 100%);
    border: 2px solid rgba(0, 123, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.grant-access-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.grant-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.grant-access-header h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
}

.grant-subtitle {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.grant-access-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-wrapper label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.grant-email-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.grant-email-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.btn-grant-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-grant-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.btn-grant-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.grant-status {
    margin-top: 1rem;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
}

/* Payment Divider */
.payment-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    text-align: center;
}

.payment-divider::before,
.payment-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.payment-divider span {
    padding: 0 1rem;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Donation Section */
.donation-section {
    background: white;
    border-radius: 16px;
}

.donation-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.donation-icon {
    font-size: 3.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.donation-content h3 {
    margin: 0 0 0.75rem 0;
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
}

.donation-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.donation-description {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0.75rem 0 0 0;
    font-size: 0.95rem;
}

.donation-features {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.feature-icon {
    color: #28a745;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.donation-actions {
    margin-bottom: 0;
}

.btn-donate-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-donate-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-donate-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 1.25rem;
}

.payment-status {
    margin-top: 1rem;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
}

.btn-cancel-modal {
    width: 100%;
    background: #f8f9fa;
    color: var(--text-dark);
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-cancel-modal:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Footer */
.footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    margin-top: 3rem;
}

.footer p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .control-group-main {
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
        justify-content: center;
    }
    
    .features-grid,
    .guide-steps {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 1rem;
    }
    
    .tool-section,
    .features-section,
    .guide-section {
        padding: 1.5rem;
    }
}
