/* Reset e Variáveis */
:root {
    --primary-color: #e91e63;
    --secondary-color: #9c27b0;
    --accent-color: #ff4081;
    --background-color: #ffffff;
    --surface-color: #f5f5f5;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

.dark-theme {
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #333333;
    --shadow: 0 2px 10px rgba(0,0,0,0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    transition: var(--transition);
    line-height: 1.6;
}

/* Layout Principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--surface-color);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
}

.sidebar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-toggle span {
    width: 20px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.subscription-status .status-badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-active {
    background-color: #4caf50;
    color: white;
}

.status-warning {
    background-color: #ff9800;
    color: white;
}

.status-expired {
    background-color: #f44336;
    color: white;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 60px;
    left: -300px;
    width: 300px;
    height: calc(100vh - 60px);
    background-color: var(--surface-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 999;
}



/* PIX Specific Styles */
.pix-status-indicator {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 10px;
}

.status-pending {
    background-color: #ff9800;
    color: white;
}

.status-paid {
    background-color: #4caf50;
    color: white;
}

.status-expired {
    background-color: #f44336;
    color: white;
}

.status-cancelled {
    background-color: #9e9e9e;
    color: white;
}

.pix-details {
    background-color: var(--surface-color);
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
}

.pix-details h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-label {
    font-weight: bold;
    color: var(--text-primary);
}

.detail-value {
    color: var(--text-secondary);
}

.pix-instructions {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 5px 5px 0;
}

.pix-instructions ol {
    margin-left: 20px;
}

.pix-instructions li {
    margin-bottom: 8px;
}

.pix-fallback {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
    color: #856404;
}

.copy-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4caf50;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1001;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.pix-auto-check {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.auto-check-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #4caf50;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Responsividade para PIX */
@media (max-width: 768px) {
    .pix-qr-code img {
        max-width: 150px;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .copy-input {
        flex-direction: column;
    }
}

.sidebar.active {
    left: 0;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.nav-item:hover {
    background-color: var(--primary-color);
    color: white;
}

.nav-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

.theme-toggle {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.theme-toggle:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Conteúdo Principal */
.main-content {
    margin-top: 60px;
    padding: 20px;
    min-height: calc(100vh - 200px);
}

/* Stories */
.stories-section {
    margin-bottom: 30px;
}

.stories-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
}

.story {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
}

.story img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--background-color);
}

/* Grid de Conteúdo */
.content-grid {
    margin-bottom: 30px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.content-card {
    background-color: var(--surface-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.content-card img,
.content-card video {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-info {
    padding: 15px;
}

.creator-info {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.creator-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

/* Botões */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: var(--transition);
    font-weight: bold;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--surface-color);
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.payment-methods {
    margin-top: 15px;
}

.pix-logo {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Header Público */
.public-header {
    background-color: var(--surface-color);
    box-shadow: var(--shadow);
    padding: 15px 0;
}

.public-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.public-nav a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.public-nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Responsividade */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        left: -100%;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .footer-sections {
        grid-template-columns: 1fr;
    }
}

/* Auth Styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 20px;
}

.auth-card {
    background-color: var(--background-color);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    max-width: 400px;
    width: 100%;
}

.auth-banner {
    height: 150px;
    overflow: hidden;
}

.auth-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-form {
    padding: 30px;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-primary);
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--surface-color);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.2);
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    margin-bottom: 20px;
}

.auth-links {
    text-align: center;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.alert {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}


/* Register Specific Styles */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 5px;
}

.checkbox-group label {
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.password-strength,
.password-match {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
}

.password-strength.weak,
.password-match.no-match {
    color: #f44336;
}

.password-strength.medium {
    color: #ff9800;
}

.password-strength.strong {
    color: #4caf50;
}

.password-strength.very-strong {
    color: #2e7d32;
    font-weight: bold;
}

.password-match.match {
    color: #4caf50;
}

.alert-success {
    background-color: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}


/* Subscription Styles */
.subscription-header {
    text-align: center;
    margin-bottom: 40px;
}

.subscription-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.subscription-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.plans-container {
    max-width: 1000px;
    margin: 0 auto;
}

.plans-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    background-color: var(--surface-color);
    border-radius: 10px;
    padding: 5px;
    flex-wrap: wrap;
}

.plan-tab {
    padding: 12px 24px;
    border: none;
    background: none;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: bold;
    flex: 1;
    min-width: 120px;
}

.plan-tab.active {
    background-color: var(--primary-color);
    color: white;
}

.plan-tab:hover:not(.active) {
    background-color: var(--border-color);
}

.plan-details {
    margin-bottom: 50px;
}

.plan-card {
    background: linear-gradient(135deg, var(--surface-color), var(--background-color));
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.plan-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.plan-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.plan-price {
    margin-bottom: 10px;
}

.plan-price .price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.plan-price .period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.savings {
    background-color: #4caf50;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
}

.plan-features {
    margin-bottom: 25px;
}

.plan-features ul {
    list-style: none;
}

.plan-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-action {
    text-align: center;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.security-note {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--background-color);
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-body {
    padding: 20px;
}

/* PIX Payment Styles */
.pix-payment {
    text-align: center;
}

.pix-qr-code {
    margin-bottom: 20px;
}

.pix-qr-code img {
    max-width: 200px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 10px;
    background: white;
}

.qr-instruction {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pix-copy-paste {
    margin-bottom: 20px;
}

.pix-code {
    text-align: left;
}

.copy-input {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.copy-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--surface-color);
    color: var(--text-primary);
}

.btn-copy {
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-copy:hover {
    background-color: var(--accent-color);
}

.payment-info {
    background-color: var(--surface-color);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: left;
}

.info-item {
    margin-bottom: 8px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.payment-timer {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    color: #856404;
}

.payment-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-secondary {
    background-color: var(--text-secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--text-primary);
}

/* Status de Pagamento */
.payment-status,
.payment-success,
.payment-expired,
.payment-error {
    text-align: center;
    padding: 30px;
}

.status-loading .spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-icon,
.expired-icon,
.error-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Comparação de Planos */
.plans-comparison {
    margin-top: 50px;
}

.plans-comparison h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.comparison-table {
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--surface-color);
    border-radius: 10px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}

.comparison-table tr:hover {
    background-color: var(--border-color);
}

/* Responsividade */
@media (max-width: 768px) {
    .plans-toggle {
        flex-direction: column;
    }
    
    .plan-card.featured {
        transform: none;
    }
    
    .payment-actions {
        flex-direction: column;
    }
    
    .copy-input {
        flex-direction: column;
    }
}