/* ===== CSS Variables & Reset ===== */
:root {
    --bg-primary: #0a0b0f;
    --bg-secondary: #0f1015;
    --bg-card: #14151c;
    --bg-card-hover: #1a1b24;
    --bg-accent: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    --bg-success: linear-gradient(135deg, #00B4D8 0%, #0090B0 100%);

    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    --border-color: #1f2028;
    --accent: #0ea5e9;
    --purple: #6366f1;
    --success: #00B4D8;
    --warning: #f59e0b;
    --danger: #ef4444;

    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.2);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ===== DEX Selection Page ===== */
.dex-selection-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        var(--bg-primary);
}

.dex-selection-container {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.dex-selection-header {
    margin-bottom: 48px;
}

.dex-selection-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dex-selection-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.dex-cards {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.dex-card {
    position: relative;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 32px;
    width: 300px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.dex-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.dex-card.pacifica .dex-card-glow {
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.2) 0%, transparent 50%);
}

.dex-card.nado .dex-card-glow {
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.2) 0%, transparent 50%);
}

.dex-card:hover .dex-card-glow {
    opacity: 1;
}

.dex-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.dex-card.pacifica:hover {
    border-color: #0ea5e9;
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.2);
}

.dex-card.nado:hover {
    border-color: #dfdfe1;
    box-shadow: 0 20px 40px rgba(223, 223, 225, 0.15);
}

.dex-card-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.dex-card:hover .dex-card-logo {
    transform: scale(1.1);
}

.dex-card-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.dex-card.pacifica .dex-card-name {
    color: #0ea5e9;
}

.dex-card.nado .dex-card-name {
    color: #dfdfe1;
}

.dex-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.dex-card-arrow {
    font-size: 1.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.dex-card:hover .dex-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

.dex-card.pacifica .dex-card-arrow {
    color: #0ea5e9;
}

.dex-card.nado .dex-card-arrow {
    color: #dfdfe1;
}

/* Back Button */
.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.back-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: rgba(14, 165, 233, 0.1);
}

/* Nado Theme Overrides - Using Official Nado Brand Colors */
/* Nado uses: Monochromatic black/white - Primary accent #dfdfe1, Background #020203 */

.app.nado-theme {
    --bg-primary: #020203;
    --bg-secondary: #0a0a0b;
    --bg-card: #131316;
    --bg-card-hover: #19191a;
    --border-color: #1f1f21;
    --accent: #dfdfe1;
    --success: #59cd78;
}

.app.nado-theme .logo-text h1 {
    background: linear-gradient(135deg, #ffffff 0%, #dfdfe1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app.nado-theme .btn-outline {
    border-color: #454545;
    color: #dfdfe1;
}

.app.nado-theme .btn-outline:hover {
    border-color: #dfdfe1;
    background: rgba(223, 223, 225, 0.1);
    color: #ffffff;
}

.app.nado-theme .upload-zone {
    border-color: #1f1f21;
}

.app.nado-theme .upload-zone:hover,
.app.nado-theme .upload-zone.dragover {
    border-color: #dfdfe1;
    background: rgba(223, 223, 225, 0.05);
}

.app.nado-theme .upload-zone.success {
    border-color: #dfdfe1;
    background: rgba(223, 223, 225, 0.08);
}

.app.nado-theme .upload-status {
    color: #dfdfe1;
}

.app.nado-theme .share-card {
    background: #0a0a0b;
    border-color: #dfdfe1;
    box-shadow: 0 0 30px rgba(223, 223, 225, 0.15), 0 0 60px rgba(223, 223, 225, 0.08);
}

.app.nado-theme .share-logo-text {
    color: #dfdfe1;
}

.app.nado-theme .share-epoch {
    color: #dfdfe1;
}

.app.nado-theme .share-stat-item .share-stat-value {
    color: #ffffff;
}

.app.nado-theme .share-overlay {
    background: linear-gradient(90deg, rgba(2, 2, 3, 0.95) 0%, rgba(2, 2, 3, 0.75) 55%, transparent 100%);
}

.app.nado-theme .points-input:focus {
    border-color: #dfdfe1;
}

.app.nado-theme .share-btn {
    background: rgba(223, 223, 225, 0.1);
    color: #dfdfe1;
    border-color: #454545;
}

.app.nado-theme .share-btn:hover {
    background: #dfdfe1;
    color: #020203;
    border-color: #dfdfe1;
}

.app.nado-theme .link-btn {
    color: #dfdfe1;
}

.app.nado-theme .custom-price-input:focus-within {
    border-color: #dfdfe1;
}

.app.nado-theme .stat-value.positive {
    color: #dfdfe1;
}

.app.nado-theme .stat-value.negative {
    color: #ff707d;
}

.app.nado-theme .pnl-positive {
    color: #dfdfe1;
}

.app.nado-theme .pnl-negative {
    color: #ff707d;
}

.app.nado-theme .value-positive {
    color: #dfdfe1;
}

.app.nado-theme .week-current {
    background: rgba(223, 223, 225, 0.2);
    color: #dfdfe1;
}

.app.nado-theme .btn-success {
    background: #dfdfe1;
    color: #020203;
}

.app.nado-theme .btn-success:hover {
    background: #ffffff;
}

.app.nado-theme .back-btn:hover {
    border-color: #dfdfe1;
    background: rgba(223, 223, 225, 0.1);
}

.app.nado-theme .stat-card {
    border-color: #1f1f21;
}

.app.nado-theme .weekly-section {
    border-color: #1f1f21;
}

/* 01 Exchange Theme - Bright Green on Black */
.dex-card.o1 .dex-card-glow {
    background: radial-gradient(circle at center, rgba(0, 255, 136, 0.2) 0%, transparent 50%);
}

.dex-card.o1:hover {
    border-color: #00ff88;
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
}

.dex-card.o1 .dex-card-name {
    color: #00ff88;
}

.dex-card.o1 .dex-card-arrow {
    color: #00ff88;
}

.app.o1-theme {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --border-color: #1f1f1f;
    --accent: #00ff88;
    --success: #00ff88;
}

.app.o1-theme .logo-text h1 {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app.o1-theme .btn-outline {
    border-color: #333333;
    color: #00ff88;
}

.app.o1-theme .btn-outline:hover {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    color: #ffffff;
}

.app.o1-theme .upload-zone {
    border-color: #1f1f1f;
}

.app.o1-theme .upload-zone:hover,
.app.o1-theme .upload-zone.dragover {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.05);
}

.app.o1-theme .upload-zone.success {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.08);
}

.app.o1-theme .upload-status {
    color: #00ff88;
}

.app.o1-theme .share-card {
    background: #0a0a0a;
    border-color: #00ff88;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.15), 0 0 60px rgba(0, 255, 136, 0.08);
}

.app.o1-theme .share-logo-text {
    color: #00ff88;
}

.app.o1-theme .share-epoch {
    color: #00ff88;
}

.app.o1-theme .share-stat-item .share-stat-value {
    color: #00ff88;
}

.app.o1-theme .share-overlay {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.75) 55%, transparent 100%);
}

.app.o1-theme .points-input:focus {
    border-color: #00ff88;
}

.app.o1-theme .share-btn {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border-color: #333333;
}

.app.o1-theme .share-btn:hover {
    background: #00ff88;
    color: #000000;
    border-color: #00ff88;
}

.app.o1-theme .link-btn {
    color: #00ff88;
}

.app.o1-theme .custom-price-input:focus-within {
    border-color: #00ff88;
}

.app.o1-theme .stat-value.positive {
    color: #00ff88;
}

.app.o1-theme .stat-value.negative {
    color: #ff4d4d;
}

.app.o1-theme .pnl-positive {
    color: #00ff88;
}

.app.o1-theme .pnl-negative {
    color: #ff4d4d;
}

.app.o1-theme .value-positive {
    color: #00ff88;
}

.app.o1-theme .week-current {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.app.o1-theme .btn-success {
    background: #00ff88;
    color: #000000;
}

.app.o1-theme .btn-success:hover {
    background: #00cc6a;
}

.app.o1-theme .back-btn:hover {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.app.o1-theme .stat-card {
    border-color: #1f1f1f;
}

.app.o1-theme .weekly-section {
    border-color: #1f1f1f;
}

.app.o1-theme .share-value-item .share-stat-value {
    color: #00ff88;
}

.app {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
}

/* ===== Header ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 2.5rem;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

.logo-icon-img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--bg-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== Buttons ===== */
.btn {
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--bg-accent);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(14, 165, 233, 0.1);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
}

.link-btn {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    text-decoration: underline;
}

/* ===== Upload Section ===== */
.upload-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h2 {
    font-size: 1rem;
    font-weight: 600;
}

.upload-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent);
    background: rgba(14, 165, 233, 0.05);
}

.upload-zone.success {
    border-color: #00B4D8;
    background: rgba(0, 180, 216, 0.1);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
}

.upload-text {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.upload-subtext {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.upload-status {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--success);
}

.upload-status.error {
    color: var(--danger);
}

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
}

.stat-card.accent {
    background: var(--bg-accent);
    border: none;
}

.stat-card.highlight-value {
    background: var(--bg-success);
    border: none;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.stat-card.accent .stat-label,
.stat-card.highlight-value .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 800;
}

.stat-value.positive {
    color: var(--success);
}

.stat-value.negative {
    color: var(--danger);
}

/* ===== Weekly Section ===== */
.weekly-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.price-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-selector label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.price-selector select {
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
}

.custom-price-input {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0 8px;
}

.custom-price-input:focus-within {
    border-color: var(--accent);
}

.price-prefix {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.custom-price-input input {
    width: 60px;
    padding: 6px 4px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
}

.custom-price-input input::-webkit-inner-spin-button {
    opacity: 0.5;
}

.weekly-table-wrapper {
    overflow-x: auto;
}

.weekly-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.weekly-table th,
.weekly-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.weekly-table th {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--bg-secondary);
}

.weekly-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.weekly-table .empty-row td {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
}

.weekly-table tfoot {
    background: var(--bg-secondary);
    font-weight: 600;
}

.weekly-table tfoot td {
    border-bottom: none;
}

.pnl-positive {
    color: var(--success);
}

.pnl-negative {
    color: var(--danger);
}

/* Points Input in Table */
.points-input {
    width: 70px;
    padding: 6px 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.8rem;
    text-align: right;
}

.points-input:focus {
    outline: none;
    border-color: var(--accent);
}

.value-positive {
    color: var(--accent);
    font-weight: 600;
}

.table-hint {
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Current Week Badge */
.week-current {
    color: var(--warning);
    font-size: 0.7rem;
    margin-left: 8px;
}

.row-current {
    opacity: 0.6;
}

/* Epoch Name Badge */
.epoch-name {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 500;
}

.row-special-epoch {
    background: rgba(255, 255, 255, 0.02);
}

/* Week Number Badge */
.week-number {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent);
    margin-right: 6px;
    opacity: 0.8;
}

/* Nado theme epoch styling */
.app.nado-theme .epoch-name {
    background: rgba(223, 223, 225, 0.1);
    color: #a0a0a2;
}

/* Share Button */
.share-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
    background: rgba(14, 165, 233, 0.2);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    background: var(--accent);
    color: white;
}

/* ===== Share Modal ===== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100;
    display: none;
    backdrop-filter: blur(4px);
}

.modal-backdrop.active {
    display: block;
}

.share-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 101;
    display: none;
}

.share-modal.active {
    display: block;
}

.share-container {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.share-card {
    background: #0a1218;
    border: 2px solid #0ea5e9;
    border-radius: var(--radius-lg);
    padding: 0;
    width: 340px;
    box-shadow:
        0 0 30px rgba(14, 165, 233, 0.3),
        0 0 60px rgba(14, 165, 233, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.share-body {
    position: relative;
    flex: 1;
    display: flex;
    min-height: 220px;
    overflow: hidden;
}

.mascot-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.share-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: linear-gradient(90deg, rgba(10, 18, 24, 0.95) 0%, rgba(10, 18, 24, 0.75) 55%, transparent 100%);
}

.share-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: linear-gradient(180deg, rgba(10, 18, 24, 0.9) 0%, rgba(10, 18, 24, 0.6) 70%, transparent 100%);
}

.share-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-logo-img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.share-logo-icon {
    font-size: 1.2rem;
}

.share-logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: #00B4D8;
}

.share-epoch {
    color: #00B4D8;
    font-size: 0.85rem;
    font-weight: 600;
}

.share-stats-overlay {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    flex: 1;
}

.share-stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.share-stat-item .share-stat-label {
    font-size: 0.6rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.share-stat-item .share-stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0ea5e9;
}

/* Value item - positioned at bottom right */
.share-value-item {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.share-value-item .share-stat-value {
    color: var(--accent);
    font-size: 1.4rem;
}

/* Nado theme value styling */
.app.nado-theme .share-value-item .share-stat-value {
    color: #dfdfe1;
}

.mascot-emoji {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 5rem;
    line-height: 1;
    z-index: 1;
}

/* Right side: Picture Selection */
.share-options {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    width: 200px;
    display: flex;
    flex-direction: column;
}

.custom-bg-controls .btn {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

/* Nado theme overrides for buttons */
.app.nado-theme .custom-bg-controls .btn {
    border-color: #454545;
    color: #dfdfe1;
}

.app.nado-theme .custom-bg-controls .btn:hover {
    border-color: #dfdfe1;
    background: rgba(223, 223, 225, 0.1);
    color: #ffffff;
}

/* 01 Theme overrides */
.app.o1-theme .custom-bg-controls .btn {
    border-color: #333;
    color: #00ff88;
}

.app.o1-theme .custom-bg-controls .btn:hover {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    color: #ffffff;
}

.options-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.picture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.picture-option {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.2s;
}

.picture-option:hover {
    border-color: var(--accent);
    background: rgba(14, 165, 233, 0.1);
}

.picture-option.selected {
    border-color: #00B4D8;
    background: rgba(0, 180, 216, 0.2);
}

.share-actions-bottom {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.share-actions-bottom .btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 0.85rem;
}

.btn-success {
    background: #00B4D8;
    color: white;
    border: none;
}

.btn-success:hover {
    background: #0090B0;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border-color);
}

.disclaimer {
    margin-top: 8px;
    font-size: 0.7rem;
    opacity: 0.6;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .app {
        padding: 16px;
    }

    .header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .share-card {
        width: 280px;
    }
}

input[type="number"]::-webkit-inner-spin-button {
    opacity: 0.5;
}