:root {
    --primary: #12b886;
    --primary-hover: #0ca678;
    --bg-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-main: #212529;
    --text-muted: #868e96;
    --border: #dee2e6;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: #e6fcf5;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.header-text h1 {
    font-size: 1.75rem;
    font-weight: 700;
}

.header-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Card */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group label span {
    color: #fa5252;
}

.mt-4 {
    margin-top: 1.5rem;
}

input, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #fff;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(18, 184, 134, 0.1);
}

/* Toolbar */
.toolbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.btn-tool {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    background: #f8f9fa;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-tool:hover {
    background: #e9ecef;
}

.tool-icon {
    font-weight: 700;
}

.tool-icon.italic { font-style: italic; font-weight: normal; }
.tool-icon.strike { text-decoration: line-through; }
.tool-icon.code { color: #e83e8c; }

/* Buttons */
.btn-primary {
    width: 100%;
    margin-top: 2rem;
    padding: 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(18, 184, 134, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(18, 184, 134, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Result Area */
.result-card {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--border);
}

.result-card.hidden { display: none; }

.result-header h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.result-body {
    display: flex;
    gap: 0.5rem;
}

#result-url {
    flex: 1;
    background: #f1f3f5;
    border: 1px solid var(--border);
}

.btn-secondary {
    padding: 12px 24px;
    background: #343a40;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover { background: #212529; }

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #343a40;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: opacity 0.3s, transform 0.3s;
}

.toast.hidden { opacity: 0; transform: translate(-50%, 20px); pointer-events: none; }

/* Featured Tool Section */
.featured-tool {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.promo-card {
    background: #fff;
    border-radius: var(--radius);
    display: flex;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.promo-image {
    flex: 0 0 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.promo-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.promo-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.badge {
    display: inline-block;
    background: #e7f5ff;
    color: #228be6;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 0.5rem;
}

.promo-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.promo-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.btn-promo {
    display: inline-block;
    background: #343a40;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    width: fit-content;
    transition: background 0.2s;
}

.btn-promo:hover {
    background: #212529;
}

@media (max-width: 600px) {
    .promo-card {
        flex-direction: column;
    }
    .promo-image {
        flex: 0 0 150px;
    }
    .promo-content {
        padding: 1.5rem;
        text-align: center;
        align-items: center;
    }
}

/* Footer Original Styles */
.footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

