/* ========================================
   StakeHub DApp - Estilos Globais
   Design Moderno e Responsivo Web3
   ======================================== */

/* Reset e Variáveis CSS */
:root {
    /* Cores Primárias - Paleta Web3 */
    --primary-color: #00d4ff;
    --primary-dark: #00a8cc;
    --primary-light: #33ddff;
    --secondary-color: #7c3aed;
    --secondary-dark: #5b21b6;
    
    /* Cores de Fundo */
    --bg-primary: #0a0e27;
    --bg-secondary: #141b3d;
    --bg-tertiary: #1e2749;
    --bg-card: #1a2142;
    
    /* Cores de Texto */
    --text-primary: #ffffff;
    --text-secondary: #b4c6fc;
    --text-muted: #7b8ab8;
    
    /* Cores de Status */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-card: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
    
    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Transições */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Fontes */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Animado */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: bgPulse 10s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========================================
   NAVEGAÇÃO
   ======================================== */

.navbar {
    background: rgba(20, 27, 61, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xs);
    flex: 1;
    justify-content: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link i {
    font-size: 1.1rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ========================================
   BOTÕES
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

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

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

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

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   WALLET INFO
   ======================================== */

.wallet-info {
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    padding: var(--spacing-sm) 0;
}

.wallet-details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.wallet-address,
.wallet-balance,
.network-indicator {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.wallet-address i,
.wallet-balance i {
    color: var(--primary-color);
}

.network-dot {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
    min-height: calc(100vh - 200px);
    padding: var(--spacing-xl) 0;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Grid System */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Stats Cards */
.stats-card {
    background: var(--gradient-card);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
}

.stats-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stats-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.stats-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   FORMULÁRIOS
   ======================================== */

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input,
.form-select {
    width: 100%;
    padding: var(--spacing-sm);
    background: var(--bg-tertiary);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-help {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========================================
   TABELAS
   ======================================== */

.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 212, 255, 0.1);
}

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

.table thead {
    background: var(--bg-tertiary);
}

.table th,
.table td {
    padding: var(--spacing-sm);
    text-align: left;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.table th {
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

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

.table tbody tr {
    transition: all var(--transition-fast);
}

.table tbody tr:hover {
    background: rgba(0, 212, 255, 0.05);
}

/* ========================================
   BADGES E TAGS
   ======================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

.badge-error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error-color);
}

.badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: var(--info-color);
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.toast {
    min-width: 300px;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-card);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success { border-left-color: var(--success-color); }
.toast-error { border-left-color: var(--error-color); }
.toast-warning { border-left-color: var(--warning-color); }
.toast-info { border-left-color: var(--info-color); }

.toast-icon {
    font-size: 1.5rem;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========================================
   LOADING
   ======================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 212, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-md);
}

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

#loadingText {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-section p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--primary-color);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

.contract-info {
    font-size: 0.875rem;
}

.contract-label {
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contract-address {
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    margin-bottom: var(--spacing-sm);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
}

.version {
    margin-top: var(--spacing-xs);
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

/* Novas classes utilitárias para espaçamento e layout */
.mb-0-5 { margin-bottom: 0.5rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-1-5 { margin-bottom: 1.5rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex-align-center { display: flex; align-items: center; }
.flex-justify-between { display: flex; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-0-5 { gap: 0.5rem; }
.gap-1 { gap: 1rem; }
.gap-1-5-rem { gap: 1.5rem; }
.gap-2-rem { gap: 2rem; }
.flex-1 { flex: 1; }
.font-weight-600 { font-weight: 600; }
.font-weight-700 { font-weight: 700; }
.font-weight-800 { font-weight: 800; }
.font-size-0-875 { font-size: 0.875rem; }
.font-size-1-5-rem { font-size: 1.5rem; }
.font-size-3-rem { font-size: 3rem; }
.font-size-4-rem { font-size: 4rem; }
.primary-color { color: var(--primary-color); }
.secondary-color { color: var(--secondary-color); }
.success-color { color: var(--success-color); }
.warning-color { color: var(--warning-color); }
.error-color { color: var(--error-color); }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.bg-info-light { background: rgba(0,212,255,0.05); }
.border-left-primary { border-left: 4px solid var(--primary-color); }
.border-left-secondary { border-left: 4px solid var(--secondary-color); }
.border-left-success { border-left: 4px solid var(--success-color); }
.border-left-warning { border-left: 4px solid var(--warning-color); }
.radius-0-5 { border-radius: 0.5rem; }
.hidden { display: none; }
.btn-full-width { width: 100%; justify-content: center; }

/* Estilos gerais para títulos e descrições de página */
.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Estilos para o perfil */
.profile-section {
    max-width: 1000px;
    margin: 0 auto;
}

.profile-wallet-info .wallet-address-code,
.upline-address-code {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    word-break: break-all;
    white-space: normal;
    overflow-wrap: break-word;
}

.profile-wallet-info .usdt-balance {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.profile-wallet-info .member-since {
    font-size: 1.1rem;
    font-weight: 600;
}

.text-muted-sm {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.upline-configured-box {
    padding: 1rem;
    background: rgba(16,185,129,0.1);
    border: 1px solid var(--success-color);
    border-radius: 0.5rem;
}

.upline-not-configured-box {
    padding: 1rem;
    background: rgba(245,158,11,0.1);
    border: 1px solid var(--warning-color);
    border-radius: 0.5rem;
}

.upline-type-box {
    padding: 1rem;
    background: rgba(0,212,255,0.05);
    border-radius: 0.5rem;
}

/* Estilos para comissões */
.commissions-section {
    max-width: 1280px;
    margin: 0 auto;
}

.referral-link-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .commissions-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(20, 27, 61, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--spacing-lg);
        transition: left var(--transition-base);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .wallet-details {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .toast-container {
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
    }

    /* Ajustes específicos para as páginas de perfil e comissões */
    .page-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .page-description {
        margin-bottom: 2rem;
    }

    .profile-wallet-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .quick-links-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

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

    .commissions-structure-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .referral-link-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .referral-link-group .btn {
        width: 100%;
    }

    .table-container {
        overflow-x: auto;
    }

    .table th, .table td {
        padding: var(--spacing-xs);
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-xl: 2rem;
    }
    
    .logo span {
        display: none;
    }
    
    .nav-link span {
        display: none;
    }
    
    .stats-value {
        font-size: 1.5rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .profile-section,
    .commissions-section {
        padding: 0 var(--spacing-sm);
    }

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

    .card {
        padding: var(--spacing-md);
    }

    .card-title {
        font-size: 1.2rem;
    }

    .upline-configured-box,
    .upline-not-configured-box,
    .upline-type-box {
        padding: 0.75rem;
    }

    .wallet-address-code,
    .upline-address-code {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .usdt-balance {
        font-size: 1.5rem;
    }

    .member-since {
        font-size: 1rem;
    }

    .text-muted-sm {
        font-size: 0.75rem;
    }

    .font-size-1-5-rem {
        font-size: 1.2rem;
    }
}


_WRAP_CODE_INPUT_HERE_



/* Ajustes de Responsividade Adicionais */

@media (max-width: 992px) {
    .profile-wallet-info {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .commissions-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .commissions-structure-grid {
        grid-template-columns: 1fr;
    }

    .referral-link-group {
        flex-direction: column;
    }

    .referral-link-group .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

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


/* ========================================
   Estilos para Link de Indicação Responsivo
   ======================================== */

.referral-link-container {
    width: 100%;
}

.referral-link-scroll-box {
    background: var(--bg-tertiary);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    max-width: 100%;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.referral-link-scroll-box:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-glow);
}

.referral-link-scroll-box span {
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    user-select: all;
    display: inline-block;
}

/* Estilização da barra de rolagem */
.referral-link-scroll-box::-webkit-scrollbar {
    height: 8px;
}

.referral-link-scroll-box::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin: 0 0.5rem;
}

.referral-link-scroll-box::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.referral-link-scroll-box::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Firefox scrollbar */
.referral-link-scroll-box {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-secondary);
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .referral-link-scroll-box {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .referral-link-scroll-box span {
        font-size: 0.85rem;
    }
    
    .referral-link-scroll-box::-webkit-scrollbar {
        height: 6px;
    }
}

@media (max-width: 480px) {
    .referral-link-scroll-box {
        padding: 0.6rem;
    }
    
    .referral-link-scroll-box span {
        font-size: 0.8rem;
    }
}
