:root {
    --primary: #ffd800;
    /* Amarelo Completa */
    --primary-hover: #e6c200;
    --secondary: #79addc;
    --dark: #000000;
    --text: #333333;
    --gray-light: #f4f7f6;
    --gray-medium: #e5e9ec;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: #eeeeee;
    color: var(--text);
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

.header {
    background: var(--dark);
    color: var(--white);
    padding: 15px 0;
    border-bottom: 4px solid var(--primary);
}

.tool-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}

.tool-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.tool-nav a:hover {
    color: var(--primary);
}

.btn-modern-nav {
    background: var(--primary);
    color: var(--dark) !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700 !important;
}

.btn-modern-nav:hover {
    background: var(--white);
    transform: translateY(-2px);
}

/* Dropdown Custom */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 10px;
}

.dropdown-item {
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.merchant-csw .csw-banner {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.merchant-csw .csw-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 216, 0, 0.05) 0%, transparent 70%);
    z-index: -1;
}

.signature-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.tool-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.title-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.title-section p {
    font-size: 1.1rem;
    color: var(--gray-dark);
    max-width: 800px;
    margin-bottom: 40px;
}

/* Custom Tabs / Steps */
.step-tabs {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--gray-medium);
}

.step-tab {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    color: var(--gray-dark);
    transition: all 0.3s ease;
}

.step-tab:hover {
    color: var(--dark);
}

.step-tab.active {
    color: var(--dark);
}

.step-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    border-radius: 4px 4px 0 0;
}

/* Install Tabs */
.nav-tabs {
    border-bottom: 2px solid var(--gray-medium);
}

.nav-tabs .nav-link {
    border: none;
    color: var(--gray-dark);
    font-weight: 600;
    padding: 10px 20px;
    transition: var(--transition);
}

.nav-tabs .nav-link.active {
    color: var(--dark);
    background: transparent;
    border-bottom: 3px solid var(--primary);
}

.content-inner {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.content-inner.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Inputs */
.modern-input-group {
    margin-bottom: 20px;
    position: relative;
}

.modern-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.text-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-medium);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: var(--white);
    color: var(--dark);
}

.text-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 216, 0, 0.2);
}

select.text-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
}

/* Preview Styles */
.preview-container {
    position: sticky;
    top: 100px;
}

.preview-window {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--gray-medium);
}

.preview-header {
    background: #f1f3f4;
    padding: 10px 15px;
    border-bottom: 1px solid var(--gray-medium);
    display: flex;
    align-items: center;
}

.preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.preview-dot.red {
    background: #ff5f56;
}

.preview-dot.yellow {
    background: #ffbd2e;
}

.preview-dot.green {
    background: #27c93f;
}

.preview-body {
    padding: 25px;
    min-height: 250px;
    background: white;
}

.preview-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-dark);
    margin-bottom: 20px;
    text-align: center;
}

/* Source Code Box */
.codigofonte-container {
    margin-top: 30px;
}

#codigofonte {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--gray-medium);
    padding: 15px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    background: #f8f9fa;
    color: #333;
    resize: vertical;
}

/* Buttons */
.btn-modern {
    background: var(--dark);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-modern:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 216, 0, 0.3);
}

.btn-modern.btn-secondary {
    background: var(--gray-medium);
    color: var(--dark);
}

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

.btn-secondary {
    background: var(--dark);
    color: var(--white);
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
    border: none;
    transition: all 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .signature-container {
        padding: 10px;
    }

    .preview-container {
        position: static;
        margin-top: 30px;
    }

    .title-section h1 {
        font-size: 1.8rem;
    }
}

/* Grid de Ferramentas (Home) */
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.home-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
    border: 1.5px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    height: 100%;
}

.home-card .card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: var(--transition);
}

.home-card .card-icon img {
    transition: var(--transition);
}

.home-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111111;
    margin: 0;
    line-height: 1.2;
}

.home-card p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

.home-card::after {
    display: none;
    /* remove o underscore anterior */
}

.home-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    border-width: 2px;
    box-shadow: 0 15px 40px rgba(255, 216, 0, 0.12);
}

.home-card:hover .card-icon img {
    transform: scale(1.1);
}

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

    .home-card {
        padding: 30px;
    }
}