:root {
    --primary-dark: #1b4332;
    --primary: #2d6a4f;
    --primary-light: #52b788;
    --mint-light: #d8f3dc;
    --chat-bg: #f4f6fa;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --outgoing-bubble: #e2f7cb;
    --incoming-bubble: #ffffff;
    --accent-red: #ff4d4f;
    --accent-red-hover: #ff7875;
    --accent-gold: #ffbe0b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: radial-gradient(circle at top right, var(--primary), var(--primary-dark));
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Mobile Container Frame */
.phone-container {
    width: 100%;
    max-width: 480px;
    background: var(--chat-bg);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

@media (max-width: 480px) {
    .phone-container {
        box-shadow: none;
    }
}

/* Sticky Header */
.chat-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #1b4332;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.healer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.healer-info {
    display: flex;
    flex-direction: column;
}

.healer-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.healer-title {
    font-size: 10px;
    color: #cccccc;
    margin: 3px 0 0 0;
    line-height: 1.2;
}

.header-right {
    display: flex;
    align-items: center;
}

.online-status {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
}

.online-dot {
    width: 8px;
    height: 8px;
    background-color: #4caf50;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.4);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 #4caf50b3;
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(76, 175, 80, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.online-text {
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
}

/* Chat Area */
.chat-area {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--chat-bg);
    /* Messenger background pattern */
    background-image: radial-gradient(rgba(45, 106, 79, 0.05) 1px, transparent 0);
    background-size: 16px 16px;
}

.message-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.mini-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    align-self: flex-end;
    border: 1px solid var(--primary-light);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.message-bubble {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 13.5px;
    line-height: 1.45;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    word-wrap: break-word;
}

.message-bubble.incoming {
    background: var(--incoming-bubble);
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
}

.message-bubble.outgoing {
    background: var(--outgoing-bubble);
    color: var(--primary-dark);
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 9px;
    color: var(--text-light);
    display: block;
    text-align: right;
    margin-top: 4px;
    user-select: none;
}

.outgoing .message-time {
    color: #52b788;
}

/* Typing indicator bubble */
.typing-bubble-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.typing-bubble {
    background: var(--incoming-bubble);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--text-gray);
    border-radius: 50%;
    display: inline-block;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.4;
    }

    40% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat Input / Option Buttons Panel */
.chat-input-panel {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    bottom: 0;
    z-index: 90;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.input-placeholder {
    color: var(--text-light);
    font-size: 13px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 10px 14px;
    border-radius: 20px;
    pointer-events: none;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-placeholder::after {
    content: "🌿";
    font-size: 12px;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
}

.option-btn {
    background: #f4fcf7;
    border: 1px solid #b7e4c7;
    color: var(--primary-dark);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    outline: none;
}

.option-btn:hover {
    background: var(--mint-light);
    border-color: var(--primary-light);
}

.option-btn:active {
    transform: scale(0.98);
}

/* Wheel of Fortune Section */
.wheel-section {
    padding: 20px 15px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
    animation: fadeInUp 0.5s ease-out forwards;
}

.wheel-box {
    background: linear-gradient(135deg, #f4fcf7 0%, #e8f7ee 100%);
    border: 2px dashed var(--primary-light);
    border-radius: 24px;
    padding: 25px 15px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02);
}

.wheel-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #1b4332, #2d6a4f);
    padding: 10px 18px;
    border-radius: 10px;
    display: inline-block;
    margin: 0 0 12px 0;
    box-shadow: 0 3px 8px rgba(45, 106, 79, 0.15);
}

.wheel-desc {
    font-size: 13px;
    color: var(--text-gray);
    margin: 0 0 22px 0;
    line-height: 1.4;
}

.wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.wheel-pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.2));
    width: 28px;
    height: 28px;
}

#wheelCanvas {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 5s cubic-bezier(0.2, 0.85, 0.25, 1);
    transform: rotate(0deg);
}

.spin-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent-red);
    border: 4px solid #ffffff;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 77, 79, 0.4);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    z-index: 12;
    letter-spacing: 0.5px;
}

.spin-btn:hover {
    background: var(--accent-red-hover);
    box-shadow: 0 6px 18px rgba(255, 77, 79, 0.5);
    transform: translate(-50%, -50%) scale(1.05);
}

.spin-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.spin-btn:disabled {
    background: var(--text-light);
    box-shadow: none;
    cursor: not-allowed;
}

/* Congratulations Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.modal-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 35px 25px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(255, 255, 255, 0.3);
    animation: scaleUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.modal-emoji {
    font-size: 55px;
    margin-bottom: 15px;
    display: inline-block;
    animation: bounceEmoji 1.5s infinite;
}

@keyframes bounceEmoji {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0 0 12px 0;
}

.modal-message {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.prize-tag {
    background: linear-gradient(135deg, var(--accent-red) 0%, #ff7875 100%);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 800;
    padding: 14px 22px;
    border-radius: 14px;
    display: inline-block;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(255, 77, 79, 0.3);
    animation: pulse 1.6s infinite;
    letter-spacing: 0.5px;
}

.modal-subtext {
    font-size: 12px;
    color: var(--text-light);
    margin: 0 0 25px 0;
    line-height: 1.4;
}

.modal-btn {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 15px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
    transition: all 0.2s ease;
    outline: none;
}

.modal-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 15px rgba(45, 106, 79, 0.4);
}

/* Checkout Section */
.checkout-section {
    padding: 30px 18px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.checkout-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, #1b4332, #2d6a4f);
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 14px;
    margin: 0 0 22px 0;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.15);
}

.checkout-heading .highlight {
    color: #ffe58f;
    font-size: 13px;
    display: block;
    margin-top: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card {
    background: #f7fbf8;
    border: 1px solid #e2f3e8;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
}

.product-image-container {
    position: relative;
    width: 100%;
    max-width: 190px;
    text-align: center;
}

.product-image {
    width: 100%;
    max-height: 210px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.05));
}

.product-badge {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-red);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(255, 77, 79, 0.25);
    letter-spacing: 0.3px;
}

.product-details {
    width: 100%;
}

.product-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0 0 10px 0;
    text-align: center;
}

.product-desc {
    font-size: 12.5px;
    color: var(--text-gray);
    line-height: 1.55;
    margin: 0 0 18px 0;
    text-align: justify;
}

.price-container {
    background: #ffffff;
    border: 1px solid #e2f3e8;
    border-radius: 14px;
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.price-old {
    border-right: 1px solid #e2f3e8;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.price-old .price-val {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 16px;
    font-weight: 600;
}

.price-new {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.price-new .price-val {
    color: var(--accent-red);
    font-size: 21px;
    font-weight: 800;
}

.price-label {
    font-size: 10px;
    color: var(--text-gray);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.price-note {
    grid-column: span 2;
    font-size: 9px;
    color: var(--text-light);
    margin-top: 6px;
    border-top: 1px dashed #e2f3e8;
    padding-top: 6px;
}

/* Urgency box styles */
.urgency-triggers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

.timer-box {
    background: #fff1f0;
    border: 1px solid #ffccc7;
    border-radius: 14px;
    padding: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.timer-label {
    font-size: 11px;
    color: #cf1322;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.timer-display {
    font-size: 22px;
    font-weight: 800;
    color: #a8071a;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 1px;
}

.stock-box {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 14px;
    padding: 12px 16px;
}

.stock-label {
    font-size: 12.5px;
    color: #d48806;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.stock-count {
    color: #ad2102;
    font-weight: 800;
}

.stock-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.stock-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffe58f 0%, #ad2102 100%);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

/* Form styling */
.order-form-container {
    background: #f4fcf7;
    border: 1px dashed var(--primary-light);
    border-radius: 18px;
    padding: 22px 18px;
}

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

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-dark);
}

.form-group input {
    padding: 13px;
    border: 1px solid #b7e4c7;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

.submit-btn {
    width: 100%;
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
    transition: background 0.2s;
    font-family: inherit;
    outline: none;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

.submit-btn.pulsate {
    animation: pulsateBtn 2s infinite;
}

@keyframes pulsateBtn {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 18px rgba(45, 106, 79, 0.5);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
    }
}

/* Form Success Message */
.success-message {
    text-align: center;
    padding: 10px 5px;
    animation: scaleUp 0.35s ease-out;
}

.success-icon {
    width: 52px;
    height: 52px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 26px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    border: 2px solid #a5d6a7;
}

.success-message h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 19px;
    color: var(--primary-dark);
    margin: 0 0 8px 0;
    font-weight: 700;
}

.success-message p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.55;
    margin: 0;
}

/* Reviews Block */
.reviews-section {
    padding: 30px 18px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.reviews-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(135deg, #1b4332, #2d6a4f);
    padding: 14px 20px;
    border-radius: 14px;
    margin: 0 0 22px 0;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.15);
}

.review-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.review-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.review-date {
    font-size: 10px;
    color: var(--text-light);
}

.review-rating {
    font-size: 12px;
}

.review-text {
    font-size: 12.5px;
    color: var(--text-gray);
    line-height: 1.55;
    margin: 0;
    text-align: justify;
}

.before-after-container {
    margin-top: 14px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.before-after-img {
    width: 100%;
    display: block;
}

.before-after-labels {
    display: flex;
    justify-content: space-between;
    background: rgba(27, 67, 50, 0.9);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 7px 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer */
.chat-footer {
    background: var(--chat-bg);
    padding: 25px 18px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.copyright {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0 10px 0;
}

.disclaimer {
    font-size: 9.5px;
    color: #babcbf;
    line-height: 1.45;
    margin: 0;
    text-align: justify;
}

/* Helper Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.92);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.04);
    }

    100% {
        transform: scale(1);
    }
}