* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #1f2937;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.mt-brc-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
    background: #ffffff;
    border: 3px solid #d1d5db;
    border-radius: 20px;
    position: relative;
    transition: border 0.3s ease;
}

.mt-brc-container:hover {
    border: 3px solid transparent;
    background: linear-gradient(#ffffff, #ffffff) padding-box,
                linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899) border-box;
}

.mt-brc-tool-wrapper {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
    transition: none;
}

.mt-brc-header {
    text-align: center;
    margin-bottom: 3rem;
}

.mt-brc-header h1,
.mt-brc-header h2 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.mt-brc-header p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.mt-brc-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.mt-brc-glass-card {
    background: #f8fafc;
    border: 2px solid #d1d5db;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}
.mt-brc-glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.mt-brc-main-tool-container {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    transition: none;
}

.mt-brc-dropdown-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.mt-brc-dropdown-btn {
    width: 100%;
    text-align: left;
    justify-content: space-between;
}

.mt-brc-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.mt-brc-dropdown-menu.show {
    display: block;
}

.mt-brc-dropdown-item {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #1f2937;
    transition: background-color 0.2s ease;
}
.mt-brc-dropdown-item:hover {
    background-color: #f3f4f6;
}
.mt-brc-dropdown-item:first-child {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}
.mt-brc-dropdown-item:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.mt-brc-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mt-brc-textarea {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    background: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
}
.mt-brc-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.mt-brc-output-area {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    background: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    overflow-y: auto;
    line-height: 1.8;
    word-spacing: 0.2em;
}

.mt-brc-settings-panel {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.mt-brc-settings-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}
.mt-brc-setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.mt-brc-setting-label {
    font-weight: 500;
    color: #1f2937;
}

.mt-brc-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}
.mt-brc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.mt-brc-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}
.mt-brc-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}
.mt-brc-switch input:checked + .mt-brc-slider {
    background-color: #3b82f6;
}
.mt-brc-switch input:checked + .mt-brc-slider:before {
    transform: translateX(26px);
}
.mt-brc-select {
    padding: 0.5rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}

.mt-brc-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.mt-brc-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.mt-brc-btn-primary:hover {
    background: #fff !important;
    color: #3b82f6 !important;
    border-color: #3b82f6 !important;
}
.mt-brc-btn-secondary {
    background: white;
    color: #1f2937;
    border: 2px solid #d1d5db;
}
.mt-brc-btn-secondary:hover {
    background: #f9fafb !important;
    color: #3b82f6 !important;
    border-color: #3b82f6 !important;
}
.mt-brc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #e5e7eb;
}
.mt-brc-btn:disabled:hover {
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #d1d5db;
    transform: none;
}
.mt-brc-btn-full {
    width: 100%;
}
.mt-brc-btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.bionic-bold {
    font-weight: 700;
    color: #1f2937;
}
.bionic-normal {
    font-weight: 400;
    color: #6b7280;
}

.mt-brc-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.mt-brc-feature-card {
    background: #f8fafc;
    border: 2px solid #d1d5db;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}
.mt-brc-feature-card:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.mt-brc-feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.mt-brc-feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}
.mt-brc-feature-desc {
    color: #6b7280;
}

.mt-brc-how-it-works {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.mt-brc-step {
    text-align: center;
}
.mt-brc-step-number {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}
.mt-brc-step-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}
.mt-brc-step-desc {
    color: #6b7280;
}

.mt-brc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.mt-brc-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}
.mt-brc-stat-label {
    color: #6b7280;
}

.mt-brc-footer {
    text-align: center;
    padding: 2rem 0;
    color: #6b7280;
}
.mt-brc-footer a {
    color: #3b82f6;
    text-decoration: none;
}
.mt-brc-footer a:hover {
    color: #8b5cf6;
}

.mt-brc-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}
.mt-brc-toast.show {
    transform: translateX(0);
}
.mt-brc-toast.success {
    border-left: 4px solid #10b981;
}
.mt-brc-toast.error {
    border-left: 4px solid #ef4444;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 768px) {
    .mt-brc-main-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .mt-brc-header h1,
    .mt-brc-header h2 {
        font-size: 2.5rem;
    }
    .mt-brc-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    .mt-brc-container {
        padding: 20px 16px;
        margin: 10px;
        border-radius: 16px;
    }
    .mt-brc-glass-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    .mt-brc-tool-wrapper {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    .mt-brc-btn-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .mt-brc-textarea, .mt-brc-output-area {
        min-height: 250px;
        font-size: 16px;
        padding: 1rem;
    }
    .mt-brc-btn {
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
        min-height: 52px;
        width: 100%;
    }
    .mt-brc-select {
        padding: 1rem;
        font-size: 16px;
        min-height: 48px;
        width: 100%;
    }
    .mt-brc-dropdown-btn {
        min-height: 48px;
        padding: 1rem;
        font-size: 16px;
    }
    .mt-brc-switch {
        width: 60px;
        height: 32px;
    }
    .mt-brc-slider:before {
        height: 24px;
        width: 24px;
        left: 4px;
        bottom: 4px;
    }
    .mt-brc-switch input:checked + .mt-brc-slider:before {
        transform: translateX(28px);
    }
    .mt-brc-setting-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    .mt-brc-setting-row:last-child {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .mt-brc-features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .mt-brc-feature-card {
        padding: 1.5rem;
    }
    .mt-brc-how-it-works {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .mt-brc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .mt-brc-toast {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    .mt-brc-toast.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .mt-brc-header h1,
    .mt-brc-header h2 {
        font-size: 1.8rem;
    }
    .mt-brc-container {
        padding: 0.5rem;
    }
    .mt-brc-glass-card {
        padding: 1rem;
    }
    .mt-brc-stats-grid {
        grid-template-columns: 1fr;
    }
    .mt-brc-card-title {
        font-size: 1.1rem;
    }
}
.mt-brc-hidden {
    display: none !important;
}