/* ============================================
   InkedBooking v5 — Chat Agent Styles
   ============================================ */

/* ── Chat Container ── */
.inked-chat-page { background: #0a0a0a; min-height: 100vh; color: #eee; font-family: 'Inter', sans-serif; display: flex; flex-direction: column; }

.inked-chat-container {
    max-width: 600px; width: 100%; margin: 0 auto;
    display: flex; flex-direction: column; height: 100vh;
    padding: 0;
}

/* Header */
.inked-chat-header {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.4); backdrop-filter: blur(20px);
    flex-shrink: 0;
}
.inked-chat-header img { height: 28px; }
.inked-chat-header-info h2 {
    font-family: 'Oswald', sans-serif; font-size: 1.1rem; color: #c9a84c; margin: 0;
}
.inked-chat-header-info small { color: #888; font-size: 0.75rem; }

.inked-chat-agent-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #c9a84c, #a88a3a);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}

/* Messages Area */
.inked-chat-messages {
    flex: 1; overflow-y: auto; padding: 20px;
    display: flex; flex-direction: column; gap: 12px;
    scroll-behavior: smooth;
}

/* Message Bubbles */
.inked-chat-msg { display: flex; max-width: 85%; animation: chatFadeIn 0.3s ease; }
.inked-chat-msg-user { align-self: flex-end; }
.inked-chat-msg-assistant { align-self: flex-start; }
.inked-chat-msg-system { align-self: center; width: 100%; max-width: 100%; }

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

.inked-chat-bubble {
    padding: 12px 16px; border-radius: 18px;
    font-size: 0.92rem; line-height: 1.5; word-break: break-word;
}

.inked-chat-msg-user .inked-chat-bubble {
    background: linear-gradient(135deg, #c9a84c, #a88a3a);
    color: #000; border-bottom-right-radius: 4px;
}

.inked-chat-msg-assistant .inked-chat-bubble {
    background: rgba(255,255,255,0.08); color: #eee;
    border: 1px solid rgba(255,255,255,0.06);
    border-bottom-left-radius: 4px;
}

/* Typing Indicator */
.inked-chat-typing {
    display: none; align-self: flex-start; padding: 8px 16px;
    background: rgba(255,255,255,0.06); border-radius: 18px;
    border-bottom-left-radius: 4px; gap: 4px; align-items: center;
}
.inked-chat-typing span {
    width: 6px; height: 6px; background: #c9a84c; border-radius: 50%;
    animation: typingDot 1.4s infinite; display: inline-block;
}
.inked-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.inked-chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot { 0%,60%,100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

/* Input Area */
.inked-chat-input-area {
    display: flex; gap: 10px; padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.4); backdrop-filter: blur(20px);
    flex-shrink: 0;
}
.inked-chat-input {
    flex: 1; padding: 12px 16px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px; color: #fff; font-size: 0.92rem;
    outline: none; transition: border-color 0.2s; resize: none;
}
.inked-chat-input:focus { border-color: #c9a84c; }
.inked-chat-input::placeholder { color: #666; }
.inked-chat-input:disabled { opacity: 0.5; }
.inked-chat-send {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, #c9a84c, #a88a3a);
    border: none; color: #000; font-size: 1.2rem; font-weight: bold;
    cursor: pointer; transition: all 0.2s; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.inked-chat-send:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(201,168,76,0.3); }
.inked-chat-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Payment Card */
.inked-payment-card {
    background: rgba(201,168,76,0.06); border: 1px solid rgba(201,168,76,0.2);
    border-radius: 16px; padding: 20px; margin: 4px 0;
}
.inked-pay-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 1px solid rgba(201,168,76,0.15);
}
.inked-pay-title { color: #c9a84c; font-weight: 600; font-size: 0.95rem; }
.inked-pay-amount { font-family: 'Oswald', sans-serif; font-size: 1.5rem; color: #c9a84c; }
.inked-pay-methods { display: flex; flex-direction: column; gap: 12px; }
.inked-pay-method {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; padding: 14px;
}
.inked-pay-method-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.inked-pay-icon { font-size: 1.3rem; }
.inked-pay-label { font-weight: 600; color: #fff; font-size: 0.95rem; }
.inked-pay-key {
    background: rgba(201,168,76,0.1); color: #c9a84c; padding: 10px 14px;
    border-radius: 8px; font-family: monospace; font-size: 0.9rem;
    cursor: pointer; transition: background 0.2s; text-align: center;
    user-select: all;
}
.inked-pay-key:hover { background: rgba(201,168,76,0.2); }
.inked-pay-inst { color: #999; font-size: 0.8rem; display: block; margin-top: 6px; line-height: 1.4; }
.inked-pay-proof {
    margin-top: 14px; padding-top: 12px;
    border-top: 1px solid rgba(201,168,76,0.15);
    color: #aaa; font-size: 0.85rem;
}
.inked-pay-proof strong { color: #c9a84c; }

/* Redirect Button */
.inked-chat-redirect-btn {
    display: block; text-align: center; padding: 14px 24px;
    background: linear-gradient(135deg, #c9a84c, #a88a3a);
    border-radius: 12px; color: #000; font-weight: 600;
    text-decoration: none; transition: all 0.2s; font-size: 0.95rem;
}
.inked-chat-redirect-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(201,168,76,0.3); }

/* ── Mobile ── */
@media (max-width: 600px) {
    .inked-chat-container { max-width: 100%; }
    .inked-chat-embedded { max-height: 420px; }
    .inked-chat-msg { max-width: 90%; }
    .inked-chat-header { padding: 12px 16px; }
    .inked-chat-input-area { padding: 12px 16px; }
    .inked-chat-messages { padding: 16px; }
}

/* ── Embedded Chat Mode (for homepage) ── */
.inked-chat-embedded {
    max-width: 600px; width: 100%; margin: 0 auto;
    height: 500px; display: flex; flex-direction: column;
    border-radius: 20px;
    border: 1px solid rgba(201,168,76,0.15);
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(20px);
    overflow: hidden;
}
.inked-chat-embedded .inked-chat-messages {
    flex: 1; overflow-y: auto; padding: 20px;
    display: flex; flex-direction: column; gap: 12px;
    scroll-behavior: smooth;
}
.inked-chat-embedded .inked-chat-input-area {
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.3);
    border-radius: 0 0 20px 20px;
}
