:root {
    --discofy-navy: #181943;
    --discofy-purple: #6036E4;
    --discofy-purple-light: #7B48F0;
    --discofy-coral: #F0446C;
    --discofy-orange: #FDB430;
    --discofy-teal: #2BB8D4;
    --discofy-green: #37D1AC;
    --discofy-blue: #2490FC;

    --discofy-primary: var(--discofy-purple);
    --discofy-primary-hover: #4B28C4;
    --discofy-primary-soft: rgba(96, 54, 228, 0.1);
    --discofy-text: var(--discofy-navy);
    --discofy-text-muted: #5C5E78;
    --discofy-border: #E6E4EE;
    --discofy-background: #F6F5FB;
    --discofy-surface: #FFFFFF;
    --discofy-success: var(--discofy-green);
    --discofy-warning: var(--discofy-orange);
    --discofy-danger: var(--discofy-coral);
    --discofy-info: var(--discofy-blue);
}

.discofy-merchant {
    background: var(--discofy-background);
    color: var(--discofy-text);
}

.discofy-nav-link {
    display: flex;
    align-items: center;
    border-left: 3px solid transparent;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--discofy-text-muted);
    transition: background-color 150ms ease, color 150ms ease;
}

.discofy-nav-link:hover {
    background: var(--discofy-primary-soft);
    color: var(--discofy-text);
}

.discofy-nav-link-active {
    background: var(--discofy-primary-soft);
    color: var(--discofy-primary);
    border-left-color: var(--discofy-primary);
    font-weight: 600;
}

.discofy-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: var(--discofy-primary);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    transition: background-color 150ms ease;
}

.discofy-btn-primary:hover {
    background: var(--discofy-primary-hover);
}

.discofy-btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--discofy-primary-soft);
}

.discofy-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 1px solid var(--discofy-border);
    background: var(--discofy-surface);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--discofy-text);
    transition: background-color 150ms ease, border-color 150ms ease;
}

.discofy-btn-secondary:hover {
    background: var(--discofy-primary-soft);
    border-color: #d3c9f5;
}

.discofy-card {
    border: 1px solid var(--discofy-border);
    background: var(--discofy-surface);
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(24, 25, 67, 0.04);
}

.discofy-kpi {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
}

.discofy-kpi-icon {
    display: flex;
    height: 2.5rem;
    width: 2.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.discofy-table thead {
    background: #F3F1FA;
    color: var(--discofy-text-muted);
}

.discofy-table tbody tr:hover {
    background: var(--discofy-primary-soft);
}

.discofy-merchant input:focus,
.discofy-merchant textarea:focus,
.discofy-merchant select:focus {
    border-color: var(--discofy-primary) !important;
    --tw-ring-color: var(--discofy-primary) !important;
}

.discofy-merchant a.discofy-link {
    color: var(--discofy-primary);
}

.discofy-merchant a.discofy-link:hover {
    color: var(--discofy-primary-hover);
}

.discofy-spin-accent {
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--discofy-purple), var(--discofy-coral), var(--discofy-orange), var(--discofy-green), var(--discofy-blue)) 1;
}

.discofy-kpi-purple { background: rgba(96, 54, 228, 0.12); color: var(--discofy-purple); }
.discofy-kpi-blue { background: rgba(36, 144, 252, 0.12); color: #155FA8; }
.discofy-kpi-teal { background: rgba(43, 184, 212, 0.14); color: #0E6A7A; }
.discofy-kpi-green { background: rgba(55, 209, 172, 0.16); color: #0F6B55; }

.discofy-badge-success { background: rgba(15, 138, 110, 0.12); color: #0F6B55; }
.discofy-badge-neutral { background: #EEEDF4; color: var(--discofy-text-muted); }
.discofy-badge-warning { background: rgba(180, 110, 8, 0.12); color: #8A5A00; }
.discofy-badge-danger { background: rgba(176, 29, 66, 0.1); color: #B01D42; }
.discofy-badge-info { background: rgba(21, 95, 168, 0.1); color: #155FA8; }

.discofy-merchant main table thead {
    background: #F3F1FA;
}

.discofy-merchant main table tbody tr:hover {
    background: var(--discofy-primary-soft);
}

.discofy-merchant .discofy-table thead th {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.discofy-merchant .discofy-table tbody td {
    padding: 0.75rem 1rem;
}

.discofy-empty {
    text-align: center;
    padding: 2.5rem 1.25rem;
}

.discofy-empty img {
    height: 4.5rem;
    width: auto;
    margin: 0 auto 1rem;
}

@media (max-width: 390px) {
    .discofy-merchant aside img {
        height: 4.5rem;
    }
}
