:root{
  --accent:#e86fe8;
  --bg:#0b0b16;
  --fg:#e9e9f2;
  --muted:#a6a6b3;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:radial-gradient(1200px 600px at 10% 10%, #151529, var(--bg));color:var(--fg);font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;}
.container{max-width:960px;margin:0 auto;padding:1rem}
.site-header,.site-footer{background:rgba(255,255,255,0.02);backdrop-filter:saturate(120%) blur(6px);border-bottom:1px solid rgba(255,255,255,0.06)}
.site-footer{border-top:1px solid rgba(255,255,255,0.06);border-bottom:0}
.brand{color:var(--fg);text-decoration:none;font-weight:700}
nav a{color:var(--muted);margin-left:1rem;text-decoration:none}
nav a:hover{color:var(--fg)}
.btn{display:inline-block;padding:.6rem 1rem;border:1px solid rgba(255,255,255,0.2);border-radius:8px;color:var(--fg);text-decoration:none}
.btn-primary{background:linear-gradient(135deg, var(--accent), #8f53ff);border:none;color:white}
.hero{padding:3rem 0;text-align:center}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}
table{width:100%;border-collapse:collapse;margin-top:1rem}
th,td{border:1px solid rgba(255,255,255,0.1);padding:.5rem;text-align:left}

/* Authentication Styles */
.auth-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.auth-title {
    color: var(--fg);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 0;
}

.auth-form {
    margin-bottom: 1.5rem;
}

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

.form-label {
    display: flex;
    align-items: center;
    color: var(--fg);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-label i {
    margin-right: 0.5rem;
    color: var(--accent);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--fg);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(232, 111, 232, 0.2);
}

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

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.form-check-input {
    margin-right: 0.5rem;
    accent-color: var(--accent);
}

.form-check-label {
    color: var(--fg);
    font-size: 0.9rem;
    margin: 0;
}

.form-errors {
    margin-top: 0.5rem;
}

.error-text {
    color: #ff6b6b;
    font-size: 0.85rem;
    display: block;
}

.btn-auth {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(45deg, var(--accent), #8f53ff);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(232, 111, 232, 0.4);
}

.btn-auth i {
    margin-right: 0.5rem;
}

.auth-links {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #8f53ff;
    text-decoration: none;
}

.auth-link i {
    margin-right: 0.25rem;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--muted);
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.auth-divider span {
    background: var(--bg);
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.social-auth {
    margin-bottom: 1.5rem;
}

.btn-google {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #333;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.btn-google:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    color: #333;
    text-decoration: none;
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f4 100%);
    border-color: #dadce0;
}

.btn-google i {
    margin-right: 0.5rem;
    color: #4285F4;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-footer p {
    color: var(--muted);
    margin: 0;
    font-size: 0.9rem;
}

.auth-link-primary {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link-primary:hover {
    color: #8f53ff;
    text-decoration: none;
}

/* Google OAuth Loading States */

.btn-google .btn-text,
.btn-google .btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.btn-google.loading .btn-text {
    opacity: 0;
}

.btn-google.loading .btn-loading {
    display: flex !important;
    opacity: 1;
}

.spin {
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Google OAuth Button Active Effects */
.btn-google:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Daily Insights Styles - Compact */
.insight-date {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 400;
}

.insights-content {
    padding: 0;
}

.insight-main {
    margin-bottom: 1rem;
}

.insight-text {
    margin: 0;
    line-height: 1.5;
    color: var(--fg);
    font-size: 0.95rem;
}

.insight-quick-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.quick-fact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 0.85rem;
}

.fact-icon {
    font-size: 0.9rem;
}

.fact-text {
    color: var(--fg);
    font-weight: 500;
}

.insight-footer {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 4px;
}

.no-insights {
    text-align: center;
    padding: 1.5rem;
    color: var(--muted);
}

.no-insights p {
    margin: 0;
    font-size: 0.9rem;
}

/* Premium Member Styles */
.premium-welcome-section {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.premium-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    color: #000;
}

.badge-icon {
    font-size: 1.2rem;
}

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

.subscription-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    color: #000;
}

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

.stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Premium Cards */
.premium-card {
    border: 2px solid #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 237, 78, 0.05));
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
}

.premium-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 215, 0, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffd700;
}

.premium-icon {
    font-size: 0.9rem;
}

/* Weekly Insights Styles */
.weekly-insights-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.weekly-insight-preview {
    padding: 0;
}

.insight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.insight-header h4 {
    margin: 0;
    color: var(--fg);
    font-size: 1.1rem;
}

.insight-header .insight-date {
    font-size: 0.8rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
}

.insight-content p {
    margin: 0 0 1rem 0;
    line-height: 1.6;
    color: var(--fg);
}

.insight-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.insight-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 160px;
    justify-content: center;
}

.insight-actions .btn-primary {
    background: linear-gradient(135deg, var(--accent), #8f53ff);
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(232, 111, 232, 0.3);
}

.insight-actions .btn-primary:hover {
    background: linear-gradient(135deg, #8f53ff, var(--accent));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(232, 111, 232, 0.4);
}

.insight-actions .btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.insight-actions .btn-outline:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(232, 111, 232, 0.3);
}

.btn-icon {
    font-size: 1rem;
}

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

/* Recent Insights Styles */
.recent-insights-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.insights-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.insight-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    transition: all 0.3s ease;
}

.insight-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.insight-item .insight-date {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.insight-item .insight-preview {
    color: var(--fg);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.insight-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.insight-link:hover {
    color: #ffed4e;
}

.no-weekly-insights {
    text-align: center;
    padding: 1.5rem;
    color: var(--muted);
}

.no-weekly-insights p {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
}

/* Premium Actions */
.premium-actions {
    border: 2px solid #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 237, 78, 0.05));
}

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

.premium-action {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000 !important;
    border: none;
    font-weight: 600;
}

.premium-action:hover {
    background: linear-gradient(135deg, #ffed4e, #ffd700);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.premium-action .premium-badge {
    background: rgba(0, 0, 0, 0.2);
    color: #000;
    font-weight: 700;
}

/* Subscription Stats in Progress Box */
.subscription-stat {
    opacity: 0.8;
    border-left: 2px solid #ffd700;
    padding-left: 0.75rem;
    margin-left: 0.5rem;
}

.subscription-stat .stat-number {
    font-size: 1.2rem;
    color: #ffd700;
    font-weight: 600;
}

.subscription-stat .stat-label {
    font-size: 0.75rem;
    color: var(--muted);
}

