:root {
    color-scheme: dark;
    --bg-color: #0a0c10;
    --sidebar-bg: #0a0c10;
    --card-bg: #161b22;
    --primary: #f59e0b;
    --primary-hover: #d97706;
    --text-main: #ffffff;
    --text-muted: #8b949e;
    --player-bg: rgba(10, 12, 16, 0.95);
    --border-color: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    flex: 1;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    padding: 30px 20px 100px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    color: var(--primary);
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 15px;
    border-radius: 0;
    border-right: 3px solid transparent;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar nav a:hover {
    color: var(--text-main);
}

.sidebar nav a.active {
    color: var(--text-main);
    border-right: 3px solid var(--primary);
}

/* Playlists na sidebar */
.sidebar-playlists {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.sidebar-playlists-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px 10px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.btn-new-playlist {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.2s;
}

.btn-new-playlist:hover {
    color: var(--primary);
    background-color: rgba(255, 255, 255, 0.08);
}

.sidebar-playlist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 15px;
    border-radius: 0;
    border-right: 3px solid transparent;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.sidebar-playlist-item:hover {
    color: var(--text-main);
}

.sidebar-playlist-item.active {
    color: var(--text-main);
    border-right: 3px solid var(--primary);
}

.sidebar-playlist-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    outline: none;
}

.sidebar-playlist-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s;
    flex-shrink: 0;
}

.sidebar-playlist-item:hover .sidebar-playlist-actions {
    opacity: 1;
}

.sidebar-playlist-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.15s;
}

.sidebar-playlist-btn:hover {
    color: var(--primary);
    background-color: rgba(255, 255, 255, 0.08);
}

.sidebar-playlist-btn.btn-pl-delete:hover {
    color: #ff6b6b;
}

.pl-item-active {
    color: var(--primary) !important;
}

.pl-item-disabled {
    opacity: 0.5;
    cursor: default !important;
}

.modal-sm {
    max-width: 320px !important;
}

/* Download widget na sidebar */
.dl-widget {
    margin-top: auto;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dl-widget:hover {
    background: rgba(245, 158, 11, 0.14);
}

.dl-widget-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}

.dl-widget-header span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dl-widget-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

#dl-widget-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    width: 0%;
    transition: width 0.4s;
}

.dl-widget-status {
    font-size: 11px;
    color: var(--text-muted);
}

/* Seletor de playlist no modal de download */
.dl-playlist-select {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dl-playlist-select label {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dl-playlist-select select {
    flex: 1;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
}

/* Preview duplicate warning */
.preview-duplicate {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #f59e0b;
    margin-top: 2px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    padding-bottom: 120px; /* Space for the bottom player */
}

header {
    margin-bottom: 40px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 10px 10px 10px 24px;
}

.search-bar > i {
    color: var(--text-muted);
    font-size: 15px;
}

.search-bar input {
    flex: 1;
    background: none;
    border: none;
    border-radius: 0;
    padding: 4px 0;
}

.btn-add {
    background-color: var(--primary);
    color: #000 !important;
    border-color: var(--primary);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.btn-add:hover {
    background-color: var(--primary-hover) !important;
    color: #000 !important;
    border-color: var(--primary-hover) !important;
}

input[type="text"], select {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 14px 24px;
    border-radius: 30px;
    outline: none;
    font-size: 15px;
}

input[type="text"]::placeholder {
    color: var(--text-muted);
}

input[type="text"] {
    flex: 1;
}

button {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

button:hover {
    background-color: var(--text-main);
    color: #000;
    border-color: var(--text-main);
}

.hidden {
    display: none !important;
}

.dl-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.dl-progress-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.dl-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    background-color: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px;
}

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

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.modal-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
}

.modal-action-btn:hover {
    color: var(--primary);
    background-color: rgba(255, 255, 255, 0.08);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-body select {
    width: 100%;
    border-radius: 12px;
    padding: 12px 16px;
}

.modal-body #btn-download {
    align-self: flex-end;
}

#preview-loading {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

#preview-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
}

#preview-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background-color: var(--card-bg);
}

.preview-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

#preview-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#preview-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* Grid */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.card {
    min-width: 0;
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 12px;
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    background-color: transparent;
}

.card:hover .card-icon {
    background-color: #21262d;
}

.card-icon {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: background-color 0.2s;
}

.btn-card-menu {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    color: var(--text-muted);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s, background-color 0.2s;
    z-index: 10;
}

.card:hover .btn-card-menu {
    opacity: 1;
}

.btn-card-menu:hover {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.85);
}

.card-dropdown {
    position: absolute;
    top: 40px;
    right: 8px;
    background-color: #1c2128;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px;
    z-index: 200;
    min-width: 155px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.card-dropdown.hidden {
    display: none;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.15s;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.dropdown-item.dropdown-danger {
    color: #ff6b6b;
}

.dropdown-item.dropdown-danger:hover {
    background-color: rgba(255, 77, 77, 0.12);
}

.card-icon > i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: var(--text-muted);
}

.card-icon img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-center-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    transition: background 0.2s;
    pointer-events: none;
}

.card:hover .card-center-overlay {
    background: rgba(0, 0, 0, 0.45);
}

.card.now-playing .card-center-overlay {
    background: rgba(0, 0, 0, 0.55);
}

.play-hint,
.pause-hint {
    position: absolute;
    color: #fff;
    font-size: 28px;
    opacity: 0;
    transition: opacity 0.2s;
}

.card:hover:not(.now-playing) .play-hint {
    opacity: 1;
}

.card.now-playing:not(.is-paused):hover .pause-hint {
    opacity: 1;
}

.card.now-playing.is-paused:hover .play-hint {
    opacity: 1;
}

.card.now-playing:hover .equalizer {
    opacity: 0;
    transition: opacity 0.2s;
}

.card.now-playing.is-paused .equalizer {
    opacity: 0;
}

.equalizer {
    display: none;
    align-items: flex-end;
    gap: 3px;
    height: 22px;
}

.card.now-playing .equalizer {
    display: flex;
}

.equalizer span {
    width: 3px;
    height: 18px;
    background: var(--primary);
    border-radius: 2px;
    transform-origin: bottom;
    transform: scaleY(0.2);
    animation: eq-bar 0.8s ease-in-out infinite;
}

.equalizer span:nth-child(1) { animation-duration: 0.9s; animation-delay: 0.0s; }
.equalizer span:nth-child(2) { animation-duration: 0.6s; animation-delay: 0.2s; }
.equalizer span:nth-child(3) { animation-duration: 1.0s; animation-delay: 0.1s; }
.equalizer span:nth-child(4) { animation-duration: 0.7s; animation-delay: 0.3s; }

@keyframes eq-bar {
    0%, 100% { transform: scaleY(0.2); }
    50% { transform: scaleY(1); }
}

/* Bulk bar */
.bulk-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 20px;
    gap: 12px;
}

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

.bulk-exit-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: color 0.2s;
}

.bulk-exit-btn:hover { color: var(--text-main); }

#bulk-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.bulk-bar-actions {
    display: flex;
    gap: 8px;
}

.bulk-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main);
    font-size: 13px;
    font-family: inherit;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.bulk-btn:hover { background: rgba(255,255,255,0.1); }

.bulk-btn-danger { color: #ff6b6b; }
.bulk-btn-danger:hover { background: rgba(255,77,77,0.12); border-color: rgba(255,77,77,0.3); }

/* Card selection mode */
.card-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s, border-color 0.2s;
    pointer-events: none;
    z-index: 10;
    font-size: 11px;
    color: #fff;
}

.card.selection-mode .card-checkbox { opacity: 1; }
.card.selection-mode:hover { transform: none; }
.card.selected .card-checkbox {
    background: var(--primary);
    border-color: var(--primary);
}
.card.selected .card-icon { outline: 2px solid var(--primary); border-radius: 8px; }

/* Dropdown divider */
.dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 4px 0;
}

.card-title-area {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    padding: 0 4px;
}

.rename-input {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 1px solid var(--primary);
    color: var(--text-main);
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.4;
    padding: 0;
    outline: none;
    border-radius: 0;
    width: 100%;
}

.card-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
    color: var(--text-main);
    padding: 0 4px;
}

/* Player Bar */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background-color: var(--player-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
}

.player-bar .now-playing {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 30%;
}

.cover-icon {
    width: 50px;
    height: 50px;
    background-color: var(--card-bg);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-muted);
    overflow: hidden;
}

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

#now-playing-title {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.controls {
    flex: 1;
    display: flex;
    justify-content: center;
}

.custom-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.player-controls-buttons {
    display: flex;
    align-items: center;
    gap: 24px;
}

.player-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

.player-btn:hover {
    color: var(--text-main);
    background: none;
    border: none;
}

.play-pause-btn {
    background-color: var(--text-main);
    color: #000;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.play-pause-btn i {
    color: #000;
}

.play-pause-btn:hover {
    transform: scale(1.05);
    background-color: var(--text-main);
    color: #000;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 500px;
}

.progress-container span {
    font-size: 12px;
    color: var(--text-muted);
    min-width: 35px;
    text-align: center;
}

#progress-bar {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    padding: 0;
    border: none;
    outline: none;
}

#progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 0;
    height: 0;
    background: var(--text-main);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

#progress-bar:hover::-webkit-slider-thumb {
    width: 12px;
    height: 12px;
}

audio, video {
    outline: none;
}

/* If it is a video, we float it above the player if they want to watch it, but for simplicity we keep controls native */
video.active-video {
    position: fixed;
    bottom: 100px; /* Above the player bar */
    right: 40px;
    width: 320px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    background: black;
}

.player-btn-active {
    color: var(--primary) !important;
}

.btn-speed {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    font-size: 12px;
    font-family: inherit;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.btn-speed:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-speed.player-btn-active {
    border-color: var(--primary);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

#volume-bar {
    width: 80px;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: linear-gradient(to right, var(--text-muted) 100%, rgba(255,255,255,0.1) 100%);
    border-radius: 2px;
    cursor: pointer;
    padding: 0;
    border: none;
    outline: none;
}

#volume-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 0;
    height: 0;
    background: var(--text-main);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

#volume-bar:hover::-webkit-slider-thumb {
    width: 12px;
    height: 12px;
}

.actions {
    width: 30%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn i {
    font-size: 20px;
}

.icon-btn:hover {
    color: var(--primary);
}

/* Responsiveness */
@media (max-width: 768px) {
    .sidebar {
        display: none; /* In a real app we'd have a hamburger menu */
    }
    
    .player-bar {
        padding: 0 15px;
    }
    
    .actions .icon-btn span {
        display: none; /* Hide text on mobile */
    }

    #now-playing-title {
        max-width: 120px;
    }
}

/* ─── Token overlay ──────────────────────────────────────────────────────── */
.token-overlay {
    position: fixed;
    inset: 0;
    background: #0a0c10;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.token-overlay.hidden { display: none; }
.token-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 40px 36px;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.token-card-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}
.token-card-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.token-error {
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.25);
    border-radius: 8px;
    padding: 9px 13px;
    font-size: 13px;
    color: #fca5a5;
}
.token-error.hidden { display: none; }
#token-input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 11px 14px;
    color: var(--text-main);
    font-family: monospace;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}
#token-input:focus { border-color: var(--primary); }
#token-submit {
    background: var(--primary);
    color: #0a0c10;
    border: none;
    border-radius: 8px;
    padding: 11px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
#token-submit:hover { opacity: 0.88; }
#token-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── Change token button ────────────────────────────────────────────────── */
.btn-change-token {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    color: var(--text-muted);
    padding: 8px 12px;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    margin-top: auto;
    width: 100%;
}
.btn-change-token:hover { border-color: var(--primary); color: var(--primary); }

