/* Estilos de pagamento — alinhado ao design system do index */
:root {
  --primary: #1190FF;
  --primary-dark: #0d73cc;
  --primary-light: #4db5ff;
  --secondary: #ff5252;
  --text: #fafafa;
  --text-darker: #9ca8b8;
  --background: #0c0f14;
  --card-bg: rgba(18, 24, 36, 0.75);
  --input-bg: rgba(12, 18, 28, 0.85);
  --border-color: rgba(120, 140, 170, 0.35);
  --border-radius: 8px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 7px 14px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* body/grid herdados de Style.css — não sobrescrever background */

/* CABEÇALHO */
header {
    padding: 20px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-width: 300px;
    width: 100%;
}

.logo img {
    width: 100%;
    height: auto;
    max-width: 180px;
    transition: var(--transition);
}

.logo img:hover {
    filter: drop-shadow(0 0 8px var(--primary-light));
    transform: scale(1.03);
}

.nav-links {
    display: flex;
    align-items: center;
}

.back-link {
    display: flex;
    align-items: center;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: rgba(45, 45, 45, 0.5);
}

.back-link:hover {
    background: rgba(70, 70, 70, 0.7);
    transform: translateX(-5px);
}

.back-link svg {
    margin-right: 8px;
    transition: var(--transition);
}

.back-link:hover svg {
    transform: translateX(-3px);
}

/* CONTEÚDO DA CONTA */
.account-container {
    background: var(--card-bg);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    padding: 40px;
    margin: 40px auto;
    max-width: 900px;
    box-shadow: var(--shadow);
    transform: translateY(20px);
    opacity: 0;
    animation: slideUpFade 0.6s forwards 0.3s;
    border: 1px solid var(--border-color);
}

@keyframes slideUpFade {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.account-container h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-light);
    font-size: 28px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.account-subtitle {
    text-align: center;
    color: var(--text-darker);
    margin-bottom: 30px;
    font-size: 15px;
}

/* ESTILOS ESPECÍFICOS PARA PAGAMENTO */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
    width: 100%;
}

.payment-option {
    background: var(--input-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.payment-option:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(17, 144, 255, 0.4);
}

.payment-option h3 {
    color: var(--primary-light);
    font-size: 24px;
    margin-bottom: 15px;
}

.payment-icon {
    font-size: 4rem;
    color: var(--primary);
    margin: 20px 0;
    display: block;
}

.payment-option p {
    color: var(--text-darker);
    margin-bottom: 25px;
    font-size: 16px;
}

.submit-btn {
    display: inline-block;
    width: 100%;
    padding: 12px 24px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(1px);
}

.payment-total {
    margin-top: 30px;
    text-align: center;
    background: var(--input-bg);
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.payment-total p {
    color: var(--primary-light);
    font-weight: bold;
    font-size: 18px;
    margin: 0;
}

@media (min-width: 768px) {
    .payment-methods {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .payment-option {
        flex: 1;
        max-width: 48%;
    }
}

@media (max-width: 768px) {
    .account-container {
        padding: 30px 20px;
        margin: 20px auto;
    }
    
    .payment-option {
        padding: 20px 15px;
    }
    
    .logo img {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .account-container {
        padding: 25px 15px;
    }
    
    .submit-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .logo img {
        max-width: 120px;
    }
} 

/* Layout de pagamento (cards, cupom, modal) */
.payment-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 0 auto;
    max-width: 1200px;
}

.payment-option {
    flex: 1 1 300px;
    max-width: 350px;
    background: var(--input-bg);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--border-color);
}

.payment-option:hover {
    transform: translateY(-5px);
    border-color: rgba(17, 144, 255, 0.45);
}

.payment-icon {
    font-size: 2.5rem;
    margin: 10px 0;
    color: #1190FF; /* Cor roxa para combinar com o tema */
}

.submit-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1190FF;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #0d73cc;
}

.payment-total {
    text-align: center;
    margin-top: 30px;
    font-size: 1.2rem;
}

/* Ajustes para telas menores (Responsividade) */
@media (max-width: 768px) {
    .payment-methods {
        flex-direction: column; /* Cards em uma coluna */
        gap: 15px;
        align-items: center;
    }

    .payment-option {
        flex: 1 1 90%; /* Maior largura para caber melhor em telas menores */
        max-width: 90%; /* Aumenta a largura */
    }

    .payment-icon {
        font-size: 2rem; /* Ícones menores em telas pequenas */
    }

    .submit-btn {
        width: 100%; /* Botões de pagamento ocupando toda a largura */
        text-align: center;
    }

    .payment-total {
        font-size: 1rem; /* Reduz o tamanho da fonte do total */
    }
}

@media (max-width: 480px) {
    .payment-methods {
        gap: 10px;
    }

    .payment-option {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .payment-icon {
        font-size: 1.8rem;
    }

    .submit-btn {
        padding: 12px 20px;
    }
}

/* Estilos para a seção de cupom */
.coupon-section {
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
}

.coupon-input {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
}

.coupon-field {
    padding: 10px 15px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #1a1a1a;
    color: #fff;
    font-size: 1rem;
    width: 60%;
    max-width: 300px;
}

.coupon-field:focus {
    outline: none;
    border-color: #1190FF;
}

.coupon-message {
    color: #1190FF;
    font-size: 0.9rem;
    margin-top: 5px;
    min-height: 20px;
}

@media (max-width: 480px) {
    .coupon-input {
        flex-direction: column;
        align-items: center;
    }

    .coupon-field {
        width: 90%;
        max-width: none;
    }
}

/* Estilos para o modal de aviso */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #121820 0%, #0c121a 100%);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-icon {
    font-size: 3rem;
    color: #1190FF;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
}

.modal-message {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #1190FF 0%, #0d73cc 100%);
    color: #fff;
}

.modal-btn-primary:hover {
    background: linear-gradient(135deg, #0d73cc 0%, #0a5cad 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(17, 144, 255, 0.4);
}

.modal-btn-secondary {
    background: transparent;
    color: #1190FF;
    border: 2px solid #1190FF;
}

.modal-btn-secondary:hover {
    background: #1190FF;
    color: #fff;
    transform: translateY(-2px);
}

.modal-highlight {
    background: linear-gradient(135deg, #1190FF 0%, #0d73cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

@media (max-width: 480px) {
    .modal-content {
        padding: 20px;
        margin: 20px;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .modal-message {
        font-size: 0.9rem;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
    }
}