/* ================================
   AI Platform - Claude/ChatGPT Style UI
   ================================ */

/* Reset & Base */
.aip-platform-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Hide WP default elements on this page */
body:has(.aip-platform-wrapper) #wpadminbar,
body:has(.aip-platform-wrapper) header,
body:has(.aip-platform-wrapper) footer,
body:has(.aip-platform-wrapper) .site-header,
body:has(.aip-platform-wrapper) .site-footer {
    display: none !important;
}

body:has(.aip-platform-wrapper) {
    background: #0a0a0a;
    overflow: hidden;
}

/* ================================
   Main Layout
   ================================ */
.aip-platform-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
    background: #0a0a0a;
    color: #ececec;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

/* ================================
   Sidebar
   ================================ */
.aip-sidebar {
    width: 260px;
    min-width: 260px;
    background: #111111;
    border-right: 1px solid #1e1e1e;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    overflow: hidden;
}

.aip-sidebar.aip-sidebar-closed {
    width: 0;
    min-width: 0;
    border-right: none;
}

/* Sidebar Header */
.aip-sidebar-header {
    padding: 16px 12px;
    border-bottom: 1px solid #1e1e1e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aip-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    overflow: hidden;
}

.aip-logo-icon {
    font-size: 18px;
    color: #ff7c5c;
    flex-shrink: 0;
}

.aip-logo-text {
    font-size: 15px;
    font-weight: 600;
    color: #ececec;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* New Chat Button */
.aip-new-chat-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #ececec;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    flex-shrink: 0;
}

.aip-new-chat-btn:hover {
    background: #2a2a2a;
    border-color: #3a3a3a;
}

/* Sidebar Content */
.aip-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    scrollbar-width: thin;
    scrollbar-color: #2a2a2a transparent;
}

.aip-sidebar-content::-webkit-scrollbar {
    width: 4px;
}

.aip-sidebar-content::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 2px;
}

.aip-history-label {
    font-size: 11px;
    font-weight: 500;
    color: #666;
    padding: 8px 10px 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aip-chat-history-item {
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #a0a0a0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.15s;
}

.aip-chat-history-item:hover {
    background: #1e1e1e;
    color: #ececec;
}

.aip-chat-history-item.active {
    background: #1e1e1e;
    color: #ececec;
}

/* Sidebar Footer */
.aip-sidebar-footer {
    padding: 12px;
    border-top: 1px solid #1e1e1e;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Token Display */
.aip-token-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
}

.aip-token-icon {
    font-size: 18px;
}

.aip-token-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.aip-token-label {
    font-size: 11px;
    color: #666;
}

.aip-token-count {
    font-size: 14px;
    font-weight: 600;
    color: #ff7c5c;
}

/* User Info */
.aip-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    transition: all 0.15s;
    cursor: pointer;
}

.aip-user-info:hover {
    background: #1e1e1e;
}

.aip-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7c5c, #ff4040);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.aip-user-details {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.aip-user-name {
    font-size: 13px;
    font-weight: 500;
    color: #ececec;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aip-user-plan {
    font-size: 11px;
    color: #666;
}

.aip-logout-btn {
    color: #666;
    text-decoration: none;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.aip-logout-btn:hover {
    color: #ececec;
    background: #2a2a2a;
}

/* ================================
   Main Area
   ================================ */
.aip-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #0a0a0a;
    transition: all 0.3s ease;
}

.aip-main.aip-main-full {
    width: 100%;
}

/* ================================
   Header
   ================================ */
.aip-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #1a1a1a;
    gap: 12px;
    background: #0a0a0a;
    min-height: 56px;
}

.aip-sidebar-toggle {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.aip-sidebar-toggle:hover {
    background: #1a1a1a;
    color: #ececec;
}

/* Model Selector */
.aip-model-selector {
    position: relative;
}

.aip-model-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    color: #ececec;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.aip-model-btn:hover {
    background: #1a1a1a;
    border-color: #3a3a3a;
}

.aip-model-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

/* Model Dropdown */
.aip-model-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 280px;
    background: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    z-index: 100;
    overflow: hidden;
}

.aip-model-dropdown.aip-show {
    display: flex;
    flex-direction: column;
    animation: aip-fade-in 0.15s ease;
}

/* Search box */
.aip-model-search-wrapper {
    padding: 10px 10px 6px;
    border-bottom: 1px solid #2a2a2a;
    flex-shrink: 0;
}

.aip-model-search {
    width: 100%;
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 8px 12px;
    color: #ececec;
    font-size: 13px;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.aip-model-search::placeholder { color: #555; }
.aip-model-search:focus { border-color: #3a3a3a; }

/* Scrollable model list */
.aip-model-list {
    overflow-y: auto;
    max-height: 320px;
    padding: 6px;
    scrollbar-width: thin;
    scrollbar-color: #2a2a2a transparent;
}

.aip-model-list::-webkit-scrollbar { width: 4px; }
.aip-model-list::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 2px; }

@keyframes aip-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.aip-model-group-label {
    font-size: 11px;
    font-weight: 500;
    color: #555;
    padding: 6px 10px 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aip-model-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.aip-model-item:hover {
    background: #1e1e1e;
}

.aip-model-name {
    font-size: 13px;
    color: #ececec;
}

.aip-model-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.aip-model-badge.free {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.aip-model-badge.pro {
    background: rgba(255, 124, 92, 0.15);
    color: #ff7c5c;
    border: 1px solid rgba(255, 124, 92, 0.2);
}

.aip-model-check {
    color: #ff7c5c;
    font-size: 14px;
    font-weight: 600;
}

.aip-model-item.aip-active {
    background: #1e1e1e;
}

/* Header Right */
.aip-header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aip-token-badge {
    font-size: 12px;
    color: #666;
    padding: 5px 10px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    white-space: nowrap;
}

/* ================================
   Messages Area
   ================================ */
.aip-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px 0;
    scrollbar-width: thin;
    scrollbar-color: #2a2a2a transparent;
}

.aip-messages::-webkit-scrollbar {
    width: 4px;
}

.aip-messages::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 2px;
}

/* Welcome Screen */
.aip-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px 20px;
    text-align: center;
    min-height: 300px;
}

.aip-welcome h1 {
    font-size: 32px;
    font-weight: 600;
    color: #ececec;
    margin-bottom: 10px;
}

.aip-welcome p {
    font-size: 16px;
    color: #666;
    margin-bottom: 32px;
}

.aip-suggestions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 600px;
    width: 100%;
}

.aip-suggestion-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #111111;
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    color: #a0a0a0;
    text-align: left;
    transition: all 0.15s;
}

.aip-suggestion-card:hover {
    background: #1a1a1a;
    border-color: #2a2a2a;
    color: #ececec;
    transform: translateY(-1px);
}

.aip-suggestion-icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* Messages */
.aip-message {
    max-width: 768px;
    margin: 0 auto 24px;
    padding: 0 24px;
    width: 100%;
}

.aip-message-user {
    display: flex;
    justify-content: flex-end;
}

.aip-message-user .aip-bubble {
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 18px 18px 4px 18px;
    padding: 12px 16px;
    max-width: 80%;
    font-size: 14px;
    color: #ececec;
    line-height: 1.6;
}

.aip-message-assistant .aip-bubble {
    font-size: 14px;
    color: #d4d4d4;
    line-height: 1.8;
    padding: 4px 0;
}

/* ================================
   Input Area
   ================================ */
.aip-input-area {
    padding: 16px 24px 20px;
    border-top: 1px solid #1a1a1a;
    background: #0a0a0a;
}

.aip-input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    background: #111111;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.aip-input-wrapper:focus-within {
    border-color: #3a3a3a;
    box-shadow: 0 0 0 3px rgba(255, 124, 92, 0.08);
}

.aip-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ececec;
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    min-height: 24px;
    max-height: 200px;
    font-family: inherit;
    overflow-y: auto;
    scrollbar-width: thin;
}

.aip-input::placeholder {
    color: #555;
}

.aip-input-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.aip-send-btn {
    width: 36px;
    height: 36px;
    background: #ff7c5c;
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.aip-send-btn:hover {
    background: #ff5c3a;
    transform: scale(1.05);
}

.aip-send-btn:disabled {
    background: #2a2a2a;
    cursor: not-allowed;
    transform: none;
}

.aip-disclaimer {
    max-width: 768px;
    margin: 8px auto 0;
    font-size: 11px;
    color: #444;
    text-align: center;
}

/* ================================
   Login Page
   ================================ */
.aip-login-required {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #0a0a0a;
}

.aip-login-box {
    background: #111111;
    border: 1px solid #1e1e1e;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    width: 100%;
    max-width: 380px;
}

.aip-login-box h2 {
    font-size: 24px;
    font-weight: 600;
    color: #ececec;
    margin-bottom: 8px;
}

.aip-login-box p {
    color: #666;
    font-size: 14px;
    margin-bottom: 24px;
}

.aip-login-btn, .aip-register-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.15s;
    margin-bottom: 10px;
}

.aip-login-btn {
    background: #ff7c5c;
    color: white;
}

.aip-login-btn:hover {
    background: #ff5c3a;
    color: white;
}

.aip-register-btn {
    background: #1a1a1a;
    color: #ececec;
    border: 1px solid #2a2a2a;
}

.aip-register-btn:hover {
    background: #2a2a2a;
    color: #ececec;
}

/* ================================
   Smooth Streaming — Clean Version
   ================================ */

/* Koi animation nahi — sirf clean text */
.aip-chatbot-area .aipkit_chat_message {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.aip-chatbot-area .aipkit_chat_message-bot .aipkit_chat_bubble p,
.aip-chatbot-area .aipkit_chat_message-bot .aipkit_chat_bubble li,
.aip-chatbot-area .aipkit_chat_message-bot .aipkit_chat_bubble h1,
.aip-chatbot-area .aipkit_chat_message-bot .aipkit_chat_bubble h2,
.aip-chatbot-area .aipkit_chat_message-bot .aipkit_chat_bubble h3 {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Stream cursor — simple blink only */
.aip-chatbot-area .aipkit_stream_indicator {
    animation: aip-cursor-blink 1s ease-in-out infinite !important;
    background: #ff7c5c !important;
    width: 2px !important;
    border-radius: 2px !important;
}

@keyframes aip-cursor-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Typing dots */
.aip-chatbot-area .aipkit_typing-dot {
    animation: aip-typing 1.4s ease-in-out infinite !important;
}

.aip-chatbot-area .aipkit_typing-dot:nth-child(2) { animation-delay: 0.2s !important; }
.aip-chatbot-area .aipkit_typing-dot:nth-child(3) { animation-delay: 0.4s !important; }

@keyframes aip-typing {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.4; }
    40%           { transform: scale(1);   opacity: 1; }
}

/* Clean text rendering */
.aip-chatbot-area .aipkit_chat_bubble {
    line-height: 1.7 !important;
    font-size: 14.5px !important;
}

/* Code blocks */
.aip-chatbot-area .aipkit_chat_bubble pre {
    background: #0d0d0d !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    padding: 16px !important;
}

/* Smooth scroll only */
.aip-chatbot-area .aipkit_chat_messages {
    scroll-behavior: smooth !important;
}

/* Input */
.aip-chatbot-area .aipkit_chat_input_wrapper {
    border-radius: 14px !important;
}

/* Send button */
.aip-chatbot-area .aipkit_send_btn {
    background: #ff7c5c !important;
    border-radius: 10px !important;
    transition: background 0.15s !important;
}

.aip-chatbot-area .aipkit_send_btn:hover {
    background: #ff5c3a !important;
}

/* User bubble */
.aip-chatbot-area .aipkit_chat_message-user .aipkit_chat_bubble {
    background: #1e1e1e !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 18px 18px 4px 18px !important;
}

/* Thin scrollbar */
.aip-chatbot-area .aipkit_chat_messages::-webkit-scrollbar { width: 4px !important; }
.aip-chatbot-area .aipkit_chat_messages::-webkit-scrollbar-thumb {
    background: #2a2a2a !important;
    border-radius: 2px !important;
}
.aip-chatbot-area {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.aip-chatbot-area .aipkit_chat_container {
    flex: 1 !important;
    height: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

/* Dark theme override */
.aip-chatbot-area .aipkit_chat_container {
    --aipkit-chat-container-bg-color: #0a0a0a !important;
    --aipkit-chat-container-text-color: #ececec !important;
    --aipkit-chat-container-border-color: transparent !important;
    --aipkit-chat-header-bg-color: #0a0a0a !important;
    --aipkit-chat-header-border-color: #1a1a1a !important;
    --aipkit-chat-messages-bg-color: #0a0a0a !important;
    --aipkit-chat-input-area-bg-color: #0a0a0a !important;
    --aipkit-chat-input-wrapper-bg-color: #111111 !important;
    --aipkit-chat-input-wrapper-border-color: #2a2a2a !important;
    --aipkit-chat-send-button-bg-color: #ff7c5c !important;
    --aipkit-chat-user-bubble-bg-color: #1e1e1e !important;
    --aipkit-chat-input-text-color: #ececec !important;
    --aipkit-chat-footer-bg-color: #0a0a0a !important;
    --aipkit-chat-footer-border-color: #1a1a1a !important;
    --aipkit-chat-sidebar-bg-color: #111111 !important;
}

/* AI Puffer ka header hide — humara use ho raha hai */
.aip-chatbot-area .aipkit_chat_header {
    display: none !important;
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 768px) {
    .aip-sidebar {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 100;
        width: 280px;
    }

    .aip-sidebar.aip-sidebar-closed {
        width: 0;
    }

    .aip-suggestions {
        grid-template-columns: 1fr;
    }

    .aip-welcome h1 {
        font-size: 24px;
    }

    .aip-message {
        padding: 0 16px;
    }

    .aip-input-area {
        padding: 12px 16px 16px;
    }
}

@media (max-width: 480px) {
    .aip-model-btn span:not(.aip-model-dot) {
        display: none;
    }
    
    .aip-token-badge {
        display: none;
    }
}

/* Active history item */
.aip-chat-history-item.active {
    background: #1e1e1e !important;
    color: #ececec !important;
}

/* ================================
   Settings Panel
   ================================ */
.aip-settings-panel {
    position: absolute;
    inset: 0;
    background: #0a0a0a;
    z-index: 50;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.aip-settings-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid #1a1a1a;
    flex-shrink: 0;
}

.aip-settings-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: #ececec;
    margin: 0;
}

.aip-settings-back {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.15s;
}

.aip-settings-back:hover { background: #1a1a1a; color: #ececec; }

.aip-settings-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Tabs sidebar */
.aip-settings-tabs {
    width: 200px;
    min-width: 200px;
    border-right: 1px solid #1a1a1a;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.aip-settings-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 13px;
    border-radius: 8px;
    text-align: left;
    transition: all 0.15s;
    width: 100%;
}

.aip-settings-tab:hover { background: #1a1a1a; color: #ececec; }
.aip-settings-tab.active { background: #1e1e1e; color: #ececec; font-weight: 500; }

/* Tab content */
.aip-tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.aip-tab-content.active { display: block; }

.aip-settings-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: #ececec;
    margin: 0 0 16px;
}

.aip-section-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

/* Profile */
.aip-profile-avatar-big {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7c5c, #ff4040);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
}

.aip-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    max-width: 400px;
}

.aip-form-group label {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

.aip-form-group input {
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 10px 12px;
    color: #ececec;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
}

.aip-form-group input:focus { border-color: #ff7c5c; }
.aip-form-group input[readonly] { opacity: 0.5; cursor: not-allowed; }

.aip-settings-btn {
    padding: 10px 20px;
    background: #ff7c5c;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.aip-settings-btn:hover { background: #ff5c3a; }
.aip-settings-msg { font-size: 13px; margin-top: 8px; }

/* Usage */
.aip-usage-card {
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 8px;
    max-width: 500px;
}

.aip-usage-numbers {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 12px;
}

.aip-usage-used { font-size: 28px; font-weight: 700; color: #ff7c5c; }
.aip-usage-sep  { font-size: 20px; color: #444; }
.aip-usage-total { font-size: 18px; color: #666; }
.aip-usage-label { font-size: 12px; color: #555; margin-left: 4px; }

.aip-usage-bar {
    height: 6px;
    background: #1e1e1e;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.aip-usage-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff7c5c, #ff4040);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.aip-usage-pct { font-size: 12px; color: #666; }

/* Model usage */
.aip-model-usage-list { display: flex; flex-direction: column; gap: 10px; max-width: 500px; }

.aip-model-usage-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aip-model-usage-name { font-size: 12px; color: #888; width: 180px; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aip-model-usage-bar-wrap { flex: 1; height: 4px; background: #1e1e1e; border-radius: 2px; overflow: hidden; }
.aip-model-usage-bar { height: 100%; background: #ff7c5c; border-radius: 2px; }
.aip-model-usage-tokens { font-size: 11px; color: #555; width: 100px; text-align: right; flex-shrink: 0; }

.aip-empty-msg { color: #555; font-size: 13px; }

/* Plans */
.aip-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 700px;
}

.aip-plan-card {
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    transition: border-color 0.15s;
}

.aip-plan-card.aip-plan-current { border-color: #ff7c5c; }

.aip-plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff7c5c;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
}

.aip-plan-name { font-size: 14px; font-weight: 600; color: #ececec; margin-bottom: 8px; }

.aip-plan-price {
    font-size: 24px;
    font-weight: 700;
    color: #ff7c5c;
    margin-bottom: 8px;
}

.aip-plan-price span { font-size: 13px; color: #666; font-weight: 400; }

.aip-plan-tokens { font-size: 12px; color: #666; margin-bottom: 16px; }

.aip-plan-upgrade-btn {
    width: 100%;
    padding: 8px;
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #ececec;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.aip-plan-upgrade-btn:hover { background: #ff7c5c; border-color: #ff7c5c; color: white; }
.aip-plan-active-msg { font-size: 12px; color: #22c55e; text-align: center; }

/* Models list */
.aip-models-list { display: flex; flex-direction: column; gap: 20px; max-width: 500px; }

.aip-models-provider-name {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.aip-model-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 8px;
    margin-bottom: 6px;
}

.aip-model-list-item.aip-model-active { border-color: #ff7c5c; }
.aip-model-list-name { font-size: 13px; color: #ececec; }

.aip-model-list-badge {
    font-size: 10px;
    background: rgba(255,124,92,0.15);
    color: #ff7c5c;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}

/* Payment */
.aip-payment-empty {
    text-align: center;
    padding: 32px;
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    max-width: 400px;
    margin-bottom: 24px;
}

.aip-payment-empty-icon { font-size: 36px; margin-bottom: 12px; }
.aip-payment-empty p { font-size: 14px; color: #888; margin: 0 0 4px; }
.aip-payment-empty-sub { font-size: 12px; color: #555 !important; }

.aip-payment-methods { display: flex; flex-direction: column; gap: 8px; max-width: 400px; }

.aip-payment-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
}

.aip-pm-icon { font-size: 20px; }
.aip-pm-name { flex: 1; font-size: 13px; color: #ececec; }

.aip-pm-status {
    font-size: 11px;
    background: rgba(34,197,94,0.15);
    color: #22c55e;
    padding: 2px 8px;
    border-radius: 20px;
}

/* Settings icon button */
.aip-settings-icon {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.aip-settings-icon:hover { color: #ececec; background: #1e1e1e; }
