:root {
    --bg-color: #f8fafc;
    --text-light: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-primary: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-secondary: rgba(0, 0, 0, 0.05);
    --accent-secondary-hover: rgba(0, 0, 0, 0.1);
    --accent-success: #10b981;
    --accent-success-hover: #059669;
    --accent-danger: #ef4444;
    --accent-danger-hover: #dc2626;
    --accent-warning: #eab308;
    --accent-warning-hover: #ca8a04;
    --accent-info: #3b82f6;
    --accent-info-hover: #2563eb;
    --accent-dark: #1f2937;
    --accent-dark-hover: #111827;
    --accent-light: #f9fafb;
    --accent-light-hover: #f3f4f6;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background Animations */
.background-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.8;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(147, 51, 234, 0.1) 70%);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(59, 130, 246, 0.1) 70%);
    animation-delay: -5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.text-justify {
    text-align: justify;
}

/* Container & Card */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1000px;
    padding: 40px 20px;
    margin: auto;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.card-centered {
    grid-column: 1 / -1;
    max-width: 560px;
    justify-self: center;
    width: 100%;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 38px 32px;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Header */
.card-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.logo-placeholder {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.25);
    color: white;
}

.api-icon {
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #0f172a, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Divider with Text */
.divider-with-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 12px 0 8px 0;
}

.divider-with-text::before,
.divider-with-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.divider-with-text::before {
    margin-right: 12px;
}

.divider-with-text::after {
    margin-left: 12px;
}

/* Content */
.card-content {
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Actions */
.card-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: scale(1.1);
}

.btn-primary {
    background-color: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--accent-secondary);
    color: var(--text-primary);
    border-color: var(--accent-secondary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: var(--accent-secondary-hover);
    border-color: var(--accent-secondary-hover);
    box-shadow: 0 4px 14px rgba(120, 121, 122, 0.3);
    transform: translateY(-2px);
}

.btn-swagger {
    background-color: var(--accent-success);
    border-color: var(--accent-success);
    color: white;
}

.btn-swagger:hover {
    background-color: var(--accent-success-hover);
    border-color: var(--accent-success-hover);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.btn-redoc {
    background-color: var(--accent-warning);
    border-color: var(--accent-warning);
    color: white;
}

.btn-redoc:hover {
    background-color: var(--accent-warning-hover);
    border-color: var(--accent-warning-hover);
    box-shadow: 0 6px 20px rgba(234, 115, 31, 0.4);
    transform: translateY(-2px);
}

.btn-frontend {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.btn-frontend:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

/* Active effect for click */
.btn:active {
    transform: translateY(0);
}

/* PIX Support Section */
.pix-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--glass-border);
}

.pix-qrcode {
    width: 220px;
    height: 220px;
    border-radius: 12px;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.pix-key-text {
    display: block;
    background-color: var(--accent-secondary);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    word-break: break-all;
    text-align: center;
    border: 1px solid var(--glass-border);
    max-width: 100%;
}

.btn-copy.success {
    background-color: var(--accent-success) !important;
    color: var(--text-light) !important;
    border-color: var(--accent-success) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
}

/* Footer Credits */
.footer-credits {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.link-primary {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link-primary:hover {
    color: var(--accent-hover);
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 800px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .card-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    h1 {
        font-size: 2rem;
    }
}