/**
 * ExploudTV - Estilos da Área do Cliente
 */

/* ============================================
   CSS Variables
============================================ */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #10b981;
    --accent: #f59e0b;
    --danger: #ef4444;
    --warning: #f59e0b;

    --bg-dark: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #252540;
    --bg-input: #252540;

    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b7280;

    --border-color: #2d2d44;
    --border-radius: 12px;
    --border-radius-sm: 8px;

    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);

    --sidebar-width: 260px;
    --header-height: 70px;
}

/* ============================================
   Base Styles
============================================ */
* {
    margin: -2px;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary);
}

/* ============================================
   Login Page
============================================ */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a2e 100%);
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-box {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.login-header .logo-icon {
    color: var(--primary);
}

.login-header .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.login-header h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.login-footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.back-link:hover {
    color: var(--primary);
}

/* ============================================
   Layout
============================================ */
.cliente-layout {
    display: flex;
    min-height: 100vh;
}

/* ============================================
   Sidebar
============================================ */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.sidebar-header .logo-icon {
    color: var(--primary);
}

.sidebar-header .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s;
}

.nav-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--primary);
    color: white;
}

.nav-item .badge {
    margin-left: auto;
    background: var(--accent);
    color: var(--bg-dark);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.nav-item .badge.badge-success {
    background: var(--secondary);
    color: white;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.user-status {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.user-status.active {
    color: var(--secondary);
}

.user-status.expired {
    color: var(--danger);
}

.logout-btn {
    padding: 8px;
    border-radius: var(--border-radius-sm);
    color: var(--text-muted);
    transition: all 0.2s;
}

.logout-btn:hover {
    background: var(--danger);
    color: white;
}

/* ============================================
   Main Content
============================================ */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.page-header {
    position: sticky;
    top: 0;
    background: var(--bg-dark);
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
}

.page-header h1 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.mobile-menu-btn {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 8px;
    color: var(--text-primary);
    cursor: pointer;
}

.dashboard-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ============================================
   Status Card
============================================ */
.status-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius);
    padding: 24px;
    color: white;
}

.status-card.expired {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
}

.status-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.status-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-icon.active svg {
    color: #4ade80;
}

.status-icon.expired svg {
    color: #f87171;
}

.status-label {
    font-size: 0.85rem;
    opacity: 0.9;
    display: block;
}

.status-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.status-value.active {
    color: #4ade80;
}

.status-value.expired {
    color: #f87171;
}

.expiration-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.expiration-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.expiration-date {
    font-size: 1.1rem;
    font-weight: 600;
}

.days-remaining {
    text-align: right;
}

.days-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.days-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

.progress-container {
    margin-top: 16px;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: white;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-fill.expired {
    background: #f87171;
}

.progress-text {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* ============================================
   Stats Grid
============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.stat-card.highlight {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245, 158, 11, 0.1) 100%);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.referrals {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
}

.stat-icon.code {
    background: rgba(16, 185, 129, 0.2);
    color: var(--secondary);
}

.stat-icon.benefit {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent);
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
}

.stat-value.code-value {
    font-family: monospace;
    font-size: 1rem;
}

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

.stat-link {
    padding: 8px;
    border-radius: var(--border-radius-sm);
    color: var(--text-muted);
    transition: all 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
}

.stat-link:hover {
    background: var(--bg-card-hover);
    color: var(--primary);
}

/* ============================================
   Cards
============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.card-body {
    padding: 20px;
}

.card-body.p-0 {
    padding: 0;
}

/* ============================================
   Info Grid
============================================ */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.info-value {
    font-weight: 500;
}

/* ============================================
   Orders Table
============================================ */
.orders-table-wrapper {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 14px 20px;
    text-align: left;
}

.orders-table th {
    background: var(--bg-card-hover);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.orders-table td {
    border-top: 1px solid var(--border-color);
}

.orders-table td strong {
    display: block;
}

.orders-table td small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.confirmed,
.status-badge.received,
.status-badge.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.status-badge.overdue,
.status-badge.expired {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.status-badge.cancelled,
.status-badge.refunded {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
}

/* ============================================
   Referral Hero Card
============================================ */
.referral-hero-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    gap: 30px;
    align-items: center;
}

.referral-hero-content {
    flex: 1;
}

.referral-hero-content h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.referral-hero-content > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.referral-code-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.referral-code {
    background: var(--bg-dark);
    border: 2px dashed var(--primary);
    padding: 16px 24px;
    border-radius: var(--border-radius-sm);
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-light);
}

.referral-link-box {
    margin-bottom: 20px;
}

.referral-link-box label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.link-input-wrapper {
    display: flex;
    gap: 8px;
}

.link-input-wrapper input {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    transition: all 0.2s;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.whatsapp:hover {
    background: #1da851;
    color: white;
}

.referral-hero-stats {
    text-align: center;
    padding: 20px 30px;
    background: var(--bg-dark);
    border-radius: var(--border-radius-sm);
}

.stat-item .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    line-height: 1;
}

.stat-item .stat-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ============================================
   Benefits Card
============================================ */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.benefit-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-dark);
    border-radius: var(--border-radius-sm);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon.you {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
}

.benefit-icon.friend {
    background: rgba(16, 185, 129, 0.2);
    color: var(--secondary);
}

.benefit-content h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.benefit-content ul {
    list-style: none;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.benefit-content li {
    margin-bottom: 4px;
}

.rules-section {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.rules-section h4 {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.rules-list {
    list-style: none;
    display: grid;
    gap: 8px;
}

.rules-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.rules-list li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
}

/* ============================================
   Benefits Available
============================================ */
.benefits-available-grid {
    display: grid;
    gap: 16px;
}

.benefit-available-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-dark);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.benefit-badge {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent) 0%, #d97706 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.benefit-info {
    flex: 1;
}

.benefit-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.benefit-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.benefit-expires {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   Empty State
============================================ */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 4px;
}

.empty-state span {
    font-size: 0.85rem;
}

/* ============================================
   Form Elements
============================================ */
.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-wrapper .form-input {
    padding-left: 44px;
}

.form-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.toggle-password:hover {
    color: var(--text-primary);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
}

/* ============================================
   Alerts
============================================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
}

.alert svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.alert strong {
    display: block;
    margin-bottom: 4px;
}

.alert p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

.alert-info {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
}

/* ============================================
   Buttons
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    margin-bottom: 5px;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-card-hover);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ============================================
   Renewal Page
============================================ */
.benefits-select-card .card-body {
    padding: 24px;
}

.benefits-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.benefit-select-option {
    cursor: pointer;
}

.benefit-select-option input {
    display: none;
}

.benefit-select-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    text-align: center;
    transition: all 0.2s;
}

.benefit-select-option input:checked + .benefit-select-content {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.benefit-select-content .benefit-icon {
    width: 40px;
    height: 40px;
}

.benefit-select-content .benefit-icon.none {
    background: var(--bg-card-hover);
    color: var(--text-muted);
}

.benefit-select-content .benefit-icon.gold {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent);
}

.benefit-select-content .benefit-icon.green {
    background: rgba(16, 185, 129, 0.2);
    color: var(--secondary);
}

.benefit-select-content span {
    font-weight: 500;
    font-size: 0.85rem;
}

.benefit-select-content small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.benefits-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   Plans Section
============================================ */
.plans-section {
    margin-top: 10px;
}

.plans-section > h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    position: relative;
    transition: all 0.2s;
}

.plan-card:hover {
    border-color: var(--primary);
}

.plan-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(99, 102, 241, 0.1) 100%);
}

.plan-card.benefit-applied {
    border-color: var(--accent);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-promo-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--danger);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.plan-name {
    font-size: 1.2rem;
    margin-bottom: 4px;
    margin-top: 8px;
}

.plan-duration {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.plan-price {
    margin-bottom: 16px;
}

.plan-price .price-original {
    display: block;
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.plan-price .price-value {
    font-size: 2rem;
    font-weight: 700;
}

.plan-price .price-value.free {
    color: var(--secondary);
}

.benefit-applied-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.plan-features {
    list-style: none;
    margin-bottom: 20px;
    text-align: left;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.plan-features li svg {
    color: var(--secondary);
    flex-shrink: 0;
}

/* ============================================
   Modal
============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-pix {
    max-width: 400px;
}

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

.modal-header h2 {
    font-size: 1.2rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

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

.modal-body {
    padding: 24px;
}

.modal-body.text-center {
    text-align: center;
}

/* ============================================
   Payment Form in Modal
============================================ */
.order-summary-box {
    background: var(--bg-dark);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
}

.summary-row.total {
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 600;
}

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

.free-renewal-notice {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--border-radius-sm);
    margin-bottom: 24px;
}

.free-renewal-notice svg {
    color: var(--secondary);
    margin-bottom: 16px;
}

.free-renewal-notice h3 {
    color: var(--secondary);
    margin-bottom: 8px;
}

.free-renewal-notice p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.payment-method {
    cursor: pointer;
}

.payment-method input {
    display: none;
}

.payment-method-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    transition: all 0.2s;
}

.payment-method input:checked + .payment-method-content,
.payment-method.selected .payment-method-content {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.payment-method-content span {
    font-weight: 500;
}

.card-form-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.form-row {
    margin-bottom: 16px;
}

.form-row.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.modal h3 {
    font-size: 1rem;
    margin-bottom: 16px;
}

/* ============================================
   PIX Modal
============================================ */
.pix-qrcode {
    background: white;
    padding: 16px;
    border-radius: var(--border-radius-sm);
    display: inline-block;
    margin-bottom: 20px;
}

.pix-qrcode img {
    width: 200px;
    height: 200px;
}

.pix-instruction {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.pix-code-box {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.pix-code-box input {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.pix-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Spinner
============================================ */
.spinner {
    animation: spin 1s linear infinite;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ============================================
   Utilities
============================================ */
.mt-3 {
    margin-top: 16px;
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 1024px) {
    .referral-hero-card {
        flex-direction: column;
    }

    .referral-hero-stats {
        width: 100%;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .dashboard-content {
        padding: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .referral-code {
        font-size: 1.2rem;
        padding: 12px 16px;
    }

    .link-input-wrapper {
        flex-direction: column;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Trial Block Card
============================================ */
.trial-block-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 48px 32px;
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
}

.trial-block-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.trial-block-card h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.trial-block-card > p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.trial-block-info {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.trial-block-benefits {
    list-style: none;
    text-align: left;
    max-width: 320px;
    margin: 0 auto 32px;
}

.trial-block-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.trial-block-benefits li svg {
    color: var(--secondary);
    flex-shrink: 0;
}

.trial-block-card .btn-lg {
    padding: 16px 40px;
}
