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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #0a0a0b;
    color: #fafafa;
    min-height: 100vh;
    padding: 24px 16px;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    transition: max-width 0.3s ease;
}

.container.container-wide {
    max-width: 1100px;
}

.header {
    margin-bottom: 32px;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #fafafa;
    margin-bottom: 8px;
}

.header p {
    font-size: 14px;
    color: #71717a;
}

.card {
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #a1a1aa;
    margin-bottom: 8px;
}

input[type="text"],
input[type="password"],
input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    background-color: #09090b;
    border: 1px solid #27272a;
    border-radius: 6px;
    color: #fafafa;
    transition: border-color 0.15s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus {
    outline: none;
    border-color: #3f3f46;
}

input::placeholder {
    color: #52525b;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.5);
}

select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    background-color: #09090b;
    border: 1px solid #27272a;
    border-radius: 6px;
    color: #fafafa;
    transition: border-color 0.15s ease;
    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='%2371717a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

select:focus {
    outline: none;
    border-color: #3f3f46;
}

textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    background-color: #09090b;
    border: 1px solid #27272a;
    border-radius: 6px;
    color: #fafafa;
    transition: border-color 0.15s ease;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #3f3f46;
}

textarea::placeholder {
    color: #52525b;
}

.textarea-monospace {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    min-height: 240px;
    line-height: 1.5;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-primary {
    background-color: #fafafa;
    color: #09090b;
    width: 100%;
}

.btn-primary:hover {
    background-color: #e4e4e7;
}

.btn-primary:disabled {
    background-color: #3f3f46;
    color: #71717a;
    cursor: not-allowed;
}

.btn-danger {
    background-color: transparent;
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 6px 12px;
    font-size: 12px;
}

.btn-danger:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.btn-resume {
    background-color: transparent;
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 6px 12px;
    font-size: 12px;
}

.btn-resume:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.btn-secondary {
    background-color: #27272a;
    color: #fafafa;
}

.btn-secondary:hover {
    background-color: #3f3f46;
}

.btn-active {
    background-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}

.btn-active:hover {
    background-color: rgba(59, 130, 246, 0.25);
}

/* Inline button for form rows */
.btn-inline {
    padding: 10px 16px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
    width: auto;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.results-card {
    display: none;
}

.results-card.show {
    display: block;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.results-header h2 {
    font-size: 16px;
    font-weight: 600;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
}

.badge-cached {
    background-color: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.badge-fresh {
    background-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.badge-error {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.badge-waiting {
    background-color: rgba(234, 179, 8, 0.15);
    color: #eab308;
}

.badge-active {
    background-color: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.badge-completed {
    background-color: rgba(113, 113, 122, 0.15);
    color: #71717a;
}

.badge-neutral {
    background-color: rgba(113, 113, 122, 0.1);
    color: #71717a;
}

.badge-sm {
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 3px;
    white-space: nowrap;
}

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

.results-table th,
.results-table td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #27272a;
}

.results-table th {
    font-size: 12px;
    font-weight: 500;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.results-table td {
    font-size: 14px;
}

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

.code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    background-color: #09090b;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    display: inline-block;
    border: 1px solid #27272a;
}

.code:hover {
    background-color: #18181b;
}

.code.copied {
    background-color: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
}

/* DID codes are clickable to open on TM */
.code.code-clickable {
    border-color: rgba(59, 130, 246, 0.3);
}

.code.code-clickable:hover {
    background-color: rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.codes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.empty-state {
    text-align: center;
    padding: 32px 16px;
    color: #71717a;
}

.empty-state p {
    font-size: 14px;
}

.error-message {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 6px;
    padding: 12px 16px;
    color: #fca5a5;
    font-size: 14px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.error-message .error-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: #ef4444;
    animation: errorShrink 8s linear forwards;
}

.error-message .error-progress.paused {
    animation-play-state: paused;
}

.error-message.success {
    background-color: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.error-message.success .error-progress {
    background-color: #22c55e;
}

@keyframes errorShrink {
    from { width: 100%; }
    to { width: 0%; }
}

.monitor-actions {
    display: flex;
    gap: 6px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
}

.modal-wide {
    max-width: 600px;
}

.modal-xl {
    max-width: 780px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-xl .slideout-actions {
    margin-top: 24px;
}

.modal h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

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

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: #71717a;
    font-size: 22px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    margin-left: 16px;
    flex-shrink: 0;
}

.modal-close:hover {
    color: #fafafa;
}

.modal p {
    font-size: 14px;
    color: #a1a1aa;
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.modal-buttons .btn {
    padding: 8px 16px;
}

.timing {
    font-size: 12px;
    color: #52525b;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #27272a;
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 1001;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #3f3f46;
    border-top-color: #fafafa;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

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

.api-key-hint {
    font-size: 12px;
    color: #52525b;
    margin-top: 6px;
}

.tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 11px;
    font-weight: 700;
    color: #71717a;
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 50%;
    cursor: help;
    position: relative;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1;
}

.tooltip-trigger:hover,
.tooltip-trigger:focus {
    color: #e4e4e7;
    border-color: #52525b;
}

.tooltip-content {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    padding: 10px 12px;
    background: #18181b;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
    color: #a1a1aa;
    line-height: 1.5;
    text-align: left;
    white-space: normal;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.tooltip-content a {
    color: #e4e4e7;
    text-decoration: underline;
}

.tooltip-content a:hover {
    color: #fff;
}

.tooltip-content::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 8px;
}

.tooltip-trigger:hover .tooltip-content,
.tooltip-trigger:focus .tooltip-content {
    display: block;
}

.input-with-toggle {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-toggle input {
    padding-right: 40px;
}

.input-toggle-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #71717a;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    line-height: 1;
}

.input-toggle-btn:hover {
    color: #a1a1aa;
}

/* Mode toggle */
.mode-toggle {
    display: flex;
    flex: 1;
    margin-right: 16px;
    background-color: #09090b;
    border: 1px solid #27272a;
    border-radius: 6px;
    padding: 3px;
}

.mode-toggle button {
    flex: 1;
    flex-basis: 0;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #71717a;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mode-toggle button.active {
    background-color: #27272a;
    color: #fafafa;
}

.mode-toggle button:hover:not(.active) {
    color: #a1a1aa;
}

.webhook-error {
    font-size: 12px;
    color: #ef4444;
    margin-top: 6px;
}

.btn-hint {
    font-size: 12px;
    color: #eab308;
    margin-top: 6px;
}

.monitors-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.monitors-table th,
.monitors-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid #27272a;
}

.monitors-table th {
    font-size: 11px;
    font-weight: 500;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.monitors-table .event-id {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    font-size: 12px;
}

/* Form row — side-by-side inputs with inline buttons */
.form-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-row .form-group .api-key-hint,
.form-row .form-group .webhook-error {
    position: absolute;
    margin-top: 4px;
}

.form-row .form-group {
    position: relative;
    padding-bottom: 22px;
}

.form-row .btn-inline {
    margin-bottom: 22px;
}

/* Search bar */
.search-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.search-row .btn {
    flex-shrink: 0;
    padding: 10px 14px;
    font-size: 13px;
    white-space: nowrap;
}

/* Artist grid */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.artist-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: #09090b;
    border: 1px solid #27272a;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.artist-card:hover {
    border-color: #3f3f46;
    background-color: #18181b;
}

.artist-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #27272a;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.artist-placeholder {
    font-size: 20px;
    font-weight: 600;
    color: #71717a;
}

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

.artist-name {
    font-size: 14px;
    font-weight: 500;
    color: #fafafa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-meta {
    font-size: 12px;
    color: #71717a;
    display: flex;
    gap: 8px;
    margin-top: 2px;
}

.artist-id {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    font-size: 11px;
}

/* Monitored count badge on artist cards */
.artist-monitored-badge {
    font-size: 11px;
    color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.15);
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
}

/* Detail navigation bar */
.detail-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.detail-nav-actions {
    display: flex;
    gap: 8px;
}

.btn-back {
    background: transparent;
    border: none;
    color: #a1a1aa;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-back:hover {
    color: #fafafa;
    background-color: #27272a;
}

/* Artist detail inline view */
.artist-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.artist-detail-image {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #27272a;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.artist-detail-image:hover {
    opacity: 0.75;
}

.artist-detail-info {
    flex: 1;
}

.artist-detail-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    cursor: pointer;
}

.artist-detail-info h3:hover {
    color: #a1a1aa;
}

.artist-detail-meta {
    font-size: 13px;
    color: #a1a1aa;
    margin-bottom: 4px;
    display: flex;
    gap: 6px;
}

.artist-detail-fetched {
    font-size: 12px;
    color: #52525b;
}

.artist-detail-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #27272a;
}

/* Event filters */
.event-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.event-filters .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 140px;
}

.event-filters input,
.event-filters select {
    padding: 8px 10px;
    font-size: 13px;
}

.event-filters select {
    padding-right: 28px;
}

/* Searchable Dropdown */
.searchable-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    font-size: 13px;
    background-color: #09090b;
    border: 1px solid #27272a;
    border-radius: 6px;
    color: #fafafa;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.dropdown-trigger:hover {
    border-color: #3f3f46;
}

.dropdown-arrow {
    font-size: 8px;
    color: #71717a;
    margin-left: 8px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 6px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.dropdown-search {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    background-color: #09090b;
    border: none;
    border-bottom: 1px solid #27272a;
    border-radius: 6px 6px 0 0;
    color: #fafafa;
}

.dropdown-search:focus {
    outline: none;
}

.dropdown-options {
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-option {
    padding: 8px 10px;
    font-size: 13px;
    color: #a1a1aa;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.dropdown-option:hover {
    background-color: rgba(59, 130, 246, 0.1);
    color: #fafafa;
}

.dropdown-option.selected {
    background-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.dropdown-empty {
    padding: 8px 10px;
    font-size: 12px;
    color: #52525b;
    text-align: center;
}

[x-cloak] {
    display: none !important;
}

.status-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.status-filter-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #a1a1aa;
    cursor: pointer;
    user-select: none;
}

.status-filter-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Filter chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.chip button {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    margin-left: 2px;
    opacity: 0.7;
}

.chip button:hover {
    opacity: 1;
}

/* Filter count */
.filter-count {
    font-size: 12px;
    color: #71717a;
    margin-bottom: 8px;
}

/* Events table */
.events-table {
    width: 100%;
    border-collapse: collapse;
}

.events-table th,
.events-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid #27272a;
}

.events-table th {
    font-size: 11px;
    font-weight: 500;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sortable table headers */
.events-table th.sortable-header {
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease;
}

.events-table th.sortable-header:hover {
    color: #a1a1aa;
}

.events-table th .sort-icon {
    margin-left: 4px;
    font-size: 10px;
    color: #3b82f6;
}

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

.events-table td {
    font-size: 13px;
}

.event-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.event-row:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.event-row.dimmed {
    opacity: 0.5;
}

.event-row.monitored {
    border-left: 3px solid #22c55e;
}

.event-title {
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 2px;
}

.event-id-small {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    font-size: 11px;
    color: #52525b;
}

.venue-location {
    font-size: 12px;
    color: #71717a;
}

/* Inline monitor status on event rows */
.inline-monitor-status {
    display: flex;
    align-items: center;
    gap: 4px;
}

.inline-monitor-status .badge-sm {
    font-size: 10px;
    padding: 1px 5px;
}

/* Checkbox styling in events table */
.events-table th:first-child,
.events-table td:first-child {
    width: 36px;
    text-align: center;
}

.events-table input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}



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

.slideout-header h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
    margin: 0;
}

.slideout-close {
    background: transparent;
    border: none;
    color: #71717a;
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    flex-shrink: 0;
}

.slideout-close:hover {
    color: #fafafa;
}

.slideout-section {
    margin-bottom: 20px;
}

.slideout-section h4 {
    font-size: 12px;
    font-weight: 500;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.slideout-meta {
    font-size: 13px;
    color: #a1a1aa;
    line-height: 1.6;
}

.slideout-meta span {
    display: block;
}

.slideout-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #27272a;
}

.slideout-actions .btn {
    flex: 1;
}

/* Slideout venue card */
.slideout-venue-card {
    background: #09090b;
    border: 1px solid #27272a;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.slideout-venue-card .venue-name {
    font-size: 14px;
    font-weight: 500;
    color: #fafafa;
}

.slideout-venue-card .venue-location {
    font-size: 13px;
    color: #a1a1aa;
    margin-top: 2px;
}

/* TM link buttons row */
.slideout-links {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.slideout-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-family: inherit;
    font-weight: 500;
    color: #a1a1aa;
    background: transparent;
    border: 1px solid #3f3f46;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.slideout-link-btn:hover {
    color: #fafafa;
    border-color: #52525b;
    background: rgba(255, 255, 255, 0.03);
}

/* Section header with copy-all */
.slideout-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.slideout-section-header h4 {
    margin-bottom: 0;
}

.slideout-copy-all {
    padding: 3px 8px;
    font-size: 11px;
    font-family: inherit;
    font-weight: 500;
    color: #71717a;
    background: transparent;
    border: 1px solid #3f3f46;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.slideout-copy-all:hover {
    color: #a1a1aa;
    border-color: #52525b;
}

.slideout-copy-all.copied {
    color: #22c55e;
    border-color: #22c55e;
}

/* Compact monitor status card */
.slideout-monitor-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #09090b;
    border: 1px solid #27272a;
    border-radius: 6px;
    font-size: 12px;
    color: #a1a1aa;
    flex-wrap: wrap;
}

.slideout-monitor-card .badge {
    flex-shrink: 0;
}

/* Date + status badge row under title */
.slideout-date-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #a1a1aa;
    margin-top: 4px;
    flex-wrap: wrap;
}

.slideout-date-status .badge {
    flex-shrink: 0;
}

/* Slideout event ID */
.slideout-event-id {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    font-size: 11px;
    color: #52525b;
    margin-top: 4px;
}

/* Presale timeline in slideout */
.presale-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.presale-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #a1a1aa;
    padding: 6px 8px;
    background: #09090b;
    border-radius: 4px;
}

.presale-item-name {
    font-weight: 500;
    color: #fafafa;
    min-width: 100px;
}

/* Sticky action bar */
.sticky-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(24, 24, 27, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #27272a;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 800;
}

.sticky-action-bar span {
    font-size: 14px;
    color: #a1a1aa;
}

.sticky-action-bar .btn {
    width: auto;
    padding: 8px 20px;
}

/* Skeleton loading */
.skeleton {
    background: #27272a;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skeleton-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: #09090b;
    border: 1px solid #27272a;
    border-radius: 6px;
}

.skeleton-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-line {
    height: 14px;
    border-radius: 4px;
}

.skeleton-line-sm {
    height: 10px;
    border-radius: 3px;
}

/* Monitor toolbar */
.monitor-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.monitor-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.monitor-toolbar-center {
    flex: 1;
    min-width: 180px;
}

/* Filter toggle (All / Monitored) */
.filter-toggle {
    display: flex;
    background-color: #09090b;
    border: 1px solid #27272a;
    border-radius: 5px;
    padding: 2px;
}

.filter-toggle button {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    border: none;
    border-radius: 3px;
    background: transparent;
    color: #71717a;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.filter-toggle button.active {
    background-color: #27272a;
    color: #fafafa;
}

.filter-toggle button:hover:not(.active) {
    color: #a1a1aa;
}

/* View switcher (grid/list) */
.view-switcher {
    display: flex;
    background-color: #09090b;
    border: 1px solid #27272a;
    border-radius: 5px;
    padding: 2px;
    flex-shrink: 0;
}

.view-switcher-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 3px;
    color: #71717a;
    cursor: pointer;
    transition: all 0.15s ease;
}

.view-switcher-btn.active {
    background-color: #27272a;
    color: #fafafa;
}

.view-switcher-btn:hover:not(.active) {
    color: #a1a1aa;
}

/* Presale column badge */
.badge-presale-active {
    background-color: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

/* Responsive */
@media (max-width: 768px) {
    .container.container-wide {
        max-width: 100%;
    }

    .modal-xl {
        max-width: calc(100% - 24px);
        max-height: 92vh;
    }

    .event-filters {
        flex-direction: column;
    }

    .event-filters .form-group {
        min-width: 100%;
    }

    .form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .form-row .btn-inline {
        width: 100%;
        margin-bottom: 0;
    }

    .form-row .form-group {
        padding-bottom: 0;
    }

    .form-row .form-group .api-key-hint,
    .form-row .form-group .webhook-error {
        position: static;
        margin-top: 6px;
    }

    .monitor-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .monitor-toolbar-left {
        justify-content: space-between;
    }

    .monitor-toolbar-center {
        min-width: 0;
    }
}

@media (max-width: 480px) {
    body {
        padding: 16px 12px;
    }

    .card {
        padding: 16px;
    }

    .results-table th,
    .results-table td {
        padding: 10px 8px;
    }

    .artists-grid {
        grid-template-columns: 1fr;
    }
}

/* Date picker with hidden input and custom trigger */
.date-picker-wrapper {
    position: relative;
}

/* Hide the actual date input but keep it functional */
.date-picker-hidden {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Custom trigger that looks like an input */
.date-picker-trigger {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    background-color: #09090b;
    border: 1px solid #27272a;
    border-radius: 6px;
    color: #888;
    cursor: pointer;
    /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.date-picker-trigger:hover {
    border-color: #3f3f46;
}

/* When a date is selected, show it in white */
.date-picker-trigger.has-value {
    color: #fafafa;
}

/* Artist cell in list view */
.artist-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.artist-cell-name {
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-image-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.artist-image-sm:hover {
    opacity: 0.75;
}

.artist-placeholder-sm {
    background-color: #27272a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #71717a;
}

/* ============================
   Tag-Based Filter System
   ============================ */

/* Tag filter container */
.tag-filter {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
}

/* Active tags row */
.tag-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    align-items: center;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 999px;
    font-size: 12px;
    max-width: 200px;
}

.filter-tag-key {
    color: #3b82f6;
    font-weight: 500;
    flex-shrink: 0;
}

.filter-tag-sep {
    color: #52525b;
    flex-shrink: 0;
}

.filter-tag-value {
    color: #d4d4d8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-tag-remove {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    margin-left: 4px;
    opacity: 0.7;
    flex-shrink: 0;
}

.filter-tag-remove:hover {
    opacity: 1;
}

.filter-clear-all {
    background: none;
    border: none;
    color: #71717a;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 8px;
    transition: color 0.15s ease;
}

.filter-clear-all:hover {
    color: #a1a1aa;
}

/* Input wrapper */
.tag-filter-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.tag-filter-icon {
    position: absolute;
    left: 12px;
    color: #71717a;
    font-size: 14px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

input[type="text"].tag-filter-input {
    width: 100%;
    padding: 10px 36px 10px 48px;
    font-size: 13px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    background-color: #09090b;
    border: 1px solid #27272a;
    border-radius: 6px;
    color: #fafafa;
    transition: border-color 0.15s ease;
}

input[type="text"].tag-filter-input:focus {
    outline: none;
    border-color: #3f3f46;
}

input[type="text"].tag-filter-input::placeholder {
    color: #52525b;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.tag-filter-help {
    position: absolute;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #71717a;
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tag-filter-help:hover {
    color: #e4e4e7;
    border-color: #52525b;
}

.tag-filter-clear {
    position: absolute;
    right: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 14px;
    font-weight: 400;
    color: #71717a;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
}

.tag-filter-clear:hover {
    color: #fafafa;
    background: #3f3f46;
}

/* Dropdown */
.tag-filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.tag-filter-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 11px;
    color: #71717a;
    border-bottom: 1px solid #27272a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag-filter-dropdown-header kbd {
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 10px;
    font-family: inherit;
    color: #a1a1aa;
}

.tag-filter-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.tag-filter-dropdown-item:hover,
.tag-filter-dropdown-item.selected {
    background: rgba(59, 130, 246, 0.15);
}

.tag-filter-dropdown-item.selected {
    border-left: 2px solid #3b82f6;
}

.tag-filter-dropdown-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #71717a;
    flex-shrink: 0;
}

.tag-filter-dropdown-content {
    flex: 1;
    min-width: 0;
}

.tag-filter-dropdown-label {
    font-size: 13px;
    font-weight: 500;
    color: #fafafa;
}

.tag-filter-dropdown-desc {
    font-size: 11px;
    color: #71717a;
    margin-top: 1px;
}

.tag-filter-dropdown-example {
    font-size: 11px;
    color: #52525b;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    flex-shrink: 0;
}

.tag-filter-dropdown-empty {
    padding: 16px 12px;
    text-align: center;
    font-size: 13px;
    color: #52525b;
}

/* Value suggestions (after selecting a filter type) */
.tag-filter-value-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #d4d4d8;
    transition: background-color 0.1s ease;
}

.tag-filter-value-item:hover,
.tag-filter-value-item.selected {
    background: rgba(59, 130, 246, 0.15);
    color: #fafafa;
}

.tag-filter-value-item.selected {
    border-left: 2px solid #3b82f6;
}

/* Help overlay */
.tag-filter-help-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.tag-filter-help-modal {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 24px;
    max-width: 560px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
}

.tag-filter-help-modal h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fafafa;
}

.tag-filter-help-modal h4 {
    font-size: 13px;
    font-weight: 600;
    color: #a1a1aa;
    margin: 16px 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag-filter-help-modal p {
    font-size: 13px;
    color: #a1a1aa;
    line-height: 1.6;
    margin-bottom: 12px;
}

.tag-filter-help-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #71717a;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.tag-filter-help-close:hover {
    color: #fafafa;
}

.tag-filter-help-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.tag-filter-help-table th,
.tag-filter-help-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #27272a;
    font-size: 12px;
}

.tag-filter-help-table th {
    color: #71717a;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag-filter-help-table td {
    color: #d4d4d8;
}

.tag-filter-help-table code {
    background: #09090b;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    color: #3b82f6;
}

.tag-filter-help-shortcuts {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    font-size: 12px;
}

.tag-filter-help-shortcuts kbd {
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-family: inherit;
    color: #e4e4e7;
    white-space: nowrap;
}

.tag-filter-help-shortcuts span {
    color: #a1a1aa;
}

/* Responsive adjustments for tag filter */
@media (max-width: 768px) {
    .tag-filter-input {
        font-size: 14px;
    }

    .tag-filter-dropdown-item {
        padding: 12px;
    }

    .tag-filter-dropdown-example {
        display: none;
    }

    .filter-tag {
        max-width: 160px;
    }
}

@media (max-width: 480px) {
    .tag-filter-help-modal {
        padding: 16px;
    }

    .tag-filter-help-table th,
    .tag-filter-help-table td {
        padding: 6px 8px;
    }
}

/* Auth header */
.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #27272a;
}

.auth-logged-in,
.auth-logged-out {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #a1a1aa;
    white-space: nowrap;
}

.auth-status-warning {
    color: #f59e0b;
}

.auth-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
}

.auth-dot-warning {
    background: #f59e0b;
}

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

.login-error {
    color: #ef4444;
    font-size: 13px;
    margin-top: 8px;
    margin-bottom: 12px;
}

.modal-sm {
    max-width: 400px;
}

/* Discord settings collapsible section */
.discord-settings-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #27272a;
}

.discord-settings-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: transparent;
    border: none;
    color: #a1a1aa;
    font-size: 13px;
    cursor: pointer;
    padding: 8px 0;
    text-align: left;
}

.discord-settings-toggle:hover {
    color: #fafafa;
}

.discord-settings-chevron {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.discord-settings-chevron.open {
    transform: rotate(90deg);
}

.discord-settings-hint {
    margin-left: auto;
    font-size: 11px;
    color: #22c55e;
    background-color: rgba(34, 197, 94, 0.15);
    padding: 2px 6px;
    border-radius: 3px;
}

.discord-settings-content {
    padding-top: 12px;
}

/* ============================
   Calendar View
   ============================ */

.calendar-container {
    width: 100%;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #27272a;
}

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

.calendar-month-label {
    font-size: 18px;
    font-weight: 600;
    color: #fafafa;
    margin: 0;
}

.calendar-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid #27272a;
    border-radius: 6px;
    color: #a1a1aa;
    cursor: pointer;
    transition: all 0.15s ease;
}

.calendar-nav-btn:hover {
    background: #27272a;
    color: #fafafa;
    border-color: #3f3f46;
}

.calendar-today-btn {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    background: transparent;
    border: 1px solid #27272a;
    border-radius: 4px;
    color: #a1a1aa;
    cursor: pointer;
    transition: all 0.15s ease;
}

.calendar-today-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 4px;
}

.calendar-weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    min-height: 100px;
    background: #09090b;
    border: 1px solid #27272a;
    border-radius: 6px;
    padding: 8px;
    transition: border-color 0.15s ease;
    overflow: hidden;
}

.calendar-day:hover {
    border-color: #3f3f46;
}

.calendar-day.today {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.calendar-day.other-month {
    opacity: 0.4;
    background: transparent;
}

.calendar-day.other-month:hover {
    opacity: 0.6;
}

.calendar-day-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.calendar-day-number {
    font-size: 13px;
    font-weight: 600;
    color: #a1a1aa;
}

.calendar-day.today .calendar-day-number {
    color: #3b82f6;
}

.calendar-day-count {
    font-size: 10px;
    color: #71717a;
    white-space: nowrap;
}

.calendar-day-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.calendar-event {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    background: #18181b;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease;
    max-width: 100%;
    flex-shrink: 0;
}

.calendar-event:hover {
    background: rgba(59, 130, 246, 0.15);
}

.calendar-event-image {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.calendar-event-placeholder {
    background: #27272a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: #71717a;
}

.calendar-event-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.calendar-event-name {
    font-size: 11px;
    font-weight: 500;
    color: #fafafa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-event-time {
    font-size: 10px;
    color: #71717a;
}

.calendar-more-btn {
    width: 100%;
    padding: 4px;
    font-size: 10px;
    font-family: inherit;
    font-weight: 500;
    background: transparent;
    border: 1px dashed #27272a;
    border-radius: 4px;
    color: #71717a;
    cursor: pointer;
    transition: all 0.15s ease;
}

.calendar-more-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}

/* Calendar expanded day modal list */
.calendar-expanded-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 12px;
}

.calendar-expanded-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #09090b;
    border: 1px solid #27272a;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.calendar-expanded-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.calendar-expanded-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.calendar-expanded-info {
    flex: 1;
    min-width: 0;
}

.calendar-expanded-presale {
    font-size: 14px;
    font-weight: 600;
    color: #fafafa;
    margin-bottom: 2px;
}

.calendar-expanded-event {
    font-size: 13px;
    color: #a1a1aa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-expanded-meta {
    font-size: 12px;
    color: #71717a;
    margin-top: 2px;
    display: flex;
    gap: 6px;
}

/* Calendar responsive adjustments */
@media (max-width: 768px) {
    .calendar-day {
        min-height: 80px;
        padding: 6px;
    }

    .calendar-event-info {
        display: none;
    }

    .calendar-event {
        justify-content: center;
        padding: 4px;
    }

    .calendar-event-image {
        width: 24px;
        height: 24px;
    }

    .calendar-day-count {
        display: none;
    }

    .calendar-more-btn {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .calendar-day {
        min-height: 60px;
        padding: 4px;
    }

    .calendar-day-number {
        font-size: 11px;
    }

    .calendar-event {
        padding: 2px;
    }

    .calendar-event-image {
        width: 18px;
        height: 18px;
    }

    .calendar-weekday {
        font-size: 10px;
    }

    .calendar-month-label {
        font-size: 15px;
    }
}

/* ============================
   Tutorial / Onboarding System
   ============================ */

.tutorial-help-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 14px;
    font-weight: 600;
    color: #71717a;
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.tutorial-help-btn:hover {
    color: #fafafa;
    background: #27272a;
    border-color: #3f3f46;
}

/* Tutorial overlay */
.tutorial-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: auto;
}

/* Dark backdrop with SVG mask for spotlight cutout */
.tutorial-backdrop {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2001;
}

.tutorial-backdrop svg {
    width: 100%;
    height: 100%;
}

/* Spotlight highlight ring around target element */
.tutorial-spotlight {
    position: fixed;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 2002;
    transition: top 0.3s ease-out, left 0.3s ease-out, width 0.3s ease-out, height 0.3s ease-out;
}

/* Tooltip card */
.tutorial-tooltip {
    position: absolute;
    background: #18181b;
    border: 1px solid #3f3f46;
    border-radius: 12px;
    padding: 20px;
    width: 320px;
    max-width: calc(100vw - 32px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 2002;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tutorial-tooltip-title {
    font-size: 15px;
    font-weight: 600;
    color: #fafafa;
    margin-bottom: 8px;
}

.tutorial-tooltip-desc {
    font-size: 13px;
    color: #a1a1aa;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Navigation */
.tutorial-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tutorial-progress {
    display: flex;
    gap: 6px;
}

.tutorial-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3f3f46;
    transition: background 0.2s ease;
}

.tutorial-progress-dot.active {
    background: #3b82f6;
}

.tutorial-progress-dot.completed {
    background: #22c55e;
}

.tutorial-nav-buttons {
    display: flex;
    gap: 8px;
}

.tutorial-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tutorial-btn-secondary {
    background: transparent;
    border: 1px solid #3f3f46;
    color: #a1a1aa;
}

.tutorial-btn-secondary:hover {
    background: #27272a;
    color: #fafafa;
}

.tutorial-btn-primary {
    background: #3b82f6;
    border: 1px solid #3b82f6;
    color: #fff;
}

.tutorial-btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

/* Skip button (positioned in corner) */
.tutorial-skip {
    position: fixed;
    top: 16px;
    right: 16px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #a1a1aa;
    cursor: pointer;
    z-index: 2003;
    transition: all 0.15s ease;
}

.tutorial-skip:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fafafa;
}

/* Keyboard hint */
.tutorial-kbd-hint {
    font-size: 11px;
    color: #52525b;
    margin-top: 12px;
    text-align: center;
}

.tutorial-kbd-hint kbd {
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 10px;
    font-family: inherit;
    color: #a1a1aa;
}

/* Responsive */
@media (max-width: 480px) {
    .tutorial-tooltip {
        width: calc(100vw - 32px);
        padding: 16px;
    }

    .tutorial-tooltip-title {
        font-size: 14px;
    }

    .tutorial-tooltip-desc {
        font-size: 12px;
    }

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

    .tutorial-progress-dot {
        width: 6px;
        height: 6px;
    }
}

/* --- Bulk Codes Modal --- */
.modal-bulk-codes {
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.bulk-codes-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #a1a1aa;
}

.bulk-codes-table-wrap {
    max-height: 55vh;
    overflow-y: auto;
    border: 1px solid #27272a;
    border-radius: 6px;
    margin-bottom: 12px;
    background-color: #09090b;
}

.bulk-codes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: #fafafa;
}

.bulk-codes-table thead th {
    position: sticky;
    top: 0;
    background: #18181b;
    color: #a1a1aa;
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #27272a;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.04em;
}

.bulk-codes-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #27272a;
    vertical-align: top;
    word-break: break-word;
}

.bulk-codes-table tr.bulk-codes-row {
    border-left: 3px solid #22c55e;
}

.bulk-codes-table tr.bulk-codes-row td:first-child {
    white-space: nowrap;
}

.bulk-codes-table tr.bulk-codes-row td:first-child a {
    color: inherit;
    text-decoration: none;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    font-size: 11px;
}

.bulk-codes-table tr.bulk-codes-row td:first-child a:hover {
    text-decoration: underline;
}

.bulk-codes-empty {
    text-align: center;
    color: #71717a;
    padding: 24px;
    margin: 0 0 12px 0;
    border: 1px dashed #27272a;
    border-radius: 6px;
}
