/* ========================================
   THE PRODUCT VAULT - COMPLETE STYLES
   ======================================== */

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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --border-color: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #10b981;
    --accent-hover: #059669;
    --accent-glow: rgba(16, 185, 129, 0.2);
    --danger: #ef4444;
    --warning: #f59e0b;
    --purple: #8b5cf6;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   LOGIN PAGE
   ======================================== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    max-width: 420px;
    width: 100%;
    text-align: center;
}

.logo-large {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.tagline {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.value-prop {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.disclaimer {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================
   HEADER
   ======================================== */
.app-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.25rem;
    font-weight: 700;
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-email {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--text-muted);
}

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

/* ========================================
   WELCOME BANNER
   ======================================== */
.welcome-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--bg-card) 0%, #1f2937 100%);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.welcome-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.welcome-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.streak-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

.streak-fire {
    font-size: 1.25rem;
    animation: flame 0.5s ease-in-out infinite alternate;
}

@keyframes flame {
    from { transform: scale(1) rotate(-5deg); }
    to { transform: scale(1.1) rotate(5deg); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(245, 158, 11, 0.5); }
}

.streak-count {
    font-size: 1.5rem;
}

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

/* ========================================
   STATS GRID
   ======================================== */
.dashboard-content {
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

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

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

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
}

.stat-comparison {
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 500;
}

.stat-comparison.positive {
    color: var(--accent);
}

.stat-comparison.negative {
    color: var(--danger);
}

.stat-comparison.neutral {
    color: var(--text-muted);
}

.comparison-arrow {
    font-weight: 700;
}

.leaderboard-rank {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.rank-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent) 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rank-total {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================================
   CHART SECTION
   ======================================== */
.chart-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.date-picker-group {
    display: flex;
    gap: 5px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 8px;
}

.date-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.date-btn:hover {
    color: var(--text-primary);
}

.date-btn.active {
    background: var(--accent);
    color: white;
}

.chart-container {
    height: 300px;
    position: relative;
}

/* ========================================
   LIVE ACTIVITY FEED
   ======================================== */
.activity-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.activity-header {
    margin-bottom: 20px;
}

.activity-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 250px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 10px;
    animation: slide-in 0.3s ease-out;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.activity-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #34d399 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 0.9rem;
}

.activity-text strong {
    color: var(--accent);
}

.activity-time {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 3px;
}

.activity-amount {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.95rem;
}

/* ========================================
   PROGRESS SECTION
   ======================================== */
.progress-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 40px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-bar-bg {
    background: var(--bg-secondary);
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--accent) 0%, #34d399 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.partner-celebration {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ========================================
   SECTION TITLES
   ======================================== */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ========================================
   FUNNELS GRID
   ======================================== */
.funnels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

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

.funnel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.funnel-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.15);
}

.funnel-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.funnel-content {
    padding: 24px;
}

.funnel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.funnel-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.funnel-category {
    font-size: 0.7rem;
    padding: 5px 10px;
    background: var(--bg-secondary);
    border-radius: 20px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.funnel-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.funnel-price {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.funnel-commission {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.funnel-link-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.funnel-link-input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: 'Monaco', 'Menlo', monospace;
}

.copy-btn {
    padding: 12px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: var(--accent-hover);
}

.preview-btn {
    width: 100%;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
    text-align: center;
}

.preview-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
}

/* ========================================
   COMING SOON SECTION
   ======================================== */
.coming-soon-section {
    background: linear-gradient(135deg, var(--bg-card) 0%, #1a1a2e 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .coming-soon-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.cooking-emoji {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: cooking 1s ease-in-out infinite;
}

@keyframes cooking {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.coming-soon-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.coming-soon-text {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
}

.coming-soon-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent);
}

.coming-soon-cards {
    display: flex;
    gap: 20px;
}

.teaser-card {
    flex: 1;
    height: 200px;
    background: var(--bg-secondary);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    border: 1px dashed var(--border-color);
}

.teaser-blur {
    position: absolute;
    inset: 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 12px;
    filter: blur(20px);
}

.teaser-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* ========================================
   RESOURCES GRID
   ======================================== */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

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

.resource-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    position: relative;
    display: block;
}

.resource-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.resource-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.resource-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

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

.resource-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.resource-card:hover .resource-arrow {
    color: var(--accent);
    transform: translateY(-50%) translateX(5px);
}

/* ========================================
   BADGE STYLES
   ======================================== */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-member {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.badge-partner {
    background: linear-gradient(135deg, var(--accent) 0%, #059669 100%);
    color: white;
}

/* ========================================
   TOAST NOTIFICATION
   ======================================== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--accent);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========================================
   OVERLAY / MODAL
   ======================================== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

/* ========================================
   UTILITIES
   ======================================== */
.hidden {
    display: none !important;
}

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
