#digipeter-chatbot-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999999;
    font-family: "Poppins", "Inter", sans-serif;
}

#digipeter-chatbot-toggle {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F5A623 0%, #D97706 100%); /* Bouwpunt & Bouwunie Yellow-Gold */
    color: #3B2314;
    border: 3.5px solid #7a2c1b; /* Houtboerke Warm Timber Brown border */
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(122, 44, 27, 0.35), 0 0 0 4px rgba(245, 166, 35, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    padding: 0;
    overflow: hidden;
}

#digipeter-chatbot-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 36px rgba(122, 44, 27, 0.45), 0 0 0 6px rgba(245, 166, 35, 0.4);
}

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

#digipeter-chatbot-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(43, 21, 15, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999998;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#digipeter-chatbot-backdrop.dp-hidden {
    opacity: 0;
    pointer-events: none;
}

#digipeter-chatbot-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 1140px;
    height: 88vh;
    max-height: 900px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(59, 35, 20, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1.5px solid rgba(245, 166, 35, 0.35);
    z-index: 9999999;
}

#digipeter-chatbot-window.dp-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, calc(-50% + 24px)) scale(0.97);
}

.dp-header {
    background: linear-gradient(135deg, #3B2314 0%, #5C2419 60%, #7A2C1B 100%);
    color: white;
    padding: 18px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3.5px solid #F5A623;
}

.dp-header-info {
    display: flex;
    flex-direction: column;
}

.dp-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dp-name-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 2px;
    background: white;
    cursor: pointer;
    transition: transform 0.2s;
    border: 2.5px solid #F5A623;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.dp-name-icon:hover {
    transform: scale(1.08);
}

.dp-name-meta {
    display: flex;
    flex-direction: column;
}

.dp-name-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.dp-name-subtitle {
    font-size: 11.5px;
    font-weight: 500;
    color: #FDE68A;
    margin-top: 2px;
    line-height: 1.2;
}

#digipeter-chatbot-close {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

#digipeter-chatbot-close:hover {
    background: #F5A623;
    color: #3B2314;
    border-color: #F5A623;
    transform: rotate(90deg) scale(1.06);
}

/* Modal Popup Avatar */
#dp-avatar-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 10, 8, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000000; /* Stays above everything including the enlarged chat window */
    opacity: 1;
    transition: opacity 0.3s ease;
}

#dp-avatar-modal.dp-hidden {
    opacity: 0;
    pointer-events: none;
}

.dp-avatar-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#dp-avatar-modal-img {
    width: 440px;
    height: 440px;
    max-width: 85vw;
    max-height: 85vw;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #F5A623; /* Bouwpunt Gold */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
    background: #3B2314;
    display: block;
}

#dp-avatar-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #3B2314;
    border: 2px solid #F5A623;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #F5A623;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: all 0.2s ease;
}

#dp-avatar-modal-close:hover {
    background: #F5A623;
    color: #3B2314;
    transform: rotate(90deg) scale(1.08);
}

.dp-beta-badge {
    background: #eec34b;
    color: #7a2c1b;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    text-transform: uppercase;
    margin-left: 10px;
}

.dp-speech-bubble {
    position: relative;
    background: #ffffff;
    color: #7a2c1b;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    margin-left: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.dp-speech-bubble::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -7px;
    transform: translateY(-50%);
    border-width: 7px 8px 7px 0;
    border-style: solid;
    border-color: transparent #ffffff transparent transparent;
}

#digipeter-chatbot-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
}

#digipeter-chatbot-close:hover {
    color: #eec34b;
    transform: scale(1.1);
}

.dp-disclaimer {
    background: #fdfaf2;
    color: #622315;
    padding: 12px 20px;
    font-size: 12px;
    border-bottom: 1px solid #f6e6b8;
    text-align: center;
}

#dp-messages-container {
    flex: 1;
    min-height: 0;
    padding: 25px;
    overflow-y: auto;
    overscroll-behavior: contain; /* Prevents background page scrolling */
    background: #fafaf9;
}

.dp-message {
    padding: 14px 20px;
    border-radius: 18px;
    max-width: 82%;
    font-size: 15px;
    line-height: 1.5;
    word-wrap: break-word;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    margin-bottom: 16px;
    width: fit-content;
}

.dp-bot {
    background: #ffffff;
    color: #333333;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
    margin-right: auto; /* Aligns left */
}

/* Markdown specific styling for bot responses */
.dp-bot p {
    margin: 0 0 10px 0;
}
.dp-bot p:last-child {
    margin-bottom: 0;
}
.dp-bot ul, .dp-bot ol {
    margin: 5px 0 15px 20px;
    padding: 0;
}
.dp-bot li {
    margin-bottom: 6px;
}

.dp-user {
    background: #7a2c1b;
    color: #ffffff;
    border-bottom-right-radius: 4px;
    margin-left: auto; /* Aligns right */
}

/* Products rendered within bot message */
.dp-product-list {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.dp-product-tile {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #ebd9c8;
    border-radius: 12px;
    padding: 12px 14px;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.dp-product-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(122, 44, 27, 0.12);
    border-color: #F5A623;
}

.dp-offline-tile {
    cursor: default;
    background: #fafaf9;
}

.dp-offline-tile:hover {
    transform: none;
    box-shadow: none;
    border-color: #e0e0e0;
}

.dp-offline-notice {
    font-size: 11px;
    font-weight: 600;
    color: #27ae60; /* Green */
    margin-top: 5px;
}

.dp-online-notice {
    font-size: 11.5px;
    font-weight: 700;
    color: #B45309; /* Warm Bouwpunt / Bouwunie Amber */
    margin-top: 5px;
}

.dp-product-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 14px;
    border: 1px solid #ebd9c8;
}

.dp-product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dp-product-name {
    font-weight: 700;
    font-size: 14px;
    color: #7a2c1b;
    margin-bottom: 4px;
}

.dp-product-price {
    font-size: 13px;
    font-weight: bold;
    color: #d97706;
}

.dp-product-qty {
    font-size: 12px;
    color: #78716c;
    margin-top: 2px;
}

/* Inputs */
.dp-input-area {
    display: flex;
    padding: 18px 24px;
    background: #ffffff;
    border-top: 1px solid #ebd9c8;
    align-items: center;
}

#dp-chat-input {
    flex: 1;
    border: 2px solid #ebd9c8;
    border-radius: 25px;
    padding: 14px 22px;
    font-size: 15.5px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fdfaf6;
    color: #3b2314;
}

#dp-chat-input:focus {
    border-color: #F5A623;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.2);
}

#dp-chat-send {
    background: #3B2314; /* Deep Houtboerke Timber Brown */
    border: 2px solid #F5A623; /* Bouwpunt Gold border */
    border-radius: 50%;
    width: 52px;
    height: 52px;
    margin-left: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(59, 35, 20, 0.25);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    padding: 0;
}

#dp-chat-send:hover {
    background: #7a2c1b;
    border-color: #FBBF24;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.45);
}

#dp-chat-send:active {
    transform: scale(0.96);
}

.dp-send-chevron {
    width: 22px;
    height: 22px;
    display: block;
    stroke: #F5A623; /* Eenvoudige gele chevron */
    transition: stroke 0.2s, transform 0.2s;
    margin-left: 2px; /* Optical center alignment */
}

#dp-chat-send:hover .dp-send-chevron {
    stroke: #FDE68A;
    transform: translateX(2px);
}

#dp-messages-container::-webkit-scrollbar {
    width: 6px;
}

#dp-messages-container::-webkit-scrollbar-thumb {
    background-color: #e0e0e0;
    border-radius: 3px;
}

.dp-typing-indicator {
    display: flex;
    gap: 4px;
    padding: 14px 20px;
    background: #ffffff;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    border: 1px solid #e0e0e0;
    width: fit-content;
    margin-right: auto;
    margin-bottom: 16px;
}

.dp-dot {
    width: 6px;
    height: 6px;
    background: #7a2c1b;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.dp-dot:nth-child(1) { animation-delay: -0.32s; }
.dp-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ==========================================================================
   STAF CRAFTSMAN WAREHOUSE LOADING SCENE
   ========================================================================== */
.dp-typing-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    border: 1px solid #e7ded4;
    box-shadow: 0 6px 24px rgba(122, 44, 27, 0.08);
    width: 100%;
    max-width: 600px;
    margin-right: auto;
    margin-bottom: 16px;
    overflow: hidden;
    animation: dpCardFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.dp-typing-card.dp-card-fade-out {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
}

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

.staf-loader-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #fdfaf6 0%, #f7efe6 100%);
    border-bottom: 1px solid #ebd9c8;
}

.staf-loader-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #7a2c1b;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.staf-loader-title {
    font-size: 13px;
    font-weight: 700;
    color: #4a1910;
    letter-spacing: -0.2px;
}

.staf-loader-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(122, 44, 27, 0.08);
    color: #7a2c1b;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
}

.staf-badge-pulse {
    width: 6px;
    height: 6px;
    background: #d97706;
    border-radius: 50%;
    animation: stafPulse 1.4s infinite;
}

.staf-badge-ready {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
}

.staf-badge-ready-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

@keyframes stafPulse {
    0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7); }
    70% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 0 6px rgba(217, 119, 6, 0); }
    100% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

.staf-video-container {
    width: 100%;
    background: #1e293b;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    line-height: 0;
    max-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
}

.staf-loader-video {
    width: 100%;
    height: 100%;
    max-height: 280px;
    display: block;
    object-fit: cover;
    transition: opacity 0.4s ease-in-out;
}

.staf-video-thinking {
    opacity: 1;
    z-index: 1;
}

.staf-video-ready {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

.staf-video-ready.is-active {
    opacity: 1;
    pointer-events: auto;
}

.staf-scene-container {
    width: 100%;
    background: #fdfbf7;
    padding: 6px 10px;
    position: relative;
    box-sizing: border-box;
    user-select: none;
}

.staf-scene-svg {
    width: 100%;
    height: auto;
    display: block;
    max-height: 220px;
}

.staf-status-ticker {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #ffffff;
    border-top: 1px solid #f0e6dc;
    font-size: 12.5px;
    font-weight: 500;
    color: #574038;
}

.staf-ticker-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7a2c1b;
    flex-shrink: 0;
    animation: tickerBlink 1.2s ease-in-out infinite;
}

@keyframes tickerBlink {
    0%, 100% { opacity: 0.4; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.15); }
}

#staf-ticker-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#staf-ticker-text.fade-out {
    opacity: 0;
    transform: translateY(-4px);
}

#staf-ticker-text.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* SVG Keyframe Animations for Staf & Warehouse */
@keyframes stafHeadCycle {
    0%, 16% { transform: rotate(-5deg); } /* Looking up at top Douglas shelf */
    22%, 46% { transform: rotate(15deg); } /* Looking down at clipboard */
    52%, 66% { transform: rotate(2deg); } /* Looking mid-shelf at PIR */
    72%, 94% { transform: rotate(15deg); } /* Looking down at clipboard */
    100% { transform: rotate(-5deg); }
}

.staf-head-anim {
    transform-origin: 75px 68px;
    animation: stafHeadCycle 6s infinite ease-in-out;
}

@keyframes stafEyeCycle {
    0%, 16% { transform: translate(3px, -2px); }
    22%, 46% { transform: translate(-1px, 2px); }
    52%, 66% { transform: translate(2px, 0px); }
    72%, 94% { transform: translate(-1px, 2px); }
    100% { transform: translate(3px, -2px); }
}

.staf-eye-anim {
    animation: stafEyeCycle 6s infinite ease-in-out;
}

@keyframes stafWritingArmMotion {
    0%, 20% { transform: translate(0, 0) rotate(0deg); }
    23% { transform: translate(1.5px, -1px) rotate(-3deg); }
    26% { transform: translate(-1.5px, 1px) rotate(3deg); }
    29% { transform: translate(2px, -1.5px) rotate(-4deg); }
    32% { transform: translate(-1px, 1px) rotate(2deg); }
    35% { transform: translate(2px, -1px) rotate(-3deg); }
    38% { transform: translate(-1.5px, 1.5px) rotate(3deg); }
    42% { transform: translate(1px, -1px) rotate(-2deg); }
    46%, 70% { transform: translate(0, 0) rotate(0deg); }
    73% { transform: translate(1.5px, -1px) rotate(-3deg); }
    76% { transform: translate(-1.5px, 1.5px) rotate(4deg); }
    79% { transform: translate(2px, -1.5px) rotate(-3deg); }
    83% { transform: translate(-1px, 1px) rotate(2deg); }
    87% { transform: translate(1.5px, -1px) rotate(-2deg); }
    91%, 100% { transform: translate(0, 0) rotate(0deg); }
}

.staf-arm-write {
    transform-origin: 105px 105px;
    animation: stafWritingArmMotion 6s infinite ease-in-out;
}

@keyframes rackScanner {
    0% { transform: translateX(0); opacity: 0; }
    10% { opacity: 0.9; }
    45% { opacity: 0.9; }
    55% { transform: translateX(115px); opacity: 0; }
    100% { transform: translateX(0); opacity: 0; }
}

.staf-scan-beam {
    animation: rackScanner 3s infinite ease-in-out;
}

@keyframes tagFloat1 {
    0%, 20% { opacity: 0; transform: translateY(6px) scale(0.85); }
    28% { opacity: 1; transform: translateY(0) scale(1); }
    42% { opacity: 1; transform: translateY(-4px) scale(1); }
    48%, 100% { opacity: 0; transform: translateY(-10px) scale(0.9); }
}

@keyframes tagFloat2 {
    0%, 70% { opacity: 0; transform: translateY(6px) scale(0.85); }
    78% { opacity: 1; transform: translateY(0) scale(1); }
    88% { opacity: 1; transform: translateY(-4px) scale(1); }
    94%, 100% { opacity: 0; transform: translateY(-10px) scale(0.9); }
}

.staf-tag-float-1 {
    animation: tagFloat1 6s infinite ease-out;
}

.staf-tag-float-2 {
    animation: tagFloat2 6s infinite ease-out;
}

@keyframes scribbleDraw1 {
    0%, 21% { stroke-dashoffset: 24; opacity: 0; }
    25% { opacity: 1; }
    35% { stroke-dashoffset: 0; opacity: 1; }
    46% { opacity: 1; }
    48% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes scribbleDraw2 {
    0%, 71% { stroke-dashoffset: 24; opacity: 0; }
    75% { opacity: 1; }
    85% { stroke-dashoffset: 0; opacity: 1; }
    94% { opacity: 1; }
    96% { opacity: 0; }
    100% { opacity: 0; }
}

.staf-notepad-line-1 {
    stroke-dasharray: 24;
    animation: scribbleDraw1 6s infinite linear;
}

.staf-notepad-line-2 {
    stroke-dasharray: 24;
    animation: scribbleDraw2 6s infinite linear;
}

/* Email Form */
#dp-email-container {
    position: absolute;
    bottom: 92px; /* Above input area */
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid #eec34b;
    padding: 25px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.08);
    z-index: 10;
}

#dp-email-container.dp-hidden {
    display: none;
}

.dp-email-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dp-email-form p {
    margin: 0 0 10px 0;
    font-size: 15px;
    font-weight: 700;
    color: #7a2c1b;
}

.dp-email-form input {
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.dp-email-form input:focus {
    border-color: #eec34b;
    outline: none;
}

.dp-email-form button {
    padding: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: background 0.2s, transform 0.2s;
}

#dp-email-submit {
    background: #7a2c1b;
    color: white;
    margin-top: 10px;
}

#dp-email-submit:hover {
    background: #622315;
}

#dp-email-cancel {
    background: #fdfaf2;
    color: #7a2c1b;
    border: 1px solid #f6e6b8;
}

#dp-email-cancel:hover {
    background: #f6e6b8;
}

.dp-action-btn {
    background: #eec34b;
    color: #7a2c1b;
    border: none;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    display: inline-block;
    transition: background 0.2s, transform 0.2s;
}

.dp-action-btn:hover {
    background: #dab24b;
    transform: translateY(-2px);
}

/* Fallback & Error Retry Card */
.dp-error-card {
    background: linear-gradient(135deg, #fffaf5 0%, #fff6ec 100%);
    border: 1.5px solid #ebd9c8;
    border-radius: 14px;
    padding: 16px 18px;
    margin-top: 4px;
    box-shadow: 0 4px 14px rgba(122, 44, 27, 0.07);
    animation: dpCardFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dp-error-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(122, 44, 27, 0.08);
    color: #7a2c1b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.dp-error-title {
    font-size: 15px;
    font-weight: 700;
    color: #4a1910;
    margin: 0 0 6px 0 !important;
}

.dp-error-desc {
    font-size: 13.5px;
    line-height: 1.45;
    color: #5d4a44;
    margin: 0 0 14px 0 !important;
}

.dp-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dp-retry-btn {
    background: #7a2c1b !important;
    color: #ffffff !important;
    padding: 9px 16px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    margin-top: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(122, 44, 27, 0.25);
    transition: background 0.2s, transform 0.2s;
}

.dp-retry-btn:hover {
    background: #622315 !important;
    transform: translateY(-1px);
}

.dp-advisor-btn {
    background: #ffffff !important;
    color: #7a2c1b !important;
    border: 1.5px solid #ebd9c8 !important;
    padding: 9px 16px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    margin-top: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.dp-advisor-btn:hover {
    background: #fdfaf6 !important;
    border-color: #7a2c1b !important;
}

/* Welcome Balloon */
#dp-welcome-balloon {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: max-content;
    max-width: 280px;
    background: #ffffff;
    color: #7a2c1b;
    border: 2px solid #eec34b;
    padding: 12px 30px 12px 15px;
    border-radius: 12px 12px 0 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: bottom right;
    z-index: 10;
}

#dp-welcome-balloon::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 30px;
    border-width: 10px 10px 0 0;
    border-style: solid;
    border-color: #eec34b transparent transparent transparent;
}

#dp-welcome-balloon::before {
    content: '';
    position: absolute;
    bottom: -7px;
    right: 31px;
    border-width: 8px 8px 0 0;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
    z-index: 2;
}

#dp-welcome-balloon.dp-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

#dp-welcome-close {
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 18px;
    cursor: pointer;
    color: #7a2c1b;
    line-height: 1;
    font-weight: bold;
}

#dp-welcome-close:hover {
    color: #eec34b;
}

/* Jumping animation */
@keyframes dp-jump {
    0% { transform: translateY(0) scale(1); }
    10% { transform: translateY(0) scale(1.15, 0.85); }
    30% { transform: translateY(-26px) scale(0.9, 1.1); }
    50% { transform: translateY(0) scale(1.08, 0.92); }
    65% { transform: translateY(-12px) scale(0.96, 1.04); }
    80% { transform: translateY(0) scale(1.02, 0.98); }
    90% { transform: translateY(-5px) scale(0.99, 1.01); }
    100% { transform: translateY(0) scale(1); }
}

.dp-jump-anim {
    animation: dp-jump 1.8s cubic-bezier(0.28, 0.84, 0.42, 1);
    transform-origin: bottom center;
}

