/* CSS Variables - pump.fun inspired */
:root {
    --color-bg: #0d0d0d;
    --color-bg-secondary: #141414;
    --color-bg-tertiary: #1a1a1a;
    --color-border: #2d2d2d;
    --color-text: #ffffff;
    --color-text-secondary: #b0b0b0;
    --color-text-muted: #666666;
    --color-primary: #5eeaa0;
    --color-primary-hover: #4cd88e;
    --color-primary-glow: rgba(94, 234, 160, 0.3);
    --color-secondary: #5eeaa0;
    --color-error: #ff4757;
    --color-warning: #ffa502;
    --color-success: #5eeaa0;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    --glow: 0 0 20px var(--color-primary-glow);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p { color: var(--color-text-secondary); }

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

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

.mono { font-family: var(--font-mono); font-size: 0.9em; }

.subtitle {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main {
    flex: 1;
    padding: 2rem 0;
}

/* Header */
.header {
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo:hover { opacity: 0.9; }

.logo-img {
    height: 36px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.nav {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
    background: rgba(94, 234, 160, 0.1);
    text-shadow: 0 0 10px var(--color-primary-glow);
}

.wallet-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wallet-address {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    background: var(--color-bg-tertiary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

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

.btn-primary {
    background: var(--color-primary);
    color: #0d0d0d;
    font-weight: 600;
    box-shadow: var(--glow);
}

.btn-primary:hover:not(:disabled) {
    background: var(--color-primary-hover);
    box-shadow: 0 0 30px var(--color-primary-glow);
}

.btn-secondary {
    background: var(--color-bg-tertiary);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--color-border);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-loading .btn-text { display: none; }
.btn-loading .btn-loading { display: flex; }
.btn .btn-loading { display: none; }

/* OAuth Buttons */
.btn-oauth {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    background: var(--color-bg-tertiary);
    border: 2px solid var(--color-border);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

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

.btn-twitter { border-color: #1DA1F2; }
.btn-github { border-color: #6e5494; }
.btn-twitch { border-color: #9146FF; }
.btn-tiktok { border-color: #00f2ea; }

/* Cards */
.card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
    border-color: rgba(94, 234, 160, 0.3);
    box-shadow: 0 0 30px rgba(94, 234, 160, 0.1);
}

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

.card-header h2 {
    margin: 0;
}

/* Forms */
.form-section {
    margin-bottom: 2rem;
}

.form-section-title {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.form-section-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
}

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

.input,
input[type="text"],
input[type="number"],
input[type="url"],
input[type="email"],
input[type="search"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary-glow);
}

input::placeholder,
textarea::placeholder {
    color: var(--color-text-muted);
}

select {
    cursor: pointer;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

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

/* File Input */
.file-input-wrapper {
    position: relative;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-input-preview {
    width: 100%;
    height: 150px;
    background: var(--color-bg-tertiary);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.2s;
}

.file-input-preview:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary-glow);
}

.file-input-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

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

/* Payment Section */
.payment-section {
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.payment-info {
    text-align: center;
}

.payment-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.amount-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-shadow: var(--glow);
}

.amount-unit {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
}

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

/* Form Actions */
.form-actions {
    margin-top: 2rem;
}

.form-actions .btn {
    width: 100%;
}

/* Page Grid */
.page-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
}

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

/* Token List */
.token-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tokens-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.token-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s ease;
}

.token-item:hover {
    transform: translateX(5px);
    border-color: rgba(94, 234, 160, 0.3);
    box-shadow: 0 0 20px rgba(94, 234, 160, 0.1);
}

.token-image {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-bg);
}

.token-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.token-image-sm {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-bg);
    object-fit: cover;
    flex-shrink: 0;
}

.token-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.token-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.token-item-name:hover {
    color: var(--color-primary);
}

.token-item-symbol {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.token-item-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.token-item-stats span {
    color: var(--color-text-secondary);
}

.token-info-mini {
    flex: 1;
    min-width: 0;
}

.token-name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.token-symbol {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.token-fee-sharing {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

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

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.table th {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tbody tr:hover {
    background: var(--color-bg-tertiary);
}

.loading-cell,
.empty-cell {
    text-align: center;
    color: var(--color-text-muted);
    padding: 2rem !important;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
}

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

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

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

/* Page Header */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

/* Token Details */
.token-details .back-link {
    margin-bottom: 1.5rem;
}

.token-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.token-image-large {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg-tertiary);
    flex-shrink: 0;
}

.token-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.token-info {
    flex: 1;
}

.token-info h1 {
    margin-bottom: 0.25rem;
}

.token-info .token-symbol {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.token-description {
    margin-bottom: 1rem;
}

.token-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.token-links a {
    padding: 0.5rem 1rem;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.token-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    min-width: 100px;
}

.meta-value {
    font-size: 0.9rem;
    word-break: break-all;
}

.btn-copy {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-text-secondary);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-copy:hover {
    background: var(--color-primary);
    color: var(--color-bg);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 0 12px var(--color-primary-glow);
}

.btn-copy:active {
    transform: translateY(0);
}

.btn-copy svg {
    width: 16px;
    height: 16px;
}

/* Fee Sharing Info */
.fee-sharing-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.fee-item {
    text-align: center;
    padding: 1rem;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
}

.fee-label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.fee-value {
    font-size: 1.1rem;
    font-weight: 600;
}

/* External Links */
.external-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Dashboard */
.auth-prompt {
    text-align: center;
    padding: 3rem 2rem;
}

.auth-prompt h2 {
    margin-bottom: 1rem;
}

.auth-prompt p {
    margin-bottom: 2rem;
}

.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    margin: 0 auto;
}

.user-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* reduced gap to make card more compact */
}

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

/* push logout button to the right of the user-info row */
.user-info > button {
    margin-left: auto;
}

.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* small downward nudge so lines align visually with avatar */
    padding-top: 3px;
}

.user-details h2 {
    margin-bottom: 0.25rem;
}

.user-provider {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-transform: capitalize;
}

/* Small block that shows hidden/encrypted secret (matching existing '*****' style) */
.account-secret {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    text-align: center;
    word-break: break-all;
    border: 1px solid var(--color-border);
}

/* Wallet address and secret rows */
.wallet-address-row,
.wallet-secret-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
}

.wallet-address-value,
.wallet-secret-value {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    word-break: break-all;
    color: var(--color-text);
}

.wallet-secret-value {
    letter-spacing: 1px;
}

/* Icon button style */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}

/* Green Claim button */
.btn-claim {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--color-primary);
    color: #0d0d0d;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--glow);
}

.btn-claim:hover:not(:disabled) {
    background: var(--color-primary-hover);
    box-shadow: 0 0 30px var(--color-primary-glow);
}

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

/* Wallet loading indicator */
.wallet-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.connected-accounts h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Compact accounts section when header removed */
.accounts-section {
    margin-top: 0.5rem;
}

.accounts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.account-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.mini-oauth-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Earnings */
.earnings-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.earnings-stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
}

.earnings-stat.highlight {
    background: linear-gradient(135deg, var(--color-primary) 0%, #3dd990 100%);
    box-shadow: var(--glow);
}

.earnings-stat.highlight .earnings-value {
    color: #0d0d0d;
}

.earnings-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

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

.earnings-stat.highlight .earnings-label {
    color: #000000;
}

.earnings-by-token h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.token-earnings-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.token-earning-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
}

.withdraw-form {
    max-width: 400px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 1rem 1.5rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease;
    max-width: 350px;
}

.toast.success {
    border-color: var(--color-success);
}

.toast.error {
    border-color: var(--color-error);
}

.toast.warning {
    border-color: var(--color-warning);
}

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

/* Loading */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    padding: 2rem;
}

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

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

.loading-state,
.error-state {
    text-align: center;
    padding: 4rem 2rem;
}

.error-state h2 {
    margin-bottom: 1rem;
}

.error-state p {
    margin-bottom: 2rem;
}

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

.empty-state {
    text-align: center;
    color: var(--color-text-muted);
    padding: 2rem;
}

.loading-message {
    text-align: center;
    color: var(--color-text-muted);
    padding: 2rem;
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0;
    text-align: center;
}

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

/* Status indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.status-claimed {
    background: rgba(94, 234, 160, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(94, 234, 160, 0.3);
}

.status-unclaimed {
    background: rgba(255, 71, 87, 0.1);
    color: var(--color-error);
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.status-indicator:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Provider badges */
.provider-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
}

.provider-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.provider-icon {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.provider-icon svg {
    display: block;
}

.provider-handle {
    color: var(--color-text);
}

/* Provider-specific colors */
.provider-github {
    border-color: #666666;
}

.provider-github:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #999999;
}

.provider-github .provider-icon {
    color: #ffffff;
}

.provider-twitch {
    border-color: #9146FF;
}

.provider-twitch:hover {
    background: rgba(145, 70, 255, 0.1);
    border-color: #9146FF;
}

.provider-twitch .provider-icon {
    color: #9146FF;
}

.provider-twitter {
    border-color: #1DA1F2;
}

.provider-twitter:hover {
    background: rgba(29, 161, 242, 0.1);
    border-color: #1DA1F2;
}

.provider-twitter .provider-icon {
    color: #1DA1F2;
}

.provider-tiktok {
    border-color: #fe2c55;
}

.provider-tiktok:hover {
    background: rgba(254, 44, 85, 0.1);
    border-color: #fe2c55;
}

.provider-tiktok .provider-icon {
    color: #fe2c55;
}

/* Provider icon only (for profile) */
.provider-icon-only {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    cursor: help;
}

.provider-icon-only svg {
    width: 20px;
    height: 20px;
}

.provider-icon-only.provider-twitter {
    color: #1DA1F2;
    background: rgba(29, 161, 242, 0.1);
}

.provider-icon-only.provider-github {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.provider-icon-only.provider-twitch {
    color: #9146FF;
    background: rgba(145, 70, 255, 0.1);
}

.provider-icon-only.provider-tiktok {
    color: #fe2c55;
    background: rgba(254, 44, 85, 0.1);
}

.provider-icon-only:hover {
    transform: scale(1.1);
}

/* Provider selection grid */
.provider-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.provider-card:nth-child(5) {
    grid-column: 1 / -1;
}

.provider-card {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.provider-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.provider-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--color-bg-tertiary);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.provider-card:hover .provider-card-content {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(94, 234, 160, 0.15);
}

.provider-card input[type="radio"]:checked ~ .provider-card-content {
    border-color: var(--color-primary);
    background: rgba(94, 234, 160, 0.05);
    box-shadow: 0 0 0 3px rgba(94, 234, 160, 0.1);
}

.provider-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.provider-card-icon svg {
    width: 28px;
    height: 28px;
}

.provider-twitter-icon {
    color: #1DA1F2;
    background: rgba(29, 161, 242, 0.1);
}

.provider-github-icon {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.provider-twitch-icon {
    color: #9146FF;
    background: rgba(145, 70, 255, 0.1);
}

.provider-tiktok-icon {
    color: #fe2c55;
    background: rgba(254, 44, 85, 0.1);
}

.provider-clawd-icon {
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.provider-card:hover .provider-card-icon {
    transform: scale(1.1);
}

.provider-card-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
}

.provider-card-desc {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: -0.5rem;
}

.clawd-info {
    margin-top: 0.75rem;
}

.clawd-info.hidden {
    display: none;
}

.info-badge {
    padding: 1rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--color-text);
    text-align: center;
}

.clawd-icon-header {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.clawd-emoji {
    font-size: 3rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(255, 107, 53, 0.3));
}

.info-badge strong {
    color: #ff6b35;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.info-badge p {
    margin: 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid,
    .earnings-summary {
        grid-template-columns: 1fr;
    }
    
    .fee-sharing-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .token-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .token-meta {
        align-items: center;
    }
    
    .provider-grid {
        grid-template-columns: 1fr;
    }
}
