/* shop-earnings.css — Creator Shop Earnings dashboard (Layer 5). */
/* TikTok-native dark theme: cyan #00F2EA + coral #FF4D6D */

.app-main { background: #0a0a0a; min-height: 100vh; color: #e8e8e8; }

/* Topbar */
.se-topbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; border-bottom: 1px solid #1a1a2e; flex-wrap: wrap; gap: 0.5rem; }
.se-topbar-left { display: flex; align-items: center; gap: 1rem; }
.se-topbar-title { font-size: 1.4rem; font-weight: 700; color: #fff; margin: 0; }
.se-topbar-right { display: flex; align-items: center; gap: 0.75rem; }
.se-back { color: #888; text-decoration: none; font-size: 0.85rem; }
.se-back:hover { color: #00F2EA; }
.se-rate-pill { background: rgba(0,242,234,0.12); color: #00F2EA; padding: 0.35rem 0.75rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.se-copy-link { display: flex; align-items: center; gap: 0.4rem; background: rgba(0,242,234,0.1); color: #00F2EA; border: 1px solid rgba(0,242,234,0.25); padding: 0.4rem 0.8rem; border-radius: 8px; font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.se-copy-link:hover { background: rgba(0,242,234,0.2); }

/* Container */
.se-container { max-width: 1100px; margin: 0 auto; padding: 1.5rem 2rem 3rem; }

/* Login prompt */
.se-login-prompt { text-align: center; padding: 4rem 2rem; }
.se-login-prompt h2 { color: #fff; margin: 1rem 0 0.5rem; font-size: 1.3rem; }
.se-login-prompt p { color: #888; margin-bottom: 1.5rem; }
.se-login-btn { display: inline-block; background: #00F2EA; color: #0a0a0a; padding: 0.75rem 2rem; border-radius: 10px; font-weight: 700; text-decoration: none; }
.se-login-btn:hover { background: #00d4cd; }

/* Hero Cards */
.se-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.se-hero-card { background: #111118; border: 1px solid #1a1a2e; border-radius: 12px; padding: 1.25rem; }
.se-hero-primary { border-color: rgba(0,242,234,0.25); background: linear-gradient(135deg, rgba(0,242,234,0.06), rgba(0,242,234,0.02)); }
.se-hero-label { display: block; font-size: 0.78rem; color: #888; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.35rem; }
.se-hero-value { display: block; font-size: 1.7rem; font-weight: 800; color: #fff; margin-bottom: 0.2rem; }
.se-hero-sub { display: block; font-size: 0.75rem; color: #666; }
.se-accent { color: #00F2EA !important; }

/* Split Section */
.se-split-section { margin-bottom: 2rem; }
.se-section-title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.se-split-bar { display: flex; height: 36px; border-radius: 8px; overflow: hidden; margin-bottom: 0.5rem; }
.se-split-creator { background: linear-gradient(90deg, #00F2EA, #00c4be); display: flex; align-items: center; justify-content: center; }
.se-split-creator span { font-size: 0.78rem; font-weight: 700; color: #0a0a0a; }
.se-split-nova { background: #1a1a2e; display: flex; align-items: center; justify-content: center; }
.se-split-nova span { font-size: 0.78rem; font-weight: 600; color: #888; }
.se-split-note { font-size: 0.8rem; color: #666; }

/* Affiliate Link */
.se-affiliate-section { margin-bottom: 2rem; }
.se-affiliate-box { display: flex; align-items: center; background: #111118; border: 1px solid #1a1a2e; border-radius: 10px; padding: 0.75rem 1rem; gap: 0.75rem; }
.se-affiliate-box code { flex: 1; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: #00F2EA; word-break: break-all; }
.se-copy-btn { background: #00F2EA; color: #0a0a0a; border: none; padding: 0.45rem 1rem; border-radius: 6px; font-weight: 700; font-size: 0.8rem; cursor: pointer; white-space: nowrap; }
.se-copy-btn:hover { background: #00d4cd; }
.se-affiliate-note { font-size: 0.8rem; color: #666; margin-top: 0.5rem; }

/* Tables */
.se-table-wrap { overflow-x: auto; margin-bottom: 0.5rem; }
.se-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.se-table th { text-align: left; color: #888; font-weight: 600; padding: 0.6rem 0.75rem; border-bottom: 1px solid #1a1a2e; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; }
.se-table td { padding: 0.65rem 0.75rem; border-bottom: 1px solid #111118; color: #ccc; }
.se-table tr:hover td { background: rgba(0,242,234,0.03); }
.se-earnings { color: #00F2EA; font-weight: 700; }
.se-order-id { font-family: monospace; font-size: 0.8rem; color: #888; }
.se-empty-row { text-align: center; color: #555; padding: 2rem 0.75rem !important; }

/* Status badges */
.se-status { padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; }
.se-status-pending { background: rgba(255,193,7,0.12); color: #ffc107; }
.se-status-approved { background: rgba(0,242,234,0.12); color: #00F2EA; }
.se-status-paid { background: rgba(76,175,80,0.12); color: #4caf50; }

/* Pagination */
.se-pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1rem; }
.se-page-btn { background: #111118; border: 1px solid #1a1a2e; color: #ccc; padding: 0.4rem 0.75rem; border-radius: 6px; cursor: pointer; font-size: 0.8rem; }
.se-page-btn.active { background: #00F2EA; color: #0a0a0a; border-color: #00F2EA; font-weight: 700; }
.se-page-btn:hover:not(.active) { border-color: #00F2EA; color: #00F2EA; }

/* Monthly section */
.se-monthly-section { margin-bottom: 2rem; }
.se-orders-section { margin-bottom: 2rem; }

/* Mobile */
@media (max-width: 768px) {
  .se-topbar { padding: 1rem; }
  .se-container { padding: 1rem; }
  .se-hero { grid-template-columns: 1fr 1fr; }
  .se-affiliate-box { flex-direction: column; }
  .se-affiliate-box code { font-size: 0.75rem; }
}
@media (max-width: 480px) {
  .se-hero { grid-template-columns: 1fr; }
}
