/* Authentication and Payment Styles */

/* Navigation Auth */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-auth {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-auth:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-register {
    background: var(--gradient-accent) !important;
    color: var(--dark-color) !important;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
}

.user-name {
    color: white;
    font-weight: 500;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-heavy);
    min-width: 180px;
    z-index: 1000;
    display: none;
}

.user-menu:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.3s ease;
}

.dropdown-menu a:hover {
    background: var(--light-color);
}

.dropdown-menu a:first-child {
    border-radius: 10px 10px 0 0;
}

.dropdown-menu a:last-child {
    border-radius: 0 0 10px 10px;
}

/* Plans Section */
.plans-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f6ff 0%, #e8e2f4 100%);
}

.price-toggle {
    display: flex;
    background: var(--border-color);
    border-radius: 25px;
    margin-bottom: 1rem;
    padding: 2px;
}

.period-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: var(--secondary-color);
}

.period-btn.active {
    background: var(--primary-color);
    color: white;
}

.price-savings {
    background: var(--gradient-accent);
    color: var(--dark-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
    display: inline-block;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.plan-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.plan-card.popular {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.plan-card.popular::before {
    content: 'Mais Popular';
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gradient-accent);
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg) translate(30%, -100%);
    transform-origin: center;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.plan-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.plan-description {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.plan-price {
    text-align: center;
    margin-bottom: 2rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-currency {
    font-size: 1rem;
    vertical-align: top;
}

.price-period {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-features li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.payment-modal {
    max-width: 800px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

/* Auth Forms */
.auth-form {
    padding: 2rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.auth-header h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--secondary-color);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 27, 105, 0.1);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Payment Styles */
.payment-content {
    padding: 2rem;
}

.payment-header {
    text-align: center;
    margin-bottom: 2rem;
}

.payment-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.payment-summary {
    background: var(--light-color);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.summary-item.total {
    border-top: 2px solid var(--border-color);
    margin-top: 1rem;
    padding-top: 1rem;
    font-weight: 600;
    font-size: 1.2rem;
}

.payment-methods h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-option {
    padding: 1.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.payment-option:hover,
.payment-option.selected {
    border-color: var(--primary-color);
    background: var(--light-color);
}

.payment-option.popular {
    border-color: var(--accent-color);
}

.payment-option.popular::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 30px 30px 0;
    border-color: transparent var(--accent-color) transparent transparent;
}

.popular-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--accent-color);
    color: var(--dark-color);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    transform: rotate(45deg);
    transform-origin: center;
}

.payment-option i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.payment-option span {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.payment-option small {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

.card-icons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.card-icons i {
    font-size: 1.2rem;
    margin: 0;
}

/* Payment Forms */
.payment-form {
    background: var(--light-color);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.payment-form h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group.half {
    flex: 1;
}

/* PIX Specific */
.pix-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.pix-qr {
    text-align: center;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    border: 3px dashed var(--border-color);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.qr-placeholder i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.pix-info ol {
    padding-left: 1.5rem;
}

.pix-info li {
    margin-bottom: 0.5rem;
}

/* Dashboard Styles */
.dashboard-section,
.profile-section {
    padding: 4rem 0;
    background: var(--light-color);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.dashboard-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.card-header h3 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 15px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.readings-list {
    max-height: 300px;
    overflow-y: auto;
}

.reading-item {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    background: var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reading-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.reading-info p {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.reading-date {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* Profile Styles */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 3rem;
}

.profile-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.profile-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
}

.avatar-change {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--dark-color);
}

.profile-info {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.label {
    font-weight: 600;
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-auth {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .plan-card.popular {
        transform: none;
    }
    
    .dashboard-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .pix-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Bank Transfer Styles */
.bank-details {
    display: grid;
    gap: 1.5rem;
}

.bank-info-card {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 1.5rem;
}

.bank-info-card h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bank-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.bank-detail-item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.bank-detail-item .label {
    font-weight: 500;
    color: var(--text-color);
}

.bank-detail-item .value {
    font-weight: 600;
    color: var(--primary-color);
}

.transfer-instructions {
    background: var(--light-color);
    border-radius: 15px;
    padding: 1.5rem;
}

.transfer-instructions h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.transfer-instructions ol {
    padding-left: 1.5rem;
}

.transfer-instructions li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .nav-auth {
        display: none; /* Hide on mobile, show in hamburger menu */
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .payment-options {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .bank-details {
        grid-template-columns: 1fr;
    }
}