/* Butler Chat Interface */
.butler-app {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.butler-sidebar {
    width: 260px;
    background: #111;
    border-right: 1px solid #222;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.butler-sidebar-header {
    padding: 16px;
    border-bottom: 1px solid #222;
}
.butler-new-chat {
    width: 100%;
    background: rgba(212, 164, 56, 0.1);
    color: #d4a438;
    border: 1px solid rgba(212, 164, 56, 0.2);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}
.butler-new-chat:hover {
    background: rgba(212, 164, 56, 0.15);
    border-color: rgba(212, 164, 56, 0.4);
}
.butler-conversations {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}
.butler-conv-item {
    width: 100%;
    background: none;
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    transition: background 0.15s;
    color: #ccc;
    font-family: inherit;
}
.butler-conv-item:hover {
    background: #1a1a1a;
}
.butler-conv-item.active {
    background: #1a1a1a;
    color: #d4a438;
}
.butler-conv-title {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}
.butler-conv-time {
    font-size: 11px;
    color: #666;
    flex-shrink: 0;
}

/* Main area */
.butler-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* Nav bar */
.butler-nav {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #222;
    background: #0d0d0d;
    gap: 12px;
    flex-shrink: 0;
}
.butler-nav-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1;
}
.butler-nav-btn:hover {
    color: #d4a438;
    background: rgba(212, 164, 56, 0.1);
}
.butler-nav-title {
    font-size: 16px;
    font-weight: 600;
    color: #d4a438;
    flex: 1;
}
.butler-oomph-pill {
    font-size: 12px;
    color: #888;
    text-decoration: none;
    padding: 2px 10px;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s;
}
.butler-oomph-pill:hover {
    border-color: #d4a438;
    color: #d4a438;
    text-decoration: none;
}
.butler-nav-right {
    display: flex;
    gap: 16px;
}
.butler-nav-link {
    background: none;
    border: none;
    color: #777;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s;
}
.butler-nav-link:hover {
    color: #d4a438;
}

/* Messages area */
.butler-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Welcome state */
.butler-welcome {
    text-align: center;
    padding: 80px 20px 40px;
}
.butler-welcome-icon {
    margin-bottom: 16px;
}
.butler-welcome h2 {
    font-size: 22px;
    font-weight: 500;
    color: #e8e8e8;
    margin: 0 0 24px;
}
.butler-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}
.butler-suggestion {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 10px 16px;
    color: #ccc;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
}
.butler-suggestion:hover {
    border-color: rgba(212, 164, 56, 0.3);
    color: #d4a438;
}

/* In-chat clickable suggestion chips */
.butler-suggest {
    display: inline-block;
    background: #242424;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 6px 14px;
    color: #ccc;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    margin: 3px 2px;
}
.butler-suggest:hover {
    border-color: #d4a438;
    color: #d4a438;
    background: rgba(212, 164, 56, 0.08);
}

/* Inline ticker highlights */
.ticker-inline {
    color: #d4a438;
    font-weight: 600;
    cursor: default;
    position: relative;
    border-bottom: 1px dotted rgba(212, 164, 56, 0.4);
    transition: color 0.15s, border-color 0.15s;
}
.ticker-inline:hover {
    color: #e8c45a;
    border-bottom-color: #d4a438;
}

/* Ticker tooltip */
.ticker-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #242424;
    border: 1px solid rgba(212, 164, 56, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    min-width: 180px;
    z-index: 50;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    animation: tickerTipIn 0.15s ease-out;
    white-space: nowrap;
}
.ticker-tooltip-below {
    bottom: auto;
    top: calc(100% + 10px);
}
@keyframes tickerTipIn {
    from { opacity: 0; transform: translateX(-50%) translateY(4px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.ticker-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #242424;
}
.ticker-tooltip-below::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: #242424;
}
.ticker-tip-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.ticker-tip-symbol {
    font-weight: 700;
    font-size: 13px;
    color: #d4a438;
}
.ticker-tip-name {
    font-size: 11px;
    color: #888;
}
.ticker-tip-price {
    font-size: 18px;
    font-weight: 700;
    color: #e8e8e8;
    margin-bottom: 4px;
}
.ticker-tip-changes {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}
.ticker-tip-change {
    font-size: 11px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 3px;
}
.ticker-tip-change.up {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}
.ticker-tip-change.down {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}
.ticker-tip-mcap {
    font-size: 11px;
    color: #777;
    margin-bottom: 4px;
}
.ticker-tip-link {
    font-size: 11px;
    color: #d4a438;
    text-decoration: none;
    font-weight: 600;
}
.ticker-tip-link:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {
    .ticker-tooltip {
        min-width: 160px;
        padding: 10px 12px;
        font-size: 12px;
    }
    .ticker-tip-price {
        font-size: 16px;
    }
}

/* Chat messages */
.butler-message {
    margin-bottom: 16px;
    display: flex;
}
.butler-message-user {
    justify-content: flex-end;
}
.butler-message-user .butler-bubble {
    background: rgba(212, 164, 56, 0.12);
    border: 1px solid rgba(212, 164, 56, 0.2);
    border-radius: 16px 16px 4px 16px;
    max-width: 70%;
    padding: 12px 16px;
    color: #e8e8e8;
    font-size: 15px;
    line-height: 1.6;
    word-wrap: break-word;
}
.butler-message-assistant {
    justify-content: flex-start;
}
.butler-message-assistant .butler-bubble {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px 16px 16px 4px;
    max-width: 70%;
    padding: 12px 16px;
    color: #e8e8e8;
    font-size: 15px;
    line-height: 1.6;
    word-wrap: break-word;
}
.butler-message-assistant .butler-bubble-wide {
    max-width: 95%;
}
.butler-bubble pre {
    background: #111;
    border-radius: 6px;
    padding: 12px;
    overflow-x: auto;
    font-size: 13px;
    margin: 8px 0;
}
.butler-bubble code {
    background: #111;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 13px;
}
.butler-bubble pre code {
    background: none;
    padding: 0;
}
.butler-bubble strong {
    color: #d4a438;
}
.butler-bubble h3, .butler-bubble h4, .butler-bubble h5 {
    color: #d4a438;
    margin: 12px 0 6px;
    font-weight: 600;
}
.butler-bubble h3 { font-size: 16px; }
.butler-bubble h4 { font-size: 14px; }
.butler-bubble h5 { font-size: 13px; }
.butler-bubble ul, .butler-bubble ol {
    margin: 6px 0;
    padding-left: 20px;
}
.butler-bubble li {
    margin-bottom: 4px;
    line-height: 1.5;
}
.butler-bubble hr {
    border: none;
    border-top: 1px solid #333;
    margin: 12px 0;
}
.butler-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
    font-size: 13px;
}
.butler-table th, .butler-table td {
    padding: 8px 10px;
    border: 1px solid #333;
    text-align: left;
}
.butler-table th {
    background: rgba(212, 164, 56, 0.12);
    color: #d4a438;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.butler-table td {
    background: #151515;
}
.butler-table tr:hover td {
    background: #1e1e1e;
}
.butler-bubble a {
    color: #d4a438;
    text-decoration: none;
}
.butler-bubble a:hover {
    text-decoration: underline;
}
.butler-bubble .butler-shop-products a:hover,
.butler-bubble .butler-shop-products .shop-prod-card:hover {
    text-decoration: none;
}

/* Generated images */
.butler-image-wrap {
    margin-top: 16px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    transition: border-color 0.2s;
}
.butler-image-wrap:hover {
    border-color: #d4a438;
}
.butler-image-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.butler-generated-img {
    width: 100%;
    max-width: 512px;
    border-radius: 6px;
    display: block;
    margin-bottom: 8px;
}

/* Generated music */
.butler-music-wrap {
    margin-top: 16px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    transition: border-color 0.2s;
}
.butler-music-wrap:hover {
    border-color: #d4a438;
}
.butler-music-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.butler-music-audio {
    width: 100%;
    height: 48px;
    border-radius: 8px;
    outline: none;
    filter: invert(1) hue-rotate(180deg) brightness(0.85) sepia(0.3) saturate(2) hue-rotate(5deg);
}
.butler-music-prompt {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
    margin-bottom: 4px;
}

/* Service tag */
.butler-service-tag {
    background: rgba(212, 164, 56, 0.15);
    color: #d4a438;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}
.butler-service-loading {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(212, 164, 56, 0.08);
    border-left: 3px solid #d4a438;
    border-radius: 4px;
    color: #999;
    font-size: 13px;
    animation: butlerPulse 1.5s ease-in-out infinite;
}
@keyframes butlerPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
.butler-shop-loading {
    display: flex;
    align-items: center;
    gap: 10px;
}
.shop-loading-icon {
    flex-shrink: 0;
    color: #d4a438;
    animation: shopSpin 1.2s linear infinite;
}
@keyframes shopSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Typing indicator */
.butler-typing {
    color: #666;
    animation: butlerPulse 1.5s infinite;
}
@keyframes butlerPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Error */
.butler-error {
    color: #ff6b6b;
    font-size: 14px;
}

/* Input area */
.butler-input-area {
    padding: 16px 20px;
    border-top: 1px solid #222;
    background: #0d0d0d;
    flex-shrink: 0;
}
/* File upload previews */
.butler-previews {
    display: none;
    gap: 8px;
    padding: 0 4px 8px;
}
.butler-preview-item {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
    flex-shrink: 0;
}
.butler-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.butler-preview-remove {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff4444;
    color: #fff;
    border: none;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    padding: 0;
}
.butler-attach-btn {
    background: none;
    color: #888;
    border: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}
.butler-attach-btn:hover {
    color: #d4a438;
    background: rgba(212, 164, 56, 0.1);
}
/* User uploaded images in chat bubbles */
.butler-user-images {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
.butler-user-images img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}
.butler-input-wrap {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border: 1px solid rgba(212, 164, 56, 0.15);
    border-radius: 12px;
    padding: 8px 12px;
    transition: border-color 0.2s;
}
.butler-input-wrap:focus-within {
    border-color: rgba(212, 164, 56, 0.4);
}
.butler-input {
    flex: 1;
    background: none;
    border: none;
    color: #e8e8e8;
    font-size: 15px;
    font-family: inherit;
    resize: none;
    outline: none;
    max-height: 150px;
    line-height: 1.5;
}
.butler-input::placeholder {
    color: #555;
}
.butler-send-btn {
    background: #d4a438;
    color: #0d0d0d;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}
.butler-send-btn:hover {
    background: #e8b84a;
}
.butler-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.butler-disclaimer {
    text-align: center;
    font-size: 12px;
    color: #555;
    margin: 8px 0 0;
}

/* Affiliate shop links */
.butler-shop-links {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.shop-link-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.shop-link-card:hover {
    border-color: #444;
    background: #1e1e1e;
    transform: translateY(-1px);
}
.shop-link-top {
    display: flex;
    align-items: center;
    gap: 8px;
}
.shop-link-icon {
    font-size: 16px;
    flex-shrink: 0;
}
.shop-link-name {
    font-weight: 600;
    font-size: 13px;
    color: #e8e8e8;
    flex: 1;
}
.shop-link-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}
.shop-link-query {
    font-size: 14px;
    font-weight: 500;
    color: #ccc;
    line-height: 1.3;
}
.shop-link-desc {
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}
.shop-link-cta {
    font-size: 12px;
    font-weight: 600;
    color: #d4a438;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.shop-link-arrow {
    font-size: 14px;
    transition: transform 0.2s;
}
.shop-link-card:hover .shop-link-arrow {
    transform: translateX(3px);
}
@media (max-width: 768px) {
    .butler-shop-links { grid-template-columns: 1fr; }
}

/* Product cards (CJ catalog) */
.butler-shop-products {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}
.shop-prod-card {
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    cursor: pointer;
}
.shop-prod-card:hover {
    border-color: rgba(212, 164, 56, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.shop-prod-img {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #111;
}
.shop-prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.shop-prod-card:hover .shop-prod-img img {
    transform: scale(1.04);
}
.shop-prod-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.shop-prod-title {
    font-size: 13px;
    font-weight: 600;
    color: #e8e8e8;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shop-prod-prices {
    font-size: 15px;
    font-weight: 700;
    color: #e8e8e8;
    margin: 2px 0;
}
.shop-prod-sale {
    color: #4ade80;
}
.shop-prod-original {
    font-size: 12px;
    font-weight: 400;
    color: #666;
    text-decoration: line-through;
}
.shop-prod-price {
    color: #e8e8e8;
}
.shop-prod-desc {
    font-size: 11px;
    color: #777;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shop-prod-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 6px;
}
.shop-prod-merchant {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.shop-prod-cta {
    font-size: 11px;
    font-weight: 600;
    color: #d4a438;
    transition: transform 0.2s;
}
.shop-prod-card:hover .shop-prod-cta {
    transform: translateX(2px);
}
.shop-prod-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.shop-prod-research {
    background: none;
    border: 1px solid rgba(212, 164, 56, 0.3);
    border-radius: 4px;
    color: #d4a438;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.shop-prod-research:hover {
    background: rgba(212, 164, 56, 0.12);
    border-color: #d4a438;
}
@media (max-width: 768px) {
    .butler-shop-products { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
    .butler-bubble-wide { max-width: 95% !important; }
    .shop-prod-body { padding: 10px 12px; }
}
@media (max-width: 480px) {
    .butler-shop-products { grid-template-columns: 1fr 1fr; }
}

/* Viator travel results */
.butler-viator-loading {
    background: rgba(52, 168, 83, 0.08);
    border-left-color: #34a853;
}
.butler-viator-results {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.viator-card {
    display: flex;
    gap: 12px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.viator-card:hover {
    border-color: #d4a438;
}
.viator-card-img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    flex-shrink: 0;
}
.viator-card-body {
    padding: 10px 12px;
    flex: 1;
    min-width: 0;
}
.viator-card-title {
    font-weight: 600;
    font-size: 14px;
    color: #e8e8e8;
    margin-bottom: 4px;
}
.viator-card-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}
.viator-card-desc {
    font-size: 12px;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.viator-card-btn {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    color: #d4a438;
    text-decoration: none;
    font-weight: 600;
}
.viator-card-btn:hover {
    text-decoration: underline;
}

/* Price data cards */
.butler-price-cards {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.price-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    flex: 1;
    min-width: 220px;
    transition: border-color 0.2s;
}
.price-card:hover {
    border-color: #d4a438;
}
.price-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.price-card-symbol {
    font-weight: 700;
    font-size: 15px;
    color: #d4a438;
}
.price-card-name {
    font-size: 13px;
    color: #999;
}
.price-card-price {
    font-size: 22px;
    font-weight: 700;
    color: #e8e8e8;
    margin-bottom: 8px;
}
.price-card-changes {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.price-change {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}
.price-change.up {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}
.price-change.down {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}
.price-card-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}
.price-card-link {
    font-size: 12px;
    color: #d4a438;
    text-decoration: none;
    font-weight: 600;
}
.price-card-link:hover {
    text-decoration: underline;
}

/* Interactive charts */
.butler-chart-wrap {
    margin-top: 16px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    transition: border-color 0.2s;
}
.butler-chart-wrap:hover {
    border-color: #d4a438;
}
.butler-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.butler-chart-title {
    font-weight: 600;
    font-size: 14px;
    color: #e8e8e8;
}
.butler-chart-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(212, 164, 56, 0.15);
    color: #d4a438;
}
.butler-chart-summary {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
    margin-bottom: 4px;
}
.butler-chart-container {
    position: relative;
    height: 280px;
}
.butler-chart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}
.butler-chart-analyze {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 1px solid #333;
    border-radius: 14px;
    padding: 5px 12px;
    color: #999;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}
.butler-chart-analyze:hover {
    border-color: #d4a438;
    color: #d4a438;
    background: rgba(212, 164, 56, 0.08);
}
.butler-chart-analyze:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.butler-multi-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.butler-multi-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #bbb;
}
.butler-multi-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Credits cards */
/* Oomph exhausted card */
.butler-oomph-exhausted {
    margin-top: 16px;
    background: #1a1a1a;
    border: 1px solid rgba(212, 164, 56, 0.3);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.butler-oomph-icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
}
.butler-oomph-body {
    flex: 1;
}
.butler-oomph-title {
    font-weight: 600;
    font-size: 14px;
    color: #d4a438;
    margin-bottom: 4px;
}
.butler-oomph-text {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}
.butler-oomph-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.butler-oomph-btn {
    display: inline-block;
    background: #d4a438;
    color: #0d0d0d;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    text-decoration: none;
}
.butler-oomph-btn:hover {
    background: #e5b84a;
    text-decoration: none;
}
.butler-oomph-note {
    font-size: 12px;
    color: #666;
}

/* Oomph cost button on replies */
.butler-cost-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    margin-left: auto;
    padding: 3px 10px;
    background: rgba(0, 250, 255, 0.06);
    border: 1px solid rgba(0, 250, 255, 0.15);
    border-radius: 12px;
    font-size: 11px;
    font-family: inherit;
    color: #00faff;
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.2s, border-color 0.2s, background 0.2s;
}
.butler-cost-btn:hover {
    opacity: 1;
    border-color: rgba(0, 250, 255, 0.4);
    background: rgba(0, 250, 255, 0.1);
}
.butler-cost-btn .butler-oomph-icon {
    width: 11px;
    height: 11px;
}

/* Oomph cost breakdown panel */
.butler-oomph-panel {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 50;
    min-width: 200px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    animation: fadeIn 0.15s ease;
}
.butler-oomph-panel-title {
    font-size: 12px;
    font-weight: 600;
    color: #e8e8e8;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a2a2a;
}
.butler-oomph-panel-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
    padding: 4px 0;
}
.butler-oomph-panel-row span:last-child {
    color: #00faff;
    display: flex;
    align-items: center;
    gap: 3px;
}
.butler-oomph-panel-row .butler-oomph-icon {
    width: 11px;
    height: 11px;
}
.butler-oomph-panel-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #e8e8e8;
    padding: 8px 0 0;
    margin-top: 6px;
    border-top: 1px solid #2a2a2a;
}
.butler-oomph-panel-total span:last-child {
    color: #00faff;
    display: flex;
    align-items: center;
    gap: 3px;
}
.butler-oomph-panel-total .butler-oomph-icon {
    width: 11px;
    height: 11px;
}
.butler-oomph-panel-link {
    display: block;
    text-align: center;
    font-size: 11px;
    color: #d4a438;
    text-decoration: none;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #2a2a2a;
}
.butler-oomph-panel-link:hover {
    color: #e5b84a;
    text-decoration: underline;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
.butler-oomph-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2048 2048'%3E%3Cpath fill='%2300faff' d='M 1460.82 165.458 C 1473.32 165.207 1492.3 164.706 1503.95 167.895 C 1519.52 172.088 1532.72 182.423 1540.52 196.531 C 1561.59 234.456 1541.81 261.466 1522.7 293.517 L 1492.53 343.972 C 1421.43 460.793 1348.71 576.621 1274.4 691.423 C 1267.99 701.455 1221.41 771.659 1219.7 777.702 C 1222.44 780.851 1244.74 779.258 1250.23 779.265 L 1297.67 779.657 L 1456.2 779.757 C 1479.82 779.678 1510.65 778.12 1533.67 781.02 C 1548.4 784.516 1560.43 794.946 1567.65 807.19 C 1598.44 859.449 1553.36 893.808 1520.66 931.683 L 1450.46 1014.04 L 1109.07 1415.06 L 849.388 1722.22 C 807.874 1771.98 768.067 1823.4 726.367 1873.04 C 719.063 1881.74 713.302 1886.44 703.496 1891.91 C 687.27 1900.52 662.638 1901.49 646.538 1892.42 C 593.497 1862.53 618.617 1811.35 636.19 1771.05 L 662.08 1711.05 C 687.124 1652.67 711.599 1594.05 735.501 1535.19 C 773.295 1442.02 811.601 1349.06 850.418 1256.31 C 864.977 1220.8 879.963 1185.46 895.371 1150.31 C 903.805 1131.26 911.797 1112.42 921.697 1094.08 C 902.942 1093.55 879.937 1094.27 860.575 1094.2 L 696.122 1093.86 C 686.634 1093.84 676.252 1093.77 666.937 1093.92 C 630.367 1094.53 604.337 1098.37 580.547 1065.17 C 562.568 1040.09 571.042 1015.17 577.858 987.703 C 582.345 969.625 587.996 951.416 593.069 933.435 C 603.192 896.26 613.656 859.179 624.461 822.196 C 659.412 694.562 695.236 567.168 731.932 440.025 C 742.754 401.498 753.248 362.879 763.412 324.174 C 771.447 292.996 779.159 262.237 788.289 231.348 C 810.079 157.619 870.987 165.538 933.18 165.887 C 976.901 165.761 1020.62 166.092 1064.34 166.88 C 1162.63 167.481 1260.92 167.267 1359.2 166.239 C 1393.05 165.842 1427.01 166.411 1460.82 165.458 z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    flex-shrink: 0;
}
.butler-oomph-pill .butler-oomph-icon {
    width: 12px;
    height: 12px;
    margin-right: 2px;
    margin-bottom: -1px;
}

/* Connect modal */
.butler-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.butler-modal {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 32px;
    max-width: 420px;
    width: 100%;
    position: relative;
}
.butler-modal h3 {
    color: #d4a438;
    font-size: 18px;
    margin: 0 0 8px 0;
}
.butler-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}
.butler-modal-close:hover {
    color: #e8e8e8;
}
.butler-modal-desc {
    color: #999;
    font-size: 14px;
    margin: 0 0 16px 0;
}
.butler-modal-input {
    width: 100%;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px 16px;
    color: #e8e8e8;
    font-size: 16px;
    font-family: inherit;
    margin-bottom: 12px;
    box-sizing: border-box;
}
.butler-modal-input:focus {
    outline: none;
    border-color: #d4a438;
}
.butler-modal-btn {
    width: 100%;
    background: #d4a438;
    color: #0d0d0d;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}
.butler-modal-btn:hover {
    background: #e5b84a;
}
.butler-modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.butler-modal-error {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 8px;
    min-height: 18px;
}
.butler-modal-success {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
    color: #e8e8e8;
}
.butler-modal-success strong {
    color: #4ade80;
}
.butler-modal-success p {
    color: #999;
    font-size: 13px;
    margin: 4px 0 0 0;
}
.butler-modal-check {
    font-size: 28px;
    color: #4ade80;
    line-height: 1;
}

/* Settings - Connected Services */
.settings-section {
    margin-bottom: 32px;
}
.settings-section h2 {
    color: #d4a438;
    font-size: 18px;
    margin: 0 0 16px 0;
    border-bottom: 1px solid #222;
    padding-bottom: 8px;
}
.settings-pipe-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 12px;
}
.settings-pipe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.settings-pipe-name {
    font-weight: 600;
    font-size: 16px;
    color: #e8e8e8;
}
.settings-pipe-status {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}
.settings-pipe-status.connected {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
}
.settings-pipe-status.free {
    background: rgba(212, 164, 56, 0.1);
    color: #d4a438;
}
.settings-pipe-status.exhausted {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}
.settings-pipe-credits {
    font-size: 14px;
    color: #999;
    margin-bottom: 12px;
}
.settings-pipe-credits strong {
    color: #e8e8e8;
}
.settings-pipe-bar {
    height: 4px;
    background: #333;
    border-radius: 2px;
    margin-bottom: 12px;
    overflow: hidden;
}
.settings-pipe-bar-fill {
    height: 100%;
    background: #d4a438;
    border-radius: 2px;
    transition: width 0.3s;
}
.settings-pipe-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}
.settings-pipe-btn {
    background: #d4a438;
    color: #0d0d0d;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}
.settings-pipe-btn:hover {
    background: #e5b84a;
}
.settings-pipe-btn.disconnect {
    background: transparent;
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}
.settings-pipe-btn.disconnect:hover {
    background: rgba(255, 107, 107, 0.1);
}
.settings-pipe-email {
    font-size: 13px;
    color: #888;
}

/* Settings - Personalization Preferences */
.settings-prefs-intro {
    font-size: 14px;
    color: #999;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.5;
}
.settings-prefs-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}
.settings-prefs-card h3 {
    color: #d4a438;
    font-size: 15px;
    margin: 0 0 16px 0;
    font-weight: 600;
}
.settings-field {
    margin-bottom: 14px;
}
.settings-field:last-child {
    margin-bottom: 0;
}
.settings-field label {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 5px;
}
.settings-field input[type="text"],
.settings-field select {
    width: 100%;
    max-width: 320px;
    padding: 8px 12px;
    background: #242424;
    border: 1px solid #333;
    border-radius: 6px;
    color: #e8e8e8;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.settings-field input[type="text"]:focus,
.settings-field select:focus {
    border-color: #d4a438;
}
.settings-field input[type="text"]::placeholder {
    color: #555;
}
.settings-radio-group {
    display: flex;
    gap: 0;
    max-width: 320px;
}
.settings-radio-group label {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    background: #242424;
    border: 1px solid #333;
    color: #999;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0;
}
.settings-radio-group label:first-child {
    border-radius: 6px 0 0 6px;
}
.settings-radio-group label:last-child {
    border-radius: 0 6px 6px 0;
}
.settings-radio-group label:not(:last-child) {
    border-right: none;
}
.settings-radio-group input[type="radio"] {
    display: none;
}
.settings-radio-group input[type="radio"]:checked + span {
    color: #d4a438;
    font-weight: 600;
}
.settings-radio-group label:has(input:checked) {
    background: rgba(212, 164, 56, 0.1);
    border-color: rgba(212, 164, 56, 0.3);
}
.settings-radio-group label:has(input:checked) + label {
    border-left-color: rgba(212, 164, 56, 0.3);
}
.settings-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 500px;
}
.settings-pill {
    padding: 6px 14px;
    background: #242424;
    border: 1px solid #333;
    border-radius: 20px;
    color: #999;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.settings-pill:hover {
    border-color: #555;
    color: #ccc;
}
.settings-pill.active {
    background: rgba(212, 164, 56, 0.15);
    border-color: rgba(212, 164, 56, 0.4);
    color: #d4a438;
    font-weight: 600;
}
.settings-prefs-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}
.settings-save-btn {
    background: #d4a438;
    color: #0d0d0d;
    border: none;
    border-radius: 6px;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}
.settings-save-btn:hover {
    background: #e5b84a;
}
.settings-save-btn:disabled {
    opacity: 0.5;
    cursor: default;
}
.settings-clear-link {
    font-size: 13px;
    color: #666;
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    text-decoration: underline;
    transition: color 0.2s;
}
.settings-clear-link:hover {
    color: #ff6b6b;
}
.settings-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #d4a438;
    color: #0d0d0d;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.2s forwards;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; } }

/* Settings - Butler Personas */
.settings-persona-heading {
    color: #999;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 16px 0 10px 0;
}
.settings-persona-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.settings-persona-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.settings-persona-card:hover {
    border-color: #444;
    background: #1e1e1e;
}
.settings-persona-card.active {
    border-color: rgba(212, 164, 56, 0.5);
    background: rgba(212, 164, 56, 0.05);
}
.persona-check {
    position: absolute;
    top: 10px;
    right: 12px;
    color: #d4a438;
    font-size: 16px;
    font-weight: 700;
}
.persona-custom-label {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 10px;
    color: #999;
    background: #2a2a2a;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.settings-persona-card.active .persona-custom-label {
    right: 34px;
}
.persona-name {
    font-size: 15px;
    font-weight: 600;
    color: #e8e8e8;
    margin-bottom: 4px;
}
.persona-tagline {
    font-size: 13px;
    color: #d4a438;
    font-style: italic;
    margin-bottom: 8px;
}
.persona-desc {
    font-size: 13px;
    color: #999;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.persona-actions {
    margin-top: 10px;
    display: flex;
    gap: 12px;
}
.persona-action-btn {
    background: none;
    border: none;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    text-decoration: underline;
    transition: color 0.2s;
}
.persona-action-btn:hover {
    color: #d4a438;
}
.persona-action-delete:hover {
    color: #ff6b6b;
}
.settings-persona-editor {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
}
.settings-persona-editor h3 {
    color: #d4a438;
    font-size: 15px;
    margin: 0 0 16px 0;
    font-weight: 600;
}
.settings-persona-editor textarea {
    width: 100%;
    max-width: 500px;
    padding: 8px 12px;
    background: #242424;
    border: 1px solid #333;
    border-radius: 6px;
    color: #e8e8e8;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    resize: vertical;
}
.settings-persona-editor textarea:focus {
    border-color: #d4a438;
}
.settings-persona-editor textarea::placeholder {
    color: #555;
}
.settings-persona-editor .settings-field input[type="text"] {
    max-width: 500px;
}
.settings-persona-helper {
    font-size: 12px;
    color: #666;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

/* Settings confirmation card (in-chat) */
.butler-settings-confirm {
    background: rgba(212, 164, 56, 0.1);
    border: 1px solid rgba(212, 164, 56, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 10px;
    font-size: 13px;
    color: #d4a438;
}

/* Responsive */
@media (max-width: 768px) {
    .butler-sidebar {
        display: none;
        position: fixed;
        z-index: 100;
        left: 0;
        top: 0;
        height: 100vh;
        width: 280px;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    }
    .butler-sidebar.open {
        display: flex;
    }
    .butler-message-user .butler-bubble,
    .butler-message-assistant .butler-bubble {
        max-width: 90%;
    }
    .butler-welcome { padding: 40px 20px 20px; }
    .butler-welcome h2 { font-size: 18px; }
    .settings-persona-grid { grid-template-columns: 1fr; }
    .viator-card { flex-direction: column; }
    .viator-card-img { width: 100%; height: 140px; }
    .butler-chart-container { height: 220px; }
}

/* ─── Weather Card ─────────────────────────────────────────────────── */
.butler-weather-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 16px;
    margin-top: 12px;
}
.weather-header {
    margin-bottom: 12px;
}
.weather-city {
    font-size: 16px;
    font-weight: 600;
    color: #d4a438;
}
.weather-current {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 12px;
}
.weather-current-icon { font-size: 28px; }
.weather-current-temp { font-size: 28px; font-weight: 700; color: #e8e8e8; }
.weather-current-cond { color: #999; font-size: 14px; }
.weather-current-wind { color: #999; font-size: 13px; }
.weather-forecast {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.weather-day {
    flex: 0 0 auto;
    min-width: 72px;
    text-align: center;
    padding: 8px 6px;
    background: #242424;
    border-radius: 8px;
}
.weather-day-name { font-size: 12px; font-weight: 600; color: #d4a438; }
.weather-day-date { font-size: 11px; color: #666; margin-bottom: 4px; }
.weather-day-icon { font-size: 22px; margin: 4px 0; }
.weather-day-temps { font-size: 13px; }
.weather-hi { color: #e8e8e8; font-weight: 600; }
.weather-lo { color: #666; margin-left: 4px; }
.weather-day-cond { font-size: 10px; color: #999; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.weather-day-rain { font-size: 10px; color: #6ea8fe; margin-top: 2px; }

/* ─── Currency Card ───────────────────────────────────────────────── */
.butler-currency-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 16px;
    margin-top: 12px;
    text-align: center;
}
.currency-conversion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}
.currency-from, .currency-to {
    font-size: 20px;
    font-weight: 700;
    color: #e8e8e8;
}
.currency-to { color: #d4a438; }
.currency-arrow { color: #666; font-size: 20px; }
.currency-rate { font-size: 13px; color: #999; }
.currency-date { font-size: 11px; color: #666; margin-top: 4px; }

/* ─── Wikipedia Card ──────────────────────────────────────────────── */
.butler-wiki-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 12px;
    display: flex;
}
.wiki-card-img {
    width: 120px;
    min-height: 100px;
    object-fit: cover;
    flex-shrink: 0;
}
.wiki-card-body {
    padding: 12px 16px;
    min-width: 0;
}
.wiki-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #d4a438;
    margin-bottom: 4px;
}
.wiki-card-desc {
    font-size: 12px;
    color: #999;
    font-style: italic;
    margin-bottom: 6px;
}
.wiki-card-extract {
    font-size: 13px;
    color: #ccc;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 480px) {
    .butler-wiki-card { flex-direction: column; }
    .wiki-card-img { width: 100%; height: 140px; }
    .weather-day { min-width: 64px; }
}

/* ─── Book Cards ─────────────────────────────────────────────────── */
.butler-book-cards {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.book-card {
    display: flex;
    gap: 14px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.book-card:hover {
    border-color: #d4a438;
}
.book-card-img {
    width: 90px;
    min-height: 130px;
    object-fit: cover;
    flex-shrink: 0;
}
.book-card-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #242424;
    font-size: 32px;
}
.book-card-body {
    padding: 12px 14px 12px 0;
    flex: 1;
    min-width: 0;
}
.book-card-title {
    font-weight: 600;
    font-size: 14px;
    color: #e8e8e8;
    margin-bottom: 2px;
}
.book-card-authors {
    font-size: 13px;
    color: #d4a438;
    margin-bottom: 4px;
}
.book-card-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}
.book-card-desc {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

/* ─── Cocktail Cards ─────────────────────────────────────────────── */
.butler-cocktail-cards {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.cocktail-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    transition: border-color 0.2s;
}
.cocktail-card:hover {
    border-color: #d4a438;
}
.cocktail-card-header {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
}
.cocktail-card-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.cocktail-card-info {
    flex: 1;
    min-width: 0;
}
.cocktail-card-name {
    font-weight: 600;
    font-size: 16px;
    color: #d4a438;
    margin-bottom: 4px;
}
.cocktail-card-meta {
    font-size: 12px;
    color: #888;
}
.cocktail-ingredients {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.cocktail-ingredients li {
    background: #242424;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 12px;
    color: #ccc;
    margin-bottom: 0;
}
.cocktail-card-instructions {
    font-size: 13px;
    color: #999;
    line-height: 1.5;
}

/* ─── TMDB Cards ─────────────────────────────────────────────────── */
.butler-tmdb-cards {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.tmdb-card {
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
}
.tmdb-card:hover {
    border-color: rgba(212, 164, 56, 0.4);
    transform: translateY(-2px);
}
.tmdb-card-img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}
.tmdb-card-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #242424;
    font-size: 48px;
}
.tmdb-card-body {
    padding: 12px 14px;
    flex: 1;
}
.tmdb-card-title {
    font-weight: 600;
    font-size: 14px;
    color: #e8e8e8;
    margin-bottom: 2px;
}
.tmdb-card-meta {
    font-size: 12px;
    color: #d4a438;
    margin-bottom: 6px;
}
.tmdb-card-desc {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}
@media (max-width: 480px) {
    .butler-tmdb-cards { grid-template-columns: 1fr 1fr; }
    .tmdb-card-body { padding: 10px 12px; }
}

/* ─── News Cards ─────────────────────────────────────────────────── */
.butler-news-cards {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.news-card {
    display: flex;
    gap: 12px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s;
}
.news-card:hover {
    border-color: #d4a438;
}
.news-card-img {
    width: 140px;
    min-height: 90px;
    object-fit: cover;
    flex-shrink: 0;
}
.news-card-body {
    padding: 10px 14px 10px 0;
    flex: 1;
    min-width: 0;
}
.news-card-source {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.news-card-source-name {
    font-size: 11px;
    font-weight: 600;
    color: #d4a438;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.news-card-time {
    font-size: 11px;
    color: #666;
}
.news-card-title {
    font-weight: 600;
    font-size: 14px;
    color: #e8e8e8;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-desc {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* NewsCompute story card (no wrapping link, block layout) */
.news-card-story {
    flex-direction: column;
    cursor: default;
    text-decoration: none;
}
.news-card-story .news-card-body {
    padding: 12px 16px;
}
.news-card-desc-full {
    -webkit-line-clamp: unset;
    display: block;
    white-space: pre-line;
}
.news-card-sources {
    margin-top: 8px;
    font-size: 12px;
    color: #888;
    line-height: 1.6;
}
.news-card-sources a {
    color: #d4a438;
    text-decoration: none;
    font-weight: 500;
}
.news-card-sources a:hover {
    text-decoration: underline;
}
.news-card-cta {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #d4a438;
    text-decoration: none;
}
.news-card-cta:hover {
    text-decoration: underline;
}
@media (max-width: 480px) {
    .news-card { flex-direction: column; }
    .news-card-img { width: 100%; height: 120px; }
    .news-card-body { padding: 10px 14px; }
}

/* ─── Review Cards (Rexiew) ─────────────────────────────────────────── */
.butler-review-cards {
    margin-top: 16px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 16px;
    transition: border-color 0.2s;
}
.butler-review-cards:hover {
    border-color: #d4a438;
}
.review-card-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a2a2a;
}
.review-card-name {
    font-size: 18px;
    font-weight: 700;
    color: #e8e8e8;
    margin-bottom: 4px;
}
.review-card-type {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #d4a438;
    background: rgba(212, 164, 56, 0.12);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}
.review-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}
.review-star.full { color: #d4a438; }
.review-star.half { color: #d4a438; opacity: 0.6; }
.review-star.empty { color: #444; }
.review-card-avg {
    font-size: 16px;
    font-weight: 700;
    color: #d4a438;
}
.review-card-count {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}
.review-card-item {
    padding: 10px 0;
    border-bottom: 1px solid #222;
}
.review-card-item:last-of-type {
    border-bottom: none;
}
.review-card-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.review-card-model {
    font-size: 13px;
    font-weight: 600;
    color: #d4a438;
}
.review-card-item-stars {
    font-size: 13px;
}
.review-card-excerpt {
    font-size: 13px;
    color: #999;
    line-height: 1.5;
}
.review-card-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #d4a438;
    text-decoration: none;
}
.review-card-link:hover {
    text-decoration: underline;
}

/* ─── Recipe Cards ───────────────────────────────────────────────── */
.butler-recipe-cards {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.recipe-card {
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
}
.recipe-card:hover {
    border-color: rgba(212, 164, 56, 0.4);
    transform: translateY(-2px);
}
.recipe-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.recipe-card-body {
    padding: 12px 14px;
    flex: 1;
}
.recipe-card-title {
    font-weight: 600;
    font-size: 14px;
    color: #e8e8e8;
    margin-bottom: 4px;
}
.recipe-card-meta {
    font-size: 12px;
    color: #d4a438;
    margin-bottom: 6px;
}
.recipe-card-desc {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}
@media (max-width: 480px) {
    .butler-recipe-cards { grid-template-columns: 1fr; }
}

/* ─── Event Cards ────────────────────────────────────────────────── */
.butler-event-cards {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.event-card {
    display: flex;
    gap: 14px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.event-card:hover {
    border-color: #d4a438;
}
.event-card-img {
    width: 120px;
    min-height: 100px;
    object-fit: cover;
    flex-shrink: 0;
}
.event-card-body {
    padding: 12px 14px 12px 0;
    flex: 1;
    min-width: 0;
}
.event-card-name {
    font-weight: 600;
    font-size: 14px;
    color: #e8e8e8;
    margin-bottom: 4px;
}
.event-card-date {
    font-size: 13px;
    color: #d4a438;
    margin-bottom: 2px;
}
.event-card-venue {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}
.event-card-price {
    font-size: 13px;
    font-weight: 600;
    color: #4ade80;
    margin-bottom: 6px;
}
@media (max-width: 480px) {
    .event-card { flex-direction: column; }
    .event-card-img { width: 100%; height: 120px; }
    .event-card-body { padding: 12px 14px; }
}

/* ─── Nutrition Cards ────────────────────────────────────────────── */
.butler-nutrition-cards {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.nutrition-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    transition: border-color 0.2s;
}
.nutrition-card:hover {
    border-color: #d4a438;
}
.nutrition-card-header {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
}
.nutrition-card-photo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.nutrition-card-main {
    flex: 1;
}
.nutrition-card-name {
    font-weight: 600;
    font-size: 15px;
    color: #e8e8e8;
    text-transform: capitalize;
    margin-bottom: 2px;
}
.nutrition-card-serving {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}
.nutrition-card-calories {
    font-size: 28px;
    font-weight: 700;
    color: #d4a438;
    line-height: 1;
}
.nutrition-card-calories span {
    font-size: 14px;
    font-weight: 400;
    color: #888;
}
.nutrition-card-macros {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
    padding: 10px 0;
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
}
.nutrition-macro {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.nutrition-macro-val {
    font-size: 16px;
    font-weight: 700;
    color: #e8e8e8;
}
.nutrition-macro-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.nutrition-card-details {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #777;
}

/* ─── Naited Notes Cards ─────────────────────────────────────── */
.butler-note-saved {
    background: #1a1a1a;
    border: 1px solid rgba(212, 164, 56, 0.2);
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 12px;
}
.note-saved-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.note-saved-icon { font-size: 18px; }
.note-saved-label {
    color: #4ade80;
    font-size: 13px;
    font-weight: 600;
}
.note-saved-category {
    background: rgba(212, 164, 56, 0.12);
    color: #d4a438;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: auto;
}
.note-saved-content {
    color: #ccc;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
}
.note-card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.note-tag {
    background: rgba(108, 92, 231, 0.15);
    color: #a78bfa;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}
.butler-notes-found { margin-top: 12px; }
.notes-found-header {
    color: #999;
    font-size: 12px;
    margin-bottom: 8px;
}
.note-found-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
}
.note-found-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.note-found-icon { font-size: 16px; }
.note-found-category {
    background: rgba(212, 164, 56, 0.12);
    color: #d4a438;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}
.note-relevance {
    color: #4ade80;
    font-size: 11px;
    margin-left: auto;
}
.note-found-date {
    color: #666;
    font-size: 11px;
}
.note-found-content {
    color: #ccc;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 6px;
}

/* ─── Tier Limit / Gate Prompts ──────────────────────────────── */
/* Settings oomph section */
.settings-oomph-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
}
.settings-oomph-total {
    font-size: 36px;
    font-weight: 700;
    color: #d4a438;
    line-height: 1;
    margin-bottom: 4px;
}
.settings-oomph-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}
.settings-oomph-breakdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 13px;
    color: #888;
}
.settings-oomph-breakdown strong {
    color: #e8e8e8;
}
.settings-oomph-costs {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}
.settings-oomph-cost-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 14px;
    font-size: 13px;
    color: #bbb;
}
.settings-oomph-cost-row + .settings-oomph-cost-row {
    border-top: 1px solid #2a2a2a;
}
.settings-oomph-cost-row span:last-child {
    color: #888;
}
.settings-oomph-buy-btn {
    display: block;
    text-align: center;
    background: #d4a438;
    color: #0d0d0d;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    margin-bottom: 8px;
}
.settings-oomph-buy-btn:hover {
    background: #e5b84a;
    text-decoration: none;
}
.settings-oomph-note {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* ===== External Chart Analyze — Sign-in Landing ===== */
.butler-analyze-landing .butler-analyze-subtitle {
    color: #999;
    font-size: 15px;
    margin-top: 8px;
}
.butler-analyze-signin {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
}
.butler-analyze-signin-btn {
    display: inline-block;
    background: #d4a438;
    color: #0d0d0d;
    border: none;
    border-radius: 8px;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.butler-analyze-signin-btn:hover {
    background: #e8b84a;
    text-decoration: none;
    color: #0d0d0d;
}
.butler-analyze-signin-register {
    color: #d4a438;
    font-size: 14px;
    text-decoration: none;
}
.butler-analyze-signin-register:hover {
    text-decoration: underline;
}

/* Hide footer on butler page */
.site-footer {
    display: none;
}
