/* ========================================
   钓鱼游戏调度面板 - 粉蓝渐变 / 低饱和 / ins高级感
   ======================================== */

:root {
    --bg-start: #f2eaf0;
    --bg-end: #e8eef6;
    --card-bg: rgba(255, 255, 255, 0.55);
    --card-border: rgba(255, 255, 255, 0.7);
    --card-shadow: 0 8px 32px rgba(180, 160, 190, 0.12);
    --card-hover-shadow: 0 12px 40px rgba(160, 140, 180, 0.18);
    --text-primary: #3d3a42;
    --text-secondary: #7a7580;
    --text-muted: #a09aaa;
    --accent: #b8a4c8;
    --accent-blue: #9db4d4;
    --accent-gradient: linear-gradient(135deg, #c9b3d9 0%, #a3bee0 100%);
    --border-color: rgba(180, 170, 200, 0.2);
    --input-bg: rgba(255, 255, 255, 0.6);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --font: 'CustomFont', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Rarity colors */
    --rarity-common: #8a9aa8;
    --rarity-uncommon: #7ab89e;
    --rarity-rare: #6ba3d6;
    --rarity-epic: #a87fd4;
    --rarity-legendary: #d4a04e;
    --rarity-mythic: #d46b8c;
}

@font-face {
    font-family: 'CustomFont';
    src: url('https://image.uglycat.cc/9o8uvx.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

button, input, select, textarea, code, pre, h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
}

body {
    font-family: var(--font);
    background: linear-gradient(145deg, var(--bg-start) 0%, var(--bg-end) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
}

.app {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 32px;
}

/* ========================================
   Header
   ======================================== */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icon {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

.header h1 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(184, 164, 200, 0.65);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ========================================
   Navigation
   ======================================== */

.nav-tabs {
    display: flex;
    gap: 4px;
    padding: 6px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    margin-bottom: 24px;
    box-shadow: var(--card-shadow);
    overflow-x: auto;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.nav-tab:hover {
    background: rgba(180, 160, 200, 0.08);
    color: var(--text-primary);
}

.nav-tab.active {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 16px rgba(180, 160, 200, 0.25);
}

.nav-tab i {
    width: 16px;
    height: 16px;
}

/* ========================================
   Cards
   ======================================== */

.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-hover-shadow);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.card-header i {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.card-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 20px;
}

/* ========================================
   Grid Layout
   ======================================== */

.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--accent-gradient);
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font);
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(180, 160, 200, 0.3);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-ghost {
    background: rgba(180, 160, 200, 0.08);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background: rgba(180, 160, 200, 0.15);
    color: var(--text-primary);
    box-shadow: none;
    transform: none;
}

.btn-danger {
    background: rgba(180, 160, 200, 0.12);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.btn-danger:hover {
    background: rgba(180, 160, 200, 0.22);
    color: var(--text-primary);
    box-shadow: none;
    transform: none;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius-xs);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: rgba(180, 160, 200, 0.12);
    color: var(--text-primary);
}

.btn i {
    width: 14px;
    height: 14px;
}

/* ========================================
   Forms & Inputs
   ======================================== */

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font);
    transition: all 0.2s;
    outline: none;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a09aaa' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(184, 164, 200, 0.15);
}

textarea {
    resize: vertical;
}

label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

code {
    font-size: 11px;
    padding: 2px 8px;
    background: rgba(180, 160, 200, 0.08);
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    word-break: break-all;
}

/* ========================================
   Tab Panels
   ======================================== */

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   Section Header
   ======================================== */

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

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.text-muted {
    color: var(--text-muted);
    font-size: 13px;
}

/* ========================================
   Dashboard Specifics
   ======================================== */

.quick-commands {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.command-input-group {
    display: flex;
    gap: 8px;
}

.command-input-group input {
    flex: 1;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-text {
    font-size: 12px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 400px;
    overflow-y: auto;
    color: var(--text-secondary);
    padding: 12px;
    background: rgba(0,0,0,0.02);
    border-radius: var(--radius-xs);
}

/* ========================================
   Baits Grid
   ======================================== */

.bait-card {
    padding: 20px;
}

.bait-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.bait-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.5;
}

.bait-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bait-control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.bait-control-row label {
    margin: 0;
    font-size: 12px;
    white-space: nowrap;
}

.bait-control-row input {
    width: 80px;
}

.toggle {
    position: relative;
    width: 40px;
    height: 22px;
    background: rgba(180, 160, 200, 0.2);
    border-radius: 11px;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle.active {
    background: var(--accent);
}

.toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.toggle.active::after {
    left: 21px;
}

/* ========================================
   Fish Table
   ======================================== */

.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.filter-bar select,
.filter-bar input {
    width: auto;
    min-width: 160px;
}

.fish-table-wrapper {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

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

.fish-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(180, 160, 200, 0.03);
}

.fish-table td {
    padding: 12px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.fish-table tr:last-child td {
    border-bottom: none;
}

.fish-table tr:hover td {
    background: rgba(180, 160, 200, 0.04);
}

.rarity-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.rarity-common { background: rgba(138,154,168,0.12); color: var(--rarity-common); }
.rarity-uncommon { background: rgba(122,184,158,0.12); color: var(--rarity-uncommon); }
.rarity-rare { background: rgba(107,163,214,0.12); color: var(--rarity-rare); }
.rarity-epic { background: rgba(168,127,212,0.12); color: var(--rarity-epic); }
.rarity-legendary { background: rgba(212,160,78,0.12); color: var(--rarity-legendary); }
.rarity-mythic { background: rgba(212,107,140,0.12); color: var(--rarity-mythic); }

.action-btns {
    display: flex;
    gap: 4px;
}

/* ========================================
   Probability
   ======================================== */

.prob-chart {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 500px;
    overflow-y: auto;
}

.prob-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.prob-bar-label {
    width: 80px;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prob-bar-track {
    flex: 1;
    height: 20px;
    background: rgba(180, 160, 200, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.prob-bar-fill {
    height: 100%;
    border-radius: 10px;
    background: var(--accent-gradient);
    transition: width 0.5s ease;
    min-width: 2px;
}

.prob-bar-value {
    width: 50px;
    font-size: 11px;
    color: var(--text-muted);
}

.prob-list {
    max-height: 500px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.prob-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(180, 160, 200, 0.04);
    border-radius: var(--radius-xs);
}

.prob-list-item-name {
    font-size: 13px;
    font-weight: 500;
}

.prob-list-item-pct {
    font-size: 12px;
    color: var(--text-muted);
}

.mode-segmented {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    min-height: 38px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.46);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 6px 18px rgba(180, 160, 200, 0.08);
}

.mode-segment {
    border: none;
    border-radius: var(--radius-xs);
    padding: 8px 14px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.mode-segment:hover {
    background: rgba(180, 160, 200, 0.1);
    color: var(--text-primary);
}

.mode-segment.active {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 14px rgba(180, 160, 200, 0.24);
}

/* ========================================
   Logs
   ======================================== */

.log-card .card-body {
    padding: 0;
}

.log-container {
    max-height: 600px;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.log-entry {
    padding: 12px 16px;
    background: rgba(180, 160, 200, 0.04);
    border-radius: var(--radius-xs);
    border-left: 3px solid var(--accent);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.log-entry-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.log-entry-cmd {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 4px;
    font-family: monospace;
}

.log-entry-result {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: pre-wrap;
    line-height: 1.5;
    max-height: 120px;
    overflow: hidden;
}

/* ========================================
   Modal
   ======================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(60, 50, 70, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    width: 90%;
    max-width: 560px;
    max-height: 80vh;
    overflow-y: auto;
}

#addLocationModal .modal {
    max-width: 720px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* ========================================
   Locations Grid
   ======================================== */

.location-card {
    padding: 20px;
}

.location-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.location-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.location-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.location-tag {
    font-size: 11px;
    padding: 3px 8px;
    background: rgba(180, 160, 200, 0.08);
    border-radius: 20px;
    color: var(--text-secondary);
}

.location-fish-count {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
}

.location-mode-tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    margin-bottom: 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: rgba(180, 160, 200, 0.05);
}

.location-mode-tab {
    flex: 1;
    border: none;
    border-radius: var(--radius-xs);
    padding: 10px 12px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.location-mode-tab:hover {
    background: rgba(180, 160, 200, 0.1);
    color: var(--text-primary);
}

.location-mode-tab.active {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 14px rgba(180, 160, 200, 0.22);
}

.location-form-page {
    display: none;
}

.location-form-page.active {
    display: block;
    animation: fadeIn 0.18s ease;
}

.location-fish-picker {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.location-fish-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
    min-height: 40px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    background: rgba(180, 160, 200, 0.04);
}

.location-fish-mode-hint,
.global-fish-note {
    flex-basis: 100%;
    width: 100%;
    padding: 9px 10px;
    border-radius: var(--radius-xs);
    font-size: 11px;
    line-height: 1.55;
}

.location-fish-mode-hint {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(157, 180, 212, 0.08);
    border: 1px solid rgba(157, 180, 212, 0.18);
    color: var(--text-secondary);
}

.location-fish-mode-hint strong {
    color: var(--text-primary);
    font-size: 12px;
}

.location-fish-mode-hint em {
    color: var(--accent);
    font-style: normal;
    font-weight: 600;
}

.global-fish-note {
    background: linear-gradient(135deg, rgba(184, 164, 200, 0.08), rgba(157, 180, 212, 0.08));
    border: 1px solid rgba(184, 164, 200, 0.18);
    color: var(--text-secondary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.global-fish-note strong {
    color: var(--text-primary);
}

.global-fish-note span {
    color: var(--text-muted);
}

.selected-fish-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 4px 10px;
    border-radius: 20px;
    background: var(--accent-gradient);
    color: white;
    font-size: 11px;
    box-shadow: 0 2px 8px rgba(180, 160, 200, 0.22);
}

.selected-fish-chip small {
    opacity: 0.75;
    font-size: 10px;
}

.selected-fish-chip button {
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    color: white;
    line-height: 16px;
    cursor: pointer;
}

.location-fish-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 2px;
}

.location-fish-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    transition: all 0.2s ease;
}

.location-fish-result:hover {
    border-color: var(--accent);
    background: rgba(180, 160, 200, 0.08);
    transform: translateY(-1px);
}

.location-fish-result.selected {
    border-color: rgba(184, 164, 200, 0.45);
    background: rgba(180, 160, 200, 0.12);
    box-shadow: 0 4px 14px rgba(180, 160, 200, 0.14);
}

.location-fish-result.will-convert {
    border-style: dashed;
    background: rgba(255, 255, 255, 0.38);
}

.location-fish-result.will-convert .location-fish-result-main span {
    color: #b08a42;
}

.location-fish-result-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.location-fish-result-main strong {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
}

.location-fish-result-main span {
    font-size: 10px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-fish-result-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.location-fish-check {
    font-size: 10px;
    color: var(--accent);
}

.location-fish-empty {
    grid-column: 1 / -1;
    padding: 14px;
    text-align: center;
    color: var(--text-muted);
    background: rgba(180, 160, 200, 0.04);
    border-radius: var(--radius-sm);
}

/* ========================================
   Scrollbar
   ======================================== */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(180, 160, 200, 0.25);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(180, 160, 200, 0.4);
}

/* ========================================
   Credit Line
   ======================================== */

.credit-line {
    margin-top: 32px;
    padding: 16px 0;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.credit-line span {
    padding: 0 2px;
}

.credit-sep {
    color: var(--border-color);
    padding: 0 8px !important;
}

.credit-line a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.credit-line a:hover {
    text-decoration: underline;
}

/* ========================================
   Custom Dropdown
   ======================================== */

.custom-dropdown {
    position: relative;
    min-width: 140px;
}

.custom-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    background: var(--input-bg);
    cursor: pointer;
    font-size: 13px;
    color: var(--text-primary);
    transition: all 0.2s;
    user-select: none;
}

.custom-dropdown-trigger:hover {
    border-color: var(--accent);
}

.custom-dropdown.open .custom-dropdown-trigger {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(184, 164, 200, 0.15);
}

.custom-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 240px;
    overflow-y: auto;
    padding: 4px;
}

.custom-dropdown.open .custom-dropdown-menu {
    display: block;
    animation: fadeIn 0.15s ease;
}

.custom-dropdown-item {
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.15s;
}

.custom-dropdown-item:hover {
    background: rgba(180, 160, 200, 0.08);
    color: var(--text-primary);
}

.custom-dropdown-item.active {
    background: var(--accent-gradient);
    color: white;
}

/* ========================================
   Multi Select (chip style)
   ======================================== */

.multi-select-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    background: var(--input-bg);
    min-height: 38px;
    cursor: pointer;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.chip-option {
    background: rgba(180, 160, 200, 0.08);
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.chip-option:hover {
    background: rgba(180, 160, 200, 0.15);
}

.chip-option.selected {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(180, 160, 200, 0.25);
}

/* ========================================
   Bait Effect Grid
   ======================================== */

.bait-effect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 6px;
    margin-top: 6px;
}

.bait-effect-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bait-effect-row span {
    font-size: 11px;
    color: var(--text-secondary);
    min-width: 36px;
    white-space: nowrap;
}

.bait-effect-row input {
    width: 70px;
    padding: 6px 8px;
    font-size: 12px;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .app {
        padding: 12px 16px;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .nav-tabs {
        overflow-x: auto;
    }
    .header {
        flex-direction: column;
        gap: 12px;
    }
}
