:root {
    --motogp-font-display: 'MGP Display', sans-serif;
    --motogp-font-body: 'MGP Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --motogp-red: #c80502;
    --motogp-red-dark: #a00402;
}

.motogp-gracias-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 3rem 24px 60px;
    text-align: left;
    color: var(--text-primary);
}

.motogp-gracias-hero {
    text-align: center;
    padding: 32px 24px;
    margin-bottom: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.motogp-gracias-hero-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(200, 5, 2, 0.15);
    border: 3px solid var(--motogp-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--motogp-red);
}

.motogp-gracias-hero-icon.warn {
    background: rgba(230, 168, 0, 0.2);
    border-color: #e6a800;
    color: #e6a800;
}

.motogp-gracias-title {
    font-family: var(--motogp-font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.motogp-gracias-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.motogp-gracias-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin: 0 0 16px;
}

.motogp-gracias-card h3 {
    margin: 0 0 16px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--motogp-font-display);
}

.motogp-gracias-kv {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.motogp-gracias-kv:last-child {
    border-bottom: none;
}

.motogp-gracias-k {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.motogp-gracias-v {
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    font-size: 0.95rem;
}

.motogp-gracias-order-ref {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 12px;
}

.motogp-gracias-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    align-items: center;
}

.motogp-gracias-cta {
    display: inline-block;
    padding: 16px 44px;
    font-family: var(--motogp-font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--motogp-red);
    border: none;
    border-radius: 9999px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.25s;
}

.motogp-gracias-cta:hover {
    background: var(--motogp-red-dark);
    box-shadow: 0 0 28px 4px rgba(200, 5, 2, 0.55);
}

.motogp-gracias-cta.secondary {
    background: transparent;
    color: var(--motogp-red);
    border: 2px solid var(--motogp-red);
}

.motogp-gracias-cta.secondary:hover {
    background: rgba(200, 5, 2, 0.1);
}

.motogp-gracias-app-cta {
    margin-top: 24px;
    padding: 20px;
    border-radius: 12px;
    background: var(--motogp-red);
    color: #fff;
    text-align: center;
}

.motogp-gracias-app-cta h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: #fff;
    font-family: var(--motogp-font-display);
}

.motogp-gracias-app-cta p {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.95;
}

.mg-spin {
    animation: mg-spin 0.9s linear infinite;
}

@keyframes mg-spin {
    to { transform: rotate(360deg); }
}
