:root {
    --o3-primary-color: #d4af37;
    --o3-bg-dark: #120a0e;
    --o3-card-bg: #1a0f14;
    --o3-text-light: #ffffff;
    --o3-text-muted: #a0a0a0;
}

.o3-grid-wrapper {
    display: grid;
    gap: 1px;
    background-color: rgba(255,255,255,0.05);
    overflow: hidden;
}

/* Layout Automático conforme solicitado */
.o3-grid-auto-2 { grid-template-columns: repeat(2, 1fr); }
.o3-grid-auto-3 { grid-template-columns: repeat(3, 1fr); }
.o3-grid-auto-4 { grid-template-columns: repeat(4, 1fr); }
.o3-grid-auto-5 { grid-template-columns: repeat(3, 1fr); }
.o3-grid-auto-5 .o3-card:nth-child(n+4) { grid-column: span 1.5; } /* Ajuste manual necessário para grid real */
.o3-grid-auto-6 { grid-template-columns: repeat(3, 1fr); }

/* Layouts Fixos */
.o3-grid-layout-2 { grid-template-columns: repeat(2, 1fr); }
.o3-grid-layout-3 { grid-template-columns: repeat(3, 1fr); }
.o3-grid-layout-4 { grid-template-columns: repeat(4, 1fr); }
.o3-grid-layout-5 { grid-template-columns: repeat(5, 1fr); }

.o3-card {
    position: relative;
    background-color: var(--o3-bg-dark);
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    min-height: 300px;
    border: 0.5px solid rgba(255,255,255,0.05);
}

.o3-card-inner {
    z-index: 2;
}

.o3-card-icon {
    font-size: 24px;
    color: var(--o3-primary-color);
    margin-bottom: 30px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--o3-primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.o3-card-title {
    font-size: 28px;
    color: var(--o3-text-light);
    margin-bottom: 20px;
    font-weight: 400;
}

.o3-card-text {
    font-size: 16px;
    color: var(--o3-text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
}

.o3-card-number {
    font-family: monospace;
    font-size: 14px;
    color: var(--o3-text-muted);
    margin-top: auto;
}

.o3-card-link {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 3;
}

/* Efeito Luxury (Vinho/Dourado) */
.o3-style-luxury {
    background-color: #1a0f14;
}

.o3-style-luxury:hover {
    background-color: #2d1621;
}

/* Efeitos Hover */
.o3-hover-glow:hover {
    box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.1);
}

.o3-hover-lift:hover {
    transform: translateY(-10px);
}

.o3-hover-scale:hover {
    transform: scale(1.02);
}

/* Responsividade */
@media (max-width: 991px) {
    .o3-grid-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .o3-grid-wrapper {
        grid-template-columns: 1fr !important;
    }
}
