
:root { --accent-color: #10B981; --accent-color-dark: #059669; }
body { font-family: 'Inter', sans-serif; -webkit-tap-highlight-color: transparent; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.app-screen { display: none; width: 100%; }
.app-screen.active { display: flex; flex-direction: column; height: 100vh; }
main.main-content { flex-grow: 1; overflow-y: auto; scroll-behavior: smooth; } /* Added smooth scroll */
.app-screen.active.no-flex { display: block; height: auto; }
.loader { border: 4px solid #f3f3f3; border-top: 4px solid var(--accent-color); border-radius: 50%; width: 32px; height: 32px; animation: spin 1s linear infinite; }
.mini-loader { border: 2px solid #f3f3f3; border-top: 2px solid var(--accent-color); border-radius: 50%; width: 16px; height: 16px; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.screen-loader { display: flex; justify-content: center; align-items: center; height: 70vh; }
.payment-tab.active { border-color: var(--accent-color); background-color: rgba(16, 185, 129, 0.1); }
.category-item.active div:first-child { background-color: var(--accent-color); }
.category-item.active div:first-child i, .category-item.active div:first-child span { color: white; }

#nav-sell-button {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
    z-index: 50;
}
#nav-sell-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    background-color: var(--accent-color);
    transition: all 0.2s ease-in-out;
    box-shadow: 0 8px 25px -5px rgba(16, 185, 129, 0.4), 0 4px 6px -2px rgba(16, 185, 129, 0.1);
}
#nav-sell-button a:hover {
    transform: translateY(-4px) scale(1.05);
    background-color: var(--accent-color-dark);
    box-shadow: 0 12px 30px -5px rgba(16, 185, 129, 0.5);
}
#nav-sell-button a i {
    font-size: 2.25rem;
    color: white;
}
/* Auth Screen Styles */
.auth-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
.auth-toggle-buttons {
    display: flex;
    border: 1px solid #333;
    border-radius: 9999px;
    padding: 4px;
    margin-bottom: 2rem;
}
.auth-toggle-button {
    flex: 1;
    padding: 0.75rem;
    border-radius: 9999px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: none;
    background-color: transparent;
}
.auth-toggle-button.active {
    background-color: var(--accent-color);
    color: white;
}
/* Chat Bubble Styles */
.chat-bubble {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: 1.25rem;
    word-wrap: break-word;
}
.chat-bubble-sent {
    background-color: var(--accent-color);
    color: white;
    border-bottom-right-radius: 0.25rem;
    align-self: flex-end;
}
.chat-bubble-received {
    background-color: #e5e7eb; /* light-border */
    color: #1f2937;
    border-bottom-left-radius: 0.25rem;
    align-self: flex-start;
}
.dark .chat-bubble-received {
    background-color: #1e1e1e; /* dark-surface */
    color: #f3f4f6;
}
.chat-bubble-image {
    padding: 0.25rem; /* Reduced padding for image bubbles */
    background-color: transparent;
}
.chat-bubble-image img {
    max-width: 100%;
    border-radius: 1rem;
    object-fit: cover;
}
/* Skeleton Loader */
@keyframes shimmer {
    100% { transform: translateX(100%); }
}
.skeleton {
    position: relative;
    overflow: hidden;
    background-color: #e2e8f0;
}
.dark .skeleton { background-color: #333333; }
.skeleton::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0));
    animation: shimmer 2s infinite;
    content: '';
}
.dark .skeleton::after {
        background-image: linear-gradient(90deg, rgba(75, 85, 99, 0) 0, rgba(75, 85, 99, 0.2) 20%, rgba(75, 85, 99, 0.5) 60%, rgba(75, 85, 99, 0));
}
/* Slider Styles */
.slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.slider-wrapper {
    display: flex;
    transition: transform 0.3s ease-in-out;
}
.slider-slide {
    flex-shrink: 0;
    width: 100%;
}
/* Verified Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.9em;
    margin-left: 6px;
}
/* Toast Notification (Smaller) */
#toast-notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.6rem 1.2rem;
    border-radius: 9999px; /* Pill shape */
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    z-index: 200;
    transition: top 0.4s ease-in-out;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}
#toast-notification.show {
    top: 15px;
}
#toast-notification.success { background-color: #10B981; }
#toast-notification.error { background-color: #EF4444; }

/* Event Banner Animation */
#event-banner-container.show {
    top: 0;
}

/* My Ads & Orders Tabs */
.my-ads-tab, .my-orders-tab {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    color: #6b7280; /* gray-500 */
}
.dark .my-ads-tab, .dark .my-orders-tab {
        color: #9ca3af; /* gray-400 */
}
.my-ads-tab.active, .my-orders-tab.active {
    border-bottom-color: var(--accent-color);
    color: var(--accent-color);
}
/* Dotted border for referral code */
.dotted-border {
    border: 2px dashed #9ca3af; /* gray-400 */
}
/* Store Creation Category Selector */
.store-category-btn.active, .settings-category-btn.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color-dark);
}
.store-category-btn.active i, .settings-category-btn.active i {
    color: white;
}
/* Follow button style */
#follow-action-button {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    font-size: 1.5rem;
}

/* Order Tracking Stepper */
.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}
.stepper-wrapper::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}
.dark .stepper-wrapper::before { background: #333; }
.stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    z-index: 1;
}
.stepper-item .step-counter {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid #fff;
}
.dark .stepper-item .step-counter { background: #333; color: #9ca3af; border-color: #121212; }
.stepper-item.completed .step-counter, .stepper-item.active .step-counter {
    background: var(--accent-color);
    color: white;
}
.stepper-item.cancelled .step-counter {
    background: #EF4444;
    color: white;
}
.step-name {
    font-size: 10px;
    font-weight: 600;
    text-align: center;
}

/* Star Rating Styles - Used for Trust Input */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 5px;
}
.star-rating input {
    display: none;
}
.star-rating label {
    cursor: pointer;
    font-size: 2rem;
    color: #ccc;
    transition: color 0.2s;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #10B981; /* Accent Color for Trust */
}
.mini-star-rating i {
    color: #10B981;
    font-size: 0.75rem;
}
