/* ===========================================
   GFZ DAYZ - TEMA GLOBAL PADRONIZADO
   =========================================== */

/* ===== VARIÁVEIS DE CORES ===== */
:root {
    /* Backgrounds */
    --bg-primary: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    --bg-secondary: #2d3748;
    --bg-tertiary: #1a202c;
    --bg-card: #1a202c;
    --bg-accent: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);

    /* Text Colors */
    --text-primary: #e2e8f0;
    --text-secondary: #cbd5e0;
    --text-tertiary: #a0aec0;
    --text-muted: #718096;

    /* Brand Colors */
    --color-primary: #f6ad55;
    /* Orange/Laranja */
    --color-secondary: #68d391;
    /* Green/Verde */
    --color-accent: #ed8936;
    /* Orange Dark */
    --color-info: #63b3ed;
    /* Blue/Blue */
    --color-warning: #f6ad55;
    /* Orange */
    --color-danger: #f87171;
    /* Red/Vermelho */
    --color-success: #68d391;
    /* Green */

    /* Borders */
    --border-primary: #4a5568;
    --border-secondary: #2d3748;
    --border-accent: #f6ad55;

    /* Shadows */
    --shadow-primary: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.4);
    --shadow-accent: 0 0 0 3px rgba(246, 173, 85, 0.1);

    /* Spacing */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --padding-sm: 0.75rem;
    --padding-md: 1.5rem;
    --padding-lg: 2rem;
}

/* ===== RESET E BASE ===== */
* {
    box-sizing: border-box;
}

[x-cloak] {
    display: none !important;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* ===== CORPO E CONTAINER PRINCIPAL ===== */
body {
    background: var(--bg-primary);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
}

.main-container {
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    margin: 20px;
    box-shadow: var(--shadow-primary);
    overflow: hidden;
    border: 1px solid var(--border-primary);
    min-height: calc(100vh - 40px);
}

/* ===== SEÇÕES HERO ===== */
.hero-section {
    background: var(--bg-primary);
    color: #fff;
    padding: 2rem 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--color-primary);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23f6ad55" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23f6ad55" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23f6ad55" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23f6ad55" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23f6ad55" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    max-height: 300px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

/* ===== SEÇÕES GERAIS ===== */
.coins-section,
.services-section,
.checkout-container,
.cart-container,
.my-services-container {
    padding: 3rem 2rem;
    background: var(--bg-secondary);
    min-height: 100vh;
    color: var(--text-primary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.section-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: center;
}

/* ===== CARDS ===== */
.coin-card,
.service-card,
.admin-card,
.cart-item,
.checkout-section {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: var(--padding-lg);
    box-shadow: var(--shadow-primary);
    border: 2px solid var(--border-primary);
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.coin-card::before,
.service-card::before,
.admin-card::before,
.cart-item::before,
.checkout-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.coin-card:hover,
.service-card:hover,
.admin-card:hover,
.cart-item:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--shadow-hover);
}

/* ===== FORMULÁRIOS ===== */
.form-control {
    background: var(--bg-secondary);
    border: 2px solid var(--border-primary);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    padding: var(--padding-sm) 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: var(--bg-secondary);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-accent);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-tertiary);
}

.form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ===== BOTÕES ===== */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

/* Botões Primários */
.btn-primary,
.btn-buy,
.btn-success {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--bg-tertiary);
}

.btn-primary:hover,
.btn-buy:hover,
.btn-success:hover {
    background: linear-gradient(135deg, var(--color-accent), #dd6b20);
    transform: translateY(-2px);
    color: var(--bg-tertiary);
}

/* Botões Secundários */
.btn-secondary,
.btn-outline-secondary {
    background: var(--border-primary);
    color: var(--text-secondary);
    border: 2px solid var(--border-primary);
}

.btn-secondary:hover,
.btn-outline-secondary:hover {
    background: #718096;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Botões Steam */
.btn-steam {
    background: linear-gradient(135deg, #171a21, #2a475e);
    color: #fff;
    box-shadow: 0 4px 15px rgba(23, 26, 33, 0.3);
}

.btn-steam:hover {
    background: linear-gradient(135deg, #2a475e, #1b2838);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 26, 33, 0.4);
}


/* Botões Outline */
.btn-outline-warning {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn-outline-warning:hover {
    background: var(--color-primary);
    color: var(--bg-tertiary);
    transform: translateY(-2px);
}

/* ===== ALERTAS ===== */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    color: var(--color-success);
    border: 1px solid #38a169;
}

.alert-info {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    color: var(--color-info);
    border: 1px solid #3182ce;
}

.alert-warning {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    color: var(--color-warning);
    border: 1px solid #ed8936;
}

.alert-danger {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    color: var(--color-danger);
    border: 1px solid #f56565;
}

/* ===== CORES DE TEXTO ===== */
.text-primary {
    color: var(--color-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-success {
    color: var(--color-success) !important;
}

.text-info {
    color: var(--color-info) !important;
}

.text-warning {
    color: var(--color-warning) !important;
}

.text-danger {
    color: var(--color-danger) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* ===== UTILITÁRIOS ===== */
.bg-white {
    background: rgb(255 255 255 / var(--tw-bg-opacity, 1))
}

.border {
    border-color: var(--border-primary) !important;
}

.shadow {
    box-shadow: var(--shadow-primary) !important;
}

.rounded-lg {
    border-radius: var(--border-radius-lg) !important;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .hero-logo {
        max-height: 200px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-section {
        padding: 1.5rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .coins-section,
    .services-section,
    .checkout-container,
    .cart-container,
    .my-services-container {
        padding: 2rem 1rem;
    }

    .main-container {
        margin: 10px;
        min-height: calc(100vh - 20px);
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ===== ADMIN SPECIFIC ===== */
.admin-sidebar {
    background: var(--bg-accent);
    border-right: 2px solid var(--border-primary);
}

.admin-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--border-primary);
    box-shadow: var(--shadow-primary);
    color: var(--text-primary);
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 2px solid var(--border-primary);
    border-top: 2px solid var(--color-primary);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== FOCUS STATES ===== */
.btn:focus,
.form-control:focus,
.form-check-input:focus {
    outline: none;
    box-shadow: var(--shadow-accent);
}

/* ===== TABLES ===== */
.table {
    color: var(--text-primary);
}

.table thead th {
    background: var(--bg-secondary);
    border-color: var(--border-primary);
    color: var(--color-primary);
    font-weight: 600;
}

.table tbody td {
    background: var(--bg-card);
    border-color: var(--border-primary);
    color: var(--text-primary);
}

.table tbody tr:hover {
    background: var(--bg-secondary);
}

/* ===== BADGES ===== */
.badge {
    border-radius: 20px;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
}

/* ===== UTILITY CLASSES ===== */
.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-center {
    justify-content: center !important;
}

.text-center {
    text-align: center !important;
}

.w-100 {
    width: 100% !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.me-3 {
    margin-right: 1rem !important;
}

.p-6 {
    padding: 1.5rem !important;
}